/* ─────────────────────────────────────────────────────────────
   SCREENS
   ───────────────────────────────────────────────────────────── */

/* ── SPLASH ── */
#screen-splash { align-items: center; justify-content: center; text-align: center; padding: 40px 28px; }
.splash-glow { position: absolute; inset: 0 0 auto; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, rgba(158,194,40,.22), transparent 70%), radial-gradient(40% 40% at 80% 10%, rgba(107,63,160,.35), transparent 70%); }
.splash-logo { width: 250px; height: 250px; object-fit: contain; filter: drop-shadow(0 20px 50px rgba(158,194,40,.35)); margin-bottom: 8px; }
.splash-tag { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); margin-bottom: 26px; }
.stack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin: 0 auto; }

/* ── AUTH ── */
#screen-auth { justify-content: center; align-items: center; padding: 40px 18px; }
.auth-box { width: 100%; max-width: 390px; padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.auth-logo { width: 46px; height: 46px; object-fit: contain; }
.auth-title { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.auth-sub { font-size: 13px; color: var(--text2); margin-top: -8px; }
.auth-links { text-align: center; font-size: 13px; color: var(--text2); display: flex; flex-direction: column; gap: 8px; }
.auth-links button { color: var(--lime); font-weight: 700; }
.auth-links .quiet { color: var(--text3); font-weight: 500; }

/* ── HOME ── */
.home-hero { position: relative; padding: 26px 16px 18px; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 60% 40%, rgba(107,63,160,.35), transparent 70%); pointer-events: none; }
.home-name { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .95; text-transform: uppercase; letter-spacing: .005em; overflow-wrap: anywhere; }
.home-actions { padding: 0 16px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.hero-action {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  padding: 22px 20px; border-radius: var(--r-lg);
  color: #10140A; background: linear-gradient(160deg, var(--lime-hi), var(--lime) 55%, var(--lime-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 20px 40px -18px rgba(158,194,40,.65);
  transition: transform .14s var(--spring);
}
.hero-action:active { transform: scale(.985); }
.hero-action .disc { position: absolute; right: -34px; top: -30px; width: 150px; height: 150px; border-radius: 50%; opacity: .18;
  background: radial-gradient(circle, transparent 38%, #10140A 39%, #10140A 41%, transparent 42%, transparent 58%, #10140A 59%, #10140A 61%, transparent 62%); }
.hero-action .k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; opacity: .65; }
.hero-action .t { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; margin-top: 2px; }
.hero-action .d { font-size: 13px; opacity: .7; margin-top: 4px; }
.join-action { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.join-action .t { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; }
.join-action .d { font-size: 12px; color: var(--text2); margin-top: 2px; }
.join-action .code-hint { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .24em; color: var(--text3); }

/* ── SETUP: course / mode / modifiers / players ── */
.course-card .star { font-size: 16px; padding: 6px 10px; border-radius: 10px; color: var(--text3); box-shadow: inset 0 0 0 1px var(--hair-2); flex-shrink: 0; }
.course-card .star.on { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(201,168,76,.5); background: rgba(201,168,76,.1); }
.course-card .manage { display: flex; gap: 6px; width: 100%; margin-top: 10px; }
.mode-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.mode-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px; position: relative; }
.mode-card .mc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--mc, var(--lime)) 30%, #1b1b1e), #151517 80%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc, var(--lime)) 40%, transparent); }
.mode-card .mc-name { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; }
.mode-card .mc-desc { font-size: 13px; color: var(--text2); margin-top: 3px; line-height: 1.45; }
.mode-card .mc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.mode-card .toggle-pill { position: absolute; top: 12px; right: 12px; }
.mode-card.off { opacity: .42; }
.mode-card.dice { background: linear-gradient(135deg, #2a3514, #171a12 60%); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px rgba(158,194,40,.35), var(--shadow-card); }
.mode-card.dice .mc-name { color: var(--lime-hi); }
.divider-label { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text3); font-weight: 700; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--hair-2); }

.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.mod-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; padding: 18px 10px 14px; min-height: 104px; }
.mod-card.wide { grid-column: span 2; }
.mod-card .mi { font-size: 24px; line-height: 1; }
.mod-card .mn { font-weight: 700; font-size: 13px; color: var(--text); }
.mod-card .md { font-size: 11px; color: var(--text3); line-height: 1.35; }
.mod-card.off { opacity: .42; }
.mod-card .toggle-pill { position: absolute; top: 7px; right: 7px; }
.mod-card .info { position: absolute; top: 7px; left: 7px; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; color: var(--text3); box-shadow: inset 0 0 0 1px var(--hair-2); display: grid; place-items: center; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; display: grid; place-items: center; background: linear-gradient(180deg, var(--s2-top), var(--s2-bot)); box-shadow: inset 0 1px 0 var(--edge); color: var(--text); }
.stepper .v { font-family: var(--display); font-weight: 800; font-size: 24px; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

.player-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.player-row { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 8px; }
.player-row .input { padding: 11px 12px; }
.remove-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; color: var(--text3); box-shadow: inset 0 0 0 1px var(--hair-2); flex-shrink: 0; }
.add-player { margin: 8px 16px 0; padding: 13px; border-radius: var(--r); font-weight: 600; color: var(--text2); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); border: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.015) 0 6px, transparent 6px 12px); }
.code-plate { margin: 14px 16px 0; padding: 16px; text-align: center; }
.code-plate .code { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: .16em; padding-left: .16em; color: var(--lime-hi); text-shadow: 0 0 26px rgba(158,194,40,.35); }

