/* Singapore Major Stage 1 Pickem
   Neutral surfaces. Accent blue from cs3skin.com, used only for state.
   Font: Chakra Petch. */

:root {
  /* Surfaces, darkest to lightest */
  --bg: #060b15;
  --bg-raised: #0c111c;
  --panel: #121925;
  --panel-2: #171e2f;
  --panel-3: #222d3b;

  /* Lines */
  --line: #222d3b;
  --line-soft: #171e2f;
  --line-strong: #252e3a;

  /* Text */
  --text: #ededed;
  --text-dim: #9dabbd;
  --text-sub: #7f8d9f;
  --text-mute: #49525d;
  --white: #fff;

  /* Accent. One colour, ours, state only. */
  --accent: #3b63ff;
  --accent-hi: #6f9bff;
  --accent-lo: #2a45e0;
  --accent-bg: #0f1a4d;
  --accent-bg-2: #18249a;

  /* State */
  --good: #15d77c;
  --good-lo: #0e8f52;
  --good-bg: #063d23;
  --bad: #ed4438;
  --bad-lo: #be372d;
  --bad-bg: #2f0e0b;
  --warn: #f8a605;
  --warn-bg: #322101;

  /* Spacing, their 4px scale */
  --s-50: 2px;
  --s-100: 4px;
  --s-150: 6px;
  --s-200: 8px;
  --s-300: 12px;
  --s-400: 16px;
  --s-600: 24px;
  --s-800: 32px;
  --s-1200: 48px;
  --s-1600: 64px;

  /* Radius */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --r-pill: 100px;

  --header-h: 60px;
  --font: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  /* Nothing on this site is wide enough to justify sideways movement. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 28px; line-height: 1.1; }
h2 { font-size: 19px; line-height: 1.2; }
h3 { font-size: 15px; line-height: 1.25; }

p { margin: 0 0 var(--s-300); color: var(--text-dim); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-400);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 11, 21, 0.92);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-400);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
  text-decoration: none;
}

/* The static cs3skin wordmark. */
.wordmark-logo {
  display: block;
  height: 24px;
  width: auto;
  max-width: 100%;
}
@media (min-width: 900px) {
  .wordmark-logo { height: 30px; }
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-100);
}

.site-nav a {
  padding: var(--s-200) var(--s-300);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--s-1600);
  padding: var(--s-800) 0 var(--s-1200);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--s-600);
}

.footer-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-300) var(--s-600);
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

.footer-legal {
  margin: var(--s-600) 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-200);
  padding: var(--s-300) var(--s-600);
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: var(--panel-3);
  color: var(--text);
  transition: background 120ms linear, color 120ms linear, border-color 120ms linear;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hi); }
.btn-primary:active:not(:disabled) { background: var(--accent-lo); }

.btn-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-dim);
}
.btn-quiet:hover:not(:disabled) { color: var(--text); border-color: var(--text-mute); }

.btn:disabled {
  background: var(--panel-2);
  color: var(--text-mute);
  border-color: var(--line);
  cursor: not-allowed;
}

.btn-block { width: 100%; }

.btn:focus-visible,
.field input:focus-visible,
.team:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

/* ---------- Page furniture ---------- */

.page-head {
  padding: var(--s-800) 0 var(--s-600);
}

/* ---------- Deposit bonus promo ---------- */

/* The promo is last in the markup, which is the order a phone gets: heading
   first, advert after. Grid placement is what lifts it into a second column
   level with the heading on a wide screen, without moving it in the source. */
@media (min-width: 900px) {
  .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s-1200);
  }
  .page-head > *:not(.promo) { grid-column: 1; }
  /* Row 2 is the h1. Sitting it there is what puts the banner on the same
     line as the heading rather than level with the kicker above it. */
  .promo { grid-column: 2; grid-row: 2 / span 4; align-self: start; }
}

/* Colours, radius and the gold gradient are the live values from the
   DepositBonusBanner on cs2skin.com/deposit, read off the computed styles
   rather than matched by eye. */
