/* The tour's interface. */
:root { --red: #b5121b; --gold: #d9b24e; --ink: #101216; --glass: rgba(16, 18, 22, 0.78); --line: rgba(255, 255, 255, 0.14); --text: #f4f1ea; --dim: #b9b4a8; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
canvas#c.dragging { cursor: grabbing; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgba(16, 18, 22, 0.82); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; }
.tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: rgba(255, 255, 255, 0.6); }
.ui { position: fixed; z-index: 5; }
#top { top: 0; left: 0; right: 0; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 16px 0; pointer-events: none; }
#top > * { pointer-events: auto; }
#title { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; backdrop-filter: blur(8px); max-width: 520px; }
#back { display: block; color: #e7c56a; font-size: 13px; font-weight: 600; margin: 0 0 8px; text-decoration: underline; text-underline-offset: 3px; }
#back[hidden] { display: none; }
#title b { display: block; font-size: 15px; letter-spacing: 0.02em; }
#title span { color: var(--dim); font-size: 12.5px; }
#title i { display: inline-block; width: 26px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 0 6px; }
.seg { display: inline-flex; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 3px; backdrop-filter: blur(8px); }
.seg button, .chip { appearance: none; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.seg button:focus-visible, .chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
#controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.seg small { align-self: center; color: var(--dim); font-size: 11.5px; padding: 0 4px 0 11px; text-transform: uppercase; letter-spacing: 0.08em; }
#stops { left: 0; right: 0; bottom: 0; padding: 0 12px max(12px, env(safe-area-inset-bottom)); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
#stops::-webkit-scrollbar { display: none; }
#stops .grp { color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; padding: 0 4px 0 10px; flex: none; }
.chip { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); flex: none; }
.chip[aria-current="true"] { border-color: var(--gold); color: var(--gold); }
#hint { left: 50%; bottom: 64px; transform: translateX(-50%); background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--dim); transition: opacity 0.6s; pointer-events: none; white-space: nowrap; }
#note { right: 16px; bottom: 62px; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); text-align: right; pointer-events: none; text-shadow: 0 1px 2px #000; }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.16s; z-index: 3; }
#photo { position: fixed; inset: 0; z-index: 4; background: #000 center / contain no-repeat; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
#photo.on { opacity: 1; pointer-events: auto; }
#photo figcaption { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; white-space: nowrap; }
#photo button { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: #fff; font-size: 20px; cursor: pointer; }
#photo #prev { left: 14px; } #photo #next { right: 14px; }
#photoBtn { display: none; }
body.noui .ui, body.noui #labels { display: none !important; }
@media (max-width: 720px) { #title span { display: none; } #title { padding: 7px 11px; max-width: 44vw; } #title b { font-size: 12.5px; line-height: 1.3; } #note { display: none; } .seg small { display: none; } .seg button, .chip { padding: 7px 11px; } }