/* ── WAITING ── */
#screen-waiting { justify-content: center; align-items: center; padding: 40px 20px; text-align: center; gap: 10px; }
#waiting-players { text-align: left; }
.pulse-disc { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; background: radial-gradient(circle, rgba(158,194,40,.18), transparent 70%); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* ─────────────────────────────────────────────────────────────
   SCORING SCREEN — Lift base + Broadcast ribbon & ticker
   ───────────────────────────────────────────────────────────── */
#screen-scorecard { isolation: isolate; }
#screen-scorecard::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 440px; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 25% 30%, var(--acc-glow), transparent 72%), radial-gradient(55% 45% at 95% 0%, rgba(107,63,160,.5), transparent 70%);
  transition: background .5s;
}
.sc-sticky { position: sticky; top: 0; z-index: 10; padding-bottom: 10px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hair); }
.sc-sticky .topbar { position: static; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.rainbow-strip { height: 3px; flex-shrink: 0; background: linear-gradient(90deg, #FF5C4D, #FFB23E, #F4E04D, #6BD66B, #4DB8FF, #9B6BFF); }
.sc-top .join { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); font-weight: 700; }
.sc-top .join b { color: var(--text); font-family: var(--display); font-size: 17px; letter-spacing: .16em; margin-left: 4px; }

.sc-hero { padding: 6px 0 16px; }
.sc-hero > .pad { padding: 0 16px; }
.sc-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-course { font-size: 13px; color: var(--text2); margin: 10px 0 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon {
  margin-top: 12px; display: flex; align-items: stretch; justify-content: space-between; gap: 10px;
  padding-right: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.9), inset 0 -2px 0 var(--acc);
}
.ribbon .hole-plate {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 36px 10px 18px;
  color: var(--acc-ink);
  background: linear-gradient(180deg, var(--acc), var(--acc2));
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.ribbon .hole-lbl { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1; padding-bottom: 8px; opacity: .7; }
.ribbon .hole-num { font-family: var(--display); font-weight: 800; font-size: 92px; line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(255,255,255,.25); }
.ribbon .hole-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; padding: 10px 0; }
.ribbon .hole-meta .chip { background: rgba(0,0,0,.3); }
.ribbon.reckoning { box-shadow: 0 14px 30px -14px rgba(0,0,0,.9), inset 0 -2px 0 var(--bad); }
.ribbon.reckoning .hole-plate { background: linear-gradient(180deg, #FF6B5E, #8E1F3A); color: #fff; }

.pot {
  margin: 14px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px -12px rgba(0,0,0,.9);
}
.pot .pl { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--text3); }
.pot .ps { font-size: 12px; color: var(--text2); }
.pot .pv { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--acc); text-shadow: 0 0 22px var(--acc-glow); font-variant-numeric: tabular-nums; white-space: nowrap; }

.entry { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 16px; }
.prow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px; row-gap: 8px; padding: 10px 10px 10px 12px; }
.prow .tree-ctl { grid-column: 2 / -1; justify-self: start; }
.prow .pinfo { flex: 1; min-width: 0; }
.prow .pname { font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .psub { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.step {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 500; line-height: 1;
  color: var(--text); background: linear-gradient(180deg, #2e2e32, #1f1f22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 8px -2px rgba(0,0,0,.8);
  transition: transform .12s var(--spring);
}
.step:active { transform: scale(.86); }
.step.plus { color: #10140A; background: linear-gradient(180deg, var(--lime-hi), var(--lime)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px -3px rgba(158,194,40,.5); }
.score-cell { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.score-cell .slabel { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--text3); white-space: nowrap; }
.tree-ctl { display: flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; background: rgba(88,200,136,.08); box-shadow: inset 0 0 0 1px rgba(88,200,136,.25); }
.tree-ctl button { width: 30px; height: 28px; font-size: 17px; color: var(--text2); border-radius: 999px; }
.tree-ctl button:active { background: rgba(88,200,136,.15); }
.tree-ctl .tc { font-size: 12px; font-weight: 600; text-align: center; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tree-ctl .tc.on { color: var(--good); font-weight: 800; }
@media (max-width: 380px) {
  .prow { gap: 8px; padding-left: 8px; }
  .prow { grid-template-columns: 1fr auto; column-gap: 6px; }
  .prow .pchip { display: none; }
  .prow .tree-ctl { grid-column: 1 / -1; }
  .step { width: 36px; height: 36px; }
}

.board { margin: 0 12px 14px; overflow: hidden; }
.brow { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; position: relative; }
.brow + .brow { box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.brow.first { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 15%, transparent), transparent 70%); }
.brow .rank { width: 24px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--text3); font-variant-numeric: tabular-nums; }
.brow.first .rank { color: var(--acc); }
.brow .mv { width: 18px; display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 800; line-height: 1; color: var(--text3); font-variant-numeric: tabular-nums; }
.brow .mv.up { color: var(--text); }
.brow .mv.up::before { content: ''; border: 5px solid transparent; border-bottom: 6px solid var(--lime); border-top: 0; margin-bottom: 2px; }
.brow .mv.down::before { content: ''; border: 5px solid transparent; border-top: 6px solid var(--text3); border-bottom: 0; margin-bottom: 2px; }
.brow .bname { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bval { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brow .bval small { font-family: var(--body); font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: .08em; margin-left: 3px; text-transform: uppercase; }
.board-note { font-size: 11px; color: var(--text3); padding: 0 16px 8px; letter-spacing: .06em; }

.ticker {
  display: flex; align-items: center; margin: 0 12px; border-radius: 12px; overflow: hidden; white-space: nowrap; font-size: 12.5px;
  background: rgba(30,30,34,.72); box-shadow: inset 0 1px 0 var(--edge), 0 8px 20px -10px #000;
  min-height: 32px;
}
.ticker .tk-l {
  display: flex; align-items: center; gap: 6px; align-self: stretch;
  padding: 0 16px 0 12px; flex-shrink: 0;
  font-family: var(--display); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--lime); color: #10140A;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.ticker .tk-l::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #10140A; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker .tk-t { padding: 0 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.ticker .tk-t b { color: var(--text); font-weight: 700; }

.sc-foot { position: sticky; bottom: 0; z-index: 8; margin-top: auto; display: flex; gap: 10px; padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(11,11,12,0), rgba(11,11,12,.9) 30%, var(--bg) 70%); }
.sc-foot .prev { flex: 1; }
.sc-foot .next { flex: 2; }

/* ─────────────────────────────────────────────────────────────
   RESULTS — full Broadcast
   ───────────────────────────────────────────────────────────── */
#screen-results { isolation: isolate; }
#screen-results::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.018) 0 2px, transparent 2px 14px), radial-gradient(80% 30% at 50% 0%, #1d212b, transparent); }
.r-top .date { font-size: 12px; color: var(--text3); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.r-plate { display: flex; align-items: stretch; margin: 10px 0 16px; background: linear-gradient(180deg, #232733, #161922); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 2px solid var(--acc); }
.r-final { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 42px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; padding: 12px 36px 10px 16px; color: var(--acc-ink); background: linear-gradient(180deg, var(--acc), var(--acc2)); clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); flex-shrink: 0; }
.r-plate-t { display: flex; flex-direction: column; justify-content: center; padding: 6px 14px 6px 10px; min-width: 0; }
.r-mode { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.05; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-course { font-size: 12px; color: var(--text2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-mods { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 16px 16px; }
.r-winner { display: flex; align-items: center; gap: 14px; margin: 0 12px 18px; padding: 16px 30px 16px 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--acc) 24%, #171a22), #171a22 65%);
  border-left: 4px solid var(--acc); clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); box-shadow: 0 20px 30px -14px #000; }
.r-winner .pchip { border-radius: 8px; }
.r-wtext { flex: 1; min-width: 0; }
.r-wlbl { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; color: var(--acc); }
.r-wname { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: .95; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: normal; overflow: hidden; }
.r-wname.fit-break { overflow-wrap: anywhere; }
.r-wname.tie { font-size: 30px; }
.r-wscore { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--acc); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.r-wscore small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .14em; color: var(--text2); font-weight: 800; }
.r-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 0 16px 8px; padding: 2px 0 2px 8px; border-left: 3px solid var(--lime); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--text3); }
.r-board { margin: 0 12px 18px; background: #12141a; box-shadow: inset 0 0 0 1px #232733; }
.r-board .brow { background: #12141a; padding-left: 0; }
.r-board .brow + .brow { box-shadow: inset 0 1px 0 #1d2029; }
.r-board .brow .rank { align-self: stretch; width: 40px; margin: -10px 0; display: grid; place-items: center; padding-right: 6px; background: #1d2029; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.r-board .brow.first { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 16%, #12141a), #12141a 60%); }
.r-board .brow.first .rank { background: linear-gradient(180deg, var(--acc), var(--acc2)); color: var(--acc-ink); }
.r-board .brow .sub { display: block; font-family: var(--body); font-size: 11px; font-weight: 600; color: var(--text3); margin-top: 2px; letter-spacing: 0; text-transform: none; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px 18px; }
.award { display: flex; align-items: center; gap: 10px; padding: 11px 12px; min-width: 0; border-radius: 4px; background: linear-gradient(180deg, #1b1e26, #14161c); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.award .ai { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; background: #262a35; color: var(--acc); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.award .ai svg { width: 17px; height: 17px; }
.award .at { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--text3); line-height: 1.2; }
.award .an { font-weight: 700; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.award .as { font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .awards { grid-template-columns: 1fr; } }

/* ── SCORECARD GRID (results, round detail, edit) ── */
.card-scroll { margin: 0 12px 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sgrid { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; background: #12141a; box-shadow: inset 0 0 0 1px #232733; }
.sgrid th, .sgrid td { text-align: center; padding: 5px 1px; }
.sgrid thead th { font-size: 11px; font-weight: 800; color: var(--text2); background: #1a1d25; letter-spacing: .04em; }
.sgrid thead tr.par th { font-size: 11px; color: var(--text3); font-weight: 700; background: #16181f; }
.sgrid thead tr.dist th { font-size: 10px; color: var(--text3); font-weight: 600; background: #16181f; }
.sgrid th.lbl, .sgrid td.lbl { text-align: left; padding-left: 10px; padding-right: 6px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--text); position: sticky; left: 0; background: #12141a; z-index: 1; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.sgrid thead th.lbl { background: #1a1d25; color: var(--text3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.sgrid thead tr.par th.lbl, .sgrid thead tr.dist th.lbl { background: #16181f; }
.sgrid td.tot { font-family: var(--display); font-weight: 800; font-size: 17px; background: #1a1d25; padding: 0 8px; }
.sgrid tbody tr + tr td { box-shadow: inset 0 1px 0 #1d2029; }
.sgrid th.gold { color: var(--gold-hi); }
.sgrid th.reck { color: #FF8A80; }
.sgrid .mark { font-size: 9px; display: block; line-height: 1; }
.card-legend { margin: -4px 16px 16px; }

/* Edit grid */
.egrid td .ecell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.egrid td .ecell button { width: 30px; height: 20px; border-radius: 5px; font-size: 13px; line-height: 1; color: var(--text2); background: rgba(255,255,255,.06); }
.egrid td .ecell .glyph { margin: 2px 0; }

/* ── ROUND DETAIL ── */
.rd-head { padding: 16px 16px 6px; }
.rd-title { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.rd-meta { font-size: 12px; color: var(--text3); margin-top: 4px; }
.rd-winner { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.totals-card { margin: 8px 12px 16px; overflow: hidden; }
.totals-card .brow .bval { font-size: 22px; }
.totals-card .brow .sub { display: block; font-family: var(--body); font-size: 11px; font-weight: 600; color: var(--text3); }

/* ── CUSTOM COURSE ── */
.par-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.par-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; }
.par-cell .h { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); font-weight: 800; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--well); box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
.seg button { flex: 1; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text2); }
.seg button[aria-pressed="true"] { color: var(--text); background: linear-gradient(180deg, var(--s2-top), var(--s2-bot)); box-shadow: inset 0 1px 0 var(--edge), 0 4px 10px -4px #000; }

/* ── v7.2: guest mode + shared courses ── */
.splash-or { font-size: 12px; color: var(--text3); text-align: center; margin-top: 10px; letter-spacing: .06em; }
.guest-card { background: linear-gradient(160deg, #2a3514, #171a12 70%); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px rgba(158,194,40,.3), var(--shadow-card); }
.guest-save { display: flex; flex-direction: column; gap: 6px; }
.list-head { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--text3); padding: 8px 2px 0; }
.tag-community { background: rgba(127,214,255,.12); color: #8FD8FF; }
.list-card .s .tag { margin-left: 4px; vertical-align: 1px; font-size: 9px; padding: 2px 6px; }
.add-course { display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1.5px rgba(158,194,40,.35), var(--shadow-card); }
.add-course .add-plus { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #10140A; background: linear-gradient(180deg, var(--lime-hi), var(--lime)); }
.add-course .t { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; line-height: 1.05; }
.add-course .s { display: block; font-size: 12px; color: var(--text2); margin-top: 3px; }
.seg-stepper { flex: 1.3; justify-content: center; gap: 8px; }
.seg-stepper button { width: 32px; height: 32px; flex: none; padding: 0; }
.chip-tap { cursor: pointer; }
.chip-tap:active { transform: scale(.95); }
.chip-edit { font-size: 10px; opacity: .6; }

/* ── v7.4: course filters ── */
.course-tools { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text2); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair-2); white-space: nowrap; }
.fchip[aria-pressed="true"] { color: #10140A; background: linear-gradient(180deg, var(--lime-hi), var(--lime)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.fchip .n { font-weight: 600; opacity: .6; margin-left: 4px; }
.filter-row { display: grid; grid-template-columns: 1.3fr .85fr 1.35fr; gap: 6px; }
.fselect { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fselect span { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--text3); padding-left: 2px; }
.fselect select { width: 100%; min-width: 0; padding: 9px 26px 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid rgba(255,255,255,.06);
  background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23BDB8AE' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none; box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
.fselect select.on { border-color: rgba(158,194,40,.6); }
.filter-summary { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text3); min-height: 18px; }
.filter-summary button { color: var(--lime); font-weight: 700; font-size: 12px; }
.show-more { margin-top: 2px; }

/* ── v7.5: playing for keeps + ledger ── */
.keeps-card { margin: 14px 16px 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.keeps-title { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.05; }
.keeps-sub { display: block; font-size: 12px; color: var(--text3); }
.switch { -webkit-appearance: none; appearance: none; width: 52px; height: 30px; border-radius: 999px; flex-shrink: 0; position: relative; cursor: pointer;
  background: var(--well); box-shadow: inset 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 1px var(--hair-2); transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #F2EFE8, #BDB8AE); box-shadow: 0 2px 6px rgba(0,0,0,.6); transition: transform .22s var(--spring); }
.switch:checked { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.switch:checked::after { transform: translateX(22px); }
.keeps-stake { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.keeps-rule { font-size: 12px; color: var(--text2); line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgba(201,168,76,.08); box-shadow: inset 0 0 0 1px rgba(201,168,76,.22); }
.brow .keeps { display: block; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--gold-hi); margin-top: 2px; }
.brow .keeps.neg { color: var(--text3); }
.keeps-pay { margin: 0 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: linear-gradient(180deg, #1b1e26, #14161c); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); border-radius: 4px; }
.pay-row .who { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-row .who span { color: var(--text3); font-weight: 500; }
.pay-row .amt { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--gold-hi); white-space: nowrap; }
.pay-row .amt small { font-family: var(--body); font-size: 10px; color: var(--text3); margin-left: 3px; letter-spacing: .08em; }
.keeps-note { font-size: 12px; color: var(--text3); padding: 0 4px; }
.drawer-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1a1204; font-size: 11px; font-weight: 800; margin-left: 6px; }
.ledger-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 12px 6px; }
.ledger-summary .card { padding: 14px; }
.ledger-summary .v { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.ledger-summary .k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--text3); margin-top: 4px; }
.ledger-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ledger-row .main { flex: 1; min-width: 0; }
.ledger-row .t { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-row .s { font-size: 12px; color: var(--text3); }
.ledger-row .bal { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.ledger-row .bal small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--text3); }
.bal.pos { color: var(--gold-hi); } .bal.neg { color: var(--text); } .bal.zero { color: var(--text3); }
.activity { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; font-size: 13px; color: var(--text2); }
.activity + .activity { box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.activity .ic { width: 28px; flex-shrink: 0; text-align: center; font-size: 16px; }
.activity .d { font-size: 11px; color: var(--text3); }
.activity b { color: var(--text); }
.new-pill { display: inline-block; margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: .1em; padding: 2px 6px; border-radius: 5px; background: var(--gold); color: #1a1204; vertical-align: 1px; }
.home-ledger { display: flex; align-items: center; gap: 12px; padding: 13px 16px; width: 100%; text-align: left; }
.home-ledger .t { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; line-height: 1.1; }
.home-ledger .s { font-size: 12px; color: var(--text2); }

/* Search + Add stays pinned under the top bar */
.course-search-row { position: sticky; top: 56px; z-index: 9; display: flex; gap: 8px; padding: 8px 16px 10px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.course-search-row .input { flex: 1; min-width: 0; }
.add-course-btn { width: auto; flex-shrink: 0; padding: 0 16px; border-radius: var(--r-sm); font-size: 15px; }
.add-course-btn span { font-size: 20px; line-height: 1; margin-right: 2px; }

/* Course creator: optional feet per hole */
.par-cell .ft { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 2px; }
.par-cell .ft input { width: 100%; min-width: 0; padding: 7px 6px; text-align: center; font-size: 14px; font-weight: 600; border-radius: 8px; color: var(--text);
  background: var(--well); border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 2px 3px rgba(0,0,0,.5); outline: none; -moz-appearance: textfield; }
.par-cell .ft input::-webkit-outer-spin-button, .par-cell .ft input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.par-cell .ft input:focus { border-color: rgba(158,194,40,.7); }
.par-cell .ft span { font-size: 11px; color: var(--text3); font-weight: 700; }
.course-card .copy { font-size: 15px; padding: 6px 10px; border-radius: 10px; color: var(--text3); box-shadow: inset 0 0 0 1px var(--hair-2); flex-shrink: 0; }

/* Feature request */
textarea.input { resize: vertical; min-height: 130px; line-height: 1.5; font-family: var(--body); }
#feedback-type button { font-size: 13px; padding: 10px 6px; }

/* City entry */
.city-row { display: flex; gap: 8px; }
.city-row .input { flex: 1; min-width: 0; }
.loc-btn { width: auto; flex-shrink: 0; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.tag-addcity { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: #10140A; background: var(--lime); vertical-align: 1px; }
@media (max-width: 380px) { .loc-btn { font-size: 0; padding: 0 12px; } .loc-btn::first-letter { font-size: 16px; } }

/* v7.9 wager types */
.keeps-type { margin: 12px 0 4px; }
.keeps-type button { font-size: 12.5px; padding: 9px 4px; white-space: nowrap; }

/* v7.9 friends */
#friends-content > .card, #friends-content > .friend-add, #friends-content > #friend-results > .card, #friends-content > #friend-played > .card { margin: 0 12px 8px; }
#friends-content .r-sec { margin: 16px 12px 8px; }
.friend-code-card { margin: 16px 12px 12px !important; text-align: center; }
.friend-code { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: .14em; line-height: 1.1; margin: 4px 0 2px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.friend-add { display: flex; gap: 8px; }
.friend-add .input { flex: 1; min-width: 0; }
.friend-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.friend-row .main { flex: 1; min-width: 0; }
.friend-row .t { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-row .s { font-size: 12px; color: var(--text3); }
.friend-lock { width: 36px; height: 36px; flex-shrink: 0; font-size: 16px; opacity: .8; }
.friend-rm.armed { color: var(--red, #ff6b6b); border-color: currentColor; }
.friend-chips:empty { display: none; }
.friend-chips { margin: 12px 16px 0; }
.friend-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--text); background: linear-gradient(180deg, var(--s2-top), var(--s2-bot)); box-shadow: inset 0 1px 0 var(--edge), 0 4px 10px -4px #000; }
.friend-chip span { font-size: 15px; }
.friend-tag { flex-shrink: 0; font-size: 12px; padding: 3px 6px; }
.ctp-pick { padding: 12px 14px; }
.ctp-q { font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.link-btn { color: var(--lime); font-weight: 700; text-decoration: underline; }

/* v7.9 onboarding: intro */
#screen-intro { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; padding: 0; }
#screen-intro.hidden { display: none; }
.intro-top { display: flex; justify-content: flex-end; padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.intro-skip { color: var(--text2); font-weight: 700; font-size: 14px; padding: 8px 12px; }
.intro-track { flex: 1 1 auto; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.intro-track::-webkit-scrollbar { display: none; }
.intro-card { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 28px; text-align: center; min-height: 0; }
.intro-h { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: .95; text-transform: uppercase; margin: 28px 0 10px; letter-spacing: -.01em; }
.intro-h em { font-style: normal; color: var(--lime); display: block; }
.intro-p { color: var(--text2); font-size: 15px; line-height: 1.45; max-width: 320px; margin: 0; }
.intro-vis { height: 190px; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; perspective: 700px; }
.intro-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); min-height: 72px; }
.intro-dots { display: flex; gap: 7px; }
.intro-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--edge); transition: width .25s, background .25s; }
.intro-dots i.on { width: 22px; background: var(--lime); }
.intro-cta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 22px; }
.intro-link { color: var(--text2); font-size: 13px; font-weight: 600; text-decoration: underline; padding: 6px; }
/* card 1: fanned mode cards */
.vis-modes .fan { position: absolute; width: 104px; height: 150px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 30%, var(--s2-top)), var(--s2-bot)); border: 1px solid color-mix(in srgb, var(--mc) 55%, transparent);
  box-shadow: 0 18px 30px -12px #000, inset 0 1px 0 var(--edge), 0 0 30px -10px var(--mc);
  transform: translateX(var(--x)) rotate(var(--r)) translateY(var(--y, 0px)); transition: transform .6s cubic-bezier(.2,.9,.3,1.2); }
.vis-modes .fan span { font-size: 38px; }
.intro-card:not(.active) .vis-modes .fan { transform: translateX(0) rotate(0) scale(.9); }
/* card 2: two phones */
.vis-join { gap: 14px; }
.vis-join .phone { width: 96px; height: 160px; border-radius: 18px; border: 2px solid var(--edge); background: linear-gradient(180deg, var(--s2-top), var(--s2-bot)); padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 16px 28px -12px #000; }
.vis-join .jc { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .12em; color: var(--lime); }
.vis-join .ln { display: flex; align-items: center; gap: 6px; }
.vis-join .ln b { flex: 1; height: 8px; border-radius: 4px; background: var(--edge); }
.vis-join .ln i { font-style: normal; font-weight: 800; font-size: 13px; color: var(--gold-hi); }
.vis-join .sync { font-size: 26px; color: var(--lime); animation: introPulse 1.4s ease-in-out infinite; }
@keyframes introPulse { 50% { opacity: .35; transform: scale(.85); } }
/* card 3: modifier chips */
.vis-mods { flex-wrap: wrap; gap: 10px; align-content: center; max-width: 300px; margin: 0 auto; }
.vis-mods .mchip { padding: 10px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; background: linear-gradient(180deg, var(--s2-top), var(--s2-bot)); box-shadow: inset 0 1px 0 var(--edge), 0 8px 16px -8px #000; }
.intro-card.active .vis-mods .mchip { animation: introPop .5s var(--d) both cubic-bezier(.2,.9,.3,1.4); }
@keyframes introPop { from { opacity: 0; transform: translateY(14px) scale(.8); } }
/* card 4: points owed */
.vis-keeps { flex-direction: column; gap: 8px; width: 100%; max-width: 300px; margin: 0 auto; }
.vis-keeps .kp { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg, var(--s2-top), var(--s2-bot)); box-shadow: inset 0 1px 0 var(--edge); text-align: left; }
.vis-keeps .av { font-size: 22px; }
.vis-keeps .w { flex: 1; font-weight: 700; font-size: 14px; }
.vis-keeps .w small { color: var(--text3); font-weight: 600; }
.vis-keeps .a { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--gold-hi); }
.vis-keeps .a small { font-size: 10px; margin-left: 2px; }
.vis-keeps .settle { margin-top: 4px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--gold-hi); color: var(--gold-hi); font-weight: 700; font-size: 13px; }
@media (max-height: 640px) { .intro-vis { height: 150px; } .intro-h { font-size: 32px; margin-top: 16px; } .intro-cta { margin-top: 14px; } }

/* v7.9 onboarding: tips */
.tip-bubble { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; z-index: 900; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.4;
  color: var(--ink, #10140A); background: var(--lime); box-shadow: 0 18px 40px -10px #000; display: flex; gap: 12px; align-items: center; animation: introPop .3s both; }
.tip-bubble b { font-weight: 800; }
.tip-bubble .tip-ok { flex-shrink: 0; font-weight: 800; font-size: 13px; padding: 7px 10px; border-radius: 9px; background: rgba(0,0,0,.14); color: inherit; }
.tip-bubble::before { content: ''; position: absolute; left: var(--ax); width: 14px; height: 14px; background: var(--lime); transform: rotate(45deg); }
.tip-bubble.below::before { top: -6px; }
.tip-bubble.above::before { bottom: -6px; }
.tip-target { position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--lime), 0 0 24px 2px color-mix(in srgb, var(--lime) 60%, transparent) !important; border-radius: 12px; }

/* ── v8 CREWS + SEASONS ── */
#crew-content .r-sec { margin: 18px 12px 8px; }
#crew-content > .card { margin: 0 12px 8px; }
#crew-content .friend-row .side .w { font-size: 13px; font-weight: 700; color: var(--lime); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-crew .t { max-width: 100%; }
.season-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 14px 12px 4px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sa) 26%, #151517), #151517 72%);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px color-mix(in srgb, var(--sa) 45%, transparent), var(--shadow-card); }
.season-banner .eyebrow { color: var(--sa); }
.season-emoji { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.season-name { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.season-banner .s, .crew-head .s, .crew-invite .s, .solo-card .s { font-size: 12px; color: var(--text2); }
.season-banner b { color: var(--text); }
.crew-head { display: flex; align-items: center; gap: 14px; margin-top: 12px !important; }
.crew-emoji { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--s3); box-shadow: inset 0 0 0 1px var(--hair-2); flex-shrink: 0; }
.crew-emoji.lg { width: 56px; height: 56px; font-size: 30px; border-radius: 14px; }
.crew-name { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: .95; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.crew-invite .t { font-weight: 700; font-size: 16px; }
.crew-bring { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.crew-bring input { width: 18px; height: 18px; accent-color: var(--gold); }
.crew-create { display: flex; flex-direction: column; gap: 10px; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick button { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; box-shadow: inset 0 0 0 1px var(--hair-2); }
.emoji-pick button.on { background: rgba(158,194,40,.16); box-shadow: inset 0 0 0 2px var(--lime); }
.solo-card { margin-top: 12px !important; }
.solo-pts { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05; color: var(--gold-hi); }
.solo-pts span { font-size: 16px; color: var(--text3); }
.crew-table { padding: 4px 0; }
.ct-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--hair); }
.ct-row:first-child { border-top: 0; }
.ct-row.me { background: rgba(158,194,40,.08); }
.ct-row.unq .ct-pts { color: var(--text3); }
.ct-rank { width: 18px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--text3); }
.ct-row:first-child .ct-rank { color: var(--gold-hi); }
.ct-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-pts { width: 40px; text-align: right; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ct-n { width: 26px; text-align: right; font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }
.ct-carry { margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--text3); }
.crown { margin-left: 4px; font-size: 13px; }
.past-season .t { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.past-season .champ { font-size: 14px; margin: 2px 0 6px; }
.past-season .champ b { color: var(--gold-hi); }
.title-row { font-size: 12px; color: var(--text2); padding: 2px 0; }
.trophy { background: linear-gradient(135deg, rgba(201,168,76,.16), transparent 70%), linear-gradient(180deg, var(--s1-top), var(--s1-bot)); }
.trophy-emoji { font-size: 30px; width: 44px; text-align: center; }
.crew-chip { box-shadow: inset 0 0 0 1.5px var(--gold), 0 4px 10px -4px #000; margin-bottom: 8px; }
.linkish { color: var(--lime); font-weight: 700; text-decoration: underline; }
.btn.armed { color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }

/* ── v8.1 HOME — Broadcast ── */
#screen-home { isolation: isolate; }
#screen-home::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.018) 0 2px, transparent 2px 14px), radial-gradient(80% 30% at 50% 0%, #1d212b, transparent); }
.home-hero { padding: 18px 16px 14px; }
.home-name { font-size: 40px; }

/* Season block */
.hs { display: block; width: 100%; cursor: pointer; background: #12141a; box-shadow: inset 0 0 0 1px #232733, 0 20px 30px -16px #000; transition: transform .14s var(--spring); }
.hs:active { transform: scale(.99); }
.hs-ticker { margin: 0; border-radius: 0; background: #181b23; box-shadow: none; }
.hs .ticker .tk-l { background: var(--sa); color: #140c04; }
.hs .ticker .tk-l::before { display: none; }
.hs .ticker .tk-l.live::before { display: block; background: #140c04; }
.hs.alert .ticker .tk-l { background: var(--gold-hi); animation: hsPulse 1.6s ease-in-out infinite; }
@keyframes hsPulse { 50% { filter: brightness(1.25); } }
.hs-ribbon { display: flex; align-items: stretch; gap: 12px; padding-right: 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--sa) 22%, #171a22), #171a22 70%);
  border-top: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 -2px 0 var(--sa); }
.hs-plate { display: flex; align-items: flex-end; gap: 8px; padding: 12px 30px 10px 14px; flex-shrink: 0; color: #140c04;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sa) 80%, #fff), var(--sa) 45%, color-mix(in srgb, var(--sa) 70%, #000));
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); min-width: 104px; }
.hs-lbl { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1; padding-bottom: 4px; opacity: .7; }
.hs-num { font-family: var(--display); font-weight: 800; font-size: 76px; line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(255,255,255,.25); }
.hs-final { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 38px; line-height: 1; text-transform: uppercase; align-self: center; }
.hs-emoji { font-size: 48px; line-height: 1; align-self: center; }
.hs-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.hs-name { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: .95; text-transform: uppercase; letter-spacing: .01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hs-sub { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-crown { font-size: 11.5px; color: var(--text2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-crown b { color: var(--sa); }
.hs-board { margin: 0; box-shadow: none; }
.hs-board .brow.me .bname { color: var(--sa); }
.hs-board .bval { font-size: 22px; }
.hs-board .brow { padding-top: 7px; padding-bottom: 7px; }
.hs-board .brow .rank { margin: -7px 0; }
.hs-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); border-top: 1px solid #1d2029; }
.hs-foot > span:last-child { margin-left: auto; font-size: 18px; letter-spacing: 0; }
.hs-foot.cta { color: var(--sa); }
.hs-faces { display: flex; }
.hs-faces span { width: 24px; height: 24px; margin-right: -6px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--s3); box-shadow: 0 0 0 2px #12141a; }
.hs-faces + span { margin-left: 8px; }

/* Start + Join */
.hero-action { border-radius: 4px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.hero-action .t { font-style: italic; font-size: 36px; }
.join-action { border-radius: 4px; background: linear-gradient(180deg, #1b1e26, #14161c); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 3px 0 0 var(--lime); }
.join-action .code-hint { display: flex; gap: 4px; letter-spacing: 0; }
.join-action .code-hint i { font-style: normal; width: 24px; height: 30px; display: grid; place-items: center; font-size: 16px; color: var(--text3); background: #0e1015; box-shadow: inset 0 0 0 1px #2a2e3a; border-radius: 3px; }

/* Ledger + recent rounds */
.home-ledger { border-radius: 4px; background: linear-gradient(180deg, #1b1e26, #14161c); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 3px 0 0 var(--gold); }
.home-sec { margin: 22px 16px 10px; align-items: center; }
.home-sec .btn-xs { color: var(--text3); letter-spacing: .12em; font-weight: 800; font-size: 10px; text-transform: uppercase; }
#history-list { padding: 0 12px 40px !important; gap: 0; display: flex; flex-direction: column; }
#history-list .list-card { border-radius: 0; margin: 0; background: #12141a; box-shadow: inset 0 0 0 1px #1d2029; padding: 12px 12px 12px 18px; }
#history-list .list-card + .list-card { margin-top: -1px; }
#history-list .list-card:first-child { border-radius: 4px 4px 0 0; }
#history-list .list-card:last-child { border-radius: 0 0 4px 4px; }
#history-list .accent-rail::before { top: 0; bottom: 0; width: 5px; border-radius: 0; }
#history-list .list-card .t { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .01em; }
#history-list .list-card .side .w { font-family: var(--display); font-weight: 800; font-size: 17px; text-transform: uppercase; }
#history-list .guest-card, #history-list .empty { border-radius: 4px; }

/* ── v8.2 crew invite links ── */
.splash-invite { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin: 18px 16px 0; padding: 12px 16px 12px 12px; text-align: left;
  background: linear-gradient(100deg, rgba(255,138,31,.22), #171a22 70%); border-left: 4px solid #FF8A1F; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.si-emoji { font-size: 34px; }
.si-k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: #FF8A1F; }
.si-t { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-s { font-size: 12px; color: var(--text2); margin-top: 2px; }
.splash-join-crew { display: none; }
#screen-splash.has-invite .splash-join-crew { display: flex; }
#screen-splash.has-invite [data-next="home"], #screen-splash.has-invite .row [data-mode="signup"] { display: none; }
.crew-link { display: flex; align-items: center; gap: 12px; margin-top: 14px !important; }
.crew-link .t { font-weight: 700; font-size: 15px; }
.crew-link .s { font-size: 12px; color: var(--text3); }
.muted-link { font-size: 12px; color: var(--text3); text-decoration: none; font-weight: 600; }
.armed-link { color: var(--bad); }

/* ── v8.4 Seasons: limited content + Seasons page ── */
.hs-ribbon, .hs-ticker, .hs-crewpart { cursor: pointer; }
.hs-ribbon { position: relative; }
.hs-more { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--text3); }
.hs-limited { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 14px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--sa) 10%, #12141a); border-top: 1px solid #1d2029; cursor: pointer; }
.hs-limited .lt { margin-left: auto; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--sa); }
.limited-card { position: relative; display: block; padding: 14px 16px; border-radius: 4px; text-align: left;
  background: linear-gradient(110deg, color-mix(in srgb, var(--sa) 24%, #171a22), #171a22 70%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sa) 60%, transparent), 0 16px 30px -18px #000; }
.limited-card.selected { box-shadow: inset 0 0 0 3px var(--sa), 0 0 30px -8px var(--sa); }
.limited-card .info { position: absolute; top: 10px; right: 10px; }
.lc-tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #140c04; background: var(--sa); padding: 3px 16px 2px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); margin-bottom: 10px; }
.lc-row { display: flex; gap: 14px; align-items: flex-start; }
.lc-icon { font-size: 34px; line-height: 1; }
.limited-card .mc-name { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
.limited-card .mc-desc { font-size: 13px; color: var(--text2); margin-top: 4px; line-height: 1.4; }
.prow.is-zombie { box-shadow: inset 0 0 0 1.5px rgba(124,255,107,.45), var(--shadow-card); background: linear-gradient(100deg, rgba(124,255,107,.10), transparent 60%), linear-gradient(180deg, var(--s1-top), var(--s1-bot)); }
#seasons-content .r-sec { margin: 22px 12px 10px; }
#seasons-content > .card, #seasons-content > .hs { margin: 0 12px 10px; }
.sp-hero { margin-top: 14px !important; }
.sp-hero .hs-ribbon { cursor: default; }
.sp-hero .hs-name { font-size: 30px; }
.sp-tagline { padding: 10px 14px; font-size: 13px; color: var(--text2); border-top: 1px solid #1d2029; }
.sp-limited { padding: 14px 16px 16px; border-radius: 4px; background: linear-gradient(110deg, color-mix(in srgb, var(--sa) 22%, #171a22), #171a22 70%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sa) 55%, transparent); }
.sp-lhead { display: flex; align-items: center; gap: 10px; }
.sp-licon { font-size: 34px; }
.sp-lname { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.sp-rules { margin: 10px 0 12px; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: var(--text2); }
.sp-rules li + li { margin-top: 3px; }
.sp-play { width: 100%; }
.sp-bonus { margin: 4px 16px 0; }
.sp-bonus b { color: var(--gold-hi); }
.sp-crown { display: flex; align-items: center; gap: 14px; background: linear-gradient(110deg, color-mix(in srgb, var(--sa) 20%, #171a22), #171a22 70%); }
.sp-crown-emoji { font-size: 44px; }
.sp-crown .t { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.sp-crown .s { font-size: 12.5px; color: var(--text2); margin-top: 4px; }
.sp-titles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px; }
.sp-title { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 4px; background: linear-gradient(180deg, #1b1e26, #14161c); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.sp-title span { font-size: 20px; }
.sp-title b { font-size: 13.5px; }
.sp-title small { font-size: 11.5px; color: var(--text3); }
.sp-how { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sp-how b { display: inline-block; min-width: 34px; font-family: var(--display); font-size: 20px; color: var(--gold-hi); }
.sp-how .muted { font-size: 12px; margin-top: 4px; }
.sp-crew-btn { margin: 4px 12px 0; width: calc(100% - 24px); }
.sp-cal { padding: 4px 0; }
.sp-cal-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #1d2029; }
.sp-cal-row:first-child { border-top: 0; }
.sp-cal-row.now { background: linear-gradient(90deg, color-mix(in srgb, var(--sa) 20%, transparent), transparent 70%); box-shadow: inset 4px 0 0 var(--sa); }
.sp-cal-row.done { opacity: .5; }
.sp-cal-emoji { font-size: 22px; width: 28px; text-align: center; }
.sp-cal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-cal-main .n { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; line-height: 1.1; }
.sp-cal-main .d { font-size: 12px; color: var(--text3); }
.sp-cal-state { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--text3); }
.sp-cal-row.now .sp-cal-state { color: var(--sa); }