.promo {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  width: 100%;
  max-width: 520px;
  min-height: 100px;
  /* Room above for the coins, which are drawn past the top edge. */
  margin-top: 40px;
  padding: 14px var(--s-600);
  border-radius: 12px;
  background: radial-gradient(285px 185px, #2f4fd6 0%, #1f33a8 50%, #141f6b 100%);
  text-decoration: none;
  /* visible, not hidden. The illustration breaking out of the panel is the
     whole look, and clipping it was what made this read as a flat bar. */
  overflow: visible;
  transition: filter 120ms linear;
}
.promo:hover { filter: brightness(1.08); }

/* Constant, quiet motion so the banner catches the eye: a soft band of
   light crosses the panel every few seconds and the coin floats. The light
   is a moving background on a pseudo element, so it stays inside the panel
   while the coin still spills over the edge. */
.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%) no-repeat;
  background-size: 250% 100%;
  animation: promo-light 4.5s ease-in-out infinite;
  pointer-events: none;
}
.promo-copy, .promo-code { position: relative; z-index: 1; }
.promo-illo { z-index: 1; }
.promo-coin { animation: promo-float 3.2s ease-in-out infinite; }
@keyframes promo-light {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -30% 0; }
}
@keyframes promo-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}
@media (prefers-reduced-motion: reduce) {
  .promo::before, .promo-coin { animation: none; }
}

.promo-copy { display: grid; gap: 3px; min-width: 0; }

.promo-title {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.1;
  color: #dfe8ff;
  white-space: nowrap;
}

.promo-cap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 300;
  color: #dfe8ff;
}
.promo-cap img { display: block; width: 16px; height: 16px; }

/* The gold on the site is a gradient clipped to the glyphs, not a flat fill,
   which is why these carry no colour of their own. */
.promo b {
  font-weight: 700;
  background: linear-gradient(#ffda5d 22.62%, #f88705 76.19%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promo-title b { font-size: 23px; }
.promo-cap b { font-size: 14px; }

/* Holds a narrow slot in the flex row while the images inside are drawn far
   larger and centred on it, so they overlap the copy and the code tile
   instead of pushing them apart. */
.promo-illo {
  position: relative;
  flex: none;
  align-self: stretch;
  width: 124px;
}

.promo-illo img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* The lift behind the coins. A gradient rather than the second illustration
   cs2skin ships, which is a whole duplicate coin and would draw everything
   twice. Sits under the artwork and never catches a click. */
.promo-illo::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 230px;
  height: 130px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(111, 155, 255, 0.55), rgba(111, 155, 255, 0) 100%);
  pointer-events: none;
}

/* Tall enough to clear the top edge. The podium keeps its feet inside the
   panel, as on the real banner, and only the coin rises above it: letting the
   base hang below made the panel look like it was sliding off the artwork. */
.promo-coin {
  width: 158px;
  height: auto;
  bottom: 6px;
}

/* Narrow screens run the banner full width, where there is no room for the
   illustration between the copy and the code. The offer and the code are the
   message, so the decoration is what goes. */
@media (max-width: 560px) {
  .promo { min-height: 0; margin-top: var(--s-600); padding: 14px var(--s-400); }
  .promo-illo { display: none; }
}

/* Where the countdown sits on the real banner. Same weight, so the promo code
   is the thing the eye lands on after the offer itself. */
.promo-code {
  flex: none;
  margin-left: auto;
  padding: 5px 11px 4px;
  border-radius: 8px;
  background: linear-gradient(#ffda5d, #f8a005);
  text-align: center;
  line-height: 1;
}
/* Label above, code below, so it reads "code: PROMO". The other way round
   the eye takes the big word first and it reads "PROMO code", which is the
   two words in the wrong order. */
.promo-code span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a2aa0;
}
.promo-code b {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* Overrides the gradient fill above: on the gold tile the code has to be
     dark to be readable. */
  background: none;
  color: #0f1a5c;
}

/* ---------- Sign-up bar ---------- */

/* Floats over the bottom of the page on /pick. The panel is the dark navy of
   the board with a little blur, so it reads as part of the site; the button
   is the one loud thing in it, in the same gold as the promo code tile. */
