:root {
  --green: #20c875;
  --green-bright: #38dc89;
  --green-deep: #0b5b34;
  --ink: #07100a;
  --surface: rgba(10, 18, 13, .84);
  --surface-strong: rgba(10, 18, 13, .95);
  --white: #f4f7f5;
  --muted: #9eaaa2;
  --line: rgba(255,255,255,.12);
  --glass: blur(20px) saturate(135%);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--ink); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

#experience, #scene { position: fixed; inset: 0; width: 100%; height: 100%; }
#experience { background: #07100a; }
#scene { display: block; touch-action: none; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 3vw, 48px);
  pointer-events: none;
}
.brand, .topbar-actions { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 16px; }
.brand img { width: 118px; height: auto; display: block; }
.brand span {
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topbar-actions { display: flex; gap: 8px; }

.ghost-button, .primary-button, .secondary-button {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.ghost-button { border: 1px solid var(--line); background: rgba(7,16,10,.48); backdrop-filter: var(--glass); }
.ghost-button:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); }
.primary-button { border: 0; background: var(--green); color: #06130b; font-weight: 700; }
.primary-button:hover { background: var(--green-bright); transform: translateY(-1px); }
.secondary-button { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--white); font-weight: 600; }
.secondary-button:hover { background: rgba(255,255,255,.11); transform: translateY(-1px); }

.intro-panel, .pause-panel, .complete-panel {
  position: fixed;
  z-index: 30;
  left: clamp(20px, 6vw, 96px);
  top: 50%;
  width: min(600px, calc(100vw - 40px));
  transform: translateY(-50%);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}
.intro-panel::before, .pause-panel::before, .complete-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px -52px;
  background: radial-gradient(circle at 30% 50%, rgba(7,16,10,.92), rgba(7,16,10,.66) 55%, transparent 82%);
  filter: blur(12px);
}
.eyebrow { color: var(--green-bright); font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.intro-panel h1, .complete-panel h2, .pause-panel h2 { margin: 0; font-size: clamp(42px, 6vw, 82px); line-height: .95; letter-spacing: -.055em; max-width: 11ch; }
.pause-panel h2 { font-size: clamp(36px, 5vw, 62px); margin-bottom: 28px; }
.intro-panel p, .complete-panel p { max-width: 560px; margin: 24px 0 0; color: rgba(244,247,245,.7); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }
.intro-actions, .complete-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.controls-hint { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; color: rgba(255,255,255,.5); font-size: 12px; }
kbd { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.19); border-bottom-color: rgba(255,255,255,.28); border-radius: 7px; background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mobile-note { display: none; }

.is-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.intro-panel.is-hidden, .pause-panel.is-hidden, .complete-panel.is-hidden { transform: translateY(-46%); }

.mission-panel {
  position: fixed;
  z-index: 18;
  top: 94px;
  right: clamp(20px, 3vw, 48px);
  width: 270px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: var(--glass);
}
.mission-header { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255,255,255,.58); }
.mission-header strong { color: var(--white); font-variant-numeric: tabular-nums; }
.progress-track { height: 3px; margin: 13px 0 16px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 99px; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--green); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.mission-panel ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mission-panel li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.48); font-size: 12px; transition: color .25s ease; }
.mission-panel li > span { width: 8px; height: 8px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; transition: all .25s ease; }
.mission-panel li.done { color: rgba(255,255,255,.88); }
.mission-panel li.done > span { border-color: var(--green); background: var(--green); box-shadow: 0 0 14px rgba(32,200,117,.45); }

.crosshair { position: fixed; z-index: 14; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%,-50%); opacity: .55; pointer-events: none; }
.crosshair i, .crosshair b { position: absolute; left: 50%; top: 50%; background: white; transform: translate(-50%,-50%); border-radius: 2px; }
.crosshair i { width: 12px; height: 1px; }
.crosshair b { width: 1px; height: 12px; }

.interaction-prompt {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(7,16,10,.84);
  backdrop-filter: var(--glass);
  transition: opacity .18s ease, transform .18s ease;
}
.interaction-prompt.is-hidden { transform: translate(-50%, 8px); }
.interaction-prompt > div { display: grid; gap: 2px; }
.interaction-prompt strong { font-size: 12px; }
.interaction-prompt span { color: rgba(255,255,255,.5); font-size: 11px; }

