/* ─────────────────────────────────────────────────────────────
   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: 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; }