.signup-bar {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 14px;
  border: 1px solid #2c3a6e;
  border-radius: 16px;
  background: rgba(14, 21, 46, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
  animation: signup-bar-in 0.5s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.signup-bar[hidden] { display: none; }
@keyframes signup-bar-in {
  from { opacity: 0.2; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Room under the footer so the bar never sits on top of its last line. */
body:has(.signup-bar:not([hidden])) .site-footer {
  padding-bottom: calc(var(--s-1200) + 88px);
}

.signup-bar-coin { flex: none; width: 34px; height: 34px; }

.signup-bar-copy { display: grid; gap: 1px; min-width: 0; line-height: 1.2; }
.signup-bar-copy strong { font-size: 15px; color: var(--white); }
.signup-bar-copy span {
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.signup-bar-copy b { color: #ffda5d; }

.signup-bar-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px 0 24px;
  border-radius: 10px;
  background: linear-gradient(#ffe27a, #f8a005);
  color: #0f1a5c;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  /* A soft shadow only. No solid bottom edge: it read as a second gold layer
     under the button. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 22px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(248, 160, 5, 0.22);
  transition: filter 120ms linear;
}
.signup-bar-btn:hover { filter: brightness(1.06); }
.signup-bar-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.signup-bar-btn svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 150ms ease;
}
.signup-bar-btn:hover svg { transform: translateX(3px); }

/* A band of light crosses the button every few seconds. */
.signup-bar-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 30%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: signup-bar-sweep 3.2s ease-in-out 1s infinite;
  pointer-events: none;
}
@keyframes signup-bar-sweep {
  0% { left: -45%; }
  45%, 100% { left: 125%; }
}

.signup-bar-close {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-sub);
  font: 400 22px/1 var(--font);
  cursor: pointer;
}
.signup-bar-close:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.signup-bar-close:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 1px; }

/* On a phone the offer wraps instead of being cut off, and the button
   shrinks to leave it the room. */
@media (max-width: 480px) {
  .signup-bar-copy span { white-space: normal; font-size: 12px; }
  .signup-bar-btn { height: 42px; padding: 0 12px 0 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .signup-bar { animation: none; }
  .signup-bar-btn::after { display: none; }
}

.page-head .kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin: 0 0 var(--s-200);
}
.page-head .lede {
  margin: var(--s-300) 0 0;
  color: var(--text-dim);
  max-width: 56ch;
}
.page-head .lock-line { margin: var(--s-300) 0 0; }

/* Sits above the bracket so it is read before anyone starts picking, but
   styled down so it does not shout. The accent is a 2px edge, not a fill.
   Only the requirement itself is on screen. The reasoning and the get out
   clause live behind the trigger. */
.requirement {
  position: relative;
  display: inline-block;
  margin: var(--s-400) 0 0;
  padding: var(--s-300) var(--s-400);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  /* One line, never wrapped. Scales with the viewport so it still fits on a
     narrow phone rather than pushing the page sideways. */
  white-space: nowrap;
  font-size: clamp(11px, 3.3vw, 13.5px);
  line-height: 1.5;
  color: var(--text);
  cursor: help;
}
.requirement:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.requirement-main { font-weight: 600; }

.requirement-detail {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  z-index: 20;
  /* The note itself is nowrap, the panel under it is not. */
  white-space: normal;
  width: max-content;
  max-width: min(400px, calc(100vw - 44px));
  padding: var(--s-300) var(--s-400);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* Hover on a mouse. Focus covers keyboard, and also a tap on a phone, since
   tapping a focusable element focuses it. There is no visible trigger, so
   with a mouse this is discoverable by hovering and nothing else. */
.requirement:hover .requirement-detail,
.requirement:focus .requirement-detail,
.requirement:focus-within .requirement-detail { display: block; }

/* Top prizes, sat under the heading. Three pills rather than a table: it is
   an advert for the pot, not the payout reference, which is on /rules. */
.prize-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-200);
  margin: var(--s-400) 0 0;
  padding: 0;
  list-style: none;
}
.prize-strip li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-150);
  padding: var(--s-150) var(--s-300);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.prize-strip .place {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.prize-strip .coin { width: 18px; height: 18px; object-fit: contain; }
.prize-strip .amount { font-weight: 700; color: var(--white); }
/* First place in the coin gold. */
.prize-strip li:first-child {
  padding: var(--s-150) var(--s-400);
  border-color: #f8a00599;
  background: linear-gradient(#3a2a05, #221802);
  box-shadow: 0 0 18px #f8a00533;
}
.prize-strip li:first-child .place { color: #ffda5d; }
.prize-strip li:first-child .amount {
  font-size: 17px;
  background: linear-gradient(#ffda5d 22.62%, #f88705 76.19%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Stacked banners need air between them. */
.notice + .notice { margin-top: var(--s-300); }
#state-holding, #state-locked, #state-done, #state-dupe, #state-error { margin-top: var(--s-600); }

.notice {
  padding: var(--s-400);
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-mute);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--panel);
  font-size: 14px;
  color: var(--text-dim);
}
.notice strong { color: var(--text); font-weight: 600; }
.notice-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.notice-bad { border-left-color: var(--bad); background: var(--bad-bg); color: #f6c9c5; }
.notice-good { border-left-color: var(--good); background: var(--good-bg); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Stages ---------- */

/* One quiet line: dots on a rule, current stage lit. */
.stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-150) var(--s-400);
  margin: var(--s-300) 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
}
.stages li { display: inline-flex; align-items: center; gap: var(--s-150); }
.stages li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.stages span { font-weight: 500; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.stages li.is-live { color: var(--text); }
.stages li.is-live::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.stages li.is-live span { color: var(--text-sub); }
.stages li.is-done { color: var(--text-sub); }
.stages li.is-done::before { background: var(--text-mute); }

/* ---------- Picks ---------- */

/* ---------- Swiss board ----------
   Valve's Pick'Em layout, built by js/board.js. Phones get .pkm, wide
   screens get .pk-board, which is drawn at a fixed 1630 x 844 and scaled
   to the column, so every size inside it is in design px. */

.pk {
  --pk-panel: #121a27;
  --pk-panel-line: #1b2434;
  --pk-hole: #0a0f19;
  --pk-hole-line: #1d2636;
  --pk-q: #4a5566;
  --pk-w3: #116a3f;
  --pk-w3-hi: #168c54;
  --pk-adv: #0d5c58;
  --pk-adv-hi: #137a72;
  --pk-l3: #74202a;
  --pk-l3-hi: #952a37;
  margin-top: var(--s-600);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.pk[hidden] { display: none; }

.pk-clock {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  margin: 0 0 var(--s-400);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.pk-clock[hidden] { display: none; }
.pk-clock svg { flex: none; width: 18px; height: 18px; }

/* Shared by both layouts */

.pk-team {
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, background-color 120ms linear;
}
/* Logos are pinned inside their circle or tile rather than sized by
   percentages, which grid buttons do not resolve: a tall crest would
   otherwise spill out of its box. */
.pk-team, .pk-hole, .pk-slot { position: relative; }
.pk-team img, .pk-hole img, .pk-slot img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66%;
  height: 66%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 140ms ease, opacity 120ms linear, filter 120ms linear;
}
.pk-team img { width: 78%; height: 78%; }
.pk-team:disabled { visibility: hidden; }
/* Picked teams go grey in the list, as in Valve's. */
.pk-team.is-used img,
.pk-team.is-held img { filter: grayscale(1); opacity: 0.45; }
.pk-team:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
@media (hover: hover) {
  .pk-team:hover { transform: translateY(-3px) scale(1.05); }
  .pk-team.is-used:hover img { opacity: 0.7; }
  .pk-hole.is-team:hover img,
  .pk-slot.is-filled:hover img { transform: translateY(-9%) scale(1.14); }
}

.pk-mono { font-size: 12px; font-weight: 700; color: var(--text-sub); }

.pk-vs {
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}

.pk-hole {
  display: grid;
  place-items: center;
  background: var(--pk-hole);
  border: 1.5px solid var(--pk-hole-line);
  border-radius: 50%;
  font-weight: 600;
  color: var(--pk-q);
  line-height: 1;
}
.pk-hole.is-team { cursor: grab; touch-action: none; }
.pk-hole.is-team.is-used img { filter: grayscale(1); opacity: 0.45; }

.pk-zone-title {
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.pk-box { transition: background-color 120ms linear; }
.pk-zone[data-zone="w3"] .pk-box, .pkm-zone[data-zone="w3"] { background: var(--pk-w3); }
.pk-zone[data-zone="adv"] .pk-box, .pkm-zone[data-zone="adv"] { background: var(--pk-adv); }
.pk-zone[data-zone="l3"] .pk-box, .pkm-zone[data-zone="l3"] { background: var(--pk-l3); }
.pk-zone[data-zone="w3"].is-over .pk-box, .pkm-zone[data-zone="w3"].is-over { background: var(--pk-w3-hi); }
.pk-zone[data-zone="adv"].is-over .pk-box, .pkm-zone[data-zone="adv"].is-over { background: var(--pk-adv-hi); }
.pk-zone[data-zone="l3"].is-over .pk-box, .pkm-zone[data-zone="l3"].is-over { background: var(--pk-l3-hi); }

.pk-slot {
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 2px dashed rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, border-color 120ms linear, background-color 120ms linear;
}
.pk-slot.is-filled {
  background: rgba(6, 11, 21, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.22);
  cursor: grab;
  touch-action: none;
}
.pk-slot.is-held img { opacity: 0.25; }
.pk-slot:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@media (hover: hover) {
  .pk-slot.is-filled:hover { border-color: rgba(255, 255, 255, 0.6); }
}
/* The box clicks go into. A filter rather than a border so the L of
   3:1 3:2 gets one outline round its outside. */
.pk-board .pk-zone.is-active {
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}
.pkm-zone.is-active { box-shadow: 0 0 0 2px var(--white); }

/* While a team is dragged, the circles it can go into light up with a
   soft grey glow, brightest in the middle, that stops short of the dashed
   ring. Matched to Valve's: about half opaque, so the box colour shows. */
.pk.is-dragging .pk-slot:not(.is-filled) {
  border-color: var(--white);
  background: radial-gradient(circle closest-side,
    rgba(205, 210, 205, 0.7) 0%,
    rgba(190, 196, 190, 0.6) 25%,
    rgba(160, 168, 162, 0.46) 55%,
    rgba(120, 130, 124, 0.36) 80%,
    rgba(90, 100, 95, 0.3) 93%,
    transparent 96%);
}
.pk-slot.is-over {
  transform: scale(1.1);
  border-style: solid;
  border-color: var(--white) !important;
  background: radial-gradient(circle closest-side,
    rgba(225, 230, 225, 0.85) 0%,
    rgba(205, 210, 205, 0.72) 30%,
    rgba(170, 178, 172, 0.56) 65%,
    rgba(120, 130, 124, 0.42) 90%,
    transparent 96%) !important;
}

.pk-tip {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  padding: 8px 14px;
  background: #15181e;
  border: 1px solid #262c37;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
}
.pk-tip[hidden] { display: none; }

.pk-tools { display: flex; align-items: center; justify-content: center; gap: 22px; }
.pk-tool {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
}
.pk-tool svg { width: 28px; height: 28px; }
.pk-tool--clear { color: #5d6878; }
.pk-tool:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.pk-tool--clear:hover { color: #8b96a6; }

.pk-made {
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: default;
}
.pk-made.is-done {
  background: var(--good-lo);
  border: 2px solid var(--good);
  color: var(--white);
  cursor: pointer;
}

.pk-ghost {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}
.pk-ghost img { display: block; width: 54px; height: 54px; object-fit: contain; }
body.pk-grabbing, body.pk-grabbing * { cursor: grabbing !important; }

/* Wide: the whole bracket */

.pk-fit { display: none; position: relative; width: 100%; overflow: hidden; }

.pk-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 1630px;
  height: 844px;
  transform-origin: 0 0;
}
.pk-board > * { position: absolute; }

.pk-pool-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dim);
  text-align: center;
}
.pk-pool-head svg { width: 34px; height: 34px; color: var(--white); }

.pk-pool {
  display: grid;
  grid-template-columns: repeat(2, 75px);
  grid-auto-rows: 76px;
  place-items: center;
}
.pk-board .pk-team { width: 64px; height: 64px; }

.pk-panel {
  background: var(--pk-panel);
  border: 1px solid var(--pk-panel-line);
  border-radius: 8px;
}
.pk-rec {
  position: absolute;
  top: 9px;
  right: 14px;
  font-size: 21px;
  font-style: italic;
  font-weight: 700;
  color: #c9d3e0;
}
.pk-rows { position: absolute; top: 44px; left: 0; right: 0; }
.pk-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  height: 76px;
  padding: 0 20px;
}
.pk-board .pk-vs { font-size: 18px; }
.pk-board .pk-hole { width: 52px; height: 52px; font-size: 25px; }

.pk-board .pk-zone { pointer-events: none; }
.pk-board .pk-zone > * { position: absolute; pointer-events: auto; }
.pk-box { border-radius: 8px; }
.pk-board .pk-zone-title { font-size: 17px; }
.pk-zone-title--adv {
  display: grid;
  place-items: center;
  font-size: 18px !important;
  line-height: 1.35;
}

.pk-board .pk-slot {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
}

.pk-out {
  background: var(--pk-panel);
  border: 1px solid var(--pk-panel-line);
  border-radius: 8px;
}
.pk-out > * { position: absolute; }
.pk-out .pk-zone-title { color: var(--text); }
.pk-out .pk-hole {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  font-size: 28px;
  background: none;
  border-color: #283245;
  color: #2c3647;
}

.pk-arrow {
  width: 30px;
  height: 20px;
  margin: -10px 0 0 -15px;
  pointer-events: none;
}
.pk-arrow svg { display: block; width: 100%; height: 100%; }
.pk-arrow.up { color: var(--good); transform: rotate(-24deg); }
.pk-arrow.down { color: var(--bad); transform: rotate(24deg); }

.pk-board .pk-made { font-size: 21px; }

/* Phones: the pick boxes over the opening matches */

.pkm-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-200);
}
.pkm-zone {
  padding: var(--s-300) var(--s-300) var(--s-400);
  border-radius: var(--r-lg);
  transition: background-color 120ms linear;
}
.pkm-zone[data-zone="adv"] { grid-column: 1 / -1; }
.pkm-title { margin-bottom: var(--s-300); font-size: 13px; }
.pkm-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 52px));
  justify-content: center;
  gap: var(--s-300);
}
.pkm-zone[data-zone="adv"] .pkm-slots {
  grid-template-columns: repeat(6, minmax(0, 52px));
  gap: var(--s-200);
}
.pkm .pk-slot { width: 100%; aspect-ratio: 1; }

