:root { color-scheme: dark; --panel: #18201fea; --edge: #ffffff2d; --text: #f5f0e5; --muted: #b6c1b5; --accent: #e1ba88; }
  * { box-sizing: border-box; }
  body { margin: 0; background: #18201f; color: var(--text); font: 14px/1.45 system-ui, sans-serif; overflow: hidden; }
  button { font: inherit; color: inherit; cursor: pointer; }
  button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  [hidden] { display: none !important; }
  #view { position: fixed; inset: 0; width: 100%; height: 100%; outline: 0; touch-action: none; }
  #title { position: fixed; left: 22px; top: 20px; pointer-events: none; background: var(--panel); padding: 14px 19px; border: 1px solid var(--edge); border-radius: 10px; }
  .eyebrow { color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
  h1 { margin: 3px 0 1px; font-size: clamp(17px, 2.2vw, 24px); font-family: Georgia, serif; font-weight: 500; }
  #room { color: var(--muted); font-size: 12px; }
  #toolbar { position: fixed; top: 20px; right: 22px; display: flex; gap: 8px; }
  .control { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; min-height: 43px; padding: 8px 14px; box-shadow: 0 2px 12px #0002; }
  .control:hover { border-color: var(--accent); }
  #places { position: fixed; top: 75px; right: 22px; width: 218px; max-height: calc(100dvh - 158px); overflow: auto; background: var(--panel); border: 1px solid var(--edge); border-radius: 10px; padding: 13px; }
  #places .eyebrow { padding: 3px 6px 7px; }
  #places button { display: block; width: 100%; text-align: left; padding: 6px 9px; background: transparent; border: 0; border-radius: 5px; }
  #places button:hover, #places button:focus-visible { background: #ffffff16; }
  #places button[aria-current] { color: var(--accent); background: #ffffff14; }
  #hint { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; padding: 9px 13px; background: var(--panel); border: 1px solid var(--edge); border-radius: 7px; color: var(--muted); font-size: 12px; }
  #hint b { color: var(--text); font-weight: 600; }
  #status { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #1a2423; padding: 25px 31px; border: 1px solid var(--edge); border-radius: 10px; width: min(430px, 90%); box-shadow: 0 10px 40px #0005; }
  #status h2 { margin: 0 0 8px; font-size: 21px; }
  #status p { margin: 0; color: var(--muted); }
  #crosshair { display: none; position: fixed; top: 50%; left: 50%; width: 5px; height: 5px; border: 1px solid #142222; border-radius: 50%; background: #fff9; transform: translate(-50%, -50%); pointer-events: none; }
  .looking #crosshair { display: block; }
  .looking #places { display: none; }
  #pad { display: none; position: fixed; bottom: 18px; left: 18px; grid-template-columns: repeat(3, 42px); gap: 4px; }
  #pad button { min-height: 42px; padding: 0; touch-action: none; }
  #pad button:nth-child(1) { grid-column: 2; }
  #pad button:nth-child(2) { grid-column: 1; }
  @media (pointer: coarse) {
    #pad { display: grid; }
    #hint { display: none; }
  }
  @media (max-width: 640px) {
    #title { left: 10px; top: 10px; padding: 8px 11px; }
    #toolbar { top: auto; bottom: 14px; right: 10px; }
    #places { top: auto; bottom: 67px; right: 10px; }
    #hint { bottom: 65px; font-size: 10px; }
  }
#model-progress { width: 100%; margin: 13px 0 0; accent-color: var(--accent); }
#retry { margin-top: 14px; }
