/* Grand Theft Ale VI: 12 Pubs of Christmas
   Visual language follows the crew's poster: a collage of framed panels with black gutters,
   painted dusk skies, sodium-lamp gold, chunky white outlined lettering, black banner bars with pink rules. */
@font-face { font-family: 'Bungee'; src: url('../fonts/bungee-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; src: url('../fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; src: url('../fonts/barlow-condensed-latin-700-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; font-weight: 400; src: url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; font-weight: 500; src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; font-weight: 700; src: url('../fonts/dm-sans-latin-700-normal.woff2') format('woff2'); font-display: swap; }

:root {
  --gutter: #06030c; --out: #0a0418; --night: #150b33; --indigo: #1d1045; --dusk: #2c1763; --plum: #4a2590;
  --magenta: #c43a9d; --pink: #ff2d95; --gold: #ffc857; --snow: #fff; --mute: #dccdf2; --dim: #a593c4;
  --purple: #7a3cff; --orange: #ff8a5b; --teal: #2ad4c4; --navy: #0b0f2a; --cream: #fff4e6; --pinkglow: 0 0 0 1px rgba(255, 45, 149, .35), 0 0 14px rgba(255, 45, 149, .35);
  --red: #e3262d; --pine: #1e7d3e; --line: rgba(255, 255, 255, .13);
  --display: 'Bungee', 'Archivo Black', Impact, sans-serif;
  --label: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --stroke: -2px -2px 0 var(--out), 2px -2px 0 var(--out), -2px 2px 0 var(--out), 2px 2px 0 var(--out), 0 -2px 0 var(--out), 0 2px 0 var(--out), -2px 0 0 var(--out), 2px 0 0 var(--out);
  --paint: linear-gradient(172deg, #331b70 0%, #21124d 52%, #150b33 100%);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: #000; color: var(--snow); font: 400 16px/1.45 var(--body); overflow: hidden; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; border: 0; }
ol, ul { list-style: none; }
img { display: block; }
[hidden] { display: none !important; }

#app { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--gutter); display: flex; flex-direction: column; overflow: hidden; }
.boot { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; background: #000; }
.boot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.boot .banner { position: relative; padding-bottom: calc(14px + var(--sab)); }
.fatal { margin: auto; padding: 32px; text-align: center; color: var(--mute); display: grid; gap: 14px; }

/* ---- Lettering ---- */
.chunk, .h-display { font-family: var(--display); font-weight: 400; color: #fff; text-transform: uppercase; line-height: 1.04; letter-spacing: 0; text-shadow: var(--stroke), 0 5px 0 var(--out), 3px 7px 0 rgba(0, 0, 0, .45); }
.h-display { display: block; font-size: 25px; transform: rotate(-1.5deg); transform-origin: 0 50%; margin: 2px 0 10px; }
.h-sub { font: italic 800 22px/1.1 var(--label); text-transform: uppercase; letter-spacing: .04em; margin: 26px 0 8px; color: var(--gold); }
.kicker { font: italic 800 15px/1.1 var(--label); letter-spacing: .07em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.banner { display: flex; align-items: center; gap: 10px; background: #000; color: #fff; font: italic 800 17px/1 var(--label); letter-spacing: .07em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap; }
.banner::before, .banner::after { content: ''; flex: 1; height: 2px; background: var(--pink); min-width: 12px; }
.muted { color: var(--mute); } .dim { color: var(--dim); } .small { font-size: 13px; } .center { text-align: center; }

/* ---- Panels: framed art tiles with black gutters ---- */
.tile, .cut, .panel, .pad { position: relative; background: var(--paint); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); }
.pad, .panel { padding: 16px 12px 14px; overflow: hidden; }
.pad { display: grid; gap: 8px; }
.pad::after, .panel.cut::after { content: ''; position: absolute; right: -44px; top: -44px; width: 170px; height: 170px; background: radial-gradient(circle, rgba(255, 192, 77, .36), rgba(255, 192, 77, 0) 66%); pointer-events: none; }
.pad > *, .panel > * { position: relative; z-index: 1; }
.panel > .btn { margin-top: 12px; } .panel > .muted { margin-top: 6px; }

/* ---- Buttons + fields ---- */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px 16px; border: 2px solid #000; font: italic 800 21px/1 var(--label); text-transform: uppercase; letter-spacing: .05em; text-align: center; text-decoration: none; color: #fff; }
.btn-go { background: linear-gradient(180deg, #ff6fb7, #ff2d95 52%, #c8127a); border-radius: 8px; border-color: #ffd1e8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 0 #000, 0 0 18px rgba(255, 45, 149, .45); text-shadow: 0 2px 0 rgba(10, 4, 24, .55); }
.btn-go:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 1px 0 #000; }
.btn-ghost { background: var(--navy); border: 2px solid #f3e6ff; border-radius: 8px; box-shadow: 0 0 10px rgba(255, 45, 149, .3); font-size: 18px; }
.btn-ghost:active { background: #2a0f25; }
.btn-sm { width: auto; min-height: 44px; font-size: 17px; padding: 6px 14px; }
.btn-xl { min-height: 74px; font: 400 24px/1 var(--display); letter-spacing: 0; text-shadow: var(--stroke), 0 4px 0 var(--out); }
.btn-link { min-height: 44px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; padding: 0 4px; }
.btn-link.bad, .note.bad { color: #ff9a9a; }
.row { display: flex; gap: 6px; margin-top: 12px; } .row > * { flex: 1; min-width: 0; }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.inline { display: flex; gap: 6px; } .inline input { flex: 1; min-width: 0; }
.field { display: block; margin-top: 14px; }
.field > span, .field > legend { display: block; font: italic 800 15px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
input:not([type=file]) { width: 100%; min-height: 50px; padding: 10px 12px; background: #000; border: 2px solid #3d2380; border-radius: 0; font-size: 16px; color: var(--snow); color-scheme: dark; }
input::placeholder { color: var(--dim); }
input:focus { outline: none; border-color: var(--pink); }
input[type=file] { width: 100%; min-height: 44px; color: var(--mute); }
.file-btn { position: relative; overflow: hidden; cursor: pointer; } .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.note { margin-top: 12px; padding: 10px 12px; background: #000; border-left: 4px solid var(--gold); font-size: 14px; }
.note.bad { border-color: var(--red); }
.empty { padding: 20px 4px; color: var(--mute); }
.chip { display: inline-block; padding: 3px 8px; font: italic 800 14px/1.2 var(--label); letter-spacing: .04em; text-transform: uppercase; background: #000; white-space: nowrap; }
.chip.good { color: #7ff0a8; box-shadow: inset 0 0 0 1px #1e7d3e; } .chip.bad { color: #ff9a9a; box-shadow: inset 0 0 0 1px var(--red); }
.quote { margin-top: 10px; padding-left: 12px; border-left: 4px solid var(--pink); font-style: italic; }
.quote small { display: block; font-style: normal; color: var(--dim); }

/* ---- Shell ---- */
.top { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 4px) 6px 4px 10px; background: #000; flex: none; }
.top-logo { width: 44px; height: 44px; flex: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.top-logo svg { width: 100%; height: 100%; pointer-events: none; }
.top-title { flex: 1; min-width: 0; line-height: 1.1; }
.top-title b { display: block; font: 400 15px/1.15 var(--display); white-space: nowrap; }
.top-title small { font: italic 800 14px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.top-gear { width: 48px; height: 48px; display: grid; place-items: center; color: var(--snow); }
.tline { height: 6px; flex: none; background: #000; border-top: 2px solid var(--pink); border-bottom: 1px solid var(--pink); display: flex; }
.tline i { flex: 1; }
#view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 6px 6px 34px; background: var(--gutter); }
#view > * + * { margin-top: 6px; }
#view.has-mini { padding-bottom: 200px; }
.tabs { display: flex; flex: none; background: #000; border-top: 2px solid var(--pink); padding-bottom: var(--sab); position: relative; }
.tabs::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--pink); opacity: .7; }
.tabs button { flex: 1; min-height: 60px; display: grid; place-items: center; align-content: center; gap: 1px; color: #fff; font: italic 800 14px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; opacity: .62; }
.tabs button.on { opacity: 1; color: var(--pink); }
.tabs button.on span { color: #fff; }

/* ---- Lights, snow ---- */
.hero-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lights { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-around; border-top: 2px solid #05010a; z-index: 2; pointer-events: none; }
.lights i { width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; background: var(--b); box-shadow: 0 0 10px 1px var(--b); margin-top: 2px; }
.lights i:nth-child(even) { margin-top: 7px; }
.tw { animation: tw 2.4s ease-in-out infinite; } .tw1 { animation-delay: -.8s; } .tw2 { animation-delay: -1.6s; }
@keyframes tw { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.scene { display: block; width: 100%; height: 100%; }

/* ---- Briefing ---- */
.hero { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.hero-poster { height: min(96vw, 440px); overflow: hidden; background: #000; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-poster .banner { position: absolute; left: 0; right: 0; bottom: 0; }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-height: 84px; }
.count div { background: var(--paint); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); text-align: center; padding: 12px 0 8px; }
.count b { display: block; font: 400 34px/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: var(--stroke), 0 5px 0 var(--out); }
.count span { display: block; margin-top: 7px; font: italic 800 14px/1 var(--label); letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.count .count-go { grid-column: 1 / -1; font: 400 30px/1.6 var(--display); text-transform: uppercase; color: var(--gold); }
.hero-when { padding: 12px; } .hero-when b { color: var(--gold); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.figures > * { background: var(--paint); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); padding: 14px 4px 10px; text-align: center; color: var(--snow); min-height: 44px; }
.figures b { display: block; font: 400 28px/1 var(--display); text-shadow: var(--stroke), 0 4px 0 var(--out); } .figures b i { font-style: normal; font-size: 15px; color: var(--mute); }
.figures span { display: block; margin-top: 7px; font: italic 800 13.5px/1.1 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.figures.tight { margin: 14px 0; } .figures.tight b { font-size: 20px; }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; min-height: 54px; background: linear-gradient(180deg, #25924a, #17602f); color: #fff; text-align: left; }
.nudge b { font: italic 800 19px/1.1 var(--label); letter-spacing: .04em; text-transform: uppercase; }
.nudge span { font: italic 800 16px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; background: #000; color: #fff; padding: 9px 10px; flex: none; box-shadow: inset 0 0 0 1px var(--gold); }

/* ---- Route builder ---- */
.rb { margin-top: 12px; display: grid; gap: 4px; }
.rb-item { display: flex; align-items: center; gap: 6px; background: #000; box-shadow: inset 0 0 0 1px #3d2380; min-height: 58px; padding: 4px 0 4px 2px; user-select: none; -webkit-user-select: none; }
.rb-ghost { opacity: .35; }
.rb-grip { width: 32px; height: 50px; display: grid; place-items: center; color: var(--dim); font-size: 20px; cursor: grab; touch-action: none; flex: none; }
.rb-arrows { display: grid; flex: none; } .rb-arrows button { width: 34px; height: 25px; font-size: 11px; color: var(--mute); }
.rb-n, .sc-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; color: var(--out); font: 400 13px/1 var(--display); border-radius: 50%; border: 3px solid var(--out); box-shadow: 0 0 0 1.5px #fff; }
.rb-main, .sc-main { flex: 1; min-width: 0; line-height: 1.2; }
.rb-main b, .sc-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 800 19px/1.1 var(--label); letter-spacing: .03em; text-transform: uppercase; }
.rb-main small, .sc-main small { color: var(--mute); font-size: 12.5px; }
.stepper { display: flex; align-items: center; flex: none; }
.stepper button { width: 32px; height: 46px; font-size: 20px; font-weight: 700; color: var(--pink); }
.stepper b { width: 30px; text-align: center; font: 400 14px/1 var(--display); } .stepper b small { display: block; margin-top: 3px; font: 700 9px/1.2 var(--body); color: var(--dim); }
.rb-x { width: 34px; height: 46px; color: var(--dim); flex: none; }

/* ---- Schedule ---- */
.sched { margin-top: 12px; }
.sched li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.sched li.done .sc-n { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); } .sched li.done .sc-main { opacity: .72; }
.sched li.cur .sc-n { background: var(--pink); color: #fff; box-shadow: 0 0 0 1.5px var(--pink), 0 0 0 6px rgba(255, 98, 171, .3); }
.sched li.cur b { color: var(--pink); }
.sched .sc-main b { white-space: normal; }
.sc-t { font: 400 13px/1 var(--display); flex: none; }

/* ---- Crawl: status + mission ---- */
.status { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; overflow: hidden; border: 2px solid #000; }
.status b { font: 400 21px/1 var(--display); text-transform: uppercase; text-shadow: var(--stroke), 0 4px 0 var(--out); }
.status span { font: italic 800 16px/1.1 var(--label); letter-spacing: .04em; text-transform: uppercase; text-align: right; }
.status.ok { background: linear-gradient(180deg, #25924a, #17602f); } .status.wait { background: var(--paint); }
.status.wanted { display: block; padding: 0; background: #05020b; }
.cop { position: absolute; inset: 0; }
.cop::before, .cop::after { content: ''; position: absolute; top: 0; bottom: 0; width: 50%; }
.cop::before { left: 0; background: linear-gradient(90deg, #ff1a2e, rgba(255, 26, 46, 0)); animation: cop .7s steps(1) infinite; }
.cop::after { right: 0; background: linear-gradient(270deg, #1e5bff, rgba(30, 91, 255, 0)); animation: cop .7s steps(1) -.35s infinite; }
@keyframes cop { 0%, 100% { opacity: 1; } 50% { opacity: .12; } }
.wanted-in { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 12px 12px 13px; }
.wanted-in b { font-size: 30px; } .wanted-in > span:last-child { grid-column: 1 / -1; text-align: left; margin-top: 6px; font-size: 18px; text-shadow: 0 2px 0 #000; }
.status .stars, .stars { font-size: 26px; line-height: 1; letter-spacing: 1px; color: rgba(255, 255, 255, .28); justify-self: end; font-style: normal; }
.stars .on { color: var(--gold); text-shadow: var(--stroke), 0 0 12px rgba(255, 192, 77, .9); }
body.heat .tline { animation: heat .7s steps(1) infinite; }
@keyframes heat { 0%, 100% { border-color: #ff1a2e; } 50% { border-color: #1e5bff; } }

.mission { padding: 16px 12px 14px; overflow: hidden; }
.mission > * { position: relative; }
.mission > .mission-art { position: absolute; inset: 0 0 auto 0; height: 190px; opacity: .55; -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent); pointer-events: none; }
.mission-no { display: inline-block; background: #000; padding: 5px 9px; box-shadow: inset 0 0 0 1px var(--pink); font: italic 800 19px/1 var(--label); letter-spacing: .07em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.sign { margin: 0 0 10px; }
.sign span { display: inline-block; max-width: 100%; background: #170d08; color: var(--gold); border: 2px solid #000; box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px #170d08, inset 0 0 0 7px rgba(255, 192, 77, .7), 3px 5px 0 rgba(0, 0, 0, .6); border-radius: 18px; padding: 13px 20px 12px; font: 700 23px/1.08 Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.timer { margin: 14px 0 14px; }
.timer b { display: block; font: 400 60px/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: var(--stroke), 0 6px 0 var(--out); }
.timer span { display: block; margin-top: 8px; color: var(--mute); font-weight: 500; }
.timer.over b { color: #ff6b6b; } .timer.over span { color: #ffb0a8; }
.mission-next { margin-top: 14px; color: var(--mute); }

/* ---- Minimap ---- */
#hud { position: absolute; left: 0; right: 0; bottom: calc(62px + var(--sab)); z-index: 20; display: flex; align-items: flex-end; gap: 16px; padding: 34px 10px 20px 14px; background: linear-gradient(180deg, rgba(6, 3, 12, 0), rgba(6, 3, 12, .94) 48%); pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud-act { flex: 1; min-width: 0; padding-bottom: 6px; } #hud-act .btn { min-height: 72px; font-size: 19px; line-height: 1.15; padding: 8px; }
#minimap { position: relative; flex: none; width: 136px; height: 136px; border-radius: 50%; box-shadow: 0 0 0 4px #000, 0 0 0 6px var(--pink), 0 8px 18px 6px rgba(0, 0, 0, .7); background: #22114f; }
.mm-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: block; }
.mm-map { position: absolute; display: block; } .mm-map .basemap { width: 100%; height: 100%; display: block; }
.mm-dot, .mm-next, .mm-me { position: absolute; transform: translate(-50%, -50%); font-style: normal; }
.mm-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--out); box-shadow: 0 0 0 1px #fff; }
.mm-next { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; border: 3px solid var(--out); box-shadow: 0 0 0 1.5px #fff; font: 400 11px/1 var(--display); animation: pulse 1.6s ease-out infinite; }
.mm-me { width: 0; height: 0; border: 8px solid transparent; border-bottom: 16px solid #fff; border-top: 0; filter: drop-shadow(0 0 2px #000); }
.mm-n { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; font: italic 800 14px/22px var(--label); text-align: center; box-shadow: 0 0 0 1.5px var(--pink); }
.mm-cap { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #000; color: #fff; padding: 3px 8px; font: italic 800 13px/1.2 var(--label); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 0 0 1px var(--pink); }
@keyframes pulse { 0% { box-shadow: 0 0 0 1.5px #fff, 0 0 0 2px rgba(255, 98, 171, .8); } 100% { box-shadow: 0 0 0 1.5px #fff, 0 0 0 14px rgba(255, 98, 171, 0); } }

/* ---- Done ---- */
.passed { min-height: 330px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.passed-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.passed .hero-in { position: relative; padding: 0 12px 14px; }
.passed-t { font-size: 40px; color: var(--gold); transform: rotate(-3deg); transform-origin: 0 100%; }
.passed-r { margin-top: 12px; display: inline-block; background: #000; padding: 5px 10px; font: italic 800 19px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; }
.passed .banner { position: relative; }
.awards { margin: 10px 0; }
.awards li { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-top: 1px solid var(--line); align-items: end; }
.awards span { grid-column: 1 / -1; font: italic 800 15px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--pink); } .awards b { font: 400 17px/1.3 var(--display); text-transform: uppercase; } .awards i { font: italic 800 17px/1.2 var(--label); color: var(--gold); text-transform: uppercase; }

/* ---- Pubs ---- */
.pubs { display: grid; gap: 6px; }
.pub { overflow: hidden; }
.pub-head { display: flex; gap: 10px; align-items: stretch; width: 100%; text-align: left; color: var(--snow); }
.pub-art { position: relative; width: 84px; flex: none; border-right: 2px solid #000; overflow: hidden; min-height: 84px; }
.pub-art .scene { position: absolute; inset: 0; }
.pub-art i { position: absolute; left: 6px; top: 4px; font: 400 24px/1 var(--display); font-style: normal; text-shadow: var(--stroke), 0 4px 0 var(--out); }
.pub-main { flex: 1; min-width: 0; line-height: 1.25; padding: 10px 0 6px; }
.pub-main b { display: block; font: italic 800 22px/1.05 var(--label); text-transform: uppercase; letter-spacing: .03em; }
.pub-main small { display: block; color: var(--mute); font-size: 13px; } .pub-main small.dim { color: var(--dim); font-size: 12px; }
.pub-score { flex: none; text-align: right; padding: 10px 10px 0 0; } .pub-score b { display: block; font: 400 22px/1 var(--display); color: var(--gold); text-shadow: var(--stroke), 0 3px 0 var(--out); } .pub-score small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--dim); }
.pub-acts { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px 6px; background: #000; border-top: 2px solid #000; }
.mugs { display: flex; }
.mugs button { width: 40px; height: 46px; font-size: 22px; filter: grayscale(1) brightness(.6); opacity: .55; }
.mugs button.on { filter: none; opacity: 1; }
.pub-acts .want { min-height: 44px; padding: 0 10px; font: italic 800 16px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(255, 98, 171, .7); color: #fff; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pub-acts .want i { font-style: normal; background: rgba(255, 255, 255, .16); min-width: 22px; padding: 2px 6px; text-align: center; }
.pub-acts .want.on { background: linear-gradient(180deg, #25924a, #17602f); box-shadow: inset 0 0 0 1px #7ff0a8; }
.sheet .pub-acts { margin: 0 -4px; border: 2px solid #000; }

/* ---- Stats ---- */
.counters { display: grid; gap: 6px; }
.counter { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; padding: 12px 12px 16px; row-gap: 10px; }
.counter-l { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.counter-l span { font: italic 800 22px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); } .counter-l small { color: var(--mute); font-size: 12.5px; text-align: right; }
.counter-v { text-align: center; font: 400 56px/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: var(--stroke), 0 6px 0 var(--out); }
.counter-v.bump { animation: bump .22s ease-out; } @keyframes bump { 0% { transform: scale(1.25); color: var(--gold); } 100% { transform: none; } }
.cbtn { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #000; font: 400 34px/1 var(--display); display: grid; place-items: center; color: #fff; }
.cbtn.plus { background: linear-gradient(180deg, #ff86c0, #e53c93 55%, #b3247a); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), 0 4px 0 #000; text-shadow: var(--stroke); }
.cbtn.minus { background: #000; box-shadow: inset 0 0 0 1.5px rgba(255, 98, 171, .7); }
.cbtn:active { transform: translateY(3px); }
.counter.steps { grid-template-columns: minmax(0, 1fr); } .counter.steps .counter-v { font-size: 44px; text-align: left; } .counter.steps .row { margin-top: 0; } .counter.steps .btn { font-size: 15.5px; padding: 8px 6px; }
.seg { display: flex; margin-top: 12px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 98, 171, .7); }
.seg button { flex: 1; min-height: 44px; font: italic 800 18px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.seg button.on { background: var(--pink); color: #000; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lb li.me .lb-name { color: var(--gold); }
.lb-n { width: 24px; font: 400 16px/1 var(--display); color: var(--dim); text-align: center; } .lb li:first-child .lb-n { color: var(--gold); }
.lb-name { flex: 1; min-width: 0; font: italic 800 19px/1.1 var(--label); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb li > b { font: 400 18px/1 var(--display); font-variant-numeric: tabular-nums; }

/* ---- Portraits, crew, player card ---- */
.fx { filter: url(#poster-fx) contrast(1.2) saturate(1.15); }
.av { position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: var(--c); border: 2px solid var(--out); box-shadow: 0 0 0 1.5px #fff; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-e { font-size: calc(var(--s) * .52); line-height: 1; color: var(--out); font-family: var(--display), 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.av-h { position: absolute; top: calc(var(--s) * -.32); right: calc(var(--s) * -.1); font-size: calc(var(--s) * .5); line-height: 1; transform: rotate(14deg); }
.portrait { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 78% 14%, rgba(255, 192, 77, .6), rgba(255, 192, 77, 0) 42%), linear-gradient(175deg, #2a1668 0%, color-mix(in srgb, var(--c) 62%, #5b2a9c) 62%, #ff9a6b 130%); }
.portrait::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: -8%; height: 26%; background: #f4eaff; border-radius: 50% 50% 0 0 / 60% 60% 0 0; box-shadow: 0 -8px 0 rgba(217, 198, 245, .5); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait.has-photo::before { inset: 0; height: auto; border-radius: 0; box-shadow: none; z-index: 1; background: linear-gradient(165deg, #4a25d0 0%, #ff62ab 62%, #ffc04d 100%); mix-blend-mode: soft-light; opacity: .8; }
.portrait.has-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(170deg, rgba(74, 37, 208, .55) 0%, rgba(255, 98, 171, .38) 60%, rgba(255, 192, 77, .3) 100%); mix-blend-mode: color; }
.portrait-e { position: relative; font-size: 76px; line-height: 1; filter: drop-shadow(0 5px 0 rgba(10, 4, 24, .55)); margin-top: -4%; }
.portrait-h { position: absolute; z-index: 2; top: 5%; right: 6%; font-size: 44px; line-height: 1; transform: rotate(14deg); filter: drop-shadow(0 3px 0 rgba(10, 4, 24, .6)); }
.portrait-e .portrait-h { top: -46%; right: -30%; font-size: .62em; filter: none; }
.plate b, .plate h2 { display: block; }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.crew-card { display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-align: left; }
.crew-card .plate { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px 8px 8px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .88) 46%); }
.crew-card .plate b { font-size: 15px; overflow-wrap: anywhere; } .crew-card .plate small { display: block; margin-top: 6px; font: italic 800 13.5px/1.1 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.crew-num { position: absolute; z-index: 3; left: 6px; top: 6px; background: #000; padding: 5px 7px 4px; box-shadow: inset 0 0 0 1px var(--gold); text-align: center; }
.crew-num b { display: block; font: 400 17px/1 var(--display); color: var(--gold); } .crew-num small { font: italic 800 11.5px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; }
.pcard { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.pcard-top, .creator-prev { display: flex; align-items: stretch; min-height: 180px; overflow: hidden; }
.pcard-top .portrait, .creator-prev .portrait { position: relative; inset: auto; width: 144px; flex: none; border-right: 2px solid #000; }
.pcard-top .plate, .creator-prev .plate { flex: 1; min-width: 0; padding: 14px 10px 12px 12px; align-self: center; }
.pcard h2, .creator-prev b { font-size: 21px; overflow-wrap: anywhere; margin-bottom: 10px; }
.creator-prev { margin: 12px 0 4px; } .creator-prev small { color: var(--mute); }
.pbars { padding: 12px; display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr); }
.pbar { display: grid; grid-template-columns: 62px 1fr 56px; align-items: center; gap: 8px; }
.pbar span { font: italic 800 15px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); } .pbar b { text-align: right; font: 400 13px/1 var(--display); }
.pbar-track { height: 14px; background: #000; box-shadow: inset 0 0 0 1px #3d2380; overflow: hidden; } .pbar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); min-width: 3px; border-right: 2px solid #000; }
.fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fit { display: block; color: var(--snow); text-decoration: none; min-width: 0; padding-bottom: 8px; }
.fit img, .fit-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid #000; } .fit-empty { display: grid; place-items: center; font-size: 34px; filter: grayscale(1); opacity: .3; }
.fit-slot { position: absolute; top: 0; left: 0; background: #000; font: italic 800 13px/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; color: var(--pink); }
.fit-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.25; padding: 6px 6px 0; min-height: 36px; }
.fit-price { display: block; padding: 2px 6px 0; font-size: 12px; font-weight: 700; color: var(--gold); }

/* ---- Creator ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 3px solid var(--out); } .sw.on { box-shadow: 0 0 0 3px #fff; }
.em { min-width: 46px; height: 46px; padding: 0 8px; font-size: 24px; background: #000; box-shadow: inset 0 0 0 1px #3d2380; } .em.on { background: var(--pink); box-shadow: inset 0 0 0 2px #fff; } .em[data-v=""] { font: italic 800 15px/1 var(--label); text-transform: uppercase; }
#cr-slots { display: grid; gap: 4px; margin: 10px 0 18px; }
.slot-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #000; box-shadow: inset 0 0 0 1px #3d2380; min-height: 64px; padding: 6px 12px 6px 6px; color: var(--snow); }
.slot-row img, .slot-ph { width: 52px; height: 52px; object-fit: cover; flex: none; } .slot-ph { display: grid; place-items: center; font-size: 26px; filter: grayscale(1); opacity: .4; }
.slot-row span:not(.slot-ph) { flex: 1; min-width: 0; } .slot-row b { display: block; font: italic 800 18px/1.1 var(--label); letter-spacing: .05em; text-transform: uppercase; } .slot-row small { display: block; color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-row i { font: italic 800 16px/1 var(--label); text-transform: uppercase; color: var(--pink); }
.scrape { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 0 10px 0 0; } .scrape img { width: 96px; height: 96px; object-fit: cover; flex: none; border-right: 2px solid #000; } .scrape small { display: block; color: var(--gold); font-weight: 700; margin-top: 4px; }
.slot-ed .btn-link { margin-top: 8px; }
.portrait-row { margin-top: 0; }

/* ---- Sheets, toast, chips ---- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .74); }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 90dvh; overflow-y: auto; background: var(--paint); border: 2px solid #000; border-top: 3px solid var(--pink); box-shadow: 0 -5px 0 #000, 0 -6px 0 var(--pink); padding: 22px 14px calc(26px + var(--sab)); animation: up .22s ease-out; }
.sheet-wrap.full .sheet { height: 100dvh; max-height: none; padding-top: calc(22px + var(--sat)); border: 0; box-shadow: none; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-x { position: absolute; top: 6px; right: 4px; width: 46px; height: 46px; z-index: 5; color: #fff; font-size: 18px; }
.sheet-wrap.full .sheet-x { top: calc(6px + var(--sat)); }
.sheet .h-display { padding-right: 40px; }
.geo { margin-top: 12px; } .geo button { display: block; width: 100%; text-align: left; min-height: 56px; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--snow); } .geo b { font: italic 800 19px/1.1 var(--label); letter-spacing: .03em; text-transform: uppercase; } .geo small { display: block; color: var(--mute); font-size: 13px; }
#geo-results { margin-top: 12px; }
.roster li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .roster li > span:not(.av) { flex: 1; min-width: 0; } .roster b, .roster small { display: block; } .roster small { color: var(--dim); font-size: 13px; } .roster i { font-style: normal; font-size: 13px; padding-right: 6px; }
.steps { list-style: decimal; padding-left: 22px; display: grid; gap: 8px; margin: 14px 0; }
#toast { position: fixed; left: 50%; bottom: calc(84px + var(--sab)); z-index: 120; transform: translate(-50%, 16px); max-width: min(92vw, 440px); width: max-content; padding: 11px 16px; background: #000; color: #fff; border: 2px solid var(--pink); box-shadow: 0 4px 0 #000; font: italic 800 17px/1.2 var(--label); letter-spacing: .04em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { border-color: var(--red); }
#mock-chip { position: fixed; top: calc(var(--sat) + 2px); left: calc(50% + min(26vw, 110px)); transform: translateX(-50%); z-index: 130; background: var(--gold); color: #000; font: italic 800 11px/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; padding: 0 7px; pointer-events: none; }
.demo { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(68px + var(--sab)); z-index: 125; width: min(96vw, 464px); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: rgba(0, 0, 0, .92); border: 1px dashed var(--gold); font-size: 12.5px; }
.demo b { color: var(--gold); padding: 0 4px; } .demo button { min-height: 36px; padding: 0 9px; background: rgba(255, 255, 255, .14); font-weight: 700; }

/* ---- Map ---- */
#mapwrap { position: relative; flex: 1; min-height: 0; z-index: 0; isolation: isolate; }
#map { position: absolute; inset: 0; background: #22114f; overflow: hidden; }
#map-ui { position: absolute; inset: 6px; z-index: 500; pointer-events: none; }
.map-top { pointer-events: auto; padding: 10px 10px 10px 12px; }
.map-top b { display: block; font-size: 17px; margin-bottom: 8px; } .map-top span { display: block; color: var(--mute); font-size: 13px; }
.map-top .row { margin-top: 10px; }
.legend { position: absolute; left: 0; bottom: 20px; pointer-events: auto; padding: 8px 10px; display: grid; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 8px; font: italic 800 14px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; }
.legend .blip { position: static; transform: none; width: 18px; height: 18px; flex: none; border-width: 2px; animation: none; }
.legend .crew-key { background: conic-gradient(#ff62ab, #ffc04d, #1fd6c4, #b46bff, #ff62ab); }
.basemap { display: block; width: 100%; height: 100%; }
/* Street tiles tinted to the poster palette. Light tiles (OpenStreetMap) get a high-contrast duotone so roads read light on purple and water goes dark; dark tiles (CARTO with a key) just get the tint. */
.leaflet-tile-pane { filter: sepia(.85) hue-rotate(218deg) saturate(2.6) brightness(1.25) contrast(1.05); }
.tiles-light .leaflet-tile-pane { filter: grayscale(1) brightness(.58) contrast(6) sepia(.9) hue-rotate(222deg) saturate(3.4) brightness(.5) contrast(1.35); }
.route-glow { filter: drop-shadow(0 0 5px #ff62ab); }
.blip { display: grid; place-items: center; border-radius: 50%; padding: 0; font: 400 13px/1 var(--display); color: var(--out); background: #fff; border: 3px solid var(--out); box-shadow: 0 0 0 1.5px #fff, 0 3px 0 2px rgba(0, 0, 0, .55); }
.leaflet-marker-icon .blip { width: 100%; height: 100%; }
.blip.stop.visited { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), 0 3px 0 2px rgba(0, 0, 0, .55); }
.blip.stop.next { background: var(--pink); color: #fff; animation: pulse 1.6s ease-out infinite; }
.blip.pub { background: #7d5fd0; border-width: 2px; box-shadow: 0 0 0 1.5px #cbb8f5; } .blip.pub.want { background: var(--pink); box-shadow: 0 0 0 1.5px #fff; }
.blip.crew { background: none; border: 0; box-shadow: none; }
.blip.crew b { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 50%; font-size: 15px; border: 2px solid var(--out); box-shadow: 0 0 0 1.5px #fff, 0 3px 0 1px rgba(0, 0, 0, .55); font-family: 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.blip.crew b img { width: 100%; height: 100%; object-fit: cover; }
.blip.crew.me b { box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(255, 192, 77, .4); }
.map-fallback .blip { position: absolute; transform: translate(-50%, -50%); }
.map-fallback .blip.pub { width: 22px; height: 22px; } .map-fallback .blip.stop { width: 36px; height: 36px; z-index: 2; } .map-fallback .blip.crew { width: 32px; height: 32px; z-index: 3; }
.map-fallback button.blip::after { content: ''; position: absolute; inset: -9px; }
.fb-base { position: absolute; } .fb-route { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 4px #ff62ab); }
.leaflet-container { font-family: var(--body); background: #22114f; }
.leaflet-control-attribution { background: rgba(0, 0, 0, .8) !important; color: var(--dim) !important; font-size: 10px !important; } .leaflet-control-attribution a { color: var(--mute) !important; }
.leaflet-bar { border: 2px solid #000 !important; border-radius: 0 !important; }
.leaflet-bar a { background: #000 !important; color: #fff !important; border-color: var(--pink) !important; width: 40px !important; height: 40px !important; line-height: 40px !important; border-radius: 0 !important; }

/* ---- Register ---- */
.reg { position: relative; flex: 1; overflow-y: auto; background: #000; }
.reg-art { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; overflow: hidden; } .reg-art img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.34) blur(2px); transform: scale(1.04); }
.reg-in { position: relative; padding: calc(var(--sat) + 18px) 8px calc(var(--sab) + 30px); }
.reg-in .logo { display: block; width: min(58%, 240px); margin: 0 auto 10px; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .5)); }
.reg-form { padding: 18px 12px 16px; } .reg-form .btn { margin: 18px 0 12px; }

/* ---- Intro ---- */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden; transition: opacity .35s; user-select: none; -webkit-user-select: none; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-grid { z-index: 0; isolation: isolate; transition: opacity .5s .3s; position: absolute; inset: 0 0 calc(40px + var(--sab)) 0; padding: calc(var(--sat) + 22px) 6px 6px; display: grid; gap: 6px; grid-template-columns: 1fr 1fr; grid-template-rows: 30fr 26fr 22fr 22fr; grid-template-areas: 'a a' 'b c' 'd c' 'e e'; }
.ipanel { position: relative; overflow: hidden; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: transform .6s cubic-bezier(.2, 1.25, .3, 1), opacity .18s; }
.ip-a { grid-area: a; } .ip-b { grid-area: b; } .ip-c { grid-area: c; } .ip-d { grid-area: d; } .ip-e { grid-area: e; }
.from-top { transform: translateY(-120%) rotate(-4deg); } .from-left { transform: translateX(-130%) rotate(5deg); } .from-right { transform: translateX(130%) rotate(-5deg); } .from-bottom { transform: translateY(130%) rotate(3deg); }
.ipanel.in { opacity: 1; transform: none; }
.ipanel > svg, .ipanel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ipanel.in > svg, .ipanel.in > img { animation: kb 9s linear both; } @keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.2) translate(-2%, -2%); } }
.ipanel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 4, 24, 0) 40%, rgba(10, 4, 24, .7)); }
.ip-txt { position: absolute; left: 10px; right: 8px; bottom: 9px; z-index: 1; }
.ip-txt b { display: block; font-size: 23px; transform: rotate(-2deg); transform-origin: 0 100%; }
.ip-a .ip-txt b { font-size: clamp(30px, 9.4vw, 42px); } .ip-e .ip-txt b { font-size: clamp(38px, 12vw, 54px); }
.ip-txt small { display: inline-block; margin-top: 9px; background: #000; padding: 4px 8px; font: italic 800 14.5px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--pink); }
.intro-poster { position: absolute; inset: 0 0 calc(40px + var(--sab)) 0; background: #000 url('../img/poster-512.webp') center / cover; opacity: 0; transition: opacity .5s; pointer-events: none; overflow: hidden; }
.intro-poster::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(18px) brightness(.45); -webkit-backdrop-filter: blur(18px) brightness(.45); }
.intro-poster img { position: absolute; inset: calc(var(--sat) + 20px) 0 0 0; width: 100%; height: calc(100% - var(--sat) - 20px); object-fit: contain; transition: filter .6s; }
.show-poster .intro-grid { opacity: 0; }
.intro-poster { z-index: 1; } .intro-snow { z-index: 3; } .intro-black { z-index: 4; } .intro .lights { z-index: 5; } .intro-banner { z-index: 5; }
.show-poster .intro-poster { opacity: 1; } .show-poster .intro-poster img { animation: posterIn 3.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes posterIn { from { transform: scale(1.35) rotate(-3deg); } to { transform: none; } }
.at-lockup .intro-poster img { filter: brightness(.3) blur(3px); }
.intro-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-black { position: absolute; inset: 0; background: #000; display: grid; place-items: center; transition: opacity .6s; }
.intro-black.gone { opacity: 0; pointer-events: none; }
.intro-black p { font: italic 800 19px/1.3 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); text-align: center; padding: 0 30px; animation: fadeIn 1.2s .3s both; }
@keyframes fadeIn { from { opacity: 0; } }
.intro .lights { top: var(--sat); }
.intro-banner { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: calc(10px + var(--sab)); min-height: 40px; }
.intro-skip { position: absolute; right: 4px; top: calc(var(--sat) + 14px); z-index: 4; min-height: 44px; padding: 0 12px; font: italic 800 15px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #000; }
.intro-lockup { position: absolute; inset: 0 0 calc(40px + var(--sab)) 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: calc(var(--sat) + 26px) 18px 16px; }
.intro-lockup .logo { width: min(90%, 400px, 52vh); animation: lock .7s cubic-bezier(.2, 1.3, .3, 1) both; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .45)); }
@keyframes lock { from { transform: scale(1.6) rotate(-6deg); opacity: 0; } }
.intro-lockup .btn { max-width: 340px; animation: fadeIn .6s .7s both; }

/* ---- Desktop: keep the phone column ---- */
@media (min-width: 520px) {
  #app { box-shadow: 0 0 0 1px #2a1560, 0 30px 80px rgba(0, 0, 0, .6); }
  .intro { max-width: 480px; margin: 0 auto; }
  .ip-a .ip-txt b { font-size: 42px; } .ip-e .ip-txt b { font-size: 54px; }
  #mock-chip { left: calc(50% + 110px); }
}
@media (max-width: 374px) {
  .h-display { font-size: 22px; } .count b { font-size: 29px; } .timer b { font-size: 52px; } .mugs button { width: 36px; } .stepper button { width: 28px; } .rb-grip { width: 26px; }
  .cbtn { width: 64px; height: 64px; } .counter { grid-template-columns: 64px 1fr 64px; } .top-title b { font-size: 13px; } .pub-art { width: 70px; }
  .pcard-top .portrait, .creator-prev .portrait { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cop::before, .cop::after { opacity: .8; }
}
/* Single-column grids must not grow to fit nowrap text. */
.rb, .pubs, .counters, #cr-slots, .pad, .stack { grid-template-columns: minmax(0, 1fr); }

/* ================= v1.3: Tom's UI kit ================= */
.top-me { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.top-me.on .av { box-shadow: 0 0 0 2px var(--pink), 0 0 10px var(--pink); }
.top-logo .mark { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1.5px #000, 0 0 10px rgba(255, 45, 149, .5); pointer-events: none; }
.logo-img { display: grid; justify-items: center; gap: 0; }
.logo-img img { width: 100%; height: auto; }
.logo-img .logo-script { width: 82%; margin-top: -6%; }
.reg-in .logo-img { width: min(70%, 280px); }
.intro-lockup .logo-img { width: min(78%, 330px, 46vh); }

/* Kit cards: navy panels with a neon pink frame */
.kcard { position: relative; background: linear-gradient(180deg, #171a3d, var(--navy)); border: 2px solid var(--pink); border-radius: 10px; box-shadow: var(--pinkglow); color: var(--snow); text-align: left; }
.mtag { display: inline-block; align-self: start; justify-self: start; background: linear-gradient(90deg, #ff2d95, #c8127a); color: #fff; padding: 3px 8px 2px; border-radius: 4px; font: italic 800 14px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; }
.mtag.dim { background: #2a2350; color: var(--mute); } .mtag.gold { background: var(--gold); color: #1a0c00; }
.kt { font: 400 26px/1.05 var(--display); text-transform: uppercase; color: #fff; text-shadow: var(--stroke), 0 4px 0 var(--out); margin: 8px 0 10px; overflow-wrap: anywhere; }
.xp { display: inline-block; font: italic 800 17px/1 var(--label); letter-spacing: .04em; color: var(--gold); text-shadow: 0 2px 0 #000; white-space: nowrap; }
.mstate { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; background: #241d48; font: italic 800 13.5px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.mstate.gold { background: var(--gold); color: #1a0c00; } .mstate.pink { background: var(--pink); color: #fff; } .mstate.dim { color: var(--dim); }
.redact { display: grid; gap: 6px; width: 100%; margin: 6px 0 4px; } .redact i { display: block; height: 13px; background: repeating-linear-gradient(90deg, #000 0 14px, #12102a 14px 16px); border-radius: 2px; box-shadow: inset 0 0 0 1px #2e2655; }
.stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg); z-index: 2; padding: 4px 12px; border: 3px solid #ff4a5a; color: #ff4a5a; font: 400 22px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; background: rgba(0, 0, 0, .55); border-radius: 4px; white-space: nowrap; }

/* Briefing menu */
.kmenu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.kbtn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; background: var(--navy); border: 2px solid #f3e6ff; border-radius: 8px; box-shadow: 0 0 10px rgba(255, 45, 149, .28); color: #fff; font: italic 800 18px/1.05 var(--label); letter-spacing: .04em; text-transform: uppercase; text-align: left; text-decoration: none; min-width: 0; }
.kbtn span { min-width: 0; overflow-wrap: anywhere; } .kbtn svg { flex: none; }
.kbtn:active { transform: translateY(2px); }
.kbtn-go { grid-column: 1 / -1; min-height: 60px; font-size: 24px; background: linear-gradient(180deg, #ff6fb7, #ff2d95 52%, #c8127a); border-color: #ffd1e8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 0 #000, 0 0 18px rgba(255, 45, 149, .5); text-shadow: 0 2px 0 rgba(10, 4, 24, .5); }
.kbtn-sm { min-height: 44px; font-size: 16px; padding: 6px 10px; justify-content: center; }
.kbtn img { height: 26px; width: auto; }
.pad .kbtn { margin-top: 4px; }
.sealed { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 6px; padding: 12px; min-height: 64px; background: #000; border: 1px dashed #ff4a5a; border-radius: 8px; color: var(--mute); text-align: left; }
.sealed b { display: block; font: italic 800 19px/1.1 var(--label); letter-spacing: .04em; text-transform: uppercase; color: #fff; } .sealed small { display: block; font-size: 13px; margin-top: 3px; } .sealed svg { color: #ff4a5a; flex: none; }

/* Story progress */
.story { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; }
.story b { font: italic 800 18px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; }
.story em { font: italic 800 18px/1 var(--label); letter-spacing: .04em; text-transform: uppercase; font-style: italic; white-space: nowrap; }
.story small { grid-column: 1 / -1; color: var(--dim); font-size: 12.5px; margin-top: -2px; }
.story-track { display: block; height: 14px; background: #05061a; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #3a3466; overflow: hidden; }
.story-track i { display: block; height: 100%; min-width: 8px; border-radius: 8px; background: linear-gradient(90deg, #ff6fb7, #ff2d95); box-shadow: 0 0 10px var(--pink); }

/* Missions tab */
.mhero { height: 168px; overflow: hidden; background: #000; }
.mhero img { width: 100%; height: 100%; object-fit: cover; object-position: 0 40%; }
.mhero .banner { position: absolute; left: 0; right: 0; bottom: 0; }
.seg-k { margin-top: 0; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--pink); }
.seg-k button { font-size: 15.5px; padding: 0 4px; }
.pad-x { padding: 4px 4px 0; font-size: 14px; }
.preview-t { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; background: #1b1400; border: 1px dashed var(--gold); border-radius: 8px; color: var(--gold); font-weight: 700; font-size: 14px; text-align: left; }
.preview-t[aria-pressed="true"] { background: var(--gold); color: #1a0c00; }
.mlist, .qlist { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.mcard { display: flex; align-items: stretch; width: 100%; min-height: 108px; overflow: hidden; padding: 0; }
.mcard.cur { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255, 200, 87, .5), 0 0 18px rgba(255, 200, 87, .45); }
.mcard-art { position: relative; width: 112px; flex: none; border-right: 2px solid var(--pink); overflow: hidden; background: #000; }
.mcard-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcard-art .mcard-sign { inset: auto 4px 6px 4px; width: calc(100% - 8px); height: auto; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6)); }
.mcard-b { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: center; padding: 10px 10px 10px 12px; }
.mcard-b b { font: 400 18px/1.1 var(--display); text-transform: uppercase; text-shadow: var(--stroke), 0 3px 0 var(--out); overflow-wrap: anywhere; }
.mcard-b small { color: var(--mute); font-size: 13px; }
.mcard-f, .qmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.qmeta em { color: var(--dim); font-size: 12.5px; font-style: normal; }
.qcard { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; overflow: hidden; padding: 0; }
.qcard.done { border-color: var(--gold); }
.qart { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #000; border-bottom: 2px solid var(--pink); }
.qart img { width: 100%; height: 100%; object-fit: cover; }
.qart.big { aspect-ratio: 16 / 9; margin: -2px -2px 12px; border-radius: 8px 8px 0 0; }
.qart.classified img { filter: blur(9px) grayscale(.6) brightness(.45); transform: scale(1.15); }
.peek { position: absolute; right: 8px; top: 8px; background: var(--gold); color: #1a0c00; padding: 3px 8px; border-radius: 4px; font: italic 800 14px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 3px 0 #000; }
.qbody { display: grid; gap: 5px; padding: 10px 12px 12px; min-width: 0; }
.qbody b { font: 400 19px/1.1 var(--display); text-transform: uppercase; text-shadow: var(--stroke), 0 3px 0 var(--out); }
.qbody small { color: var(--mute); font-size: 14px; line-height: 1.35; }
.who { display: inline-flex; } .who .av + .av { margin-left: -8px; }
.sealed-card { border-style: dashed; border-color: #5a4a8a; box-shadow: none; }
.achs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 10px 12px; min-height: 92px; }
.ach.mine { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255, 200, 87, .4), 0 0 16px rgba(255, 200, 87, .4); }
.ach-ic { width: 68px; height: 68px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a2a7a, #120c30); box-shadow: 0 0 0 2px #000, 0 0 0 3.5px var(--gold); display: grid; place-items: center; overflow: hidden; color: var(--dim); }
.ach-ic img { width: 100%; height: 100%; object-fit: cover; }
.ach:not(.mine) .ach-ic img { filter: grayscale(.7) brightness(.75); }
.ach-b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ach-b b { font: 400 17px/1.1 var(--display); text-transform: uppercase; text-shadow: var(--stroke), 0 3px 0 var(--out); }
.ach-b small { color: var(--mute); font-size: 13.5px; }

/* Mission card with objectives (kit "MISSION 01" card) */
.kmission { display: grid; padding: 14px 12px 12px; }
.kmission .kt { font-size: 24px; }
.sign-img { margin: 10px 0 12px; } .sign-img img { max-width: min(100%, 300px); height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .6)); }
.mission .sign-img img { max-width: min(78%, 300px); }
.kart { margin: 0 0 10px; border-radius: 6px; overflow: hidden; border: 2px solid #000; aspect-ratio: 16 / 9; } .kart img { width: 100%; height: 100%; object-fit: cover; }
.objs { display: grid; gap: 4px; margin: 6px 0 4px; grid-template-columns: minmax(0, 1fr); }
.obj { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 4px; color: #fff; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.obj:disabled { opacity: 1; cursor: default; }
.obj-box { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 2.5px solid #f3e6ff; border-radius: 5px; background: #05061a; color: #1a0c00; }
.obj.on .obj-box { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 200, 87, .6); }
.obj.red .obj-box { border-style: dashed; border-color: #5a4a8a; color: var(--dim); }
.obj-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.25; }
.obj-t small { display: block; color: var(--pink); font: italic 800 12.5px/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.obj.on .obj-t { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(255, 200, 87, .7); }
.obj-xp { flex: none; text-align: right; font: italic 800 15px/1 var(--label); color: var(--gold); } .obj-xp small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 3px; }
.reward { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 4px; font: italic 800 16px/1.1 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.reward span { font-size: 22px; color: var(--gold); text-shadow: 0 2px 0 #000; white-space: nowrap; }
.who-row { display: flex; align-items: center; gap: 2px; margin-top: 10px; color: var(--mute); font-size: 13px; flex-wrap: wrap; } .who-row span { margin-left: 8px; }
.clist li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); } .clist li > span { flex: 1; min-width: 0; } .clist small { display: block; color: var(--dim); font-size: 12px; }
.sheet-card { padding: 14px 12px 14px; margin-top: 4px; }
.sheet .sheet-card .kt { padding-right: 36px; }
.sealed-sheet { border-style: dashed; border-color: #5a4a8a; }
.pint-meter { position: absolute; right: 12px; top: 64px; width: 56px; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)); z-index: 2; }
.passed-pint { position: absolute; right: 10px; top: 14px; width: 120px; z-index: 1; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .5)); }

/* HUD row under the big action */
.hud-row { display: flex; gap: 6px; margin-top: 6px; } .hud-row > * { flex: 1; min-width: 0; }
#hud-act .btn { min-height: 64px; }
#view.has-mini { padding-bottom: 230px; }

/* Counters with sticker icons */
.counter-ic { width: 32px; height: 32px; object-fit: contain; flex: none; margin-right: -4px; }
.counter-l span { flex: 1; }

/* Player progress */
.prog { padding: 12px; display: grid; gap: 8px; }
.prog-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .prog-top b { font-size: 20px; flex: 1; } .prog-top em { font: italic 800 19px/1 var(--label); color: var(--gold); }
.prog .figures.tight { margin: 4px 0 0; }
.ranks li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ranks b { width: 26px; height: 26px; display: grid; place-items: center; background: var(--pink); border-radius: 50%; font: 400 12px/1 var(--display); flex: none; }
.ranks span { flex: 1; font: italic 800 18px/1 var(--label); letter-spacing: .04em; text-transform: uppercase; } .ranks i { font: italic 800 15px/1 var(--label); color: var(--gold); }
.crew-num b { color: var(--gold); }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.gal-i { aspect-ratio: 1; overflow: hidden; border: 2px solid #000; box-shadow: 0 0 0 1px rgba(255, 45, 149, .45); background: #000; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; }
.empty-art { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; color: var(--mute); text-align: center; } .empty-art img { width: 120px; }
.locker { min-height: 360px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #05061a; }
.locker-art { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center; gap: 6px; padding: 18px 8px 90px; }
.locker-art img { width: 100%; max-height: 120px; object-fit: contain; filter: brightness(0) drop-shadow(0 0 1px rgba(255, 45, 149, .9)) drop-shadow(0 0 6px rgba(255, 45, 149, .5)); opacity: .85; }
.locker .stamp { top: 40%; font-size: 30px; }
.locker-in { position: relative; z-index: 2; padding: 14px 12px; background: linear-gradient(180deg, rgba(5, 6, 26, 0), #05061a 30%); }
.up-prev { border: 2px solid var(--pink); border-radius: 8px; overflow: hidden; background: #000; } .up-prev img { width: 100%; max-height: 300px; object-fit: contain; }
select { width: 100%; min-height: 50px; padding: 10px 12px; background: #000; border: 2px solid #3d2380; border-radius: 0; font-size: 16px; color: var(--snow); color-scheme: dark; }
.file-btn { display: flex; }
.pv-wrap .sheet { background: #000; padding-left: 0; padding-right: 0; }
.pv { margin: 34px 0 0; } .pv img { width: 100%; max-height: 66dvh; object-fit: contain; background: #000; }
.pv figcaption { display: flex; gap: 10px; align-items: flex-start; padding: 12px; } .pv figcaption > span { display: grid; gap: 3px; min-width: 0; } .pv figcaption small { color: var(--pink); font: italic 800 13px/1.2 var(--label); letter-spacing: .05em; text-transform: uppercase; } .pv figcaption small.dim { color: var(--dim); }
.pv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; } .pv-nav span { color: var(--mute); font-size: 13px; } .pv-nav .kbtn { flex: 0 0 104px; }
.pv-wrap .btn-link { margin: 10px 12px 0; }

/* Manual */
.man { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0 10px; border-top: 1px solid var(--line); }
.man img { width: 64px; flex: none; margin-top: 18px; } .man .h-sub { margin-top: 12px; }
.rules { list-style: disc; padding-left: 18px; display: grid; gap: 5px; }

/* Overlays */
.ov-passed { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: #000; animation: fadeIn .25s; cursor: pointer; transition: opacity .3s; }
.ov-passed.out, .ov-ach.out { opacity: 0; }
.ov-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(1.2); }
.ov-in { position: relative; display: grid; justify-items: center; gap: 6px; padding: 24px 16px; text-align: center; width: 100%; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78) 22%, rgba(0, 0, 0, .78) 78%, rgba(0, 0, 0, 0)); }
.ov-pint { width: 150px; animation: lock .6s cubic-bezier(.2, 1.3, .3, 1) both; }
.ov-t { font: 400 clamp(34px, 11vw, 48px)/1 var(--display); color: var(--gold); text-transform: uppercase; text-shadow: var(--stroke), 0 6px 0 var(--out); transform: rotate(-3deg); animation: lock .7s .1s cubic-bezier(.2, 1.3, .3, 1) both; }
.ov-sub { font: italic 800 22px/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ov-xp { font: 400 30px/1 var(--display); color: #fff; text-shadow: var(--stroke), 0 0 18px var(--pink); }
.ov-tap { margin-top: 10px; color: var(--dim); font-size: 13px; }
.ov-ach { position: fixed; z-index: 140; top: calc(var(--sat) + 10px); left: 50%; transform: translateX(-50%); width: min(94vw, 440px); display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: linear-gradient(180deg, #2a1660, var(--navy)); border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 0 22px rgba(255, 200, 87, .55), 0 6px 0 #000; animation: drop .45s cubic-bezier(.2, 1.3, .3, 1); transition: opacity .3s; }
@keyframes drop { from { transform: translate(-50%, -140%); } }
.ov-ach img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px var(--gold); }
.ov-ach span { display: grid; gap: 2px; min-width: 0; }
.ov-ach small { font: italic 800 14px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.ov-ach b { font: 400 18px/1.1 var(--display); text-transform: uppercase; text-shadow: var(--stroke); }
.ov-ach i { font: italic 800 15px/1 var(--label); color: var(--pink); font-style: italic; }
body.crewview #top-me::after { content: 'Crew view'; position: fixed; top: calc(var(--sat) + 2px); left: calc(50% - min(26vw, 110px)); transform: translateX(-50%); z-index: 130; background: var(--teal); color: #000; font: italic 800 11px/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; padding: 0 7px; }
.demo button { min-height: 34px; padding: 0 7px; }
@media (max-width: 374px) { .kbtn { font-size: 16px; padding: 8px; } .kbtn-go { font-size: 21px; } .mcard-art { width: 92px; } .seg-k button { font-size: 13.5px; } }
body:has(.intro) .demo, body:has(.ov-passed) .demo { display: none; }
body:has(#hud:not([hidden])) #toast { bottom: auto; top: calc(var(--sat) + 64px); }
.hud-row .kbtn { gap: 5px; font-size: 15px; letter-spacing: .02em; padding: 4px 6px; white-space: nowrap; }
.hud-row .kbtn svg { width: 16px; height: 16px; } .hud-row .kbtn img { height: 22px; }

/* ===== v1.4: front door (press start, trailer, title) ===== */
.entry { position: absolute; inset: 0; overflow: hidden; background: #000; color: #fff; }
.press { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; text-align: center; }
.press-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(1.2); animation: press-drift 18s ease-in-out infinite alternate; }
@keyframes press-drift { from { transform: scale(1.06) translateX(-2%); } to { transform: scale(1.14) translateX(2%); } }
.press-snow, .ti-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.press-in { position: relative; display: grid; justify-items: center; gap: 14px; padding: 0 20px 40px; }
.press-logo { width: min(52vw, 190px); height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .55)); }
.press-cta { font-size: clamp(34px, 11vw, 46px); color: #fff; animation: press-blink 1.1s steps(2, jump-none) infinite; }
@keyframes press-blink { 0% { opacity: 1; } 100% { opacity: .35; } }
.press-in small { font: italic 800 17px/1.2 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #000; }
.press-skip { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--sab)); z-index: 2; min-height: 44px; padding: 0 16px; color: var(--mute); font: italic 800 16px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.trailer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tr-skip { position: absolute; right: 10px; top: calc(var(--sat) + 10px); z-index: 2; min-height: 44px; padding: 0 16px; background: rgba(0, 0, 0, .7); border: 2px solid #f3e6ff; border-radius: 8px; font: italic 800 17px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; }
.tr-sound { position: absolute; left: 50%; bottom: calc(40px + var(--sab)); transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; background: linear-gradient(180deg, #ff6fb7, #ff2d95 52%, #c8127a); border: 2px solid #ffd1e8; border-radius: 8px; font: italic 800 18px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 4px 0 #000; }
.tr-bar { position: absolute; left: 0; right: 0; bottom: var(--sab); height: 4px; background: rgba(255, 255, 255, .15); }
.tr-bar b { display: block; height: 100%; width: 0; background: var(--pink); box-shadow: 0 0 10px var(--pink); transition: width .25s linear; }
.title { display: flex; flex-direction: column; overflow-y: auto; background: var(--gutter); }
.ti-art { position: relative; flex: none; height: min(56dvh, 118vw, 460px); overflow: hidden; border-bottom: 2px solid #000; }
.ti-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.ti-when { flex: none; }
.ti-actions { display: grid; gap: 10px; padding: 14px 10px 6px; }
.ti-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 10px 16px; border-radius: 10px; text-align: left; color: #fff; }
.ti-btn svg { flex: none; }
.ti-btn span { display: grid; gap: 3px; min-width: 0; }
.ti-btn b { font: italic 800 26px/1 var(--label); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.ti-btn small { font: 500 14px/1.25 var(--body); color: rgba(255, 255, 255, .86); }
.ti-track { background: linear-gradient(180deg, #ff6fb7, #ff2d95 52%, #c8127a); border: 2px solid #ffd1e8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 0 #000, 0 0 20px rgba(255, 45, 149, .5); text-shadow: 0 2px 0 rgba(10, 4, 24, .5); }
.ti-join { background: var(--navy); border: 2px solid #f3e6ff; box-shadow: 0 0 12px rgba(255, 45, 149, .3), 0 4px 0 #000; }
.ti-btn:active { transform: translateY(3px); }
.ti-replay { align-self: center; margin: 4px 0 calc(16px + var(--sab)); }
body:has(.entry.trailer) .demo, body:has(.entry.trailer) #mock-chip { display: none; }
.reg-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 6px; margin-bottom: 4px; background: rgba(0, 0, 0, .6); border: 2px solid rgba(255, 255, 255, .3); border-radius: 8px; font: italic 800 16px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; }

/* ===== v1.4: public tracker ===== */
.trk { display: flex; flex-direction: column; height: 100%; }
.trk-top { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 4px) 10px 4px 2px; background: #000; flex: none; }
.trk-back { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.trk-top .mark { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px #000, 0 0 10px rgba(255, 45, 149, .5); }
.trk-body { flex: 1; overflow-y: auto; padding: 8px 8px calc(28px + var(--sab)); display: grid; gap: 8px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.trk-wait { padding: 40px 0; }
.trk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.trk-stats .tile { padding: 14px 8px 10px; text-align: center; }
.trk-stats b { display: block; font: 400 34px/1 var(--display); text-shadow: var(--stroke), 0 5px 0 var(--out); }
.trk-stats span { display: block; margin-top: 8px; font: italic 800 15px/1.1 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.trk-sec { padding: 14px 12px 6px; display: grid; gap: 8px; }
.trk-sec h2 { font-size: 22px; }
.trk-sealed { padding-bottom: 16px; }
.trk-map { position: relative; height: 250px; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); background: #22114f; overflow: hidden; }
.trk-map-live { height: 300px; }
.trk-route li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.trk-route i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; font: 400 14px/1 var(--display); font-style: normal; box-shadow: 0 0 0 2px #000; }
.trk-route span { min-width: 0; } .trk-route b { display: block; font: italic 800 18px/1.1 var(--label); letter-spacing: .03em; text-transform: uppercase; }
.trk-route span small { display: block; color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-route em { font: italic 800 16px/1.1 var(--label); color: var(--gold); text-align: right; }
.trk-route em small { display: block; color: var(--pink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.trk-route .gone { opacity: .55; } .trk-route .gone i { background: var(--gold); }
.trk-route .here i { background: var(--pink); color: #fff; box-shadow: 0 0 0 2px #000, 0 0 12px var(--pink); }
.trk-here { padding: 14px; display: grid; gap: 8px; }
.trk-here-tag { display: flex; align-items: center; gap: 6px; font: italic 800 16px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.trk-here h2 { font-size: 28px; }
.trk-when { color: var(--gold); font-weight: 700; }
.trk-here .btn { justify-self: start; }
.trk-next { padding: 12px; display: grid; gap: 4px; }
.trk-next small { font: italic 800 14px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.trk-next b { font: 400 20px/1.1 var(--display); text-transform: uppercase; text-shadow: var(--stroke); }
.trk-next span { color: var(--mute); font-size: 14px; }
.trk-passed { height: 220px; overflow: hidden; }
.trk-passed > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.trk-passed .passed-pint { position: absolute; right: 8px; bottom: 6px; width: 110px; height: auto; }
.trk-passed div { position: absolute; left: 14px; bottom: 16px; right: 120px; display: grid; gap: 6px; }
.trk-passed b { font-size: 30px; color: var(--gold); }
.trk-passed span { font: italic 800 17px/1.15 var(--label); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 0 #000; }

/* ===== v1.4: overlap fixes ===== */
.top-title b { overflow: hidden; text-overflow: ellipsis; }
.cv-chip { flex: none; align-self: center; background: var(--teal); color: #000; font: italic 800 12px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; }
body.crewview #top-me::after { content: none; display: none; }
#mock-chip { top: var(--sat); bottom: auto; left: 0; transform: none; opacity: .9; font-size: 10px; line-height: 1.25; }
body:has(#hud:not([hidden])) #toast { top: auto; bottom: calc(62px + 176px + var(--sab)); }
.ov-ach { top: calc(var(--sat) + 62px); }
@media (min-width: 481px) { #mock-chip { left: calc(50% - 240px); } }
body:has(.entry) .demo { bottom: auto; top: calc(var(--sat) + 26px); }
body:has(.trk) .demo { bottom: calc(6px + var(--sab)); }
.demo { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.demo::-webkit-scrollbar { display: none; }
.demo b, .demo button { flex: none; white-space: nowrap; }