.pkm-head {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  margin: var(--s-400) 0 var(--s-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.pkm-head svg { width: 22px; height: 22px; color: var(--white); }

.pkm-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-150);
}
.pkm-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: var(--s-100);
  background: var(--pk-panel);
  border: 1px solid var(--pk-panel-line);
  border-radius: var(--r);
}
.pkm .pk-team { width: 54px; height: 54px; }
.pkm .pk-vs { font-size: 12px; }

.pkm-foot {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  margin-top: var(--s-300);
}
.pkm-foot .pk-made { flex: 1; height: 44px; font-size: 14px; }

/* Tablets: the three boxes in Valve's order on one line, four matches a row */
@media (min-width: 700px) {
  .pkm-zones { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr); }
  .pkm-zone[data-zone="adv"] { grid-column: auto; order: 2; }
  .pkm-zone[data-zone="l3"] { order: 3; }
  .pkm-pool { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .pk-fit { display: block; }
  .pkm { display: none; }
}

.pick-hint {
  margin: var(--s-600) 0 var(--s-300);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.pick-hint::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--s-200);
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}
.pick-hint[data-key=""]::before { background: var(--good); }

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-200);
  min-width: 0;
  min-height: 52px;
  padding: var(--s-200) var(--s-300);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: left;
  cursor: pointer;
  transition: border-color 100ms linear, color 100ms linear, opacity 100ms linear;
}
.tile:hover { color: var(--text); border-color: var(--line-strong); }
.tile:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.tile.is-picked { color: var(--white); border-color: var(--text-mute); }
.tile .team-name { white-space: normal; line-height: 1.2; }


