/* OUTKAST 50 — one committed look: a night sky with a gold sun in it.
   Layout: cinematic intro → name gate → app shell (sticky top nav, bottom tabs on phones). */
:root {
  --bg: #0b0a12; --bg2: #110e1c; --card: #16132400; --panel: #171427; --panel2: #1f1b33;
  --line: rgba(255, 236, 200, .11); --line2: rgba(255, 236, 200, .2);
  --fg: #f4eee2; --muted: #aaa193; --dim: #76707f;
  --gold: #e2bd62; --gold2: #f5dc93; --gold-ink: #1a1206;
  --heat: #ff6b3d; --cool: #38c9c1; --violet: #8b6cf0;
  --ok: #59d38f; --warn: #f2b544; --bad: #ff5c6a;
  --silver: #c9ccd6; --bronze: #c98a52;
  --display: 'Unbounded', Impact, 'Arial Black', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --r2: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --nav-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--gold2); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--fg); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
svg.ic { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

/* ── intro ─────────────────────────────────────────────────────── */
.intro { position: fixed; inset: 0; z-index: 60; background: #05040f; overflow: hidden; }
.intro-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.i-dawn { opacity: 0; animation: dawn 4.5s ease-in-out 1.2s forwards; }
.i-sun { transform: translateY(380px); animation: rise 4.5s cubic-bezier(.2, .7, .2, 1) 1.4s forwards; }
.i-fig { opacity: 0; animation: fadein 1.1s ease-out forwards; }
.i-mem { opacity: 0; animation: fadein 2.2s ease-out forwards; }
.i-star { animation: twinkle 4s ease-in-out infinite; }
.i-cloud { animation: drift 70s linear infinite; }
.i-shim { animation: shimmer 5s ease-in-out infinite; }
@keyframes dawn { to { opacity: 1; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadein { to { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(1900px); } }
@keyframes shimmer { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
.intro-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.intro-ui > * { pointer-events: auto; }
.intro-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.intro-top .eyebrow { opacity: 0; animation: fadein 1.5s ease .6s forwards; }
.skip { background: rgba(10, 6, 22, .5); border: 1px solid var(--line2); color: var(--fg); border-radius: 999px; padding: 8px 16px; font-size: .82rem; backdrop-filter: blur(8px); }
.intro-bottom { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 760px; }
.intro-title { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 8vw, 6.2rem); line-height: .95; letter-spacing: -.01em; color: #fff8e8; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.intro-title .w { display: inline-block; opacity: 0; transform: translateY(40px); animation: up 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.intro-title .w:nth-child(2) { animation-delay: 3.2s; color: var(--gold2); }
.intro-title .w:nth-child(1) { animation-delay: 3s; }
@keyframes up { to { opacity: 1; transform: none; } }
.intro-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.9rem); color: #ffe9bd; opacity: 0; animation: fadein 1.4s ease 4s forwards; }
.intro-cta { opacity: 0; animation: fadein 1s ease 6.2s forwards; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  .i-dawn, .i-sun, .i-fig, .i-mem, .intro-top .eyebrow, .intro-title .w, .intro-tag, .intro-cta { animation: none !important; opacity: 1 !important; transform: none !important; }
  .i-star, .i-cloud, .i-shim { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ── buttons ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5em; border-radius: 999px; padding: 12px 22px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--fg); font-weight: 700; font-size: .95rem; letter-spacing: .01em; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .09); border-color: var(--gold); transform: translateY(-1px); }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 30px rgba(226, 189, 98, .25); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.sm { padding: 8px 14px; font-size: .85rem; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 92, 106, .5); color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; justify-content: center; }

/* ── gate (name select) ───────────────────────────────────────── */
.gate { min-height: 100%; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px)); background: radial-gradient(1200px 600px at 50% -10%, #2a1740 0%, var(--bg) 60%); }
.gate-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.gate-head { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gate-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3.2rem); color: #fff8e8; }
.gate-head p { color: var(--muted); max-width: 560px; }
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; width: 100%; }
.name-card { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); text-align: left; padding: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .2s; aspect-ratio: 4 / 5; display: flex; flex-direction: column; }
.name-card:hover, .name-card:focus-visible { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow); border-color: var(--gold); }
.name-card .mono { flex: 1; min-height: 0; }
.name-card .mono svg { display: block; width: 100%; height: 100%; }
.name-card .nm { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .25)); }
.name-card .nm b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.name-card .nm b .nick { font-size: .85rem; }
.name-card .nm span { font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.name-card .nm .claimed { color: var(--ok); }
.name-card.taken::after { content: 'Signed up'; position: absolute; top: 12px; right: 12px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(89, 211, 143, .15); color: var(--ok); border: 1px solid rgba(89, 211, 143, .4); padding: 4px 8px; border-radius: 999px; }
.memorial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin: 0 auto; width: 100%; }
.mem-card { text-decoration: none; color: inherit; border: 1px solid rgba(226, 189, 98, .35); border-radius: var(--r); padding: 18px 20px; display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, rgba(226, 189, 98, .08), rgba(226, 189, 98, .02)); position: relative; overflow: hidden; }
.mem-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.mem-card { transition: transform .2s, border-color .2s; }
.mem-card .mem-arrow { margin-left: auto; color: var(--gold); opacity: .7; }
.mem-card > div { min-width: 0; }
.mem-card .flame { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff3c4, #e2bd62 40%, rgba(226, 189, 98, 0) 72%); flex: none; animation: candle 3s ease-in-out infinite; }
@keyframes candle { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
.mem-card b { font-family: var(--display); font-weight: 700; letter-spacing: .02em; display: block; }
.mem-card span:not(.eyebrow) { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.mem-card .eyebrow { font-size: .62rem; margin-bottom: 2px; }
.gate-foot { text-align: center; color: var(--dim); font-size: .85rem; }

/* ── modal ─────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 4, 15, .7); backdrop-filter: blur(10px); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); animation: pop .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.modal .who { display: flex; gap: 14px; align-items: center; }
.modal .who .mono { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field input, .field textarea, .field select { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; }
.err { color: var(--bad); font-size: .88rem; }
.hint { color: var(--dim); font-size: .82rem; }

/* ── app shell ─────────────────────────────────────────────────── */
.app { min-height: 100%; display: flex; flex-direction: column; }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: var(--nav-h); display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(11, 10, 18, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; color: #fff8e8; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand i { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--gold2), var(--gold) 60%, #a97f2a); display: inline-grid; place-items: center; font-style: normal; font-size: .6rem; color: var(--gold-ink); }
.nav-links { display: flex; gap: 4px; margin-left: 10px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav-links a.on { color: var(--gold2); background: rgba(226, 189, 98, .1); }
.me { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.me .mono { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; }
.me b { font-size: .9rem; }
.tabs { display: none; }
.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 22px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 28px; animation: pagein .35s ease; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } }
.page-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.page-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 4.5vw, 2.9rem); line-height: 1.05; color: #fff8e8; }
.page-head p { color: var(--muted); font-size: 1.05rem; }
.page-head .serif { font-size: 1.3rem; color: var(--gold2); }

/* ── stats / pills ─────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 16px; background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.stat span { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: .84rem; font-weight: 700; transition: all .15s; }
.pill:hover { color: var(--fg); border-color: var(--gold); }
.pill.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: .35em; border-radius: 999px; padding: 4px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line2); color: var(--muted); background: rgba(0, 0, 0, .25); white-space: nowrap; }
.chip.intl { color: var(--cool); border-color: rgba(56, 201, 193, .45); }
.chip.us { color: var(--heat); border-color: rgba(255, 107, 61, .45); }
.chip.spring { color: #9be39b; border-color: rgba(155, 227, 155, .4); }
.chip.summer { color: var(--warn); border-color: rgba(242, 181, 68, .45); }
.chip.gold { color: var(--gold2); border-color: var(--gold); background: rgba(226, 189, 98, .12); }

/* ── lineup grid ───────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trip { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .2s; }
.trip:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(226, 189, 98, .5); }
.trip .art { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; position: relative; }
.trip .art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trip .art > svg { display: block; width: 100%; height: 100%; transition: transform .6s ease; }
.trip:hover .art > svg { transform: scale(1.03); }
.trip .art .rank { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.trip .art .region { position: absolute; top: 12px; right: 12px; }
.trip .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.trip .tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #ffe9bd; }
.trip .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.trip .facts span { display: inline-flex; align-items: center; gap: .35em; }
.trip .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.medals { display: flex; gap: 4px; align-items: center; }
.medal { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 800; color: #1a1206; border: 2px solid var(--bg); margin-left: -6px; }
.medal:first-child { margin-left: 0; }
.medal.g { background: linear-gradient(135deg, var(--gold2), var(--gold)); }
.medal.s { background: linear-gradient(135deg, #eef0f5, var(--silver)); }
.medal.b { background: linear-gradient(135deg, #e0a876, var(--bronze)); }
.medal.n { background: #3a2f48; color: #ffb3bb; }
.pts { font-family: var(--display); font-weight: 700; color: var(--gold2); font-size: 1rem; }

/* ── trip detail ───────────────────────────────────────────────── */
.hero { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 2 / 1; max-width: 100%; }
.hero > svg { display: block; width: 100%; height: 100%; }
.hero .back { position: absolute; top: 14px; left: 14px; }
.hero .chips { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.detail .col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.side { position: sticky; top: calc(var(--nav-h) + 16px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.panel.gold { border-color: rgba(226, 189, 98, .4); background: linear-gradient(180deg, rgba(226, 189, 98, .08), var(--panel) 40%); }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: .92rem; align-items: start; }
.facts-list dt { color: var(--muted); display: flex; align-items: center; gap: .4em; white-space: nowrap; }
.facts-list dd { margin: 0; min-width: 0; }
.sec { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.two > *, .detail > *, .split > * { min-width: 0; }
.sec h2 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.sec h2 .ic { color: var(--gold); }
.pitch { font-size: 1.12rem; line-height: 1.65; max-width: 68ch; }
.pitch.nocap::first-letter { all: unset; }
.pitch:not(.nocap)::first-letter { font-family: var(--serif); font-size: 2.6em; float: left; line-height: .8; padding: .08em .12em 0 0; color: var(--gold2); }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.procon ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.procon li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.procon .ic { margin-top: .2em; }
.procon .pro .ic { color: var(--ok); }
.procon .con .ic { color: var(--bad); }
.procon h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.procon .pro h3 { color: var(--ok); }
.procon .con h3 { color: var(--bad); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.act { border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.act .k { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.act h4 { font-size: 1rem; font-weight: 800; }
.act p { font-size: .9rem; color: var(--muted); }
.act .meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .82rem; margin-top: 4px; }
.act .meta b { color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; padding-top: .25em; }
.days { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line2); margin-left: 10px; }
.day { position: relative; padding: 0 0 18px 24px; }
.day::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.day b { display: block; font-weight: 800; }
.day .n { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.day p { color: var(--muted); font-size: .94rem; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.list li .ic { color: var(--gold); margin-top: .2em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ideas { display: flex; flex-direction: column; gap: 10px; }
.idea { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; background: var(--panel); }
.idea .up { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px; background: transparent; min-width: 50px; color: var(--muted); }
.idea .up.on { border-color: var(--gold); color: var(--gold2); background: rgba(226, 189, 98, .1); }
.idea .up b { font-size: .95rem; }
.idea .t { flex: 1; min-width: 0; }
.idea .by { font-size: .78rem; color: var(--dim); }
.add-row { display: flex; gap: 8px; align-items: flex-start; }
.add-row .field { flex: 1; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.vbtn { border-radius: 12px; border: 1px solid var(--line2); background: transparent; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: all .15s; }
.vbtn small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--dim); }
.vbtn:hover { border-color: var(--gold); color: var(--fg); }
.vbtn.g.on { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--gold-ink); border-color: transparent; }
.vbtn.s.on { background: linear-gradient(135deg, #eef0f5, var(--silver)); color: #1a1a24; border-color: transparent; }
.vbtn.b.on { background: linear-gradient(135deg, #e0a876, var(--bronze)); color: #2a1406; border-color: transparent; }
.vbtn.on small { color: inherit; opacity: .8; }
.rsvp { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rsvp .pill { text-align: center; padding: 10px 6px; }
.rsvp .pill.in.on { background: var(--ok); color: #06200f; border-color: var(--ok); }
.rsvp .pill.maybe.on { background: var(--warn); color: #241600; border-color: var(--warn); }
.rsvp .pill.out.on { background: var(--bad); color: #2a0609; border-color: var(--bad); }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.av { width: 32px; height: 32px; border-radius: 10px; overflow: hidden; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff6e3; border: 1px solid var(--line2); }
.av svg { width: 100%; height: 100%; display: block; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.toggle input { width: 18px; height: 18px; accent-color: var(--heat); }

/* ── standings ─────────────────────────────────────────────────── */
.board { display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: 44px 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); padding: 10px 14px 10px 10px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.row:hover { border-color: var(--gold); transform: translateX(3px); }
.row .pos { font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: var(--dim); text-align: center; }
.row:nth-child(1) .pos { color: var(--gold2); }
.row:nth-child(2) .pos { color: var(--silver); }
.row:nth-child(3) .pos { color: var(--bronze); }
.row .thumb { width: 72px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.row .thumb svg { display: block; width: 100%; height: 100%; }
.row .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row .info b { font-weight: 800; }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row .right .pts { font-size: 1.3rem; }
.row .right small { color: var(--muted); font-size: .78rem; }
.ballot { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ballot th, .ballot td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ballot th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ballot td.name { font-weight: 800; display: flex; align-items: center; gap: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); }
.empty { border: 1px dashed var(--line2); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty b { color: var(--fg); font-family: var(--display); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .l { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); }
.meter .bar i.cool { background: linear-gradient(90deg, var(--cool), #7fe8e2); }
.meter .bar i.heat { background: linear-gradient(90deg, var(--heat), #ffa184); }

/* ── crew ──────────────────────────────────────────────────────── */
.crew { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.member { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 18px; display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.member .mono { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; }
.member .mono svg { display: block; width: 100%; height: 100%; }
.member h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member .status { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--dim); font-weight: 700; }
.member .status.on { color: var(--ok); border-color: rgba(89, 211, 143, .4); }
.member .prefs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.member .q { font-family: var(--serif); font-style: italic; color: #ffe9bd; margin-top: 8px; }
.member .picks { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); }
.member .picks span { display: flex; align-items: center; gap: 8px; }

/* ── profile form ──────────────────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--muted); transition: all .15s; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check:has(input:checked) { background: rgba(226, 189, 98, .14); border-color: var(--gold); color: var(--gold2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.field .seg label { flex: 1 1 auto; min-width: 64px; padding: 9px 10px; text-align: center; cursor: pointer; font-size: .86rem; font-weight: 700; color: var(--muted); position: relative; overflow: hidden; border: 1px solid var(--line2); border-radius: 10px; text-transform: none; letter-spacing: 0; transition: all .15s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.field .seg label:hover { border-color: var(--gold); color: var(--fg); }
.field .seg label:has(input:checked) { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.field .check { text-transform: none; letter-spacing: 0; font-size: .88rem; }

/* ── memorial page ─────────────────────────────────────────────── */
.mem-hero { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(226, 189, 98, .3); background: radial-gradient(700px 400px at 50% 110%, #3a1f52, #0b0a12 70%); padding: 60px 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.mem-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3rem); color: #fff8e8; }
.mem-hero .two-stars { display: flex; gap: 60px; justify-content: center; flex-wrap: wrap; }
.mem-hero .star { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.mem-hero .star i { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #ffe9bd 18%, rgba(255, 233, 189, .35) 40%, rgba(255, 233, 189, 0) 70%); animation: candle 4s ease-in-out infinite; }
.mem-hero .star b { font-family: var(--display); font-size: 1.4rem; }
.mem-hero .star span { font-family: var(--serif); font-style: italic; color: var(--gold2); }
.mem-hero p { max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.memory { border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 18px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.memory .by { font-size: .8rem; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.memory p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: #fff3dc; }

/* ── toast & misc ─────────────────────────────────────────────── */
.toasts { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { background: #1f1b33; border: 1px solid var(--line2); color: var(--fg); padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700; box-shadow: var(--shadow); animation: pop .3s ease; display: flex; gap: 8px; align-items: center; max-width: 100%; }
.toast.ok { border-color: rgba(89, 211, 143, .5); }
.toast.bad { border-color: rgba(255, 92, 106, .5); }
.banner { border: 1px solid rgba(242, 181, 68, .4); background: rgba(242, 181, 68, .08); border-radius: var(--r2); padding: 10px 14px; font-size: .88rem; color: #ffd98a; display: flex; gap: 10px; align-items: center; }
canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.footer { text-align: center; color: var(--dim); font-size: .8rem; padding: 10px 0 0; border-top: 1px solid var(--line); }

/* ── responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 720px) {
  :root { --nav-h: 56px; }
  .main { padding: 18px 16px calc(84px + env(safe-area-inset-bottom, 0px)); gap: 22px; }
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .me b { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(11, 10, 18, .9); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 800; color: var(--muted); text-decoration: none; padding: 6px 2px; border-radius: 10px; }
  .tabs a .ic { width: 20px; height: 20px; }
  .tabs a.on { color: var(--gold2); }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .names { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .name-card .nm { padding: 10px 10px 12px; }
  .name-card .nm b { font-size: .86rem; }
  .name-card .nm span { font-size: .6rem; }
  .memorial-row { grid-template-columns: 1fr; }
  .procon, .acts, .two, .crew, .form, .split { grid-template-columns: 1fr; }
  .hero { aspect-ratio: 4 / 3; }
  .hero .chips { top: auto; bottom: 12px; left: 12px; right: 12px; justify-content: flex-start; }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .row { grid-template-columns: 32px 56px minmax(0, 1fr); }
  .row .thumb { width: 56px; }
  .row .right { grid-column: 3; align-items: flex-start; flex-direction: row; gap: 10px; }
  .member { grid-template-columns: 64px 1fr; }
  .member .mono { width: 64px; height: 64px; }
  .vote-btns, .rsvp { grid-template-columns: 1fr 1fr 1fr; }
  .intro-ui { padding-left: 18px; padding-right: 18px; }
  .trip .art { aspect-ratio: 3 / 2; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .pills::-webkit-scrollbar { display: none; }
  .pills .pill, .pills .chip { flex: none; }
  .then-now { grid-template-columns: 1fr 1fr; gap: 10px; }
  .then-now img, .then-now figure.then img { height: 190px; }
  .then-now figcaption { padding: 24px 10px 10px; }
  .then-now figcaption span:last-child:not(.eyebrow) { font-size: .82rem; }
  .detail .side { order: -1; }
  .name-card:not(.taken) .nm > span { display: none; }
  .add-row { flex-wrap: wrap; }
  .add-row .field { flex: 1 1 100%; max-width: none !important; }
  .add-row .btn { flex: 1 1 auto; justify-content: center; }
  .mem-hero { padding: 36px 18px; }
  .mem-hero .two-stars { gap: 28px; }
  .letter { padding: 18px 18px; }
  .letter .serif { font-size: 1.15rem; }
  .page-head p { font-size: .98rem; }
  .stat b { font-size: 1.3rem; }
}
@media (max-width: 420px) {
  .name-card { aspect-ratio: 1 / 1.3; }
}

/* ── intro image mode ──────────────────────────────────────────── */
.intro-scene { position: absolute; top: 0; height: 100%; left: 50%; aspect-ratio: var(--iw) / var(--ih); min-width: 100%; transform: translateX(-50%); overflow: hidden; }
.intro-scene .intro-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 0; animation: introimg 2.2s ease-out .2s forwards; transform: scale(1.06); }
@media (max-aspect-ratio: 4/5) {
  .intro-scene { width: 190vw; min-width: 0; height: auto; top: calc(env(safe-area-inset-top, 0px) + 40px); transform: translateX(-50%); -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
  .intro-scene .intro-img { position: static; width: 100%; height: auto; display: block; }
  .intro-overlay text { font-size: 92px; }
  .intro-overlay .i-spark { transform: scale(1.4); transform-box: fill-box; transform-origin: center; }
  .intro.has-img .intro-ui { justify-content: flex-start; }
  .intro.has-img .intro-bottom { margin-top: min(calc(106vw - 70px), calc(100vh - 330px)); margin-top: min(calc(106vw - 70px), calc(100svh - 330px)); }
}
@keyframes introimg { to { opacity: 1; transform: scale(1); } }
.intro-overlay { pointer-events: none; }
.intro-overlay .i-spark { animation: twinkle 2.6s ease-in-out infinite; transform-origin: center; }
.intro-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 4, 15, .25) 0%, rgba(5, 4, 15, 0) 30%, rgba(5, 4, 15, 0) 55%, rgba(5, 4, 15, .82) 100%); pointer-events: none; }
.intro.has-img .intro-title .w:nth-child(1) { animation-delay: 1.4s; }
.intro.has-img .intro-title .w:nth-child(2) { animation-delay: 1.6s; }
.intro.has-img .intro-tag { animation-delay: 2.2s; }
.intro.has-img .intro-cta { animation-delay: 3s; }
@media (prefers-reduced-motion: reduce) { .intro-img { animation: none; opacity: 1; transform: none; } .intro-overlay .i-spark { animation: none; } }

/* ── letter / personal message ────────────────────────────────── */
.letter { border: 1px solid rgba(226, 189, 98, .45); border-radius: var(--r); padding: 22px 24px; background: linear-gradient(135deg, rgba(226, 189, 98, .12), rgba(226, 189, 98, .03) 60%, rgba(139, 108, 240, .06)); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.letter::before { content: '“'; position: absolute; right: 18px; top: -26px; font-family: var(--serif); font-size: 9rem; color: rgba(226, 189, 98, .12); line-height: 1; pointer-events: none; }
.letter .serif { font-size: 1.3rem; line-height: 1.5; color: #fff3dc; max-width: 62ch; }
.joke { font-family: var(--body); font-size: .95rem; color: var(--warn); border-left: 3px solid var(--warn); padding-left: 12px; max-width: 62ch; }
.modal.welcome { max-width: 520px; }
.modal.welcome .big { font-size: 1.25rem; line-height: 1.5; color: #fff3dc; }
.serif.big { font-size: 1.3rem; }

/* ── portraits & photos ───────────────────────────────────────── */
.portrait { --sz: 120px; width: var(--sz); height: var(--sz); border-radius: 50%; flex: none; padding: 4px; background: linear-gradient(135deg, var(--gold2), var(--gold) 50%, #8a6a24); box-shadow: 0 10px 30px rgba(226, 189, 98, .2); }
.portrait img, .portrait .portrait-empty { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.portrait .portrait-empty { background: radial-gradient(circle at 50% 35%, #3a2a55, #120c22 70%); display: grid; place-items: center; position: relative; color: var(--gold2); }
.portrait .portrait-empty .ic { width: 38%; height: 38%; }
.portrait .portrait-empty span { position: absolute; bottom: 12%; font-family: var(--display); font-weight: 700; font-size: calc(var(--sz) * .16); color: rgba(255, 233, 189, .6); }
.crew-photo { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(226, 189, 98, .4); max-width: 100%; }
.crew-photo img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.crew-photo .eyebrow { position: absolute; left: 16px; bottom: 14px; background: rgba(5, 4, 15, .6); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.crew-photo.wide img { max-height: 520px; }
.upload { position: relative; cursor: pointer; }
.status.fifty { color: var(--warn); border-color: rgba(242, 181, 68, .5); }

/* ── tribute page ─────────────────────────────────────────────── */
.tribute-hero { display: flex; gap: 32px; align-items: center; border-radius: var(--r); border: 1px solid rgba(226, 189, 98, .35); background: radial-gradient(900px 500px at 20% 120%, #3a1f52, #0b0a12 70%); padding: 40px 32px; }
.tribute-hero .portrait { --sz: 220px; }
.tribute-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tribute-text h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 6vw, 3.6rem); color: #fff8e8; line-height: 1; }
.tribute-text .years { font-family: var(--display); font-weight: 400; color: var(--gold); letter-spacing: .1em; font-size: 1.05rem; }
.tribute-text .serif.big { color: var(--gold2); }
.tribute-text .quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
@media (max-width: 720px) {
  .tribute-hero { flex-direction: column; text-align: center; padding: 28px 18px; }
  .tribute-hero .portrait { --sz: 160px; }
  .tribute-text { align-items: center; }
  .crew-photo img { max-height: 260px; }
}

.nick { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold2); font-size: .95em; }
.mem-hero .star .nick { font-size: 1.1rem; }
.tribute-text .nickline { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold2); line-height: 1; }
.modal h2 .nick, .page-head h1 .nick { font-size: .55em; }

/* ── real crew photo dissolve at the end of the intro ─────────── */
.intro-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; opacity: 0; animation: realin 2.6s ease-in-out 5.2s forwards; }
@keyframes realin { to { opacity: 1; } }
.intro.has-img .intro-overlay { animation: overlayout 2s ease-in-out 5.4s forwards; }
@keyframes overlayout { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .intro-real { animation: none; opacity: 1; } .intro.has-img .intro-overlay { animation: none; opacity: 0; } }

/* ── welcome modal photo & then/now strips ─────────────────────── */
.welcome-photo { position: relative; margin: -26px -26px 4px; border-radius: 22px 22px 0 0; overflow: hidden; max-height: 260px; }
.welcome-photo img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: center 20%; }
.welcome-photo .eyebrow { position: absolute; left: 16px; bottom: 12px; background: rgba(5, 4, 15, .6); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.then-now { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }
.then-now figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(226, 189, 98, .35); background: var(--panel); min-width: 0; }
.then-now img { display: block; width: 100%; height: 360px; object-fit: cover; object-position: center 25%; filter: saturate(.95); }
.then-now figure.then img { object-position: center 30%; }
.then-now figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(180deg, rgba(5, 4, 15, 0), rgba(5, 4, 15, .85)); display: flex; flex-direction: column; gap: 2px; }
.then-now figcaption span:last-child:not(.eyebrow) { font-family: var(--serif); font-style: italic; color: #ffe9bd; font-size: 1.05rem; }
@media (max-width: 720px) { .welcome-photo img { height: 200px; } }
