/* Who Cooked — night game under blue floodlights.
   Black ground, cobalt light. One loud element: the slanted score bug. */
:root {
  --black: #000000;
  --s1: #070a11;      /* page panels */
  --s2: #0d121d;      /* raised */
  --s3: #151c2c;      /* inputs, hover */
  --line: #18202f;
  --line2: #243049;
  --text: #eef2fa;
  --muted: #8794ab;
  --dim: #56627a;
  --blue: #2b6bff;
  --blue-hi: #4f85ff;
  --ice: #a9c6ff;
  --navy: #071636;
  --gold: #f2c14e;
  --red: #ff4d57;

  --r-elite: #3d7bff;
  --r-great: #12b5a5;
  --r-good: #1fae5b;
  --r-ok: #b9c21a;
  --r-meh: #e8901c;
  --r-bad: #e5484d;
  --r-none: #1c2539;

  --display: "Big Shoulders Display", "Big Shoulders", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --slant: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 15px/1.5 var(--body);
  min-height: 100vh;
  padding-bottom: 84px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h2 { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h3 { font: 600 17px/1.3 var(--body); margin-bottom: 12px; }
h4 { font: 600 14px/1.3 var(--body); color: var(--muted); margin: 18px 0 10px; }
code { background: var(--s3); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 18px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 2px; color: var(--muted); font-size: 13px; }
.meta > span { display: inline-flex; align-items: center; gap: 5px; }
.footnote { margin: 18px auto 0; max-width: 520px; }

/* ---------- Top bar & nav ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding-block: 10px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 900 25px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a, .bell { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-weight: 600; color: var(--muted); border-radius: 6px; }
.nav a:hover, .bell:hover { color: var(--text); }
.nav a.active, .bell.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -11px; height: 2px; background: var(--blue); }
.nav [data-icon] { display: none; }
.nav .nav-new { background: var(--blue); color: #fff; margin: 0 6px; }
.nav .nav-new [data-icon] { display: inline-flex; }
.nav .nav-new:hover { background: var(--blue-hi); color: #fff; }
.nav .nav-new.active::after { display: none; }
.bell { padding: 9px; }
.bell .ic { width: 22px; height: 22px; }
@media (min-width: 761px) { .nav a .dot { top: -2px; right: -8px; } .nav a:has(.dot:not([hidden])) { padding-right: 20px; } }
.dot { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--body); text-align: center; }
body.signed-out .topbar { display: none; }

@media (max-width: 760px) {
  /* backdrop-filter would make the topbar the containing block for the fixed bottom nav */
  .topbar { gap: 10px; backdrop-filter: none; background: #000; }
  .brand img { height: 34px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
    justify-content: space-around; gap: 0;
    padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px));
    background: rgba(0, 0, 0, .94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .nav a { flex-direction: column; gap: 3px; padding: 6px 8px; font-size: 11px; min-width: 58px; }
  .nav [data-icon] { display: inline-flex; }
  .nav [data-icon] .ic { width: 22px; height: 22px; }
  .nav a.active::after { left: 30%; right: 30%; top: -7px; bottom: auto; }
  .nav .nav-new { margin: -2px 0 0; padding: 8px 14px; border-radius: 10px; }
  .nav .dot { top: 0; right: 6px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; }
  .bell { margin-left: auto; }
  body.signed-out .nav { display: none; }
}

main {
  max-width: 1060px; margin: 0 auto;
  padding-block: 22px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body.signed-out main { max-width: none; padding: 0; }
.loading { padding: 100px 0; text-align: center; color: var(--muted); }
.page-title { font: 900 clamp(46px, 8vw, 72px)/.88 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 4px 0 14px; }
.lead { color: var(--muted); max-width: 60ch; margin: -2px 0 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--text); }

/* ---------- Surfaces ---------- */
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 10px; }
.panel.pad { padding: 20px; }
.panel.flush { overflow: hidden; }
.block { margin-top: 30px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head.tight { margin: 0 0 12px; }
.block-head.tight h3, .block-head.tight h4 { margin: 0; }
.stack { display: grid; gap: 14px; }
.two-col { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
main > .panel + .panel, main > .panel + .two-col, main > .two-col + .panel, main > section + section.panel, main > .two-col + .two-col { margin-top: 14px; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 10px; margin-top: 14px; }
.empty a, .empty b { color: var(--ice); }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 6px; border: 1px solid var(--line2);
  background: var(--s3); color: var(--text); font: 600 14px/1.2 var(--body); cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: #1c2538; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.btn.quiet { background: transparent; }
.btn.quiet:hover { background: var(--s2); }
.btn.danger { color: var(--red); }
.btn.on-out { background: transparent; border-color: var(--red); color: var(--red); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.big { padding: 14px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn-pair { display: inline-flex; gap: 8px; }

input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 6px; border: 1px solid var(--line2);
  background: var(--s2); color: var(--text); font: 15px var(--body);
}
textarea { resize: none; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 107, 255, .2); }
input[type="file"] { padding: 9px; font-size: 13px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.row3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 2fr; margin-top: 16px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 label:last-child { grid-column: span 2; } }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline input { flex: 1; min-width: 150px; width: auto; }
.search { max-width: 220px; padding: 8px 12px; font-size: 14px; }
.search.block { max-width: none; margin: 14px 0; }
.toggle { display: flex; align-items: center; gap: 8px; color: var(--text); white-space: nowrap; }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { color: #fff; border-color: var(--blue); background: rgba(43, 107, 255, .14); }
.chips + .chips { margin-top: 8px; }

.seg2 { display: inline-flex; padding: 3px; gap: 3px; background: var(--s1); border: 1px solid var(--line); border-radius: 8px; flex: none; }
.seg2 button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; }
.seg2 button.on { background: var(--s3); color: var(--text); box-shadow: inset 0 -2px 0 var(--blue); }
.seg2.full { display: flex; margin-bottom: 4px; overflow-x: auto; }
.seg2.full button { flex: 1; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 19px; padding: 0 6px; border-radius: 4px; background: var(--s3); color: var(--text); font-size: 11.5px; font-weight: 700; }
.count.red { background: var(--red); color: #fff; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; background: var(--s3); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.gold { background: rgba(242, 193, 78, .13); color: var(--gold); }
.tag.blue { background: rgba(43, 107, 255, .16); color: var(--ice); }

/* ---------- Avatars & rating badges ---------- */
.avatar {
  --s: 40px; position: relative;
  width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--c) 18%, var(--s2));
  color: color-mix(in srgb, var(--c) 80%, #fff);
  font: 800 calc(var(--s) * .4)/1 var(--display);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.xs { --s: 24px; }
.avatar.sm { --s: 32px; }
.avatar.lg { --s: 54px; }
.avatar.xl { --s: 76px; box-shadow: 0 0 0 2.5px var(--blue); }
.avatar.xxl { --s: 116px; box-shadow: 0 0 0 3px var(--blue), 0 0 40px rgba(43, 107, 255, .35); }
.avatar.ghost { --c: #56627a; background: transparent; border: 1.5px dashed var(--dim); box-shadow: none; }
.avatar.whistle { --c: #f2c14e; }
.avatar.whistle .ic { width: 55%; height: 55%; }

.badge {
  display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 6px; border-radius: 4px;
  font: 800 16px/1 var(--display); letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; flex: none;
}
.badge.sm { min-width: 30px; height: 19px; font-size: 13px; border-radius: 3px; }
.badge.lg { min-width: 50px; height: 34px; font-size: 21px; }
.badge.xl { min-width: 66px; height: 44px; font-size: 28px; border-radius: 5px; }
.badge.xxl { min-width: 92px; height: 62px; font-size: 40px; border-radius: 6px; }
.badge.live { min-width: 52px; height: 36px; font-size: 22px; transition: background .15s; }
.r-elite { background: var(--r-elite); }
.r-great { background: var(--r-great); }
.r-good { background: var(--r-good); }
.r-ok { background: var(--r-ok); color: #191c03; }
.r-meh { background: var(--r-meh); }
.r-bad { background: var(--r-bad); }
.r-none { background: var(--r-none); color: #7d89a2; }
.hidden-r { color: var(--ice); background: repeating-linear-gradient(-45deg, #121a2c 0 5px, #18223a 5px 10px); }

/* ---------- Auth ---------- */
.auth {
  min-height: 100vh; display: grid; align-items: center;
  padding-block: 40px;
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .9) 40%, rgba(0, 0, 0, .25) 100%), #000 var(--img) right center / cover no-repeat;
}
@media (min-width: 900px) { .auth { padding-left: 9vw; } }
@media (max-width: 700px) { .auth { background: linear-gradient(0deg, #000 45%, rgba(0, 0, 0, .55) 100%), #000 var(--img) center top / cover no-repeat; align-items: end; } }
.auth-panel { width: 100%; max-width: 420px; display: grid; gap: 14px; }
.lockup { display: flex; align-items: center; gap: 12px; }
.logo-full { width: min(260px, 70%); height: auto; display: block; }
.auth-h { font: 800 clamp(40px, 7vw, 56px)/.92 var(--display); text-transform: uppercase; margin: 10px 0 8px; }
.social { display: grid; gap: 10px; }
.social-btn { width: 100%; padding: 13px 18px; font-size: 15px; background: #fff; color: #0b0f18; border-color: #fff; }
.social-btn:hover { background: #e9eefb; }
.social-btn.on { box-shadow: 0 0 0 2px var(--blue); }
.social-btn.soon { background: var(--s2); color: var(--muted); border-color: var(--line2); }
.soon-note { margin-top: -4px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line2); }
.tabs button { padding: 10px; border: 0; background: transparent; color: var(--muted); font: 600 15px var(--body); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--blue); }
.demo-note { padding: 12px 14px; border-radius: 8px; background: rgba(43, 107, 255, .09); border: 1px solid rgba(43, 107, 255, .3); font-size: 13px; color: #c3d3f5; }
.setup-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }

/* ---------- Feed: player hero ---------- */
.me-hero {
  position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 28px;
  padding: 28px;
  background: linear-gradient(90deg, #000 20%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .3) 100%), #000 var(--img) 70% 40% / cover;
}
.me-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), transparent 70%); }
.me-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.me-id h1 { font: 900 clamp(44px, 7vw, 76px)/.88 var(--display); text-transform: uppercase; margin-bottom: 6px; overflow-wrap: anywhere; }
.me-nums { display: flex; gap: 14px; }
.me-num { display: grid; justify-items: center; gap: 6px; }
.me-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.me-cta { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) {
  .me-hero { grid-template-columns: 1fr; padding: 22px; background: linear-gradient(0deg, #000 35%, rgba(0, 0, 0, .35) 100%), #000 var(--img) 65% center / cover; }
  .me-nums { justify-content: flex-start; }
  .me-cta { justify-self: stretch; }
}

.alerts { display: grid; gap: 8px; margin-top: 14px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 8px; background: var(--s1); border: 1px solid var(--line); }
.alert > .ic { color: var(--ice); width: 20px; height: 20px; }
.alert > span { flex: 1; min-width: 0; }
.alert > b { color: var(--ice); font-weight: 600; white-space: nowrap; }
.alert.hot { border-color: rgba(43, 107, 255, .55); background: linear-gradient(90deg, rgba(43, 107, 255, .16), rgba(43, 107, 255, .03)); }
.alert.hot > .ic { color: var(--gold); }
.alert:hover { border-color: var(--line2); }

.hl-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.hl { position: relative; flex: none; width: 118px; display: grid; justify-items: center; gap: 6px; padding: 16px 10px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); text-align: center; }
.hl:hover { border-color: var(--line2); }
.hl .badge { position: absolute; top: 8px; right: 8px; }
.hl b { font-size: 14px; }
.hl small { color: var(--muted); font-size: 11.5px; }

.feed-controls { display: flex; gap: 12px; align-items: center; margin-top: 30px; min-width: 0; }
.feed-controls .chips { min-width: 0; }
@media (max-width: 640px) { .feed-controls { flex-direction: column; align-items: stretch; } .feed-controls .seg2 { display: flex; } .feed-controls .seg2 button { flex: 1; } }

/* ---------- Ticker rows ---------- */
.ticker { overflow: hidden; }
.tk { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 18px; transition: background .12s; }
.tk + .tk { border-top: 1px solid var(--line); }
.tk:hover { background: var(--s2); }
.tk-when { display: grid; gap: 1px; color: var(--muted); font-size: 12.5px; }
.tk-when .ic { width: 18px; height: 18px; color: var(--ice); margin-bottom: 4px; }
.tk-when b { color: var(--text); font-weight: 600; font-size: 13px; }
.tk-teams { display: grid; gap: 6px; min-width: 0; }
.tk-line { display: flex; align-items: center; gap: 10px; min-width: 0; color: #c9d2e3; }
.tk-line.won { color: var(--text); font-weight: 600; }
.tk-line.lost { color: var(--muted); }
.tk-line.open { color: var(--dim); font-style: italic; }
.tk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-score { min-width: 44px; text-align: center; font: 800 22px/1.3 var(--display); }
.tk-line.won .tk-score { background: var(--blue); color: #fff; clip-path: var(--slant); }
.tk-side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-width: 150px; }
.tk-sub { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tk-motm { display: grid; font-weight: 600; font-size: 14px; line-height: 1.15; }
.tk-motm small { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 640px) {
  .tk { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 14px; padding: 14px; }
  .tk-side { grid-column: 2; justify-content: flex-start; min-width: 0; }
}

/* ---------- Game page ---------- */
.scoreboard {
  position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  padding: 20px 20px 24px; text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .88) 70%, #000 100%), #000 var(--img) center 35% / cover;
}
.sb-meta .meta { justify-content: center; color: #b7c3da; }
.big-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 22px; }
.big-score .side { display: grid; justify-items: center; gap: 10px; font: 800 clamp(17px, 3.4vw, 30px)/1.05 var(--display); text-transform: uppercase; color: var(--muted); overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.big-score .side.win { color: var(--text); }
.bug { background: var(--blue); clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%); padding: 6px 38px; box-shadow: 0 0 60px rgba(43, 107, 255, .5); }
.bug.pre { background: var(--s3); }
.bug-inner { display: flex; align-items: center; gap: 18px; }
.bug-inner b { font: 900 clamp(60px, 11vw, 104px)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.bug-inner b.dim { opacity: .55; }
.bug-inner i { width: 4px; height: .5em; font-size: clamp(60px, 11vw, 104px); background: rgba(255, 255, 255, .55); transform: skewX(-14deg); }
.bug-inner span { font: 900 46px/1.3 var(--display); color: var(--ice); padding: 0 6px; }
.sb-status { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.share-btn { margin-top: 16px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
@media (max-width: 560px) { .bug { padding: 4px 24px; } .bug-inner { gap: 12px; } .big-score { gap: 8px; } }

.motm-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; padding: 24px; border-radius: 12px;
  border: 1px solid rgba(43, 107, 255, .45);
  background: linear-gradient(90deg, #000 25%, rgba(0, 0, 0, .5) 100%), #000 var(--img) center / cover;
}
.motm-k { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; font-size: 14px; }
.motm-banner h2 { font: 900 clamp(40px, 6vw, 56px)/.95 var(--display); margin: 4px 0 6px; }

main > section.panel, main > .two-col, main > .page-actions { margin-top: 14px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-color: rgba(43, 107, 255, .5); }
.cta h3 { margin-bottom: 4px; }
.vote-status { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.vote-status > .ic { color: var(--ice); width: 22px; height: 22px; margin-top: 2px; }
.vote-status b { display: block; font-weight: 600; }
.progress { height: 4px; background: var(--s3); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--blue); }
.closed h3 { margin-bottom: 4px; }

.rsvp-faces { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.rsvp-faces a { display: grid; justify-items: center; gap: 4px; width: 52px; }
.rsvp-faces small, .friend-row small { font-size: 11.5px; color: var(--muted); max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsvp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

.team-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.team-head h3 { margin: 0; font: 800 28px/1 var(--display); text-transform: uppercase; }
.team-head .btn { margin-left: auto; }
.open-side { display: grid; place-items: center; text-align: center; gap: 10px; border-style: dashed; padding: 36px 20px; }
.open-side h3 { margin: 0; }
.open-side p { max-width: 320px; margin-bottom: 4px; }
.ghost-team { width: 64px; height: 64px; border-radius: 50%; border: 1.5px dashed var(--dim); display: grid; place-items: center; font: 800 32px var(--display); color: var(--dim); }
.ref-card { display: flex; align-items: center; gap: 14px; }
.ref-card b { display: block; }
.lineup { margin-top: 10px; }
.lineup-row, .log-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; }
.lineup-row:hover, .log-row:hover { background: var(--s2); }
.lineup-row + .lineup-row, .log-row + .log-row { border-top: 1px solid var(--line); border-radius: 0; }
.rcol { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--muted); text-align: center; }
.cap-inline { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; background: var(--text); color: #000; font: 900 12px/1 var(--display); vertical-align: 1px; }
.motm-inline { display: inline-block; padding: 2px 6px; border-radius: 3px; background: var(--gold); color: #1f1600; font: 800 12px/1.2 var(--display); letter-spacing: .04em; vertical-align: 1px; }
.page-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Pitch as a night tactics board */
.pitch {
  position: relative; overflow: hidden; border-radius: 10px; padding: 36px 6px 14px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(43, 107, 255, .3), transparent 60%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 40px, transparent 40px 80px),
    var(--navy);
  border: 1px solid #1a2d57;
}
.pitch-lines span { position: absolute; border: 1.5px solid rgba(169, 198, 255, .17); pointer-events: none; }
.pitch-lines .half { left: 0; right: 0; top: -1px; height: 0; border-width: 1.5px 0 0; }
.pitch-lines .circle { width: 110px; height: 110px; border-radius: 50%; left: 50%; top: -55px; transform: translateX(-50%); }
.pitch-lines .box { width: 48%; height: 70px; left: 26%; bottom: -1px; }
.pitch-lines .six { width: 22%; height: 26px; left: 39%; bottom: -1px; }
.formation-tag { position: absolute; top: 10px; left: 12px; font: 800 15px/1 var(--display); letter-spacing: .06em; color: var(--ice); }
.prow { position: relative; display: flex; justify-content: space-evenly; gap: 4px; }
.token { position: relative; display: grid; justify-items: center; gap: 4px; width: 72px; background: none; border: 0; padding: 4px 2px; border-radius: 10px; color: #fff; font: inherit; cursor: pointer; }
.token .avatar { --s: 44px; box-shadow: 0 0 0 2px var(--blue), 0 6px 14px rgba(0, 0, 0, .5); }
.token .tname { font-size: 12px; font-weight: 600; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.token .tbadge { position: absolute; top: -2px; right: 4px; }
.token .cap { position: absolute; top: 0; left: 8px; width: 16px; height: 16px; border-radius: 3px; background: #fff; color: #000; font: 900 11px/16px var(--display); text-align: center; }
.token.sel { background: rgba(43, 107, 255, .3); outline: 2px solid var(--blue-hi); }
.token.empty { visibility: hidden; }
button.token:hover { background: rgba(255, 255, 255, .06); }
.formation-ctrl { display: grid; gap: 10px; margin-bottom: 14px; }

/* ---------- Editor ---------- */
.game-mini { background: linear-gradient(90deg, rgba(7, 10, 17, .97), rgba(7, 10, 17, .7)), var(--s1) var(--img) center / cover; display: grid; gap: 8px; }
.sport-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sp { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 8px; border: 1px solid var(--line2); background: var(--s2); color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.sp .ic { width: 26px; height: 26px; }
.sp.on { border-color: var(--blue); color: var(--text); background: rgba(43, 107, 255, .12); }
.sp.on .ic { color: var(--ice); }
@media (max-width: 420px) { .sport-pick { grid-template-columns: repeat(2, 1fr); } }
.roster-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); max-height: 400px; overflow: auto; padding: 2px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--s2); color: var(--text); font: 600 14px var(--body); cursor: pointer; text-align: left; }
.pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick i { display: grid; place-items: center; color: var(--dim); }
.pick.on { border-color: var(--blue); background: rgba(43, 107, 255, .12); }
.pick.on i { color: var(--ice); }
.pick:disabled { cursor: default; }
.ftag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--s3); padding: 1px 6px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; }
.ftag.in { color: #9ff0c0; background: rgba(31, 174, 91, .16); }
.ftag.friend { color: var(--ice); background: rgba(43, 107, 255, .15); }
.ftag.captain { color: #fff; background: var(--blue); }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pick-row select { width: 100px; }

/* ---------- Ratings form ---------- */
.rate-list { display: grid; gap: 2px; }
.rate-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.rate-row small { display: block; }
.rate-row.is-ref { background: rgba(242, 193, 78, .05); border-radius: 8px; padding: 12px 10px; border-bottom: 0; margin-top: 6px; }
.slider-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.slider-row input[type="range"] { flex: 1; padding: 0; border: 0; background: none; height: 28px; accent-color: var(--blue); box-shadow: none; }
.nudge-btn { width: 34px; height: 34px; flex: none; border-radius: 6px; border: 1px solid var(--line2); background: var(--s2); color: var(--text); font: 700 18px var(--body); cursor: pointer; display: grid; place-items: center; }
.nudge-btn:hover { border-color: var(--blue); }
.rate-list .btn { margin-top: 14px; }

/* ---------- Banter ---------- */
.comments { display: grid; gap: 16px; margin-bottom: 16px; }
.thread { display: grid; gap: 10px; }
.comment.reply { margin-left: 44px; padding-left: 12px; border-left: 2px solid var(--line2); }
.c-to { color: var(--ice); font-size: 12.5px; }
.c-reply { background: none; border: 0; padding: 4px 0 0; color: var(--muted); font: 600 12.5px var(--body); cursor: pointer; }
.c-reply:hover { color: var(--ice); }
.reply-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.reply-form textarea { flex: 1; min-width: 160px; min-height: 38px; padding: 9px 11px; font-size: 14px; }
@media (max-width: 520px) { .comment.reply { margin-left: 18px; } }
.stat-inputs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.stat-inputs label { width: 86px; }
.stat-inputs input { text-align: center; font: 800 22px/1 var(--display); padding: 8px; }
.comment { display: flex; gap: 12px; }
.c-head { display: flex; align-items: baseline; gap: 10px; }
.c-head b { font-weight: 600; }
.comment p { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; color: #d6deec; }
.c-del { margin-left: auto; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 2px; display: grid; }
.c-del:hover { color: var(--red); }
.comment-form { display: flex; align-items: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.comment-form .avatar { margin-bottom: 4px; }
.comment-form textarea { flex: 1; min-height: 42px; }

/* ---------- Result form ---------- */
.score-input { display: grid; grid-template-columns: 1fr 92px auto 92px 1fr; gap: 12px; align-items: center; }
.score-input .tname { font: 800 22px/1 var(--display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.score-input .tname.right { text-align: right; }
.score-input .tscore { text-align: center; font: 900 40px/1 var(--display); padding: 8px; }
.score-input i { width: 4px; height: 26px; background: var(--line2); transform: skewX(-14deg); }
@media (max-width: 520px) { .score-input { grid-template-columns: 1fr 64px auto 64px 1fr; gap: 6px; } .score-input .tname { font-size: 16px; } }
.team-sub { color: var(--text); margin-top: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
table.box input { width: 64px; padding: 7px; text-align: center; }
.pcell { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

/* ---------- Leaders ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 10px; margin: 20px 0 14px; }
.pod { position: relative; display: grid; justify-items: center; gap: 8px; padding: 20px 10px 16px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); text-align: center; }
.pod b { font-weight: 600; overflow-wrap: anywhere; }
.pod small { color: var(--muted); font-size: 12px; }
.pod.p1 { order: 2; padding-top: 28px; border-color: rgba(43, 107, 255, .6); background: linear-gradient(180deg, rgba(43, 107, 255, .2), var(--s1) 70%); }
.pod.p2 { order: 1; }
.pod.p3 { order: 3; }
.pod-rank { position: absolute; top: 8px; left: 12px; font: 900 28px/1 var(--display); color: var(--dim); }
.pod.p1 .pod-rank { color: var(--ice); }
@media (max-width: 520px) { .podium { gap: 6px; } .pod { padding: 16px 6px 12px; } .pod .avatar.xl { --s: 60px; } }
table.leaders tbody tr { cursor: pointer; }
table.leaders tbody tr:hover { background: var(--s2); }
table.leaders tr.me { background: rgba(43, 107, 255, .08); }
table.leaders tr.unrated td { color: var(--muted); }
table.leaders th:first-child, table.leaders td:first-child { padding-left: 18px; }
.rank { font: 900 22px/1 var(--display); color: var(--dim); width: 44px; }
.rank.r1 { color: var(--ice); }
.rank.r2, .rank.r3 { color: var(--muted); }

/* ---------- Squad ---------- */
.plist { overflow: hidden; }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; padding: 14px 18px; }
.pcard + .pcard { border-top: 1px solid var(--line); }
.pc-link { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pc-link b { font-weight: 600; }
.pc-actions { display: flex; justify-content: flex-end; }
@media (max-width: 560px) { .pcard { grid-template-columns: 1fr; } .pc-actions { justify-content: flex-start; padding-left: 68px; } }
.form { display: flex; gap: 4px; margin-top: 6px; }
.fdot { width: 10px; height: 10px; border-radius: 2px; }
.friend-on { color: var(--ice); }

/* ---------- Profile ---------- */
.profile-head {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(90deg, #000 35%, rgba(0, 0, 0, .7) 100%), #000 var(--img) 80% center / cover;
}
.profile-head h1 { font: 900 clamp(42px, 7vw, 70px)/.88 var(--display); text-transform: uppercase; margin-bottom: 6px; overflow-wrap: anywhere; }
.ph-avatar { position: relative; }
.photo-btn { position: absolute; right: -2px; bottom: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.photo-btn .ic { width: 20px; height: 20px; }
.ph-actions { margin-top: 12px; }
.ph-stats { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.ph-stats b { display: block; font: 800 30px/1 var(--display); }
.ph-stats small { color: var(--muted); font-size: 12px; font-weight: 600; }
.ovr { display: flex; align-items: flex-end; gap: 14px; margin-left: auto; }
.ovr > div { display: grid; justify-items: center; gap: 6px; }
.ovr small { color: var(--muted); font-size: 12px; font-weight: 600; }
@media (max-width: 640px) { .ovr { margin-left: 0; } }
.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.bdg { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); opacity: .45; }
.bdg-mark { width: 46px; height: 34px; flex: none; display: grid; place-items: center; font: 900 17px/1 var(--display); color: var(--muted); background: var(--s3); clip-path: var(--slant); }
.bdg-text { display: grid; min-width: 0; }
.bdg-text b { font-weight: 600; font-size: 14px; }
.bdg-text small { color: var(--muted); font-size: 12px; }
.bdg.earned { opacity: 1; border-color: rgba(43, 107, 255, .45); background: rgba(43, 107, 255, .07); }
.bdg.earned .bdg-mark { background: var(--blue); color: #fff; }
.form-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.form-strip a { display: grid; justify-items: center; gap: 4px; }
.res { font-weight: 700; font-size: 11px; }
.res.W { color: var(--r-good); } .res.L { color: var(--r-bad); } .res.D { color: var(--muted); }
.res-pill { width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; font: 900 15px/1 var(--display); flex: none; }
.res-pill.W { background: rgba(31, 174, 91, .16); color: var(--r-good); }
.res-pill.L { background: rgba(229, 72, 77, .16); color: var(--r-bad); }
.res-pill.D { background: var(--s3); color: var(--muted); }
.res-pill.up { background: rgba(43, 107, 255, .14); color: var(--ice); }
.best { display: flex; align-items: center; gap: 14px; }
.best b { display: block; margin-bottom: 4px; }
.spark { width: 100%; height: 80px; }
.spark .line { fill: none; stroke: var(--blue-hi); stroke-width: 2.5; stroke-linejoin: round; }
.spark .ref { stroke: var(--line2); stroke-dasharray: 4 4; }
.spark .dot { stroke: var(--s1); stroke-width: 2; }
.spark .r-elite { fill: var(--r-elite); } .spark .r-great { fill: var(--r-great); } .spark .r-good { fill: var(--r-good); }
.spark .r-ok { fill: var(--r-ok); } .spark .r-meh { fill: var(--r-meh); } .spark .r-bad { fill: var(--r-bad); }
.sport-block + .sport-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sb-head { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.sb-head span:first-child { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.statgrid div { background: var(--s2); border-radius: 6px; padding: 10px; text-align: center; }
.statgrid b { display: block; font: 800 26px/1.1 var(--display); }
.statgrid small { color: var(--muted); font-size: 11.5px; }
.friend-row { display: flex; flex-wrap: wrap; gap: 14px; }
.friend-row a { display: grid; justify-items: center; gap: 4px; width: 56px; }

/* ---------- Inbox ---------- */
.inbox { overflow: hidden; }
.note { display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px; }
.note + .note { border-top: 1px solid var(--line); }
.note:hover { background: var(--s2); }
.note-ic { width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--s3); color: var(--ice); display: grid; place-items: center; }
.note-ic .ic { width: 19px; height: 19px; }
.note-text { display: block; color: #cdd6e6; }
.note-text b { color: var(--text); font-weight: 600; }
.note small { color: var(--dim); font-size: 12px; }
.note.unread { background: linear-gradient(90deg, rgba(43, 107, 255, .1), transparent 60%); }
.note.unread .note-ic { background: var(--blue); color: #fff; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); margin-top: 8px; flex: none; }
.inbox .empty { border: 0; margin: 0; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px); }
.modal-card { width: min(420px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; gap: 14px; }
.modal-card img { width: 100%; border-radius: 10px; border: 1px solid var(--line2); }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 70;
  padding: 12px 18px; border-radius: 8px; background: var(--text); color: #000; font-weight: 600; box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { #toast { bottom: 28px; } body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Paywall ---------- */
.paywall {
  min-height: 100vh; display: grid; align-items: center;
  padding-block: 32px;
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .92) 45%, rgba(0, 0, 0, .35) 100%), #000 var(--img) right center / cover no-repeat;
}
@media (min-width: 900px) { .paywall { padding-left: 9vw; } }
@media (max-width: 700px) { .paywall { background: linear-gradient(0deg, #000 55%, rgba(0, 0, 0, .5) 100%), #000 var(--img) center top / cover no-repeat; } }
.pw-panel { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.pw-panel .back { margin: 0; }
.pw-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pw-perks li { display: flex; gap: 12px; align-items: flex-start; color: #d4dceb; }
.pw-perks .ic { color: var(--ice); width: 20px; height: 20px; margin-top: 1px; }
.plans { display: grid; gap: 8px; margin-top: 4px; }
.plan {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line2); background: rgba(13, 18, 29, .85);
  color: var(--text); font: inherit; cursor: pointer;
}
.plan:hover { border-color: #33415f; }
.plan.on { border-color: var(--blue); background: rgba(43, 107, 255, .12); }
.plan-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--dim); }
.plan.on .plan-radio { border-color: var(--blue); box-shadow: inset 0 0 0 4px #0b1020, inset 0 0 0 10px var(--blue); }
.plan-main { flex: 1; display: grid; min-width: 0; }
.plan-main b { font-weight: 600; font-size: 16px; }
.plan-main small, .plan-price small { color: var(--muted); font-size: 12.5px; }
.plan-price { display: grid; justify-items: end; }
.plan-price b { font: 800 26px/1 var(--display); }
.plan-tag { position: absolute; top: -9px; right: 14px; padding: 2px 8px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; }
.pw-after { color: var(--muted); font-size: 13px; text-align: center; margin-top: -4px; }
.pw-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.pw-links a:hover, .linkish:hover { color: var(--text); }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.pw-legal { color: var(--dim); font-size: 11.5px; line-height: 1.45; text-align: center; }
.social-btn.apple { background: #fff; color: #000; }
.danger-zone { border-color: rgba(255, 77, 87, .25); }
.danger-zone h3 { margin-bottom: 4px; }
.danger-zone .btn { margin-top: 10px; }
.inline-link { color: var(--ice); }

/* ---------- Pro ---------- */
.pro-tag { padding: 2px 7px; border-radius: 4px; background: var(--blue); color: #fff; font: 800 11px/1.4 var(--body); letter-spacing: .06em; }
.pro-lock { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(43, 107, 255, .12), transparent 60%), var(--s1); border-color: rgba(43, 107, 255, .35); }
.pro-lock p { margin: 6px 0 14px; max-width: 46ch; }
.pw-panel .logo-full { margin-top: 6px; }
.pw-perks b { color: var(--text); }
.demo-note .btn { display: inline-flex; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.recap { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.recap th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 0 10px 8px 0; }
.recap td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
.recap td:last-child, .recap th:last-child { text-align: right; padding-right: 0; }
.h2h { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.forgot { justify-self: center; padding: 10px; min-height: 44px; color: var(--ice); font-size: 14px; }
.opp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.opp-head h4 { margin: 0; }
.opp-head small { flex-basis: 100%; }
.opp-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; margin: 6px 0 4px; border: 1px solid rgba(43, 107, 255, .35); border-radius: 8px; background: rgba(43, 107, 255, .08); }
.opp-lock small { display: block; margin-top: 4px; }
.opp-r { color: var(--ice); font-weight: 600; }

/* ---------- Ads (free players only) ---------- */
.ad-slot { margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s1); min-height: 90px; }
.ad-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ad-label a { color: var(--ice); text-transform: none; letter-spacing: 0; }
/* iPhone app: keep content clear of the AdMob banner that sits above the bottom nav */
body.has-banner main { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
.c-report { margin-left: auto; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 6px; min-width: 32px; min-height: 32px; display: grid; place-items: center; font: 600 12px var(--body); }
.c-report .ic { width: 15px; height: 15px; }
.c-report:hover, .c-report.armed { color: var(--red); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Profile header: never let the name column squeeze to one letter wide on phones */
.profile-head > .grow { flex: 1 1 240px; min-width: 200px; }
.profile-head h1 { overflow-wrap: break-word; }
.bookings { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.bk { display: inline-block; width: 9px; height: 13px; border-radius: 2px; transform: rotate(8deg); }
.bk.yc { background: #ffd23f; }
.bk.rc { background: #ff3b3b; }