/* Playoffs bracket: three rounds side by side on wide screens. */
.po-bracket { display: grid; gap: var(--s-600); }
.po-body { display: grid; gap: var(--s-300); }
.po-match {
  display: grid;
  gap: var(--s-150);
  padding: var(--s-150);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.po-match.is-locked { opacity: 0.55; }
.tile.is-empty { color: var(--text-mute); cursor: default; border-style: dashed; background: none; }
.tile.is-picked[data-key="po"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
@media (min-width: 900px) {
  .po-bracket { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .po-round { display: flex; flex-direction: column; }
  .po-body { flex: 1; align-content: space-around; }
}

@media (max-width: 560px) {
  .tile { flex-wrap: wrap; gap: var(--s-150); padding: var(--s-200); font-size: 13px; }
  .tile .team-name { flex: 1; }
}

.round-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-200);
  margin-bottom: var(--s-300);
}
.round-head h2 { font-size: 15px; }
.round-head .meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
}

.round-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
}

.team {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  width: 100%;
  padding: var(--s-300) var(--s-400);
  background: none;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: left;
  cursor: pointer;
  min-height: 52px;
  transition: background 100ms linear, color 100ms linear;
}
.team + .team { border-top: 1px solid var(--line-soft); }
.team:hover:not(:disabled):not(.is-picked) { background: var(--panel-2); color: var(--text); }

