/* ORRA V1 · premium sci-fi game interface. Navy / midnight, warm ivory, muted turquoise, restrained champagne gold, cool grey. */
:root {
  --bg: #060b1c; --bg-2: #0a1229; --panel: rgba(13, 22, 48, .78); --panel-solid: #0d1630; --panel-2: rgba(20, 32, 66, .72);
  --line: rgba(226, 232, 245, .1); --line-2: rgba(226, 232, 245, .18); --line-3: rgba(226, 232, 245, .3);
  --ivory: #f2ebdd; --ivory-2: #d8d2c4; --grey: #9aa4b8; --grey-2: #6c7690;
  --teal: #4fc2b6; --teal-2: #7fd6cc; --gold: #c8aa6e; --gold-2: #e2cb9a; --red: #c8655c; --dark: #3a3f50;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --disp: 'Sora', 'Inter', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 14px; --r-lg: 20px; --pad: clamp(16px, 4vw, 48px); --top: 64px; --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ivory); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(79, 194, 182, .35); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ivory); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 40px; text-align: center; }

/* type */
.kicker { font: 500 11.5px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin: 0; }
.kicker.teal { color: var(--teal-2); } .kicker.grey { color: var(--grey); }
.display { font: 700 clamp(44px, 8.4vw, 104px)/.95 var(--disp); letter-spacing: -.02em; margin: 0; }
.h1 { font: 600 clamp(30px, 4.4vw, 52px)/1.05 var(--disp); letter-spacing: -.015em; margin: 0; }
.h2 { font: 600 clamp(22px, 2.6vw, 30px)/1.15 var(--disp); letter-spacing: -.01em; margin: 0; }
.h3 { font: 600 17px/1.3 var(--disp); margin: 0; }
.lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--ivory-2); max-width: 52ch; margin: 0; }
.muted { color: var(--grey); } .small { font-size: 13.5px; } .num { font-variant-numeric: tabular-nums; } .mono { font-family: var(--mono); }
.gold { color: var(--gold-2); } .teal { color: var(--teal-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(226, 232, 245, .04); font: 600 14px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:hover { border-color: var(--line-3); background: rgba(226, 232, 245, .08); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #ead6a6, #c6a76a); color: #17140f; border-color: transparent; box-shadow: 0 10px 30px -14px rgba(200, 170, 110, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background: linear-gradient(180deg, #f1e0b7, #cfb276); border-color: transparent; }
.btn-teal { background: rgba(79, 194, 182, .14); border-color: rgba(79, 194, 182, .45); color: var(--teal-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12px; border-radius: 10px; }
.btn-icon { width: 42px; min-height: 42px; padding: 0; border-radius: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--gold-2); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(200, 170, 110, .45); }

/* top bar + tabs */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(6, 11, 28, .9), rgba(6, 11, 28, .0)); transition: background .3s; }
.top.solid { background: rgba(6, 11, 28, .94); border-bottom: 1px solid var(--line); }
.brand { display: grid; gap: 4px; text-decoration: none; line-height: 1; }
.brand-mark { font: 800 18px/1 var(--disp); letter-spacing: .44em; }
.brand-sub { font: 500 9px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.tabs { display: flex; gap: 6px; margin-left: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; text-decoration: none; font: 600 14px/1 var(--sans); color: var(--ivory-2); }
.tabs a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs a:hover { background: rgba(226, 232, 245, .06); color: var(--ivory); }
.tabs a[aria-current="page"] { background: rgba(226, 232, 245, .08); color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 760px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 60; justify-content: space-around; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(6, 11, 28, .97); border-top: 1px solid var(--line); }
  .tabs a { flex-direction: column; height: auto; gap: 4px; padding: 6px 14px; font-size: 11.5px; }
  .tabs a[aria-current="page"] { box-shadow: none; color: var(--gold-2); background: none; }
  .top-cta { margin-left: auto; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px); }
.pad { padding: clamp(16px, 2.2vw, 24px); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 11, 28, .5); font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.dot.live { animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 194, 182, .5); } 60% { box-shadow: 0 0 0 7px rgba(79, 194, 182, 0); } }
.boot { min-height: 100dvh; display: grid; place-content: center; gap: 12px; text-align: center; }
.boot-mark { font: 800 30px/1 var(--disp); letter-spacing: .5em; padding-left: .5em; }
.boot-line { font: 400 12px/1 var(--mono); letter-spacing: .2em; color: var(--grey); text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 120; background: var(--ivory); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: .3s var(--ease); max-width: calc(100vw - 32px); box-shadow: 0 20px 50px -20px #000; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); padding: 0; }
.input { height: 52px; width: 100%; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(4, 8, 22, .6); font-size: 17px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(79, 194, 182, .15); }
.hint { font-size: 13px; color: var(--grey); margin: 0; }
.error { color: #f0a59c; font-size: 14px; min-height: 1.3em; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- HOME */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: 1fr auto; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero canvas[data-ready] { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; z-index: -3; background: url('/img/hero_v3.webp') center/cover no-repeat, var(--bg); }
@media (max-aspect-ratio: 19/20) { .hero-fallback { background-image: url('/img/hero_v3_m.webp'); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 11, 28, .7), transparent 20%, transparent 55%, rgba(6, 11, 28, .85) 88%, var(--bg)), linear-gradient(90deg, rgba(6, 11, 28, .78), rgba(6, 11, 28, .1) 52%, transparent); }
.hero-copy { align-self: end; padding: calc(var(--top) + 24px) var(--pad) 28px; max-width: 760px; }
.hero-title { display: grid; gap: 10px; margin: 18px 0 20px; }
.hero-title .mark { font: 800 clamp(58px, 11vw, 140px)/.85 var(--disp); letter-spacing: .26em; margin-left: -.02em; background: linear-gradient(180deg, #fffaf0 35%, #cfc4ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .prog { font: 500 clamp(11px, 1.2vw, 13px)/1 var(--mono); letter-spacing: .42em; color: var(--gold-2); text-transform: uppercase; }
.hero-title .line { font: 600 clamp(26px, 3.6vw, 44px)/1.05 var(--disp); letter-spacing: -.01em; margin-top: 10px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-2); margin: 0 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { min-height: 54px; padding: 0 26px; }
.status { margin: 0 var(--pad) calc(18px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto repeat(4, 1fr); align-items: stretch; overflow: hidden; }
.status > div { padding: 14px 18px; border-left: 1px solid var(--line); }
.status > div:first-child { border-left: 0; display: flex; align-items: center; gap: 10px; }
.status .k { font: 500 10.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.status .v { font: 600 clamp(18px, 2vw, 24px)/1.2 var(--disp); margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .status { grid-template-columns: 1fr 1fr; } .status > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); } .status > div:nth-child(2), .status > div:nth-child(4) { border-left: 0; } .status > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .hero-ctas .btn { flex: 1 1 100%; } .hero-copy { padding-bottom: 18px; } }

.section { padding: clamp(64px, 9vw, 120px) var(--pad); max-width: 1280px; margin: 0 auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.deck-tile { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; display: grid; gap: 8px; transition: border-color .2s, transform .25s var(--ease); }
.deck-tile:hover { border-color: var(--line-3); transform: translateY(-2px); }
.bar { height: 4px; border-radius: 4px; background: rgba(226, 232, 245, .08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.footer { border-top: 1px solid var(--line); padding: 28px var(--pad) 40px; color: var(--grey); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--ivory-2); text-decoration: none; }

/* ---------------------------------------------------------------- SHIP EXPERIENCE */
.ship { position: relative; height: 100dvh; padding-top: var(--top); display: grid; grid-template-columns: 340px 1fr; grid-template-rows: auto 1fr; overflow: hidden; }
@media (max-width: 760px) { .ship { height: calc(100dvh - 64px - env(safe-area-inset-bottom)); } }
.crumbs { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); min-height: 56px; flex-wrap: wrap; background: rgba(6, 11, 28, .6); z-index: 3; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font: 500 13px/1 var(--sans); }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--grey); }
.crumbs li + li::before { content: '›'; color: var(--grey-2); }
.crumbs a, .crumbs button { color: var(--ivory-2); text-decoration: none; background: none; border: 0; padding: 6px 4px; border-radius: 6px; font: inherit; }
.crumbs a:hover, .crumbs button:hover { color: var(--ivory); }
.crumbs [aria-current="page"] { color: var(--ivory); font-weight: 600; }
.crumbs .spacer { flex: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-grid; place-items: center; font: 700 9px/1 var(--sans); color: rgba(6, 11, 28, .85); flex: none; }
.sw-available { background: #e9e1cf; } .sw-reserved { background: var(--teal); } .sw-crew { background: var(--gold); } .sw-restricted { background: var(--red); } .sw-unavailable { background: var(--dark); color: #aab; } .sw-dante { background: var(--teal); color: #3b2c0c; box-shadow: inset 0 0 0 2px var(--gold-2); } .sw-you { background: transparent; box-shadow: inset 0 0 0 2px var(--gold-2); }

.side { border-right: 1px solid var(--line); overflow: auto; background: rgba(8, 14, 32, .7); display: flex; flex-direction: column; z-index: 2; }
.side-head { padding: 18px 18px 10px; }
.deck-list { list-style: none; margin: 0; padding: 4px 10px 16px; display: grid; gap: 4px; }
.deck-btn { width: 100%; text-align: left; display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: none; }
.deck-btn:hover { background: rgba(226, 232, 245, .05); }
.deck-btn[aria-pressed="true"] { background: rgba(200, 170, 110, .1); border-color: rgba(200, 170, 110, .45); }
.deck-id { font: 700 18px/1 var(--disp); grid-row: span 2; }
.deck-btn .z { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.z-forward { color: #9fd3e6; } .z-engines { color: var(--gold-2); } .z-bay7 { color: #e48b81; }
.deck-btn .c { font: 500 12.5px/1.2 var(--sans); color: var(--grey); }
.deck-btn .bar { grid-column: 2 / -1; }
.stage { position: relative; overflow: hidden; min-height: 0; }
.view { position: absolute; inset: 0; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.view[hidden] { display: block !important; opacity: 0; pointer-events: none; transform: scale(1.02); visibility: hidden; }
.view canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.overlay-tl { position: absolute; left: 16px; top: 14px; display: grid; gap: 8px; max-width: calc(100% - 32px); pointer-events: none; }
.overlay-tl > * { pointer-events: auto; }
.overlay-b { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.overlay-b > * { pointer-events: auto; }
.tip { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--grey); text-transform: uppercase; background: rgba(6, 11, 28, .65); padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); }
.ship-label { position: absolute; left: 0; top: 0; transition: opacity .2s; pointer-events: auto; font: 600 12px/1 var(--disp); letter-spacing: .06em; padding: 6px 9px; border-radius: 8px; background: rgba(6, 11, 28, .72); border: 1px solid var(--line-2); color: var(--ivory-2); white-space: nowrap; transition: background .2s, color .2s, opacity .2s; }
.ship-label:hover, .ship-label.on { background: var(--gold-2); color: #17140f; border-color: transparent; }
.ship-label.bay7 { border-color: rgba(200, 101, 92, .7); color: #f0b0a8; }
.plan svg { width: 100%; height: auto; }
.plan .pod { cursor: pointer; }
.plan .pod rect { transition: fill .2s, stroke .2s; }
.plan .pod:hover rect, .plan .pod:focus-visible rect { stroke: var(--gold-2); }
.plan .pod.on rect { fill: rgba(200, 170, 110, .18); stroke: var(--gold-2); }

/* deck map */
.deckmap { position: absolute; inset: 0; overflow: auto; padding: 86px var(--pad) 90px; -webkit-overflow-scrolling: touch; }
.deckmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; max-width: 1100px; }
.sec { position: relative; aspect-ratio: 1 / 1.15; border-radius: 12px; border: 1px solid var(--line); background: rgba(14, 24, 52, .9); padding: 8px; display: grid; grid-template-rows: auto 1fr auto; text-align: left; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.sec:hover, .sec:focus-visible { border-color: var(--gold); transform: translateY(-2px); background: rgba(20, 32, 66, .95); }
.sec b { font: 700 15px/1 var(--disp); }
.sec .rows { font: 500 10px/1.2 var(--mono); color: var(--grey); letter-spacing: .04em; }
.sec canvas { width: 100%; height: 100%; image-rendering: pixelated; border-radius: 4px; margin: 6px 0; }
.sec .cnt { font: 500 10.5px/1 var(--mono); color: var(--teal-2); }
.sec.has-dante { box-shadow: inset 0 0 0 1px rgba(226, 203, 154, .6); }
.sec .star { position: absolute; right: 8px; top: 7px; color: var(--gold-2); font-size: 12px; }

/* section view */
.secview { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr minmax(320px, 400px); }
.cabin { position: relative; min-height: 0; border-right: 1px solid var(--line); }
.seatpane { overflow: auto; padding: 16px 16px 90px; background: rgba(8, 14, 32, .6); }
.seatgrid { display: grid; grid-template-columns: 34px repeat(3, 1fr) 18px repeat(3, 1fr); gap: 6px 6px; align-items: center; }
.seatgrid .hdr { font: 600 11px/1 var(--mono); color: var(--grey); text-align: center; padding-bottom: 4px; }
.seatgrid .rn { font: 500 10.5px/1 var(--mono); color: var(--grey-2); text-align: right; padding-right: 2px; }
.seat { position: relative; height: 40px; border-radius: 9px 9px 6px 6px; border: 0; padding: 0; display: grid; place-items: center; font: 600 10px/1 var(--mono); transition: transform .12s, box-shadow .15s; }
.seat:hover { transform: translateY(-1px); }
.seat.available { background: #e9e1cf; color: #4a4536; }
.seat.reserved { background: var(--teal); color: #08302b; }
.seat.crew { background: var(--gold); color: #3b2c0c; }
.seat.restricted { background: var(--red); color: #2c0c09; }
.seat.unavailable { background: var(--dark); color: #8f97aa; cursor: not-allowed; }
.seat.dante { background: var(--teal); color: #3b2c0c; box-shadow: inset 0 0 0 2px var(--gold-2); }
.seat.mine { box-shadow: inset 0 0 0 3px var(--gold-2); }
.seat[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold-2); transform: translateY(-2px); z-index: 1; }
.seat .ic { font-size: 12px; }
@media (max-width: 1100px) { .secview { grid-template-columns: 1fr; grid-template-rows: minmax(200px, 38%) 1fr; } .cabin { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) { .seat { height: 44px; } .seatgrid { gap: 6px 5px; } }

/* seat sheet + registration */
.sheet { position: absolute; right: 16px; bottom: 16px; z-index: 20; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: linear-gradient(180deg, #121e42, #0b1430); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 40px 100px -30px #000; transform: translateY(16px); opacity: 0; pointer-events: none; transition: .4s var(--ease); }
.sheet.open { transform: none; opacity: 1; pointer-events: auto; }
.sheet-in { padding: 20px; display: grid; gap: 16px; }
.sheet-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.seat-no { font: 700 44px/1 var(--disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.meta div { padding: 10px; border-left: 1px solid var(--line); }
.meta div:first-child { border-left: 0; }
.meta b { display: block; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; font-weight: 500; }
.meta span { font: 600 14px/1.1 var(--disp); }
.state-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; border: 1px solid currentColor; }
.roles { display: grid; gap: 8px; }
.role-opt { position: relative; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt label { display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(4, 8, 22, .45); cursor: pointer; transition: .2s; }
.role-opt label .art { grid-row: span 2; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; }
.role-opt label b { font: 600 17px/1 var(--disp); }
.role-opt label span { font-size: 13px; color: var(--grey); line-height: 1.35; }
.role-opt input:checked + label { border-color: var(--gold); background: rgba(200, 170, 110, .12); box-shadow: inset 0 0 0 1px var(--gold); }
.role-opt input:focus-visible + label { outline: 2px solid var(--teal-2); outline-offset: 2px; }
.art-farmer { background: radial-gradient(circle at 50% 30%, #3f7a52, #183626); color: #cfe9c4; } .art-builder { background: radial-gradient(circle at 50% 30%, #6a5a3c, #2a2416); color: #f0dcae; } .art-scout { background: radial-gradient(circle at 50% 30%, #2f6874, #12282f); color: #bfeaf0; }
.role-opt svg, .role-card svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hp { position: absolute; left: -5000px; }
.eq-reveal { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 8px 0; }
.eq-orb { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; position: relative; border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .09), rgba(6, 11, 28, .7)); }
.eq-orb::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed var(--rc, var(--teal)); opacity: .55; animation: spin 10s linear infinite; }
.eq-orb svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.rarity { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; border: 1px solid currentColor; }
.r-standard { color: #b9c1d4; } .r-advanced { color: var(--teal-2); } .r-rare { color: #a7bdf2; } .r-legendary { color: var(--gold-2); }
.keybox { font: 500 14px/1.4 var(--mono); padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-3); background: rgba(4, 8, 22, .6); word-break: break-all; user-select: all; }
@media (max-width: 760px) { .sheet { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); width: 100%; border-radius: 22px 22px 0 0; max-height: 78dvh; } }

/* ---------------------------------------------------------------- PROFILE */
.profile { max-width: 1120px; margin: 0 auto; padding: calc(var(--top) + 26px) var(--pad) 80px; }
.idcard { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(135deg, #15254f, #0a1430 55%, #0d1838); isolation: isolate; }
.idcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, rgba(79, 194, 182, .18), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(200, 170, 110, .14), transparent 60%); }
.idcard.dante { background: linear-gradient(135deg, #2a2412, #0a1430 55%, #0d1838); }
.id-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.id-body { display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: 24px 22px; }
.portrait { aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; background: radial-gradient(circle at 50% 36%, #25407e, #0b1430 72%); position: relative; overflow: hidden; }
.portrait .ini { font: 700 56px/1 var(--disp); color: var(--ivory); }
.portrait::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px); }
.id-name { font: 700 clamp(32px, 5vw, 52px)/1 var(--disp); letter-spacing: -.02em; margin: 8px 0 18px; word-break: break-word; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.kv b { display: block; font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-bottom: 7px; font-weight: 500; }
.kv span { font: 600 16px/1.2 var(--disp); }
.mrz { font: 400 12px/1.6 var(--mono); letter-spacing: .14em; color: rgba(242, 235, 221, .36); padding: 12px 22px 16px; border-top: 1px solid var(--line); word-break: break-all; }
@media (max-width: 760px) { .id-body { grid-template-columns: 1fr; } .portrait { max-width: 120px; } .kv { grid-template-columns: 1fr 1fr; } }
.pgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; } }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ach:first-of-type { border-top: 0; }
.ach-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(200, 170, 110, .14); color: var(--gold-2); flex: none; }
.cardwrap { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; }
.cardwrap canvas { width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; border: 1px solid var(--line-2); background: #0a1430; }
@media (max-width: 520px) { .cardwrap { grid-template-columns: 1fr; } .cardwrap canvas { max-width: 230px; margin: 0 auto; } }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.steps { margin: 8px 0 0; padding-left: 18px; color: var(--ivory-2); font-size: 14px; display: grid; gap: 4px; }

/* mission */
.region { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.region img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.5) brightness(.55) blur(1.5px); transform: scale(1.04); }
.region.open img { filter: none; }
.region::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 11, 28, .1), rgba(6, 11, 28, .92)); }
.region h3 { font: 600 22px/1.1 var(--disp); margin: 6px 0 4px; }
.region p { margin: 0; font-size: 13.5px; color: var(--ivory-2); }
.regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1000px) { .regions { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 220px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .region { scroll-snap-align: start; } }
.role-card { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel-2); display: grid; gap: 10px; }
.role-card .art { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; }

/* admin */
.admin { max-width: 1240px; margin: 0 auto; padding: calc(var(--top) + 24px) var(--pad) 80px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.agrid form { display: grid; gap: 10px; }
.admin .input { height: 42px; font-size: 14px; }
.tag { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line-2); }
.btn svg, .state-tag svg, .chip svg, .link svg, .ach-i svg, .kicker svg, .tip svg { width: 18px; height: 18px; flex: none; }
.ach-i svg { width: 20px; height: 20px; }
.mobile-decks { padding: 4px 14px 24px; }
.mobile-decks .deck-btn { background: rgba(13, 22, 48, .7); border-color: var(--line); }
[hidden] { display: none !important; }
.view[hidden] { display: block !important; }
@media (max-width: 1100px) { .ship { grid-template-columns: 280px 1fr; } }
@media (max-width: 760px) {
  .ship { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { display: none; }
  .crumbs { padding: 8px 12px; min-height: 50px; }
  .crumbs .btn { min-height: 36px; padding: 0 10px; }
  .crumbs [data-overview] span, .crumbs [data-overview] { font-size: 11px; }
  .mobile-decks { grid-template-columns: 1fr; }
  .deckmap { padding: 16px 14px 90px; }
  .deckmap-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
  .seatpane { padding: 12px 10px 100px; }
}
.crumbs .btn { font: 600 12px/1 var(--disp); letter-spacing: .06em; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(226, 232, 245, .04); }
.sec { grid-template-rows: auto auto minmax(0, 1fr) auto; aspect-ratio: 1 / 1.25; }
.sec canvas { min-height: 0; }

@media (min-width: 1101px) { .sheet { left: 16px; right: auto; } }

/* ---------------------------------------------------------------- CABIN */
.cabin-page { position: relative; height: 100dvh; overflow: hidden; background: #05091a; }
@media (max-width: 760px) { .cabin-page { height: calc(100dvh - 64px - env(safe-area-inset-bottom)); } }
.cabin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.cabin-top { position: absolute; left: 0; right: 0; top: var(--top); padding: 10px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; z-index: 3; pointer-events: none; }
.cabin-top > * { pointer-events: auto; }
.cabin-top .btn { background: rgba(6, 11, 28, .72); }
.crumbs-mini { display: flex; gap: 8px; align-items: center; font: 600 13px/1 var(--sans); background: rgba(6, 11, 28, .72); border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; }
.crumbs-mini a { text-decoration: none; color: var(--ivory-2); } .crumbs-mini span:first-of-type { color: var(--grey-2); }
.cabin-banner { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--top) + 64px); z-index: 3; background: rgba(13, 22, 48, .92); border: 1px solid rgba(200, 170, 110, .45); border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; font-size: 14px; max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; }
.cabin-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 86px; z-index: 3; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2); background: rgba(6, 11, 28, .7); padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.cabin-actions { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 3; display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(6, 11, 28, .82); border: 1px solid var(--line-2); max-width: calc(100% - 20px); overflow-x: auto; }
.cabin-actions button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid transparent; background: rgba(226, 232, 245, .05); font: 600 13px/1 var(--sans); color: var(--ivory); }
.cabin-actions button:hover { background: rgba(226, 232, 245, .1); border-color: var(--line-2); }
.cabin-actions .gold-b { background: linear-gradient(180deg, #ead6a6, #c6a76a); color: #17140f; }
.cabin-panel { position: absolute; right: 16px; top: calc(var(--top) + 64px); bottom: 90px; z-index: 4; width: min(400px, calc(100% - 32px)); overflow: auto; background: linear-gradient(180deg, #121e42, #0b1430); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 40px 100px -30px #000; transform: translateX(20px); opacity: 0; pointer-events: none; transition: .35s var(--ease); }
.cabin-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.cabin-panel .sheet-top { margin-bottom: -40px; }
.cabin-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; background: #05091a; z-index: 2; }
@media (max-width: 760px) { .cabin-top { top: 0; padding-top: calc(var(--top) + 4px); } .cabin-top .row { gap: 6px; } .cabin-top .btn { min-height: 34px; padding: 0 9px; font-size: 10.5px; }
  .cabin-panel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 72%; border-radius: 20px 20px 0 0; transform: translateY(20px); } .cabin-hint { bottom: 80px; font-size: 10px; } .cabin-actions { bottom: 12px; } }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 8, 22, .4); font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-2); min-width: 64px; }
.sw-btn i { width: 40px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.sw-btn.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); color: var(--ivory); }
.chip-btn { min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(4, 8, 22, .4); font: 600 13px/1 var(--sans); text-transform: capitalize; }
.chip-btn.on { border-color: var(--gold); background: rgba(200, 170, 110, .14); }
.tabs-row { display: flex; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.tabs-row button { background: none; border: 0; padding: 10px 10px; font: 600 13px/1 var(--sans); color: var(--grey); border-bottom: 2px solid transparent; }
.tabs-row button[aria-selected="true"] { color: var(--ivory); border-bottom-color: var(--gold); }
textarea.input { font-size: 16px; resize: vertical; }
.req-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .req-grid { grid-template-columns: 1fr; } }
.req { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 10px; }
.req.featured { border-color: rgba(200, 170, 110, .55); background: linear-gradient(135deg, rgba(200, 170, 110, .12), var(--panel-2)); }
@media (min-width: 761px) and (max-width: 1040px) { .tabs a { padding: 0 8px; font-size: 13px; gap: 6px; white-space: nowrap; } .tabs a svg { display: none; } .top .help-btn svg { width: 20px; height: 20px; flex: none; } .top .help-btn span { display: none; } .top .help-btn { width: 40px; padding: 0; justify-content: center; } .top-cta { white-space: nowrap; } .top { gap: 10px; } } /* keep the main button on tablets and sideways phones */

/* ---------------------------------------------------------------- help, welcome, tours (v1.2) */
.help-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(226, 232, 245, .06); font: 600 14px/1 var(--sans); color: var(--ivory); }
.help-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.help-btn:hover { background: rgba(226, 232, 245, .12); }
@media (max-width: 760px) { .help-btn span { display: none; } .help-btn { width: 40px; padding: 0; justify-content: center; margin-left: auto; } .help-btn + .top-cta { margin-left: 8px; } }
.modal-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(3, 6, 16, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.modal-wrap.open { opacity: 1; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: linear-gradient(180deg, #14224a, #0b1430); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 120px -30px #000; transform: translateY(10px); transition: transform .3s var(--ease); }
.modal.wide { width: min(720px, 100%); }
.modal-wrap.open .modal { transform: none; }
.modal-in { padding: 26px 24px 24px; }
.modal-x { position: absolute; right: 12px; top: 12px; }
.help-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.help-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 17px; line-height: 1.45; }
.help-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 170, 110, .18); color: var(--gold-2); font: 700 15px/1 var(--disp); }
.help-words { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.help-words summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.help-words dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 10px 0 0; font-size: 15px; }
.help-words dt { font-weight: 700; color: var(--gold-2); } .help-words dd { margin: 0; color: var(--ivory-2); }
@media (max-width: 480px) { .help-words dl { grid-template-columns: 1fr; } .help-words dd { margin-bottom: 6px; } }
.welcome-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: w; }
.welcome-steps li { counter-increment: w; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 2px 12px; padding: 12px; border-radius: 14px; background: rgba(226, 232, 245, .05); border: 1px solid var(--line); }
.welcome-steps li::before { content: counter(w); grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #ead6a6, #c6a76a); color: #17140f; font: 800 17px/1 var(--disp); }
.welcome-steps b { font: 600 17px/1.2 var(--disp); } .welcome-steps span { color: var(--ivory-2); font-size: 15px; }
.tour { position: fixed; z-index: 140; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(380px, calc(100vw - 24px)); padding: 18px; border-radius: 18px; background: #f4ecdc; color: #14182a; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); animation: tourIn .35s var(--ease); }
.tour .kicker { color: #8a6a2c; } .tour .h2 { color: #14182a; } .tour .btn { color: #14182a; border-color: rgba(20, 24, 42, .25); background: rgba(20, 24, 42, .04); } .tour .btn-primary { background: #14182a; color: #f4ecdc; border-color: transparent; }
@keyframes tourIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.tour-target { z-index: 130 !important; box-shadow: 0 0 0 3px var(--gold-2), 0 0 0 9px rgba(226, 203, 154, .25) !important; border-radius: 14px; animation: glowPulse 1.6s infinite; }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 3px var(--gold-2), 0 0 0 14px rgba(226, 203, 154, .08); } }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font: 600 12px/1 var(--sans); }
.stepper li { flex: 1; padding: 8px 6px; border-radius: 8px; text-align: center; background: rgba(226, 232, 245, .05); color: var(--grey); }
.stepper li.on { background: rgba(200, 170, 110, .16); color: var(--gold-2); }
.quick { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(200, 170, 110, .14), rgba(13, 22, 48, .8)); border-color: rgba(200, 170, 110, .4); }
.quick-row { display: grid; gap: 8px; }
.quick-row button { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(4, 8, 22, .45); }
.quick-row button:hover { border-color: var(--gold); background: rgba(200, 170, 110, .12); }
.quick-row b { font: 600 15px/1.2 var(--disp); } .quick-row span { font-size: 13px; color: var(--grey); }
.mobile-quick { margin-bottom: 12px; }
/* cabin controls with icons */
.cabin-tools { gap: 6px !important; }
.cabin-tools .tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 64px; height: 56px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(6, 11, 28, .78); font: 600 12px/1 var(--sans); color: var(--ivory); }
.cabin-tools .tool:hover { border-color: var(--gold); } .cabin-tools .tool[aria-pressed="true"] { border-color: var(--gold); background: rgba(34, 30, 18, .88); color: var(--gold-2); } /* readable over bright walls too */
.cabin-tools svg, .cabin-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cabin-actions button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; min-width: 76px; padding: 0 10px; font-size: 12.5px; }
.cabin-hint { font: 500 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; bottom: 96px; padding: 9px 14px; }
.win-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.win-label { position: absolute; left: 0; top: 0; margin: -16px 0 0 -10px; pointer-events: auto; padding: 7px 12px 7px 22px; border-radius: 99px; background: rgba(6, 11, 28, .7); border: 1px solid rgba(226, 203, 154, .55); color: var(--ivory); font: 600 13px/1 var(--sans); white-space: nowrap; }
.win-label::before { content: ''; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(226, 203, 154, .25); }
.win-card { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 100px; width: min(440px, calc(100% - 24px)); padding: 14px 16px; font-size: 15px; }
@media (max-width: 760px) { .cabin-tools .tool { min-width: 52px; height: 50px; font-size: 10.5px; padding: 0 6px; } .cabin-actions button { min-width: 64px; min-height: 54px; font-size: 11px; } .cabin-hint { bottom: 84px; font-size: 13px; } .win-card { bottom: 86px; } .tour { bottom: calc(150px + env(safe-area-inset-bottom)); } }
.cabin-panel .sheet-top { position: absolute; right: 12px; top: 12px; margin: 0; z-index: 3; }
.cabin-panel .sheet-in { padding-top: 22px; }
.cabin-panel .sheet-in > .kicker:first-of-type { padding-right: 56px; }
@media (max-width: 760px) { [data-sigchip] { display: none !important; } .cabin-actions button { min-width: 56px; padding: 0 6px; } .cabin-actions { gap: 4px; padding: 5px; } }
@media (max-width: 760px) { .cabin-panel.look { max-height: 50%; } body[data-page="cabin"] .cabin-panel.look.open ~ .cabin-actions, body[data-page="cabin"] .cabin-panel.look.open ~ .cabin-hint { visibility: hidden; } }
@media (max-width: 760px) { .cabin-page:has(.cabin-panel.look.open) .cabin-tools { visibility: hidden; } }
/* Instagram check */
.ig-row { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(4, 8, 22, .6); }
.ig-row span { padding: 0 4px 0 14px; color: var(--grey); font-size: 17px; } .ig-row .input { border: 0; background: none; padding-left: 4px; } .ig-row .input:focus, .ig-row .input:focus-visible { box-shadow: none; outline: none; } /* the row itself shows the focus ring */ .ig-row:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(79, 194, 182, .15); }
.hold-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; counter-reset: h; }
.hold-steps li { counter-increment: h; display: grid; gap: 6px; padding: 14px 14px 14px 56px; position: relative; border-radius: 14px; background: rgba(226, 232, 245, .05); border: 1px solid var(--line); }
.hold-steps li::before { content: counter(h); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ead6a6, #c6a76a); color: #17140f; font: 800 15px/1 var(--disp); }
.hold-steps b { font: 600 16px/1.25 var(--disp); } .hold-steps span { color: var(--ivory-2); font-size: 14px; } .hold-steps .btn { justify-self: start; }
.code-row { display: flex; gap: 8px; align-items: center; } .code { font: 700 26px/1 var(--mono); letter-spacing: .08em; padding: 10px 14px; border-radius: 10px; background: #f4ecdc; color: #14182a; user-select: all; }
.checking { display: inline-flex; gap: 8px; align-items: center; color: var(--teal-2) !important; } .checking i { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s infinite; }
.choice { display: grid; gap: 12px; } .choice summary { cursor: pointer; display: grid; gap: 4px; list-style: none; } .choice summary::-webkit-details-marker { display: none; } .choice summary b, .choice-a b { font: 600 18px/1.2 var(--disp); }
.choice-a { display: grid; gap: 4px; text-decoration: none; } .choice-a:hover, .choice details:hover { border-color: var(--line-3); }
.chip-btn input { accent-color: var(--gold); }
.hold-steps .code { color: #14182a; font-size: 24px; }
.hero-fallback { transition: opacity .8s; } .hero-fallback.gone { opacity: 0; }
.locker-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.locker-list li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.locker-list li:first-child { border-top: 0; } .locker-list b { font: 600 15px/1.2 var(--disp); } .locker-list span { font-size: 13.5px; color: var(--ivory-2); }
@media (max-width: 760px) { .hero { min-height: 128svh; } .hero::after { background: linear-gradient(180deg, rgba(6, 11, 28, .55), transparent 14%, transparent 36%, rgba(6, 11, 28, .75) 52%, var(--bg) 70%); } }

/* full-screen ship TV (cabin) */
.tv-full { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: rgba(3, 6, 18, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: tvIn .25s ease-out; }
.tv-full .tv-frame { width: min(94vw, calc((100svh - 170px) * 1.7067)); aspect-ratio: 1024 / 600; padding: 10px; border-radius: 22px; background: linear-gradient(160deg, #2a3466, #10173a); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(79,194,182,.15); }
.tv-full canvas { display: block; width: 100%; height: 100%; border-radius: 13px; }
.tv-full .tv-x { position: absolute; top: calc(var(--top, 64px) + 8px); right: 16px; }
.tv-full .tv-ctl { justify-content: center; gap: 10px; flex-wrap: wrap; }
.tv-full .tv-hint { margin: 0; color: rgba(242,235,221,.55); }
@keyframes tvIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.tv-full .tv-turn { display: none; }
/* phones: TV on the left, controls in a small column on the right */
@media (max-height: 520px) and (orientation: landscape) {
  .tv-full { flex-direction: row; gap: 14px; padding: 12px; }
  .tv-full .tv-frame { width: min(calc(100vw - 190px), calc((100svh - 24px) * 1.7067)); padding: 6px; border-radius: 16px; }
}
@media (orientation: portrait) and (max-width: 600px) {
  /* held upright: turn the whole TV view sideways, like a video player */
  .tv-full.rot { inset: auto; top: 0; left: 100vw; width: 100svh; height: 100vw; transform-origin: 0 0; transform: rotate(90deg); flex-direction: row; gap: 14px; padding: 12px; animation: none; }
  .tv-full.rot .tv-frame { width: min(calc(100svh - 190px), calc((100vw - 24px) * 1.7067)); padding: 6px; border-radius: 16px; }
  .tv-full.rot .tv-turn { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(6,11,28,.85); color: var(--ivory, #f2ebdd); font-weight: 600; pointer-events: none; animation: tvTurn 2.8s ease forwards; }
}
@media (max-height: 520px) and (orientation: landscape), (orientation: portrait) and (max-width: 600px) {
  .tv-full.rot .tv-ctl, .tv-full .tv-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 150px; flex: none; }
  .tv-full .tv-ctl [data-tvpanel], .tv-full .tv-ctl .btn-primary { grid-column: span 2; }
  .tv-full .tv-x, .tv-full .tv-hint { display: none; }
}
@keyframes tvTurn { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Decorate: theme cards */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; border-radius: 14px; border: 1px solid rgba(242,235,221,.14); background: rgba(255,255,255,.03); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.theme-card canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; display: block; }
.theme-card b { font-size: 14px; display: flex; gap: 5px; align-items: center; padding: 2px 4px 0; }
.theme-card b svg { width: 14px; height: 14px; }
.theme-card span { font-size: 12px; line-height: 1.35; color: var(--muted, #9aa4b8); padding: 0 4px; }
.theme-card.on { border-color: var(--gold, #e2cb9a); box-shadow: 0 0 0 2px rgba(226,203,154,.35); }
.theme-card.locked canvas { filter: grayscale(.85) brightness(.55); }
.theme-card:hover:not(.locked) { border-color: rgba(226,203,154,.6); }

/* Decorate: folding sections */
.acc { border: 1px solid rgba(242,235,221,.12); border-radius: 14px; background: rgba(255,255,255,.025); margin-top: 10px; }
.acc > summary { list-style: none; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; padding: 12px 14px; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc .acc-t { font-weight: 700; font-size: 15px; }
.acc .acc-s { grid-row: 2; font-size: 12px; color: var(--muted, #9aa4b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc .acc-c { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .7; margin-right: 4px; }
.acc[open] .acc-c { transform: rotate(-135deg); }
.acc[open] > summary { border-bottom: 1px solid rgba(242,235,221,.08); }
.acc .acc-b { padding: 12px 14px 14px; }
.theme-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.theme-strip .theme-card { flex: 0 0 150px; scroll-snap-align: start; }
.acc, .acc .acc-b { min-width: 0; max-width: 100%; box-sizing: border-box; }
.acc { overflow: hidden; }
.theme-strip { width: 100%; }
/* breathing room under the top bar on phones (buttons were touching "Enter the ship") */
@media (max-width: 760px) {
  .crumbs { padding-top: 14px; padding-bottom: 12px; row-gap: 10px; }
  .cabin-top { padding-top: calc(var(--top) + 12px); row-gap: 10px; }
}
/* panels never scroll sideways: the grid column can't grow past the panel (the theme row scrolls on its own) */
.sheet-in { grid-template-columns: minmax(0, 1fr); }
.cabin-panel { overflow-x: hidden; overflow-y: auto; }
.cabin-panel .sheet-in > * { min-width: 0; max-width: 100%; }
/* cabin full screen (button) + phones held sideways: the 3D room fills the whole screen, site bars hidden */
body.immersive { --top: 0px; }
body.immersive .top { display: none !important; }
body.immersive .cabin-page { height: 100dvh !important; }
@media (orientation: landscape) and (max-height: 520px) {
  body[data-page="cabin"] { --top: 0px; }
  body[data-page="cabin"] .top { display: none; }
  body[data-page="cabin"] .cabin-page { height: 100dvh; }
  .cabin-top { top: 0; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); }
  .cabin-tools .tool { min-width: 50px; height: 44px; font-size: 9.5px; padding: 0 6px; gap: 2px; }
  .cabin-tools svg { width: 17px; height: 17px; }
  .cabin-actions { left: max(10px, env(safe-area-inset-left)); transform: none; bottom: 8px; max-width: calc(100% - 20px); }
  .cabin-actions button { min-height: 46px; min-width: 56px; font-size: 10px; gap: 2px; padding: 0 6px; }
  .cabin-actions svg { width: 17px; height: 17px; }
  .cabin-hint { display: none; }
  .cabin-panel, .cabin-panel.look { left: auto; right: max(8px, env(safe-area-inset-right)); top: 62px; bottom: 8px; width: min(340px, 44vw); max-height: none; border-radius: 16px; }
  .cabin-page:has(.cabin-panel.look.open) .cabin-tools { visibility: visible; }
  body[data-page="cabin"] .cabin-panel.look.open ~ .cabin-actions { visibility: visible; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 760px) {
  .cabin-actions button { min-width: 48px; font-size: 9px; padding: 0 4px; }
  .cabin-panel, .cabin-panel.look { width: min(300px, 44vw); }
}
@media (max-width: 430px) and (orientation: portrait) {
  .cabin-tools { gap: 5px !important; flex-wrap: nowrap; }
  .cabin-tools .tool { min-width: 0; padding: 0 5px; font-size: 10px; height: 48px; }
  .cabin-tools svg { width: 18px; height: 18px; }
}

/* window view: info card in the top-left corner (not over the middle), with hide + Info buttons */
.win-card { left: 16px; right: auto; top: calc(var(--top) + 62px); bottom: auto; transform: none; width: min(340px, calc(100% - 32px)); padding: 12px 44px 12px 14px; font-size: 14px; }
.win-card .kicker { margin: 0; }
.win-min { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ivory); font: 700 16px/1 var(--sans); cursor: pointer; }
.win-info { position: absolute; z-index: 4; left: 16px; top: calc(var(--top) + 62px); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 11, 28, .82); color: var(--ivory); font: 600 13px/1 var(--sans); cursor: pointer; }
@media (max-width: 760px) and (orientation: portrait) { .win-card, .win-info { top: auto; bottom: 88px; left: 12px; } }
@media (orientation: landscape) and (max-height: 520px) { .win-card, .win-info { top: 54px; bottom: auto; left: max(12px, env(safe-area-inset-left)); } .win-card { width: min(300px, 42vw); font-size: 12.5px; padding: 10px 40px 10px 12px; } }

/* ship section: cabin door list (replaces the seat grid) */
.door-find { margin: 4px 0 12px; }
.door-find .input { width: 100%; }
.doorlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.door-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(242,235,221,.1); background: linear-gradient(180deg, #121d3f, #0c1430); color: var(--ivory); cursor: pointer; font: inherit; min-width: 0; }
.door-tile i { grid-row: 1 / span 2; width: 6px; height: 34px; border-radius: 4px; background: #f6efe0; box-shadow: 0 0 10px currentColor; color: transparent; }
.door-tile b { font: 700 14px/1.1 var(--sans); letter-spacing: .02em; }
.door-tile span { font-size: 12px; color: var(--ivory-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.door-tile em { position: absolute; top: 8px; right: 9px; font: 500 9.5px/1 var(--mono); font-style: normal; color: var(--grey); }
.door-tile:hover { border-color: rgba(226,203,154,.55); }
.door-tile[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(226,203,154,.35); }
.door-tile.taken i { background: #4fc2b6; color: #4fc2b6; } .door-tile.taken span { color: #8fe3d8; font-weight: 600; }
.door-tile.free i { background: #f6efe0; } .door-tile.free span { color: var(--grey); }
.door-tile.mine i, .door-tile.dante i { background: #ffcf6a; color: #ffcf6a; } .door-tile.mine span, .door-tile.dante span { color: #ffd98a; font-weight: 700; }
.door-tile.held i { background: #e2cb9a; } .door-tile.crew i { background: #c8aa6e; } .door-tile.sealed i { background: #e0675c; } .door-tile.off { opacity: .55; } .door-tile.off i { background: #4a5064; }
/* desktop: the cabin card opens over the door list, so the corridor stays in view */
@media (min-width: 1101px) { .sheet { left: auto; right: 12px; top: 12px; bottom: auto; width: min(400px, calc(100% - 24px)); max-height: calc(100% - 24px); } }
/* Find my cabin */
.find-mine { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; text-decoration: none; color: var(--ivory); border-color: rgba(79, 194, 182, .45); }
.find-mine svg { width: 26px; height: 26px; color: var(--teal); flex: none; } .find-mine > span { display: grid; gap: 2px; flex: 1; } .find-mine i { font-style: normal; color: var(--teal); font-size: 20px; }
.find-mine:hover { border-color: var(--teal); }
/* Distance to Orra (home status strip) */
.status .trip { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 26px; border-left: 0; border-top: 1px solid var(--line); }
.status .trip-ly { color: #7fe9f0; font-size: clamp(22px, 2.4vw, 30px); }
.route { display: flex; align-items: center; gap: 10px; min-width: 0; }
.route-bar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(226, 232, 245, .12); }
.route-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: linear-gradient(90deg, rgba(79, 194, 182, .3), #4fc2b6); transition: width .8s; }
.route-bar b { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #f6efe0; box-shadow: 0 0 10px 3px rgba(127, 233, 240, .55); transition: left .8s; }
.route-ship, .route-orra { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--grey); }
.route-orra { width: 16px; height: 16px; border: 0; background: radial-gradient(circle at 35% 35%, #9ff3e6, #2aa79b 60%, #0f4f54); box-shadow: 0 0 12px rgba(127, 233, 240, .5); }
.trip-note { margin: 0; max-width: 320px; }
@media (max-width: 900px) { .status .trip { grid-template-columns: auto 1fr; border-left: 0 !important; } .trip-note { grid-column: 1 / -1; max-width: none; } }
/* Observation Deck: countdown chip (home) + boarding pass page */
.deck-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 20px; padding: 10px 16px; border-radius: 14px; border: 1px solid rgba(127, 233, 240, .35); background: rgba(6, 14, 34, .6); color: var(--ivory); text-decoration: none; font: 500 14px/1.3 var(--sans, Inter, sans-serif); backdrop-filter: blur(6px); }
.deck-chip b { color: #7fe9f0; font-family: var(--mono); font-weight: 500; }
.deck-chip-go { color: var(--gold-2, #e2cb9a); font-weight: 600; }
.deck-chip:hover { border-color: #7fe9f0; }
.pass-page { padding-top: calc(var(--top) + 28px) !important; }
.pass-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: 'copy art' 'act art'; gap: 0 40px; align-items: start; }
.pass-copy { grid-area: copy; } .pass-art { grid-area: art; } .pass-actions { grid-area: act; }
.cd-box { display: grid; gap: 4px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(127, 233, 240, .3); background: linear-gradient(135deg, rgba(79, 194, 182, .1), rgba(13, 22, 48, .7)); }
.cd-box .k { font: 500 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.cd-box b { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--disp); color: #7fe9f0; letter-spacing: .02em; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pass-actions .btn-primary { flex: 1 1 100%; }
.pass-actions .btn:not(.btn-primary) { flex: 1 1 140px; } /* Save + Door share the row evenly */
.pass-art { position: sticky; top: calc(var(--top) + 16px); }
.pass-ph, .pass-img { display: block; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; }
.pass-ph { display: grid; place-items: center; border: 1px dashed var(--line-2); background: rgba(6, 11, 28, .5); }
.pass-img { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
@media (max-width: 860px) { .pass-grid { grid-template-columns: 1fr; grid-template-areas: 'copy' 'art' 'act'; } .pass-art { position: static; margin-top: 22px; } .pass-ph { display: none; } .pass-img { max-width: 330px; } .pass-page .h1 { font-size: 34px; } }
/* Claim your cabin */
.claim { padding-top: calc(var(--top) + 22px) !important; }
.claim-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 26px; }
.claim-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--line-2); color: var(--grey); font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.claim-steps i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--sans); font-style: normal; border: 1px solid var(--line-2); }
.claim-steps li.on { color: var(--ivory); border-color: var(--gold); } .claim-steps li.on i { background: var(--gold); color: #14182a; border-color: var(--gold); }
.claim-steps li.done { color: var(--teal); border-color: var(--teal); } .claim-steps li.done i { border-color: var(--teal); color: var(--teal); }
@media (max-width: 420px) { .claim-steps span { display: none; } .claim-steps li { justify-content: center; } }
.claim-note { display: flex; gap: 8px; align-items: center; color: var(--ivory-2); margin: -8px 0 16px; } .claim-note svg { width: 18px; color: var(--gold); }
.claim-found { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(127, 233, 240, .35); background: linear-gradient(135deg, rgba(79, 194, 182, .12), rgba(13, 22, 48, .7)); }
.claim-found b { font: 700 44px/1.05 var(--disp); color: var(--gold-2, #e2cb9a); }
.zone-row, .role-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zone, .role-pick { position: relative; display: grid; gap: 3px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(4, 8, 22, .45); cursor: pointer; }
.zone input, .role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.zone b, .role-pick b { font: 600 15px/1.2 var(--disp); } .zone span, .role-pick span { font-size: 12.5px; color: var(--ivory-2); line-height: 1.3; }
.role-pick svg { width: 26px; height: 26px; color: var(--teal); }
.zone.on, .role-pick.on { border-color: var(--gold); background: rgba(200, 170, 110, .14); } .zone:focus-within, .role-pick:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 520px) { .zone-row, .role-row { grid-template-columns: 1fr; } .role-pick { grid-template-columns: 30px 1fr; column-gap: 10px; } .role-pick svg { grid-row: span 2; align-self: center; } }
.passcode-in { font: 600 24px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pc-box { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-top: 14px; padding: 16px 18px; border-radius: 16px; border: 1px dashed rgba(226, 203, 154, .55); background: rgba(200, 170, 110, .08); }
.pc-box .k { grid-column: 1 / -1; font: 500 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.pc-box b { font: 600 30px/1.1 var(--mono); letter-spacing: .1em; color: var(--gold-2, #e2cb9a); } .pc-box .btn { grid-row: 2; grid-column: 2; } .pc-box .small { grid-column: 1 / -1; }
.claim-more { margin-top: 18px; color: var(--grey); font-size: 14px; } .claim-more summary { cursor: pointer; }
.pc-panel { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin-top: 16px; } .pc-panel > div:first-child { flex: 1 1 260px; }
.pc-out b { font: 600 24px/1 var(--mono); letter-spacing: .1em; color: var(--gold-2, #e2cb9a); }
.claim form.panel { gap: 20px !important; }
.claim fieldset legend { display: block; padding: 0; margin-bottom: 10px; } /* legends ignore the grid gap, so space them by hand */
.claim .error:empty { display: none; }
.claim form .btn-primary { margin-top: 4px; }
#main:focus, #main:focus-visible { outline: none; } /* the router focuses the page for screen readers; no ring around the whole page */
/* ---- spacing pass (phones) ---- */
.error:empty { display: none; } /* no empty gap under fields until there is something to say */
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
@media (max-width: 760px) {
  .deckmap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  .sec { aspect-ratio: auto; min-height: 150px; padding: 10px; gap: 4px; }
  .sec .rows { font-size: 10.5px; }
  .sec { grid-template-rows: auto auto auto auto !important; }
  .sec canvas { margin: 6px 0 8px; height: 56px !important; min-height: 0; }
  .modal .row > .btn, .modal .row > button.btn { flex: 1 1 100%; }
  .cabin-banner { top: 116px; width: calc(100% - 32px); justify-content: space-between; text-align: left; }
  .cabin-actions { left: 10px; right: 10px; transform: none; max-width: none; overflow: visible; justify-content: stretch; }
  .cabin-actions button { min-width: 0 !important; flex: 1 1 0; padding: 0 2px; font-size: 10px; line-height: 1.15; white-space: normal; }
}
@media (max-height: 500px) and (orientation: landscape) { .cabin-banner { top: 84px; width: auto; flex-wrap: nowrap; font-size: 13px; padding: 8px 12px; white-space: nowrap; } }
/* deck map tiles: number, rows, a fixed-height seat picture, then the count (nothing overlaps) */
.sec { aspect-ratio: auto; grid-template-rows: auto auto auto auto !important; gap: 2px; }
.sec canvas { height: 64px !important; min-height: 0; margin: 6px 0 8px; }
/* phones held sideways on the ship: no side column, corridor and door list side by side, door card on the right */
@media (orientation: landscape) and (max-height: 520px) {
  .ship { grid-template-columns: 1fr !important; } .ship .side { display: none; }
  .crumbs { min-height: 44px; padding: 4px 12px; } .crumbs .btn { min-height: 34px; padding: 0 10px; font-size: 11px; }
  .secview { grid-template-columns: 1fr 1fr !important; grid-template-rows: 1fr !important; }
  .sheet { position: absolute; left: auto !important; right: 8px; top: 8px; bottom: 8px; width: min(360px, 48vw); max-height: none; border-radius: 18px; overflow: auto; }
  .deckmap { padding: 14px 16px 24px; }
}
@media (max-width: 420px) { .modal-in { padding: 22px 18px 18px; } .welcome-steps li { padding: 10px; } .welcome-steps span { font-size: 14px; } }
@media (max-width: 420px) { a.btn, button.btn { max-width: 100%; } .section > a.btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; height: auto; } } /* long button labels wrap instead of pushing the page sideways */

/* ---- Where is my seat? (home + /find): the first question everyone asks ---- */
.finder { display: grid; gap: 10px; margin: 0 0 20px; padding: 18px; border-radius: var(--r-lg); border: 1px solid rgba(226, 203, 154, .4); background: rgba(7, 13, 32, .96); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.finder-big { max-width: 560px; }
.finder-h { font: 700 clamp(24px, 3.2vw, 32px)/1.1 var(--disp); color: var(--ivory); letter-spacing: -.01em; }
.finder-row { display: flex; gap: 10px; }
.finder-row .ig-row { flex: 1 1 auto; min-width: 0; }
.finder-row .btn { flex: 0 0 auto; min-height: 52px; padding: 0 24px; }
.finder-hint { margin: 0; }
.finder.busy .finder-out { opacity: .5; }
.finder-out:empty { display: none; }
.finder-card { display: grid; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(13, 22, 48, .9); }
.finder-card.ok { border-color: rgba(127, 233, 240, .45); }
.finder-card.wait { border-color: rgba(226, 203, 154, .45); }
.finder-card p { margin: 0; }
.finder-seat { font: 600 18px/1.1 var(--disp); color: var(--ivory-2); }
.finder-seat b { display: block; font: 800 clamp(44px, 12vw, 64px)/1 var(--disp); color: var(--gold-2); letter-spacing: .02em; margin-top: 2px; }
.finder-where { font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-2); }
.finder-msg { font: 600 18px/1.3 var(--disp); color: var(--ivory); }
.finder-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.finder-acts .btn { flex: 1 1 160px; }
.finder-more { font-size: 14px; color: var(--teal-2); text-decoration: none; margin-top: 2px; }
.finder-more:hover { text-decoration: underline; }
.hero-ctas-2 .btn { min-height: 48px; }
@media (max-width: 760px) { .finder { padding: 14px; } .finder-row .btn { padding: 0 18px; } .hero-copy .hero-facts { display: none; } }

/* ---- lite mode (slow phones, data saver): no glass blur, solid panels ---- */
html.lite .panel, html.lite .modal-wrap, html.lite .deck-chip, html.lite .tv-full { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .panel { background: var(--panel-solid); }
html.lite .hero canvas { display: none; }
/* hero stack: every block keeps 20px from the next (the deck chip used to pull itself up -8px and ran into the buttons) */
.hero-copy > .hero-ctas { margin-bottom: 20px; }
.hero-copy > .hero-facts { margin: 0; }

.plan-sig { display: none; color: #ff8a80; }
@media (orientation: landscape) and (max-height: 520px) { [data-view="overview"] .overlay-tl { display: none; } .plan-sig { display: inline; } }
/* tablets: the door card spans the whole list column instead of leaving slivers of door tiles beside it */
@media (min-width: 761px) and (max-width: 1100px) and (min-height: 521px) { .sheet { left: 16px; right: 16px; width: auto; } }

/* boarding link page (/b/...): a little more air under the top bar */
.board { padding-top: calc(var(--top) + 40px) !important; }

/* ---- /vote: you ask, you vote, the ship builds it ---- */
.vote-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.vote-bar .k { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.vote-bar b { font: 600 24px/1.1 var(--disp); color: #7fe9f0; }
.vote-bar [data-left] { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vote-dots { display: inline-flex; gap: 6px; } .vote-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-2); } .vote-dots i.on { background: var(--gold-2); }
.vote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 28px; align-items: start; }
.vote-grid aside { margin-top: 64px; position: sticky; top: calc(var(--top) + 16px); }
.vote-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 10px; }
.vote-card.mine { border-color: rgba(226, 203, 154, .55); }
.vote-main { flex: 1; min-width: 0; display: grid; gap: 4px; } .vote-main .h3 { margin: 2px 0; overflow-wrap: anywhere; } .vote-main p { margin: 0; overflow-wrap: anywhere; }
.vote-btn { flex: 0 0 auto; width: 64px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(4, 8, 22, .5); color: var(--ivory); display: grid; place-items: center; gap: 2px; cursor: pointer; padding: 8px 0; font: inherit; }
.vote-btn span { font-size: 16px; color: var(--gold-2); } .vote-btn b { font: 600 16px/1 var(--disp); }
.vote-btn[aria-pressed="true"] { background: var(--gold-2); color: #17140f; border-color: transparent; } .vote-btn[aria-pressed="true"] span { color: #17140f; }
.vote-btn:disabled { cursor: default; opacity: .7; } .vote-btn[aria-pressed="true"]:disabled { opacity: 1; }
.vote-won { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.vote-w { display: grid; gap: 6px; } .vote-w b { font: 600 18px/1.2 var(--disp); }
.gold { color: var(--gold-2); }
@media (max-width: 860px) { .vote-grid { grid-template-columns: 1fr; } .vote-grid aside { margin-top: 18px; position: static; } }

/* ---- Observation Deck (/deck): full screen, the window is the page ---- */
body.deck-mode .footer { display: none; }
.deck { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: #03050d; color: var(--ivory); }
.deck-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.deck-top { position: absolute; left: 0; right: 0; top: calc(var(--top) + 14px); display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); padding: 0 16px; }
.deck-h { margin: 6px 0 0; font: 600 clamp(18px, 2.4vw, 26px)/1.2 var(--disp); }
.deck-cd { font: 700 clamp(28px, 4.2vw, 46px)/1 var(--disp); color: #7fe9f0; letter-spacing: .01em; }
.deck[data-phase="opening"] .deck-top, .deck[data-phase="open"] .deck-top { opacity: 0; transition: opacity 1.2s; }
.deck-cap { position: absolute; left: 0; right: 0; top: 58%; margin: 0; padding: 0 20px; text-align: center; font: 600 clamp(22px, 3.4vw, 40px)/1.25 var(--disp); color: #fffaf0; text-shadow: 0 2px 24px rgba(0, 0, 0, .85); pointer-events: none; min-height: 1.3em; transition: opacity .6s; }
.deck-cap:empty { opacity: 0; }
.deck-bottom { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; padding: 0 var(--pad); }
.deck-live { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; max-width: min(460px, 100%); border-radius: 999px; background: rgba(6, 11, 28, .66); backdrop-filter: blur(8px); font-size: 14px; color: var(--ivory-2); white-space: nowrap; overflow: hidden; transition: opacity .8s; }
.deck-live .dot { flex: none; } .deck-sep { opacity: .5; } .deck[data-phase="opening"] .deck-live { opacity: 0; pointer-events: none; } /* the opening gets the whole screen */
.deck-live b { font: 600 15px/1.2 var(--disp); color: var(--ivory); }
.deck-feed { overflow: hidden; text-overflow: ellipsis; color: #7fe9f0; min-width: 0; }
.deck-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.deck-actions .btn:not(.btn-primary) { background: rgba(5, 8, 18, .82); backdrop-filter: blur(6px); }
.deck-enter { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); min-height: 56px; padding: 0 30px; }
.deck-static .deck-canvas { background: url('/img/hero_v3.webp') center/cover; }
@media (max-width: 760px) { .deck { height: calc(100svh - 64px - env(safe-area-inset-bottom)); }
  .deck-bottom { flex-direction: column; align-items: stretch; bottom: 10px; gap: 8px; } .deck-live { align-self: center; padding: 6px 12px; font-size: 13px; }
  .deck-actions { gap: 8px; } .deck-actions .btn-primary { flex: 1 1 100%; } .deck-actions .btn:not(.btn-primary) { flex: 1 1 0; min-height: 40px; font-size: 12px; padding: 0 10px; } /* sound + replay share one small row */
  .deck-cap { top: 52%; } }
@media (max-height: 520px) and (orientation: landscape) { /* sideways phone: everything in one screen */
  .deck { min-height: 0; } .deck-top { top: calc(var(--top) + 4px); gap: 0; } .deck-top .kicker, .deck-top [data-when] { display: none; } .deck-cd { font-size: 26px; }
  .deck-bottom { bottom: 8px; gap: 8px; } .deck-live { padding: 4px 10px; font-size: 12px; }
  .deck-actions .btn { min-height: 38px; font-size: 12px; padding: 0 12px; } .deck-cap { font-size: 20px; } }
.deck-cap span { display: block; margin-top: 8px; font-size: .58em; font-weight: 500; opacity: .88; }
.deck.deck-looking .deck-live, .deck.deck-looking .deck-actions .btn:not(.btn-primary) { opacity: .35; transition: opacity 1s; } /* the telescope view gets the screen */

/* ---- Cabin Phase 2: the Today pill + panel (sprout, ship log, a look at Orra, souvenirs) ---- */
.cabin-today { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; margin-left: 8px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(6, 11, 28, .78); color: var(--ivory); font: 600 13px/1 var(--sans); pointer-events: auto; }
.cabin-today b { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--gold); color: #10142a; font: 700 12px/1 var(--sans); padding: 0 5px; }
.cabin-today.done { border-color: var(--line-2); } .cabin-today.done b { background: rgba(127, 233, 240, .25); color: #7fe9f0; } .cabin-today.done .dot { display: none; }
.today-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.today-row b { font: 600 15px/1.3 var(--sans); } .today-row p { margin: 3px 0 0; }
.today-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px; color: #10142a; }
.today-row.done .today-tick { background: #7fe9f0; border-color: #7fe9f0; } .today-row.done b { color: var(--ivory-2); }
.today-streak { margin: 12px 0 0; color: var(--ivory-2); } .today-streak b { font: 700 22px/1 var(--disp); color: var(--gold-2, #e2cb9a); margin-right: 4px; }
.souv-grid { display: grid; gap: 8px; } .souv { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); } .souv.on { border-style: solid; border-color: var(--gold); background: rgba(200, 170, 110, .1); }
@media (max-width: 760px) { .cabin-today { height: 30px; padding: 0 10px; font-size: 12px; margin-left: 6px; } }

/* ---- Phase 3: visits, knocks, neighbours ---- */
.vis-toggle { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; } .vis-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); } .vis-toggle > span { display: grid; gap: 3px; }
.knocks, .nb-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; } .knocks li { font-size: 14px; line-height: 1.4; }
.nb-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); } .nb-list li > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot.off { background: var(--grey); opacity: .5; }
.knock-list { display: grid; gap: 8px; margin: 4px 0 6px; } .knock-list .btn { justify-content: flex-start; }
.sw-open { background: #f7a8e0; } /* Phase 3: an open cabin you can visit */

/* ---- Phase 3b: the live Passenger Lounge ---- */
.lounge-count { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; margin-left: 8px; border-radius: 999px; background: rgba(6, 11, 28, .78); border: 1px solid var(--line-2); font: 600 13px/1 var(--sans); color: var(--ivory); pointer-events: auto; }
.lounge-emotes .emo { font-size: 20px; line-height: 1; } .lounge-go { width: 100%; margin-top: 14px; }
@media (max-width: 760px) { .lounge-count { height: 28px; font-size: 11.5px; padding: 0 9px; margin-left: 6px; } .lounge-emotes button { min-width: 52px; } }

/* lounge chat (group + private), people list, mute/report */
.lounge-chat { position: absolute; right: 16px; top: calc(var(--top) + 64px); bottom: 104px; width: min(360px, calc(100% - 32px)); display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(6, 11, 28, .9); border: 1px solid var(--line-2); backdrop-filter: blur(10px); z-index: 6; }
.lounge-chat[hidden] { display: none; } .lc-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; } .lc-head .muted { grid-column: 1; } .lc-head .btn-icon { grid-row: 1 / span 2; grid-column: 2; }
.lc-log { list-style: none; margin: 0; padding: 0 2px; overflow-y: auto; display: grid; align-content: start; gap: 6px; font-size: 14px; line-height: 1.35; min-height: 80px; }
.lc-log b { color: var(--gold-2, #e2cb9a); margin-right: 4px; } .lc-sys { color: var(--grey); font-size: 12.5px; } .lc-me b { color: #7fe9f0; } .lc-pm { padding: 6px 8px; border-radius: 10px; background: rgba(127, 233, 240, .08); } .lc-lock { color: #7fe9f0; font-weight: 600; margin-right: 4px; }
.lc-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .lc-form select { grid-column: 1 / -1; height: 36px; } .lc-form .input { height: 40px; } .lc-err { margin: 0; min-height: 0; color: #f0a59c; font-size: 13px; } .lc-err:empty { display: none; }
.lc-people summary { cursor: pointer; font-size: 13px; color: var(--ivory-2); } .lc-people ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; max-height: 160px; overflow-y: auto; } .lc-people li { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; } .lc-people .row { gap: 4px; flex-wrap: nowrap; } .lc-people .btn-sm { padding: 0 8px; height: 28px; font-size: 11px; }
.lounge-emotes .unread { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: #ff6b8b; color: #fff; font: 700 11px/18px var(--sans); text-align: center; padding: 0 4px; } .lounge-emotes button { position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .lounge-chat { left: 10px; right: 10px; width: auto; top: auto; bottom: 86px; height: 52vh; } .lounge-emotes button { min-width: 44px; padding: 0 4px; } .lounge-emotes .emo { font-size: 18px; } }

/* ---- the lounge arcade: ORRA RUN ---- */
.arcade { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr; background: rgba(3, 5, 14, .94); backdrop-filter: blur(6px); }
.arc-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; } .arc-title { font: 800 18px/1 var(--disp); letter-spacing: .12em; color: #ff8ad5; flex: 1; white-space: nowrap; } .arc-best { font: 600 13px/1 var(--mono); color: var(--gold-2, #e2cb9a); white-space: nowrap; }
.arc-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px calc(10px + env(safe-area-inset-bottom)); }
.arc-stage canvas { height: 100%; max-height: calc(100svh - 70px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 16px; border: 1px solid var(--line-2); touch-action: none; background: #04060f; }
.arc-card { position: absolute; width: min(330px, calc(100% - 40px)); max-height: calc(100% - 30px); overflow-y: auto; padding: 18px; border-radius: 16px; background: rgba(8, 12, 30, .93); border: 1px solid var(--line-2); display: grid; gap: 8px; text-align: center; }
.arc-card[hidden] { display: none; } .arc-card h2 { margin: 0; font: 800 34px/1.1 var(--disp); color: #f2ebdd; } .arc-card p { margin: 0; } .arc-k { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #7fe9f0; }
.arc-tabs { display: flex; gap: 6px; justify-content: center; margin-top: 6px; } .arc-tabs button { border: 1px solid var(--line-2); background: none; color: var(--ivory-2); border-radius: 999px; padding: 5px 12px; font: 600 12px/1 var(--sans); } .arc-tabs button[aria-pressed="true"] { background: var(--gold); color: #10142a; border-color: var(--gold); }
.arc-board { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; text-align: left; font-size: 14px; } .arc-board li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 4px; border-bottom: 1px solid var(--line); } .arc-board b { color: var(--gold-2, #e2cb9a); }
body.arcade-open { overflow: hidden; }
.arc-board li.me { background: rgba(127, 233, 240, .08); border-radius: 8px; } .arc-board li.me em { font-style: normal; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #7fe9f0; margin-left: 6px; } .arc-card a { color: #7fe9f0; }

/* ===================== Ship lobby v2 (2026-11-22): places, one search, deck chips; corridor with a door drawer ===================== */
.ship.v2 { grid-template-columns: 1fr !important; }
.ship.v2 .side { display: none; }
.ship.v2[data-mode="overview"] .crumbs { display: none; }
.ship.v2[data-mode="overview"] { grid-template-rows: 1fr; }
.hub { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; background: radial-gradient(120% 80% at 70% 0%, #14204a 0%, #070b1d 60%); }
.hub canvas[data-c3d] { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-art { display: block; position: relative; height: min(52vh, 460px); overflow: hidden; }
.hub-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.hub-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 29, 0) 45%, #070b1d 100%); }
.hub.has3d .hub-art { display: none; }
.hub-head { position: relative; padding: 0 18px; margin-top: -120px; z-index: 2; display: grid; gap: 6px; justify-items: start; }
.hub-h { margin: 0; font: 700 clamp(28px, 5vw, 46px)/1.05 var(--disp); letter-spacing: -.01em; color: var(--ivory); text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.hub-stats { margin: 0; color: var(--ivory-2); font-size: 14px; }
.hub-sig { margin-top: 6px; background: rgba(6, 11, 28, .7); }
.hub-dock { position: relative; z-index: 3; padding: 18px 14px 28px; display: grid; gap: 14px; }
.hub.has3d .hub-head { position: absolute; left: 36px; top: 30px; margin: 0; padding: 0; pointer-events: none; } .hub.has3d .hub-head .chip { pointer-events: auto; }
.hub.has3d { overflow: hidden; }
.hub.has3d .hub-dock { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(1180px, calc(100% - 48px)); padding: 16px; border-radius: 24px; background: rgba(8, 13, 34, .74); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.place { --c: #7fe9f0; position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 3px; min-height: 168px; padding: 16px 16px 14px; border-radius: 18px; text-decoration: none; color: var(--ivory); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, #0e1636) 0%, #0b1230 62%); border: 1px solid color-mix(in srgb, var(--c) 34%, transparent); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.place::before { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); z-index: -1; transition: transform .4s var(--ease); }
.place:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); } .place:hover::before { transform: scale(1.25); }
.place.p-cabin { --c: #e2cb9a; } .place.p-lounge { --c: #7fe9f0; } .place.p-deck { --c: #b9a8ff; } .place.p-arcade { --c: #ff8ad5; }
.place.lead { background: linear-gradient(160deg, rgba(226, 203, 154, .26) 0%, #0f1533 70%); }
.place-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); color: var(--c); margin-bottom: 8px; }
.place-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.place-live { position: absolute; right: 16px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #5be3a6; box-shadow: 0 0 0 0 rgba(91, 227, 166, .6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(91, 227, 166, .55); } 70% { box-shadow: 0 0 0 10px rgba(91, 227, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 227, 166, 0); } }
.place-k { font: 500 10.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.place-big { font: 700 24px/1.15 var(--disp); color: var(--ivory); letter-spacing: -.01em; }
.place-sub { font-size: 13px; color: var(--grey); align-self: start; }
.place-cta { margin-top: 8px; font: 600 13px/1 var(--disp); color: var(--c); }
.place.sk { min-height: 168px; background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: sk 1.4s infinite linear; border-color: var(--line); }
@keyframes sk { to { background-position: -200% 0; } }
.hub-find { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 12px; align-items: center; }
.find-box { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 14px; background: rgba(4, 8, 22, .6); border: 1px solid var(--line-2); }
.find-box:focus-within { border-color: var(--teal-2); }
.find-box svg { width: 18px; height: 18px; fill: none; stroke: var(--grey); stroke-width: 1.8; flex: none; }
.find-box input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ivory); font: 400 15px var(--sans); outline: none; }
.find-box input::-webkit-search-cancel-button { display: none; }
.deck-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; } .deck-chips::-webkit-scrollbar { display: none; }
.deck-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(4, 8, 22, .45); color: var(--ivory); font: 600 13px/1 var(--disp); overflow: hidden; }
.deck-chip:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .05); }
.deck-chip i { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.deck-chip i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--f); background: var(--teal); border-radius: 2px; }
.deck-chip em { font: 600 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: #17140f; background: var(--gold-2); padding: 3px 5px; border-radius: 5px; }
.deck-chip.mine { border-color: rgba(226, 203, 154, .6); } .deck-chip.bay7 { border-color: rgba(200, 101, 92, .55); color: #f0b0a8; } .deck-chip.bay7 i::after { background: #c8655c; }
.hub-new .quick-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 1100px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-find { grid-template-columns: 1fr; } .hub.has3d .hub-dock { bottom: 14px; } }
@media (max-width: 760px) {
  .places { gap: 10px; } .place { min-height: 150px; padding: 14px 13px 12px; border-radius: 16px; } .place.sk { min-height: 150px; } .place-big { font-size: 20px; } .place-sub { font-size: 12.5px; }
  .hub-head { margin-top: -96px; } .hub-new .quick-row { grid-template-columns: 1fr; } .hub-dock { padding-bottom: 40px; } }
/* section: the corridor fills the screen; the door list is a drawer */
.ship.v2 .secview { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
.ship.v2 .cabin { border: 0 !important; }
.sec-tools { position: absolute; top: 54px; left: 12px; display: flex; gap: 6px; z-index: 4; }
.sec-tools .btn { background: rgba(6, 11, 28, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-doors svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ship.v2 .seatpane { position: absolute; left: 12px; top: 12px; bottom: 12px; width: min(400px, calc(100% - 24px)); z-index: 15; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(9, 15, 38, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 18px 16px 24px;
  transform: translateX(calc(-100% - 24px)); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.ship.v2 .secview.doors-open .seatpane { transform: none; opacity: 1; pointer-events: auto; }
.pane-x { position: absolute; right: 12px; top: 12px; z-index: 2; }
.ship.v2 .seatpane [data-seathead] { padding-right: 44px; }
@media (max-width: 760px) {
  .ship.v2 .seatpane { position: fixed; left: 0; right: 0; top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); width: 100%; height: 72dvh; border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .sec-tools { top: auto; bottom: 54px; left: 50%; transform: translateX(-50%); } .sec-tools .btn-doors { padding: 0 16px; } }
/* live lounge pill in the top bar */
.lpill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 11, 28, .55); color: var(--ivory); font: 600 12.5px/1 var(--disp); text-decoration: none; margin-right: 8px; white-space: nowrap; }
.lpill[hidden] { display: none; }
.lpill i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-2); } .lpill.busy i { background: #5be3a6; animation: livepulse 2s infinite; }
.lpill .lpill-l { color: var(--grey); font-weight: 500; } .lpill:hover { border-color: rgba(127, 233, 240, .5); }
@media (max-width: 760px) { .lpill { height: 30px; padding: 0 10px; margin-right: 6px; } .lpill .lpill-l { color: var(--ivory); } .lpill:not(.busy) [data-lpn] { display: none; } }
/* travel moment: corridor glide → lift doors */
.travel { position: fixed; inset: 0; z-index: 9999; overflow: hidden; background: transparent; }
.travel.scene { background: #070b1d; } .travel canvas { opacity: 0; } .travel.three .t3d, .travel.two .t2d { opacity: 1; }
.travel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.travel .lift { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #0d1534, #18224a 60%, #0f1838); transition: transform .32s cubic-bezier(.6, 0, .3, 1); z-index: 2; }
.travel .lift.l { left: 0; transform: translateX(-101%); border-right: 2px solid #c8aa6e; box-shadow: inset -40px 0 60px rgba(0, 0, 0, .35); }
.travel .lift.r { right: 0; transform: translateX(101%); border-left: 2px solid #c8aa6e; box-shadow: inset 40px 0 60px rgba(0, 0, 0, .35); }
.travel.closing .lift { transform: none; }
.travel.opening .lift { transition-duration: .55s; } .travel.opening .lift.l { transform: translateX(-101%); } .travel.opening .lift.r { transform: translateX(101%); }
.travel.opening canvas { display: none; }
.travel-sign { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 4px; padding: 14px 26px; border-radius: 16px; background: rgba(6, 10, 26, .82); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 25%, transparent); text-align: center; animation: signin .5s var(--ease) both; }
.travel-sign span { font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--grey); }
.travel-sign b { font: 700 clamp(20px, 3.4vw, 30px)/1.1 var(--disp); color: var(--ivory); } .travel-sign em { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--c); }
.travel.opening .travel-sign { opacity: 0; transition: opacity .2s; }
@keyframes signin { from { opacity: 0; transform: translate(-50%, -12px); } }
body.travelling { overflow: hidden; }
.top .help-btn { flex: none; } .travel-sign em { white-space: nowrap; } .travel-sign { max-width: calc(100% - 40px); }
/* thumb joystick (phones + tablets): a soft ring bottom-left; it jumps under your thumb */
.stick-zone { position: absolute; left: 0; bottom: 128px; width: 170px; height: 170px; z-index: 6; touch-action: none; -webkit-user-select: none; user-select: none; }
.stick-zone[hidden] { display: none; }
.stick-base { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid rgba(255, 255, 255, .78); background: rgba(140, 150, 180, .26); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: .62; transition: opacity .2s; box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.stick-zone:not(.on) .stick-base { opacity: .28; box-shadow: none; background: rgba(140, 150, 180, .12); }
.stick-zone.on .stick-base { opacity: 1; transition: none; }
.stick-knob { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .22); transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.stick-zone.on .stick-knob { background: rgba(127, 233, 240, .35); border-color: #fff; }
.stick-base i { position: absolute; width: 0; height: 0; border: 4px solid transparent; opacity: .7; }
.stick-n { left: 50%; top: 5px; margin-left: -4px; border-bottom-color: #fff !important; border-top-width: 0 !important; }
.stick-s { left: 50%; bottom: 5px; margin-left: -4px; border-top-color: #fff !important; border-bottom-width: 0 !important; }
.stick-w { top: 50%; left: 5px; margin-top: -4px; border-right-color: #fff !important; border-left-width: 0 !important; }
.stick-e { top: 50%; right: 5px; margin-top: -4px; border-left-color: #fff !important; border-right-width: 0 !important; }
@media (orientation: landscape) and (max-height: 520px) { .stick-zone { bottom: 70px; width: 150px; height: 150px; } .stick-base { width: 76px; height: 76px; } .stick-knob { width: 32px; height: 32px; } }
@media (min-width: 761px) { .stick-zone { bottom: 120px; left: 12px; } .stick-base { width: 96px; height: 96px; } .stick-knob { width: 40px; height: 40px; } }
/* lounge on a sideways phone: chat is a column on the right, the emote bar stays compact on the left */
@media (orientation: landscape) and (max-height: 520px) {
  .lounge-chat { left: auto; right: 10px; top: 58px; bottom: 10px; height: auto; width: min(340px, 44vw); gap: 6px; padding: 10px; }
  .lounge-chat .lc-head .muted { display: none; } .lc-log { min-height: 40px; font-size: 13px; } .lc-form select { height: 32px; } .lc-form .input { height: 36px; }
  .lounge-emotes button { min-width: 44px; padding: 0 4px; } .lounge-emotes .emo { font-size: 18px; } }
/* small phones: the top bar has room for the brand, help and My cabin; the lounge pill shows only when people are there, as "● 3 here" */
@media (max-width: 430px) { .lpill { padding: 0 8px; margin-right: 4px; gap: 5px; } .lpill .lpill-l { display: none; } .lpill:not(.busy) { display: none; } .lpill.busy [data-lpn] { display: inline; } }

/* mission page: live numbers, the journey bar, who just boarded, what is open */
.mz-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5be3a6; margin-right: 8px; vertical-align: 1px; animation: livepulse 2s infinite; }
.mz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mz-stat { padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(127, 233, 240, .08), rgba(11, 18, 48, .9) 60%); display: grid; gap: 6px; }
.mz-stat:nth-child(2) { background: linear-gradient(160deg, rgba(226, 203, 154, .12), rgba(11, 18, 48, .9) 60%); } .mz-stat:nth-child(3) { background: linear-gradient(160deg, rgba(91, 227, 166, .1), rgba(11, 18, 48, .9) 60%); } .mz-stat:nth-child(4) { background: linear-gradient(160deg, rgba(255, 138, 213, .1), rgba(11, 18, 48, .9) 60%); }
.mz-stat b { font: 700 clamp(26px, 3.4vw, 40px)/1 var(--disp); color: var(--ivory); letter-spacing: -.01em; } .mz-stat span { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.mz-journey { margin: 34px 0 30px; padding: 26px 24px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(8, 13, 34, .7); }
.mz-track { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); margin: 0 30px 0 10px; }
.mz-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #4fc2b6, #7fe9f0); box-shadow: 0 0 18px rgba(127, 233, 240, .45); }
.mz-ship { position: absolute; top: -13px; width: 40px; height: 34px; transform: translateX(-50%); filter: drop-shadow(0 0 8px rgba(127, 233, 240, .7)); } .mz-ship { width: 56px; } .mz-ship svg { width: 56px; height: 22px; margin-top: 1px; }
.mz-mark { position: absolute; top: 16px; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; text-align: center; white-space: nowrap; }
.mz-mark::before { content: ''; position: absolute; top: -20px; width: 12px; height: 12px; border-radius: 50%; background: #0b1230; border: 2px solid var(--line-3); }
.mz-mark.on::before { background: var(--teal); border-color: #7fe9f0; } .mz-mark b { font: 700 14px/1 var(--disp); color: var(--ivory); } .mz-mark em { font-style: normal; font-size: 12px; color: var(--grey); } .mz-mark.on em { color: var(--teal-2); }
.mz-mark:last-of-type { transform: translateX(-90%); }
.mz-two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; } .mz-two .panel { padding: 18px 18px 8px; border-radius: 18px; }
.mz-feed ul, .mz-open ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.mz-feed li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; animation: sk-in .5s var(--ease) both; }
.mz-feed li em { font-style: normal; font-size: 12px; color: var(--grey); } .mz-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--disp); color: #10142a; background: linear-gradient(135deg, #e2cb9a, #7fe9f0); }
.mz-open li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); } .mz-open li b { display: block; font: 600 15px/1.3 var(--disp); color: var(--ivory); } .mz-open li b a { color: inherit; text-decoration: none; } .mz-open li b a:hover { color: var(--teal-2); }
.mz-chip { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; text-align: center; border-radius: 999px; background: rgba(91, 227, 166, .14); color: #7ff0c0; border: 1px solid rgba(91, 227, 166, .35); }
.mz-open li.soon .mz-chip { background: rgba(255, 138, 213, .1); color: #ffb3e3; border-color: rgba(255, 138, 213, .35); }
@keyframes sk-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) { .mz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mz-two { grid-template-columns: 1fr; } .mz-mark em { display: none; } .mz-journey { padding: 26px 14px 14px; } }
.lc-line { margin: 4px 0 0; display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--teal-2); font: 500 13px/1 var(--mono); } .lc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(127,233,240,.25); border-top-color: #7fe9f0; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
/* a deck with no free seats left (Bay 7, 2026-11-22) */
.full-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 6px; background: #c83a3a; color: #fff; font: 700 13px/1.4 "IBM Plex Mono", monospace; letter-spacing: .12em; vertical-align: 2px; }