.event-toast {
  position: fixed;
  z-index: 24;
  right: clamp(20px, 3vw, 48px);
  bottom: 38px;
  width: min(380px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(56,220,137,.25);
  border-radius: 18px;
  background: rgba(9,25,15,.9);
  backdrop-filter: var(--glass);
  box-shadow: 0 22px 80px rgba(0,0,0,.25);
  transition: opacity .25s ease, transform .25s ease;
}
.event-toast.is-hidden { transform: translateY(12px); }
.event-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--green); color: #06130b; font-weight: 900; }
.event-toast > div:last-child { display: grid; gap: 3px; min-width: 0; }
.event-toast span { color: var(--green-bright); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.event-toast strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-toast small { color: rgba(255,255,255,.52); }

.dashboard {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3,8,5,.72);
  backdrop-filter: blur(14px);
  transition: opacity .3s ease, visibility .3s ease;
}
.dashboard-shell { width: min(940px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: auto; border: 1px solid rgba(255,255,255,.13); border-radius: 26px; background: #0c1510; box-shadow: 0 30px 120px rgba(0,0,0,.48); padding: clamp(20px, 4vw, 36px); }
.dashboard-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.dashboard-top span { color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-top h2 { margin: 7px 0 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.04em; }
.dashboard-top button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); cursor: pointer; font-size: 24px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 18px; }
.status-card { padding: 20px; min-height: 126px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); display: grid; align-content: space-between; }
.status-card span, .status-card small { color: rgba(255,255,255,.48); font-size: 11px; }
.status-card strong { font-size: 32px; letter-spacing: -.04em; }
.status-card.success strong { color: var(--green-bright); }
.dashboard-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.table-head, .access-row { display: grid; grid-template-columns: 100px 1.2fr 1.6fr 100px; gap: 14px; align-items: center; padding: 15px 18px; }
.table-head { grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); color: rgba(255,255,255,.6); font-size: 11px; }
.table-head i { color: var(--green); font-style: normal; font-weight: 800; font-size: 9px; letter-spacing: .14em; }
.access-row { border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; }
.access-row:last-child { border-bottom: 0; }
.access-row time, .access-row span { color: rgba(255,255,255,.48); }
.access-row em { justify-self: end; color: var(--green-bright); font-style: normal; font-size: 10px; }

.complete-panel { left: 50%; text-align: center; transform: translate(-50%,-50%); }
.complete-panel::before { background: radial-gradient(circle at 50% 50%, rgba(7,16,10,.98), rgba(7,16,10,.83) 58%, transparent 88%); }
.complete-panel h2 { margin-inline: auto; max-width: 12ch; }
.complete-panel p { margin-inline: auto; }
.complete-actions { justify-content: center; }
.complete-panel.is-hidden { transform: translate(-50%,-46%); }

.mobile-controls { display: none; }