.team:disabled { cursor: default; }
.team.is-empty { color: var(--text-mute); font-weight: 500; }

/* The two teams that can still reach an unfilled slot, sat beside the label
   that names them. Faint on purpose, and never as loud as a real pick: this
   row is saying what might arrive, not what has.
   The box keeps its 28px so the names stay on the same left edge as every
   filled row down the column. Two crests at 13px with a 2px gap is exactly
   that, which is why they are that size. */
.team.is-empty .team-logo.is-pair {
  display: flex;
  gap: 2px;
  opacity: .4;
}
.team.is-empty .team-logo.is-pair img { max-width: 13px; max-height: 13px; }
.team.is-empty .team-logo.is-pair .mono {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  font-size: 6px;
}

.team.is-picked {
  background: var(--accent-bg);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--accent);
}
.team.is-correct {
  background: var(--good-bg);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--good);
}
.team.is-wrong {
  background: var(--bad-bg);
  color: var(--text-dim);
  box-shadow: inset 3px 0 0 var(--bad);
}

.team-logo {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
/* Optical sizing, not bounding box sizing. Wordmarks get more width than
   roundels do, and neither is allowed to fill the whole box. */
.team-logo img {
  max-width: 28px;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.team-logo .mono {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-sub);
  background: var(--bg-raised);
}

.team-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-mark {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
}
.team.is-picked .team-mark { color: var(--accent-hi); }
.team.is-correct .team-mark { color: var(--good); }
.team.is-wrong .team-mark { color: var(--bad); }

/* ---------- Form ---------- */

.entry-form {
  margin-top: var(--s-800);
  padding: var(--s-600);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.entry-form h2 { margin-bottom: var(--s-300); }
.field { margin-bottom: var(--s-400); }
.field label {
  display: block;
  margin-bottom: var(--s-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.field input {
  width: 100%;
  padding: var(--s-300) var(--s-400);
  min-height: 46px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  font-weight: 500;
}
.field input::placeholder { color: var(--text-mute); font-weight: 400; }
.field input:focus { border-color: var(--accent); outline: none; }
.field .hint {
  margin: var(--s-200) 0 0;
  font-size: 12px;
  color: var(--text-mute);
}
.field .hint.is-bad { color: var(--bad); }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-300);
  margin-bottom: var(--s-400);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---------- Confirmation ---------- */

.confirm { text-align: left; }
.confirm-card {
  padding: var(--s-600);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-400);
  flex-wrap: wrap;
  margin-bottom: var(--s-600);
}
.confirm-head h2 { min-width: 0; word-break: break-word; }

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
  margin-top: var(--s-600);
}
.share-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: block;
}

