:root {
  --ink: #04070E;
  --bar: #070C17;
  --line: #16203a;
  --text: #E8EDF7;
  --dim: #8A97AE;
  --gold: #C9A227;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --bar-h: calc(52px + var(--safe-t));
  --tabs-h: calc(58px + var(--safe-b));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--ink); color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overscroll-behavior: none;
}

.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h);
  padding: var(--safe-t) 14px 0;
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bar) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 7px; }
.brand .word { font-weight: 650; letter-spacing: .2px; }
.here { color: var(--dim); font-size: 13px; margin-left: auto; }
.who {
  color: var(--gold); text-decoration: none; font-size: 12.5px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  padding: 4px 9px; border-radius: 999px;
}
.who[hidden] { display: none; }

.stage { position: fixed; inset: var(--bar-h) 0 var(--tabs-h) 0; overflow: hidden; }
.track {
  display: flex; height: 100%; width: 100%;
  will-change: transform;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.track.dragging { transition: none; }
.pane { flex: 0 0 100%; height: 100%; position: relative; background: var(--ink); }
.pane iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--ink); }
.pane .hold {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--dim); font-size: 13px;
}

.tabs {
  position: fixed; inset: auto 0 0 0; height: var(--tabs-h);
  padding-bottom: var(--safe-b);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--bar) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); z-index: 20;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--dim); font-size: 10.5px; letter-spacing: .2px;
  background: none; border: 0; padding: 6px 0; cursor: pointer; position: relative;
}
.tab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tab[aria-current="page"] { color: var(--gold); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2px; border-radius: 2px; background: var(--gold);
}

.door {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 28px 22px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #0B1324 0%, #04070E 62%);
}
.door h1 { margin: 6px 0 0; font-size: 21px; font-weight: 650; letter-spacing: .2px; }
.door p { margin: 0; max-width: 30ch; color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.door .cta {
  margin-top: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--gold); color: #10130B; font-weight: 650; font-size: 14.5px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(201,162,39,.18);
}
.pane iframe { background: var(--ink); }