@media (max-width: 760px), (pointer: coarse) {
  .topbar { padding: 16px; }
  .brand span, #tourButton { display: none; }
  .brand img { width: 102px; }
  .desktop-only { display: none; }
  .mobile-note { display: block !important; font-size: 12px !important; color: rgba(255,255,255,.45) !important; }
  .intro-panel, .pause-panel, .complete-panel { left: 20px; top: auto; bottom: 34px; transform: none; width: calc(100vw - 40px); }
  .intro-panel::before, .pause-panel::before, .complete-panel::before { inset: -30px -24px; background: linear-gradient(0deg, rgba(7,16,10,.98) 55%, transparent); }
  .intro-panel h1, .complete-panel h2 { font-size: clamp(40px, 12vw, 58px); }
  .intro-panel p, .complete-panel p { font-size: 15px; line-height: 1.5; margin-top: 18px; }
  .intro-actions, .complete-actions { margin-top: 24px; }
  #exploreButton { display: none; }
  .mission-panel { top: 74px; right: 16px; width: 206px; padding: 13px; }
  .mission-panel li { font-size: 10px; gap: 7px; }
  .mission-panel ol { gap: 8px; }
  .crosshair, .interaction-prompt { display: none; }
  .event-toast { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .dashboard { padding: 12px; }
  .dashboard-shell { border-radius: 20px; max-height: calc(100vh - 24px); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .status-card { min-height: 98px; }
  .table-head { display: flex; justify-content: space-between; }
  .access-row { grid-template-columns: 74px 1fr; }
  .access-row span { grid-column: 2; }
  .access-row em { grid-column: 2; justify-self: start; }
  .complete-panel.is-hidden, .intro-panel.is-hidden, .pause-panel.is-hidden { transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Experience-only presentation; landing styles are intentionally not imported. */
.loading-panel { position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#101d18; transition:opacity .5s, visibility .5s; padding:30px; text-align:center; }
.loading-panel img { width:160px; margin-bottom:48px; }
.loading-panel .eyebrow { font-size:10px; letter-spacing:.23em; }
.loading-panel h2 { font-size:clamp(24px,4vw,40px); font-weight:500; letter-spacing:-.035em; margin:0 0 10px; }
.loading-panel p { color:#9eaaa2; font-size:13px; }
.loading-panel progress { appearance:none; width:min(280px,70vw); height:3px; border:0; margin:25px 0 13px; border-radius:3px; overflow:hidden; background:#304339; }
.loading-panel progress::-webkit-progress-bar { background:#304339; }
.loading-panel progress::-webkit-progress-value { background:#38dc89; transition:width .2s; }
.loading-panel progress::-moz-progress-bar { background:#38dc89; }
#loadingPercent { color:#9eaaa2; font:11px ui-monospace,monospace; }
#loadingExit { margin-top:24px; }
button:disabled { opacity:.45; cursor:wait; }
button:focus-visible, a:focus-visible { outline:2px solid #38dc89; outline-offset:5px; }
.topbar { background:linear-gradient(to bottom,rgba(8,20,14,.58),transparent); padding-bottom:45px; }
.intro-panel { width:min(470px,calc(100vw - 40px)); left:clamp(24px,4.5vw,80px); top:52%; }
.intro-panel h1 { font-size:clamp(42px,4.3vw,67px); line-height:1.02; font-weight:550; max-width:12ch; }
.intro-panel p { font-size:16px; line-height:1.6; max-width:36ch; }
.intro-panel::before { inset:-45px -45px; background:radial-gradient(ellipse at 25% 50%,rgba(8,20,14,.87),rgba(8,20,14,.6) 60%,transparent 80%); }
.intro-actions { flex-direction:column; align-items:flex-start; margin-top:25px; }
.intro-actions button { min-width:236px; }
.controls-hint { max-width:370px; gap:10px 15px; margin-top:24px; }
.mission-panel { width:252px; background:rgba(15,31,23,.83); border-radius:12px; }
.scene-caption { position:fixed; bottom:25px; left:clamp(24px,4.5vw,80px); z-index:12; color:rgba(255,255,255,.8); font-size:11px; display:flex; gap:12px; align-items:center; text-shadow:0 1px 8px #07100a; }
.scene-caption span { font-size:9px; letter-spacing:.16em; color:#86dfae; }
.scene-caption i { width:3px; height:3px; border-radius:50%; background:#cfddc9; }
body:not(.exploring) .crosshair { display:none; }
@media (max-width:760px), (pointer:coarse) {
  .intro-panel { left:24px; right:24px; top:auto; bottom:64px; width:auto; transform:none; }
  .intro-panel h1 { font-size:44px; max-width:13ch; }
  .intro-panel p { max-width:32ch; font-size:14px; }
  .intro-panel::before { inset:-25px -24px -65px; background:linear-gradient(transparent,#0d2116 80%); filter:none; }
  .intro-actions { margin-top:18px; }
  .mission-panel { top:85px; right:16px; width:205px; }
  body:not(.touring):not(.exploring) .mission-panel { display:none; }
  .scene-caption { left:24px; bottom:23px; font-size:9px; gap:8px; }
  .scene-caption span { font-size:8px; }
  .mobile-note { display:none; }
  .brand img { width:105px; }
}
@media (max-height:580px) and (pointer:coarse) {
  .intro-panel { top:90px; bottom:45px; overflow:auto; max-width:470px; }
  .intro-panel h1 { font-size:34px; }
  .intro-panel p { margin-top:10px; }
  .scene-caption { display:none; }
}

.system-preview { margin:24px 0 0; padding:12px; background:#15221c; border:1px solid var(--line); border-radius:12px; }
.system-preview img { display:block; width:100%; max-height:52vh; object-fit:contain; border-radius:5px; }
.system-preview figcaption { margin:10px 0 0; color:#9eaaa2; font-size:11px; text-align:center; }

#closeDashboard { width: auto; min-height: 44px; padding: 0 18px; border: 2px solid #b8d6c7; border-radius: 10px; background: #193d2c; color: #fff; font-size: 15px; font-weight: 650; }
#closeDashboard:hover { background: #286044; }
#closeDashboard:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 700px) {
  body.touring .mission-panel { width: 190px; padding: 10px 12px; }
  body.touring .mission-panel ol { display: none; }
  body.touring .event-toast { bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.touring .mission-panel ol { display: none; }
  body.touring .mission-panel { top: 72px; padding: 10px 14px; }
  .event-toast { bottom: 12px; max-width: 340px; padding: 12px; }
}

/* Keep the guided scene clear on narrow screens and devices with display cutouts. */
@media (max-width: 700px), (max-height: 500px) {
  .topbar { top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); }
  .topbar-actions button, .topbar-actions a { min-height: 44px; }
  body.touring .mission-panel { top: max(72px, calc(env(safe-area-inset-top) + 60px)); right: max(12px, env(safe-area-inset-right)); }
  body.touring .event-toast { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: auto; padding: 12px; }
  body.touring .event-toast strong { white-space: normal; font-size: 13px; }
  body.touring .event-toast small { white-space: normal; }
  .dashboard-shell { max-height: calc(100dvh - 24px) !important; }
  .dashboard-shell img { max-height: calc(100dvh - 104px) !important; }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.touring .event-toast { left: auto; width: min(320px, 44vw); }
  body.touring .mission-panel { width: 180px; }
}
