:root { --text: #f7f2e8; --muted: rgba(247, 242, 232, .72); --panel: rgba(12, 10, 16, .72); --line: rgba(255, 255, 255, .16); --accent: #ff4b24; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #0c0a10; color: var(--text); font: 500 14px/1.4 Inter, system-ui, sans-serif; overflow: hidden; }
.tour { position: fixed; inset: 0; overflow: hidden; overflow: clip; user-select: none; -webkit-user-select: none; touch-action: none; }
#tourCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#tourCanvas.is-route { cursor: pointer; }
#tourCanvas.is-dragging { cursor: grabbing; }
.tour-top { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.tour-preview { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; display: grid; gap: 2px; width: 270px; padding: 9px 14px; border-radius: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.4; pointer-events: none; }
.tour-preview strong { color: var(--accent); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tour-back, .tour-title, .tour-floors, .tour-note, .tour-preview { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.tour-back { flex: none; padding: 10px 16px; border-radius: 999px; color: var(--text); font-weight: 700; text-decoration: none; pointer-events: auto; }
.tour-back:hover { border-color: rgba(255, 255, 255, .4); }
.tour-title { display: grid; min-width: 0; padding: 7px 16px; border-radius: 14px; }
.tour-title strong { font: 800 15px/1.2 Archivo, Inter, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-title span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-floors { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 4px; max-width: calc(100% - 32px); padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; transform: translateX(-50%); }
.tour-floors::-webkit-scrollbar { display: none; }
.tour-floors button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 13px Inter, sans-serif; cursor: pointer; }
.tour-floors button:hover { color: var(--text); }
.tour-floors button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tour-note { position: absolute; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 58px); margin: 0; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 12px; pointer-events: none; }
.tour-loading { position: absolute; left: 50%; top: 50%; padding: 10px 18px; border-radius: 999px; background: var(--panel); font-weight: 700; transform: translate(-50%, -50%); pointer-events: none; }
.tour-loading[hidden] { display: none; }
.tour-gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8, 7, 11, .94); }
.tour-gate[hidden] { display: none; }
.tour-gate-card { width: min(100%, 460px); padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #15131b; }
.tour-gate-tag { margin: 0 0 8px; color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tour-gate h1 { margin: 0 0 10px; font: 800 26px/1.15 Archivo, Inter, sans-serif; }
.tour-gate-card > p:not(.tour-gate-tag) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tour-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.tour-gate-actions button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 14px Inter, sans-serif; cursor: pointer; }
.tour-gate-actions button:focus-visible, .tour-gate-actions a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tour-gate-actions a { padding: 10px 6px; color: var(--muted); font-weight: 700; text-decoration: none; }
.tour-gate-actions a:hover { color: var(--text); }
.tour-fade { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.1); transition: opacity .42s ease-out, transform .42s ease-out; pointer-events: none; }
.tour-fade.is-on { opacity: 1; transform: none; transition: none; }
.tour-walk { position: absolute; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 96px); display: none; gap: 10px; flex-direction: column; }
.tour-walk button { display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: #fff; cursor: pointer; touch-action: none; }
.tour-walk button.is-held { background: var(--accent); border-color: var(--accent); }
.tour-walk svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .tour-walk { display: flex; } }
@media (max-width: 640px) {
  .tour-note { display: none; }
  .tour-preview { top: calc(max(14px, env(safe-area-inset-top)) + 58px); left: 16px; right: auto; width: min(240px, calc(100% - 32px)); padding: 7px 11px; font-size: 11.5px; }
}
