body.viewer-page { margin: 0; height: 100svh; display: flex; flex-direction: column; background: var(--ai-deep); color: #EEF2F5; overflow: hidden; }
.viewer-head { display: flex; align-items: center; gap: 20px; padding: 12px var(--gutter); background: var(--ai-deep); border-bottom: 1px solid rgba(255,255,255,.12); }
.viewer-head h1 { font-size: clamp(16px, 2vw, 20px); letter-spacing: .14em; color: #fff; margin: 0; word-break: auto-phrase; }
.viewer-back { color: #C9D3DA; font-size: 13px; letter-spacing: .08em; text-underline-offset: 4px; white-space: nowrap; }
.viewer-back::before { content: "← "; }
.viewer-stage { position: relative; flex: 1; min-height: 0; cursor: grab; touch-action: none; outline: none; }
.viewer-stage:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.spot:focus-visible, .walk-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.viewer-stage:active { cursor: grabbing; }
.viewer-stage canvas { display: block; width: 100%; height: 100%; }
.viewer-hint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); margin: 0; padding: 8px 16px; font-size: 13px; letter-spacing: .1em; background: rgba(10,22,34,.6); color: #fff; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.viewer-hint.is-gone { opacity: 0; }
.viewer-note { margin: 0; padding: 12px var(--gutter); font-size: 12px; line-height: 1.7; color: #9FB0BC; background: var(--ai-deep); border-top: 1px solid rgba(255,255,255,.12); word-break: auto-phrase; }

.spots { position: absolute; inset: 0; pointer-events: none; }
.spot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ai-deep); font: 500 13px var(--gothic); letter-spacing: .06em; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }
.spot b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ai); color: #fff; font-size: 12px; }
.spot[hidden] { display: none; }
.place-nav { display: flex; gap: 6px; padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; background: var(--ai-deep); }
.place-nav button { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); background: none; color: #EEF2F5; font: 500 13px var(--gothic); letter-spacing: .08em; cursor: pointer; }
.place-nav button[aria-pressed="true"] { background: #fff; color: var(--ai-deep); border-color: #fff; }
.place-card { position: absolute; right: 16px; bottom: 16px; width: min(340px, calc(100% - 32px)); background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .4s, transform .4s; }
.place-card[hidden] { display: block; opacity: 0; transform: translateY(12px); pointer-events: none; }
.place-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.place-card div { padding: 12px 16px 14px; }
.place-card h2 { font-size: 17px; letter-spacing: .12em; color: var(--ai-deep); margin: 0 0 4px; }
.place-card p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--sub); }
@media (max-width: 900px) {
  .viewer-head { padding: 10px 16px; gap: 12px; }
  .place-card { right: 12px; left: 12px; bottom: 12px; width: auto; display: grid; grid-template-columns: 120px 1fr; }
  .place-card[hidden] { display: grid; }
  .place-card img { height: 100%; aspect-ratio: auto; }
  .place-card div { padding: 10px 12px; }
  .place-card h2 { font-size: 15px; }
  .place-card p { font-size: 12px; }
  .viewer-hint { bottom: 24px; }
}

.walk-arrow { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.walk-arrow[hidden] { display: none; }
.walk-arrow-ring { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(255,255,255,.95); background: rgba(255,255,255,.18); box-shadow: 0 2px 12px rgba(0,0,0,.35); transform: perspective(200px) rotateX(55deg); position: relative; transition: background .2s, transform .2s; }
.walk-arrow-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-top: 3px solid #fff; border-left: 3px solid #fff; transform: translate(-50%, -30%) rotate(45deg); }
.walk-arrow:hover .walk-arrow-ring, .walk-arrow:focus-visible .walk-arrow-ring { background: rgba(255,255,255,.4); }
.walk-arrow-label { padding: 3px 10px; background: rgba(10,22,34,.7); color: #fff; font: 500 12px var(--gothic); letter-spacing: .08em; white-space: nowrap; }
.walk-veil { position: absolute; inset: 0; background: #12283D; opacity: 0; pointer-events: none; transition: opacity .25s; }
.walk-veil.is-on { opacity: 1; }
.place-nav-link { flex: none; display: flex; align-items: center; min-height: 40px; padding: 0 12px; color: #C9D3DA; font-size: 13px; letter-spacing: .08em; text-underline-offset: 4px; margin-left: auto; white-space: nowrap; }