/* ---------- Leaderboard ---------- */

.lb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-600);
  padding: var(--s-400) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lb-stat .n {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.lb-stat .k {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
}

/* ---------- Leaderboard, while it is still loading ----------

   The standings are one database call, and that call has been measured at
   about a second on a good day and eleven on a bad one. At that length a
   static line of text does not read as waiting, it reads as a page that has
   finished and had nothing to say, which is the thing being fixed here.
   Both pieces below are only about the wait. Nothing here survives the data
   arriving. */

.lb-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 9px;
  vertical-align: -1px;
  border: 2px solid var(--line-strong);
  /* One lit segment on a dim ring. Enough to read as motion at 13px without
     turning into a decorative object. */
  border-top-color: var(--accent-hi);
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

/* Placeholders in the shape of the numbers that replace them, so the stats
   row holds its height and nothing below it jumps when the data lands. */
.lb-stats[data-loading] .n {
  display: flex;
  align-items: center;
  height: 26px;
}
.lb-stats[data-loading] .n::after {
  content: "";
  display: block;
  width: 42px;
  height: 17px;
  border-radius: 2px;
  background: var(--panel-3);
  animation: lb-pulse 1.5s ease-in-out infinite;
}
@keyframes lb-pulse { 50% { opacity: 0.35; } }

/* Somebody who has asked the system to stop moving things still has to be
   able to tell a page that is working from one that is done, so this fades
   rather than stopping dead. */
@media (prefers-reduced-motion: reduce) {
  .lb-spinner {
    border-color: var(--line-strong);
    border-top-color: var(--accent-hi);
    animation: lb-pulse 1.8s ease-in-out infinite;
  }
  .lb-stats[data-loading] .n::after { animation-duration: 2.4s; }
}

.lb-search { margin: var(--s-600) 0; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lb-table th {
  padding: var(--s-200) var(--s-300);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.lb-table th.num, .lb-table td.num { text-align: right; }
.lb-table .stage-col { width: 48px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .lb-table .stage-col { display: none; } }
.lb-table td {
  padding: var(--s-300);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
}
.lb-table td.rank { width: 52px; color: var(--text-mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-table td.name { color: var(--text); font-weight: 600; word-break: break-all; }
.lb-table td.pts { width: 60px; color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-table th.prize, .lb-table td.prize { text-align: right; }
.lb-table td.prize {
  width: 112px;
  color: var(--white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Coin and amount travel together, so the pair wraps as one unit. */
.lb-table td.prize .payout {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: var(--s-100);
}
.lb-table td.prize .coin { width: 18px; height: 18px; object-fit: contain; }
.lb-table tr.is-me td { background: var(--accent-bg); }
.lb-table tr.is-me td.rank { color: var(--accent-hi); }

/* ---------- Picks panel ---------- */

/* A row opens the bracket behind it. The name is a real button so the panel
   is reachable by keyboard, and the whole row is clickable for everyone
   else, which is what people actually try first. */
.lb-table tbody tr { cursor: pointer; }
.lb-table tbody tr:hover td { background: var(--panel); }
.lb-table tbody tr.is-me:hover td { background: var(--accent-bg-2); }

.lb-name {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.lb-name:hover, .lb-table tbody tr:hover .lb-name { text-decoration: underline; }
.lb-name:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.picks {
  width: min(920px, calc(100vw - var(--s-600)));
  max-height: calc(100vh - var(--s-800));
  padding: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.picks::backdrop { background: rgba(6, 11, 21, 0.78); }

.picks-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-400);
  padding: var(--s-600);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.picks-rank {
  margin: 0 0 var(--s-100);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.picks-who h2 { font-size: 20px; word-break: break-all; }

.picks-close {
  flex: none;
  padding: var(--s-200) var(--s-300);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
}
.picks-close:hover { background: var(--panel-2); color: var(--text); }

.picks-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-200);
  padding: var(--s-400) var(--s-600) 0;
}
.picks-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-150);
  padding: var(--s-150) var(--s-300);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.picks-chip b { color: var(--white); font-variant-numeric: tabular-nums; }
.picks-chip.is-total { border-color: var(--accent); background: var(--accent-bg); }
.picks-chip.is-total b { color: var(--accent-hi); }

/* Four rounds side by side, one column each, so the shape reads like the
   bracket on the entry page rather than a flat list of fifteen names. */
.picks-grid {
  display: grid;
  gap: var(--s-600);
  padding: var(--s-600);
}
.picks-stage-title {
  margin-bottom: var(--s-300);
  font-size: 14px;
  color: var(--text);
}
.picks-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-400);
}
.picks-col h3 {
  margin-bottom: var(--s-200);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.picks-col .round-body { gap: var(--s-200); }

/* One row per match: the team they picked, and whether it came in. Reuses
   the entry page's team styles so right and wrong look the same in both. */
.picks-pick {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  min-height: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.picks-pick.is-correct {
  background: var(--good-bg);
  color: var(--white);
  border-color: var(--good-lo);
}
.picks-pick.is-wrong {
  background: var(--bad-bg);
  color: var(--text-dim);
  border-color: var(--bad-lo);
}
.picks-pick.is-empty { color: var(--text-mute); font-weight: 500; }
.picks-pick .team-logo { width: 22px; height: 22px; }
.picks-pick .team-logo img { max-width: 22px; max-height: 18px; }
.picks-pick .team-logo .mono { width: 20px; height: 20px; font-size: 8px; }
.picks-pick .team-name { font-size: 13px; }
.picks-pick .team-mark { font-size: 11px; color: var(--text-mute); }
.picks-pick.is-correct .team-mark { color: var(--good); }
.picks-pick.is-wrong .team-mark { color: var(--bad); }

.picks-note {
  margin: 0;
  padding: 0 var(--s-600) var(--s-600);
  font-size: 13px;
  color: var(--text-sub);
}

@media (max-width: 720px) {
  .picks-grid { gap: var(--s-400); padding: var(--s-400); }
  .picks-cols { grid-template-columns: 1fr; gap: var(--s-300); }
  .picks-head { padding: var(--s-400); }
  .picks-summary { padding: var(--s-300) var(--s-400) 0; }
}

/* ---------- Rules ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin: var(--s-800) 0 var(--s-300); }
.prose h3 { margin: var(--s-600) 0 var(--s-200); color: var(--text); }
.prose ul, .prose ol { margin: 0 0 var(--s-300); padding-left: var(--s-600); color: var(--text-dim); }
.prose li { margin-bottom: var(--s-150); }
.prose li::marker { color: var(--text-mute); }

.table-plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: var(--s-400);
}
.table-plain th, .table-plain td {
  padding: var(--s-200) var(--s-300);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.table-plain th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom-color: var(--line);
}
.table-plain td { color: var(--text-dim); }
.table-plain td:last-child { color: var(--text); font-weight: 600; text-align: right; }
.table-plain th:last-child { text-align: right; }

.lock-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.lock-line b { color: var(--white); }
.lock-line .utc { color: var(--text-mute); font-weight: 500; }

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  h1 { font-size: 38px; }
}

