    :root {
      --bg: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
      --bg-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
      --glass-base: rgba(18, 30, 44, 0.42);
      --line: rgba(255, 255, 255, 0.32);
      --txt: #f3f8ff;
      --muted: #c4d2e0;
      --accent: #8fd3ff;
    }
    html, body {
      margin: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #0b0f14;
      color: var(--txt);
      font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    }
    #cameraFeed {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 1;
      background: #000;
    }
    #streetViewBg {
      position: fixed;
      inset: 0;
      z-index: 1;
      display: none;
      background: #000;
      pointer-events: none;
    }
    #streetViewFrame {
      width: 100%;
      height: 100%;
      border: 0;
      pointer-events: auto;
      display: none;
    }
    #streetViewCanvas {
      width: 100%;
      height: 100%;
      display: none;
      pointer-events: auto;
    }
    #arRoot {
      position: fixed;
      inset: 0;
      z-index: 2;
      pointer-events: none;
    }
    #arRoot .a-scene,
    #arRoot canvas {
      width: 100% !important;
      height: 100% !important;
    }
    #labelLayer {
      position: fixed;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      overflow: hidden;
    }
    #selectedInfoLayer {
      position: fixed;
      inset: 0;
      z-index: 3;
      pointer-events: none;
      overflow: hidden;
    }
    #selectedInfoLine {
      position: absolute;
      height: 1px;
      background: rgba(230, 242, 255, 0.45);
      box-shadow: 0 0 4px rgba(143, 211, 255, 0.2);
      transform-origin: 0 50%;
      display: none;
    }
    #selectedInfoBox {
      position: absolute;
      display: none;
      min-width: 220px;
      max-width: min(360px, calc(100vw - 16px));
      padding: 10px 12px;
      background: linear-gradient(130deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), rgba(8, 14, 22, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 0;
      box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
      backdrop-filter: blur(14px) saturate(120%);
      -webkit-backdrop-filter: blur(14px) saturate(120%);
      color: #f3f6fa;
      font-size: 12px;
      line-height: 1.55;
    }
    #selectedInfoBox .info-name {
      font-size: 15px;
      font-weight: 700;
      line-height: 1.35;
      margin-bottom: 6px;
      color: #f7fbff;
    }
    #selectedInfoBox .info-meta {
      font-size: 11px;
      line-height: 1.45;
      color: #d8e3ee;
      margin-bottom: 6px;
    }
    #selectedInfoBox .info-behavior {
      font-size: 14px;
      line-height: 1.6;
      color: #f3f6fa;
    }
    .track-label {
      position: absolute;
      transform: translate(-50%, -100%);
      padding: 2px 6px;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)), rgba(12, 22, 34, 0.44);
      border: 1px solid rgba(255, 255, 255, 0.36);
      backdrop-filter: blur(8px) saturate(120%);
      -webkit-backdrop-filter: blur(8px) saturate(120%);
      color: #f4fbff;
      font-size: 11px;
      line-height: 1.2;
      white-space: nowrap;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
      pointer-events: auto;
      touch-action: manipulation;
    }
    .overlay {
      position: fixed;
      z-index: 3;
      backdrop-filter: blur(14px) saturate(120%);
      -webkit-backdrop-filter: blur(14px) saturate(120%);
      background: var(--bg), var(--glass-base);
      border: 1px solid var(--line);
      border-radius: 12px;
      box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
    #launch {
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: min(90vw, 420px);
      padding: 16px;
    }
    #launch.hidden {
      display: none;
    }
    #launch h1 {
      margin: 0 0 8px;
      font-size: 18px;
      line-height: 1.4;
    }
    #launch p {
      margin: 0 0 12px;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
    }
    #startBtn {
      border: 0;
      border-radius: 999px;
      padding: 10px 18px;
      font-size: 14px;
      font-weight: 600;
      background: var(--accent);
      color: #001522;
    }
    #status {
      display: none;
      left: 10px;
      top: 12px;
      right: auto;
      padding: 0;
      font-size: 11px;
      white-space: pre-line;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 4px rgba(0, 0, 0, 0.8);
    }

    #settingsControl {
      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 7;
      display: none;
    }

    #compassStrip {
      position: fixed;
      left: 0;
      right: 0;
      bottom: calc(86px + env(safe-area-inset-bottom));
      z-index: 4;
      pointer-events: none;
      display: flex;
      justify-content: center;
    }

    #compassViewport {
      position: relative;
      width: min(92vw, 560px);
      height: 26px;
      overflow: hidden;
    }

    #compassTrack {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      will-change: transform;
    }

    .compass-mark {
      position: absolute;
      top: 0;
      width: 1px;
      height: 100%;
      background: rgba(255, 255, 255, 0.14);
    }

    .compass-mark.major {
      background: rgba(255, 255, 255, 0.28);
    }

    .compass-label {
      position: absolute;
      top: 6px;
      transform: translateX(-50%);
      font-size: 15px;
      line-height: 1;
      font-weight: 700;
      color: #eaf6ff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
      letter-spacing: 0.14em;
    }

    #compassCenterLine {
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      transform: translateX(-50%);
      background: rgba(255, 96, 96, 0.95);
    }

    #settingsBtn {
      border: 1px solid var(--line);
      border-radius: 999px;
      min-width: 46px;
      height: 30px;
      padding: 0 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--bg), var(--glass-base);
      color: var(--txt);
      font-size: 12px;
      font-weight: 700;
      backdrop-filter: blur(14px) saturate(120%);
      -webkit-backdrop-filter: blur(14px) saturate(120%);
      box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    }
    #settingsBackdrop {
      position: fixed;
      inset: 0;
      z-index: 7;
      background: rgba(4, 10, 16, 0.45);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }
    #settingsPanel {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 8;
      width: min(92vw, 360px);
      max-height: min(72vh, 560px);
      overflow: auto;
      padding: 14px 14px 12px;
      border-radius: 14px;
      background: var(--bg), var(--glass-base);
      border: 1px solid var(--line);
      box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
      backdrop-filter: blur(14px) saturate(120%);
      -webkit-backdrop-filter: blur(14px) saturate(120%);
    }
    .settings-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 13px;
      color: var(--txt);
    }
    .settings-row + .settings-row {
      margin-top: 10px;
    }
    #debugSettingsStack {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }
    #debugSettingsStack > section {
      display: block;
      width: 100%;
      min-width: 0;
    }
    @media (min-width: 1024px) {
      #settingsPanel {
        min-width: 340px;
      }
    }
    #heightOffsetLabel,
    #heightOffsetValue {
      font-size: 12px;
      color: var(--txt);
    }
    #heightOffsetValue {
      min-width: 36px;
      text-align: right;
      opacity: 0.9;
    }
    #heightOffsetSlider {
      width: 100%;
      margin-top: 6px;
      accent-color: var(--accent);
    }
    #gpsControl {
      margin-top: 12px;
    }
    .settings-btn-wide {
      width: 100%;
      margin-top: 0;
      justify-content: center;
      font-weight: 700;
    }
    #debugModeControl.settings-row {
      position: static;
      align-items: center;
      padding: 0;
      height: auto;
      border: 0;
      box-shadow: none;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    #fixedLocationControl {
      position: fixed;
      top: 12px;
      left: 10px;
      transform: none;
      z-index: 7;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      width: min(78vw, 236px);
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    #debugSwitchLabel {
      font-size: 12px;
      font-weight: 700;
      color: #f3f8ff;
      user-select: none;
      line-height: 1;
    }
    .debug-switch {
      position: relative;
      width: 34px;
      height: 18px;
      display: inline-block;
    }
    .debug-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .debug-slider {
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.24);
      border-radius: 999px;
      transition: background 180ms ease;
      cursor: pointer;
    }
    .debug-slider::before {
      content: "";
      position: absolute;
      width: 14px;
      height: 14px;
      left: 2px;
      top: 2px;
      border-radius: 50%;
      background: #fff;
      transition: transform 180ms ease;
    }
    .debug-switch input:checked + .debug-slider {
      background: rgba(80, 170, 255, 0.88);
    }
    .debug-switch input:checked + .debug-slider::before {
      transform: translateX(16px);
    }
    #fixedLocationTrigger {
      min-width: 0;
      max-width: 100%;
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.36);
      border-radius: 12px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07)),
        linear-gradient(180deg, rgba(143, 211, 255, 0.12), rgba(12, 24, 38, 0)),
        rgba(12, 24, 38, 0.62);
      color: #f3f8ff;
      padding: 5px 10px 6px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      text-align: left;
      outline: none;
      backdrop-filter: blur(10px) saturate(120%);
      -webkit-backdrop-filter: blur(10px) saturate(120%);
      box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
    }
    #fixedLocationTrigger:hover,
    #fixedLocationTrigger[aria-expanded="true"] {
      border-color: rgba(143, 211, 255, 0.72);
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
        linear-gradient(180deg, rgba(143, 211, 255, 0.18), rgba(12, 24, 38, 0)),
        rgba(12, 24, 38, 0.72);
    }
    #fixedLocationTrigger:active {
      transform: scale(0.985);
    }
    .fixed-location-trigger-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 1px;
      flex: 1 1 auto;
    }
    .fixed-location-trigger-label {
      font-size: 10px;
      line-height: 1.05;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: rgba(224, 238, 249, 0.82);
    }
    .fixed-location-trigger-value {
      font-size: 13px;
      line-height: 1.15;
      font-weight: 700;
      color: #f7fbff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .fixed-location-trigger-chevron {
      flex: 0 0 auto;
      font-size: 12px;
      line-height: 1;
      color: rgba(243, 248, 255, 0.86);
      transform-origin: 50% 45%;
      transition: transform 160ms ease, color 160ms ease;
    }
    #fixedLocationTrigger[aria-expanded="true"] .fixed-location-trigger-chevron {
      transform: rotate(180deg);
      color: #8fd3ff;
    }
    #fixedLocationTrigger:disabled {
      opacity: 0.6;
    }
    #fixedLocationMenu {
      border: 1px solid rgba(255, 255, 255, 0.36);
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)), rgba(12, 24, 38, 0.8);
      box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(12px) saturate(120%);
      -webkit-backdrop-filter: blur(12px) saturate(120%);
      overflow: hidden;
    }
    #fixedLocationMenuList {
      display: flex;
      flex-direction: column;
    }
    .fixed-location-option {
      border: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      background: transparent;
      color: #f3f8ff;
      text-align: left;
      padding: 11px 12px;
      font-size: 12px;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: background 160ms ease, color 160ms ease;
    }
    .fixed-location-option:hover {
      background: rgba(255, 255, 255, 0.08);
    }
    .fixed-location-option:first-child {
      border-top: 0;
    }
    .fixed-location-option.is-active {
      background: rgba(122, 192, 255, 0.28);
      color: #f8fcff;
      font-weight: 700;
    }
    .fixed-location-option.is-active::after {
      content: " ✓";
      color: #8fd3ff;
    }
    @media (max-width: 720px), (hover: none) and (pointer: coarse) {
      #fixedLocationControl {
        top: 12px;
        left: 10px;
        width: min(84vw, 220px);
      }
      #fixedLocationTrigger {
        min-width: 0;
        max-width: 100%;
        padding: 6px 10px 7px 12px;
      }
      .fixed-location-trigger-label {
        font-size: 10px;
      }
      .fixed-location-trigger-value {
        font-size: 14px;
        line-height: 1.2;
      }
      .fixed-location-trigger-chevron {
        font-size: 13px;
      }
      .fixed-location-option {
        padding: 9px 12px;
        font-size: 14px !important;
        line-height: 1.3;
      }
    }
    #controls {
      left: 10px;
      right: 10px;
      bottom: 10px;
      padding: 10px;
    }
    .row {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    .row + .row {
      margin-top: 8px;
    }
    #timeline {
      width: 100%;
      accent-color: var(--accent);
    }
    #speedPicker {
      left: 50%;
      width: min(560px, calc(100vw - 20px));
      transform: translateX(-50%);
      bottom: calc(84px + env(safe-area-inset-bottom, 0px));
      z-index: 7;
      padding: 12px 10px 10px;
    }
    .speed-presets {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 6px;
    }
    .speed-manual {
      grid-column: 1 / -1;
      display: flex;
      gap: 6px;
      margin-top: 2px;
    }
    #speedManualInput {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.36);
      border-radius: 8px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)), rgba(12, 24, 38, 0.55);
      color: #f3f8ff;
      padding: 5px 8px;
      font-size: 12px;
      line-height: 1.3;
      outline: none;
      backdrop-filter: blur(10px) saturate(120%);
      -webkit-backdrop-filter: blur(10px) saturate(120%);
    }
    #speedManualApply {
      padding: 6px 12px;
      white-space: nowrap;
    }
    .speed-slider-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }
    #speedSlider {
      width: 100%;
      accent-color: var(--accent);
    }
    #speedSliderValue {
      min-width: 42px;
      text-align: right;
      font-size: 12px;
      color: var(--txt);
      opacity: 0.95;
    }
    .speed-preset.is-active {
      background: linear-gradient(135deg, rgba(143, 211, 255, 0.36), rgba(143, 211, 255, 0.1)), rgba(12, 24, 38, 0.6);
      border-color: rgba(143, 211, 255, 0.8);
    }
    button.ctrl {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--bg-strong), rgba(12, 24, 38, 0.48);
      color: var(--txt);
      padding: 6px 12px;
      font-size: 12px;
      backdrop-filter: blur(10px) saturate(120%);
      -webkit-backdrop-filter: blur(10px) saturate(120%);
      box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
    button.ctrl.is-off {
      opacity: 0.5;
      filter: saturate(0.55) brightness(0.82);
    }
    #streetViewToggleBtn {
      transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease,
        opacity 160ms ease,
        filter 160ms ease;
    }
    #streetViewToggleBtn.is-on {
      background: linear-gradient(135deg, rgba(143, 211, 255, 0.36), rgba(143, 211, 255, 0.1)), rgba(12, 24, 38, 0.6);
      border-color: rgba(143, 211, 255, 0.8);
      color: #f8fcff;
      box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(143, 211, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
    #streetViewToggleBtn.is-off {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)), rgba(12, 24, 38, 0.42);
      border-color: rgba(255, 255, 255, 0.24);
      color: rgba(228, 237, 246, 0.78);
      opacity: 1;
      filter: none;
      box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }
    #gpsRefreshBtn.is-glow {
      animation: gpsRefreshGlow 420ms ease-out;
    }
    @keyframes gpsRefreshGlow {
      0% {
        box-shadow:
          0 0 0 rgba(143, 211, 255, 0),
          0 6px 14px rgba(0, 0, 0, 0.2),
          inset 0 1px 0 rgba(255, 255, 255, 0.24);
      }
      35% {
        box-shadow:
          0 0 18px rgba(143, 211, 255, 0.85),
          0 8px 18px rgba(0, 0, 0, 0.26),
          inset 0 1px 0 rgba(255, 255, 255, 0.3);
      }
      100% {
        box-shadow:
          0 0 0 rgba(143, 211, 255, 0),
          0 6px 14px rgba(0, 0, 0, 0.2),
          inset 0 1px 0 rgba(255, 255, 255, 0.24);
      }
    }
    @media (max-width: 720px) {
      #speedPicker {
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
      }
      #speedPicker {
        bottom: calc(94px + env(safe-area-inset-bottom, 0px));
      }
      .speed-presets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    #detail {
      top: 66px;
      right: 8px;
      left: auto;
      width: min(320px, calc(100vw - 16px));
      padding: 0;
      display: none;
      background: var(--bg), rgba(14, 24, 36, 0.38);
      border: 1px solid rgba(255, 255, 255, 0.38);
      border-radius: 12px;
      box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(14px) saturate(120%);
      -webkit-backdrop-filter: blur(14px) saturate(120%);
      overflow: hidden;
    }
    #detail.visible {
      display: block;
    }
    #detailHeader {
      position: relative;
      padding: 10px 36px 0 12px;
    }
    #detail h2 {
      margin: 0;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
      color: #f7fbff;
      letter-spacing: 0.02em;
    }
    #detail p {
      margin: 0;
      padding: 8px 12px 12px 12px;
      font-size: 12px;
      color: #e8edf3;
      line-height: 1.55;
      white-space: pre-line;
    }
    #detailCloseBtn {
      position: absolute;
      top: 4px;
      right: 6px;
      width: 24px;
      height: 24px;
      border: 0;
      background: transparent;
      color: #f3f6fa;
      font-size: 20px;
      line-height: 24px;
      opacity: 0.85;
      cursor: pointer;
      padding: 0;
    }
    #detailCloseBtn:hover {
      opacity: 1;
    }
    @media (min-width: 720px) {
      #controls {
        width: min(560px, calc(100vw - 20px));
      }
      #controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
      }
      #detail {
        width: 320px;
      }
    }
