/* 1000TRIES. Dark theme, 27-0 gold, club colours up front. */

:root {
  --gold: #f1c073;
  --gold-dark: #c9953a;
  --bg: #0a0a0f;
  --bg2: #0e0e1a;
  --card: #141420;
  --card2: #1c1c2e;
  --line: #24243a;
  --text: #f0f0f0;
  --muted: #8a8aa0;
  --dim: #5c5c72;
  --good: #4ade80;
  --bad: #f87171;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--gold); }
button { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.wrap-wide { max-width: 1100px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}
.brand { display: flex; align-items: center; text-decoration: none; min-height: 36px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-fallback { font-weight: 900; font-size: 13px; letter-spacing: 2px; color: var(--gold); }
.header-nav { display: flex; align-items: center; gap: 14px; }
.header-nav a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); }
.header-nav a:hover { color: var(--gold); }
body[data-screen="draft"] .header-nav a { display: none; }
.header-nav .btn-again { display: none; }
.btn-again .lbl-short { display: none; }
@media (max-width: 480px) {
  .header-nav { gap: 6px; }
  .header-nav .btn-again { padding: 5px 8px; font-size: 10.5px; letter-spacing: .3px; }
  .btn-again .lbl-long { display: none; }
  .btn-again .lbl-short { display: inline; }
  .brand-logo { height: 32px; }
}
body[data-screen="draft"] .header-nav .btn-again { display: inline-flex; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn .ico-on { display: none; }
.icon-btn.is-on { color: var(--gold); }
.icon-btn.is-on .ico-on { display: block; }
.icon-btn.is-on .ico-off { display: none; }

/* Screens */

.screen { display: none; }
.screen.is-active { display: block; animation: fadeUp .25s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-size: 15px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-primary:disabled { background: #3a3424; color: #8b7d5a; cursor: wait; }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #111; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; margin: 16px 0 10px; }
.btn-row .btn { flex: 1; }
.text-link {
  display: block; background: none; border: 0; padding: 10px; margin: 6px auto 0;
  color: var(--gold); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.center { text-align: center; }

/* Home */

.hero { text-align: center; padding: 18px 0 8px; }
.hero-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); opacity: .85; }
.hero-title { margin: 8px 0 10px; line-height: 1; }
.hero-logo { display: block; margin: 0 auto; width: 100%; max-width: 440px; height: auto; }
.hero-wordmark { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 900; letter-spacing: -1px; }
.wm-num { font-size: clamp(64px, 20vw, 104px); color: var(--gold); text-shadow: 0 0 40px rgba(241, 192, 115, .35); }
.wm-word { font-size: clamp(30px, 9vw, 48px); color: #fff; }
.hero-pitch { color: #c8c8d8; font-size: 16px; line-height: 1.55; max-width: 520px; margin: 0 auto; }
.hero-pitch strong { color: var(--gold); font-weight: 900; }
.hero-pitch a { color: var(--gold); font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero-pitch a:hover { color: #fff; }

.mode-picker { display: grid; gap: 10px; margin: 22px 0 16px; }
.mode-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico name" "ico line" "chips chips";
  column-gap: 12px; row-gap: 2px; align-items: center; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 2px solid var(--line); color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.mode-card:hover { border-color: #4a4a66; }
.mode-card:active { transform: scale(.99); }
.mode-card.is-on { border-color: var(--gold); background: linear-gradient(135deg, rgba(241, 192, 115, .18), rgba(241, 192, 115, .04)); box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(241, 192, 115, .12); }
.mode-ico { grid-area: ico; font-size: 30px; line-height: 1; }
.mode-name { grid-area: name; font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -.3px; }
.mode-card.is-on .mode-name { color: var(--gold); }
.mode-line { grid-area: line; font-size: 14px; font-weight: 700; color: #d6d6e4; }
.mode-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mode-chip { font-size: 11px; font-weight: 800; letter-spacing: .3px; padding: 3px 8px; border-radius: 6px; background: #22223a; color: #b8b8cc; }
.mode-card.is-on .mode-chip { background: rgba(241, 192, 115, .16); color: var(--gold); }
.mode-tag { position: absolute; top: -9px; right: 12px; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; background: var(--gold); color: #111; }

.pack-note { font-size: 12px; color: var(--dim); text-align: center; margin: 10px 0 0; }
.pack-note:empty { display: none; }

.promo-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  margin: 22px 0 0; padding: 14px 48px 14px 14px;
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, #1b1633, #120f22); border: 1px solid #3b2f6b;
}
.promo-card:hover { border-color: var(--gold); }
.promo-logo { grid-row: 1 / span 3; width: 108px; height: auto; display: block; }
.promo-card > span:not(.promo-arrow) { grid-column: 2; }
.promo-kicker { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #a99be0; }
.promo-title { font-size: 17px; font-weight: 900; color: #fff; }
.promo-sub { font-size: 13px; color: #b8b8cc; }
.promo-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold); }

/* Latest videos */

.watch { margin: 26px 0 0; }
.watch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.watch-title { font-size: 20px; font-weight: 900; margin: 0; }
.watch-all { font-size: 13px; font-weight: 800; color: var(--gold); text-decoration: none; white-space: nowrap; }
.watch-all:hover { text-decoration: underline; }
.watch-sub { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.watch-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px;
  scrollbar-width: none;
}
.watch-track::-webkit-scrollbar { display: none; }
.vcard {
  display: flex; flex-direction: column; scroll-snap-align: start; overflow: hidden;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.vcard:hover { transform: translateY(-2px); border-color: var(--gold); }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; transform: translate(-50%, -50%);
  border-radius: 9px; background: rgba(255, 0, 0, .9); opacity: 0; transition: opacity .15s;
}
.vplay::after { content: ""; position: absolute; left: 19px; top: 9px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.vcard:hover .vplay { opacity: 1; }
.vbody { display: grid; gap: 6px; padding: 12px 14px 14px; }
.vtitle { font-size: 14px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vdate { font-size: 12px; color: var(--muted); font-weight: 600; }

.acast-embed { margin: 18px 0 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.acast-embed iframe { display: block; border: 0; }

/* Draft: scoreboard */

.scoreboard {
  position: sticky; top: 58px; z-index: 40;
  background: rgba(14, 14, 26, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.sb-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px 12px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.sb-left { display: grid; line-height: 1.25; }
.sb-mode { font-size: 12px; font-weight: 900; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.sb-picks { font-size: 12px; color: var(--muted); font-weight: 600; }
.sb-center { display: flex; align-items: baseline; gap: 6px; justify-content: center; }
.sb-total { font-size: clamp(30px, 9vw, 42px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.sb-of { font-size: 14px; font-weight: 700; color: var(--muted); }
.sb-right { text-align: right; }
.btn-again {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 10px;
  background: transparent; border: 1.5px solid rgba(241, 192, 115, .55); color: var(--gold);
  font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.btn-again:hover { border-color: var(--gold); background: rgba(241, 192, 115, .1); }
.sb-help { font-size: 13px; font-weight: 800; color: #d8d8e8; }
.sb-help.is-good { color: var(--good); }
.sb-help.is-bad { color: var(--bad); }
@property --bar { syntax: '<color>'; inherits: true; initial-value: #8a7650; }
.sb-bar { position: relative; grid-column: 1 / -1; height: 12px; border-radius: 8px; background: #1d1d33; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.sb-fill {
  --bar: #8a7650; --glow: rgba(138, 118, 80, .3);
  position: relative; height: 100%; width: 0; border-radius: 8px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar) 55%, #000), var(--bar));
  box-shadow: 0 0 12px var(--glow);
  transition: width 1.1s cubic-bezier(.22, 1.2, .36, 1), --bar .8s, box-shadow .8s, background .8s;
}
/* moving sheen so the bar feels alive */
.sb-fill::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, .16) 14px 22px);
  background-size: 200% 100%; animation: sbSheen 1.6s linear infinite;
}
@keyframes sbSheen { from { background-position: 0 0; } to { background-position: -60px 0; } }
.sb-bar.is-pulse .sb-fill { animation: sbPulse .9s ease .35s; }
@keyframes sbPulse { 0% { filter: brightness(1); } 35% { filter: brightness(1.6); box-shadow: 0 0 22px var(--glow), 0 0 4px #fff; } 100% { filter: brightness(1); } }
.sb-bar.is-levelup { animation: sbShake .5s ease .8s; }
@keyframes sbShake { 0%, 100% { transform: none; } 25% { transform: scaleY(1.5); } 60% { transform: scaleY(.9); } }
.sb-bar[data-stage="hot"] .sb-fill::after { animation-duration: .7s; }
.sb-bar[data-stage="hit"] .sb-fill { box-shadow: 0 0 18px var(--glow); }
.sb-gain {
  position: absolute; top: -4px; transform: translate(-50%, 0); pointer-events: none;
  font-size: 12px; font-weight: 900; color: #fff; white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8); opacity: 0;
}
.sb-gain.is-on { animation: sbGain 1.5s ease-out .3s both; }
@keyframes sbGain { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -20px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -28px); } }

/* Draft: layout */

.draft-grid { display: grid; gap: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-title { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.panel-meta { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Pitch */

.pitch {
  display: grid; gap: 8px; padding: 12px 8px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 36px, transparent 36px 72px),
    linear-gradient(180deg, #0f2a17, #0b1f12);
  border: 1px solid #1d3b25;
}
.pitch-row { display: flex; justify-content: center; gap: 6px; }
.slot {
  position: relative; flex: 0 1 84px; min-width: 0; min-height: 70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; padding: 6px 4px; text-align: center; font: inherit; color: inherit;
}
.slot.is-empty { border: 2px dashed rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .25); }
.slot.is-empty .slot-code { font-size: 16px; font-weight: 900; color: rgba(255, 255, 255, .55); }
.slot.is-empty .slot-pos { font-size: 10px; color: rgba(255, 255, 255, .35); font-weight: 600; }
.slot.is-filled {
  background: var(--club); color: var(--club-text);
  border: 2px solid var(--club-accent);
  box-shadow: inset 0 4px 0 var(--club-accent), 0 4px 12px rgba(0, 0, 0, .35);
}
.slot.is-filled .slot-code { position: absolute; top: 5px; left: 6px; font-size: 9px; font-weight: 900; opacity: .75; }
.slot-abbr { position: absolute; top: 5px; right: 6px; font-size: 9px; font-weight: 900; color: var(--club-accent); }
.slot-name { font-size: 12px; font-weight: 900; line-height: 1.1; margin-top: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-tries { font-size: 18px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.slot.is-flash { animation: flash 1s ease; }
@keyframes flash { 0% { transform: scale(.6); opacity: 0; } 40% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.slot.is-tweakable { cursor: pointer; animation: wiggle 1.2s ease-in-out infinite; }
.slot.is-tweakable:hover { outline: 3px solid var(--bad); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }

/* Desktop placing: glowing target spots */

.slot.is-preview { border-color: rgba(241, 192, 115, .7); background: rgba(241, 192, 115, .1); }
.slot.is-preview .slot-code { color: var(--gold); }
.pitch.is-placing .slot.is-empty:not(.is-target) { opacity: .35; }
.pitch.is-placing .slot.is-filled { opacity: .55; }
.slot.is-target {
  cursor: pointer; border: 2px solid var(--gold); background: rgba(241, 192, 115, .2);
  box-shadow: 0 0 0 3px rgba(241, 192, 115, .25), 0 0 22px rgba(241, 192, 115, .55);
  animation: targetPulse 1.1s ease-in-out infinite;
}
.slot.is-target .slot-code, .slot.is-target .slot-pos { color: #fff; }
.slot.is-target::after {
  content: "Place here"; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
  padding: 1px 6px; border-radius: 4px; background: var(--gold); color: #111;
}
.slot.is-target:hover { background: rgba(241, 192, 115, .38); transform: scale(1.05); }
@keyframes targetPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(241, 192, 115, .25), 0 0 16px rgba(241, 192, 115, .45); } 50% { box-shadow: 0 0 0 5px rgba(241, 192, 115, .35), 0 0 28px rgba(241, 192, 115, .75); } }
.pcard.is-selected, .srow.is-selected { outline: 3px solid var(--gold); outline-offset: 2px; }
.place-hint { color: var(--gold); font-weight: 900; }

/* Wildcards */

.wildcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.wc {
  display: grid; gap: 1px; padding: 8px 6px; min-height: 48px;
  border-radius: 10px; border: 1.5px solid #3b2f6b; background: #17132b; color: #fff; cursor: pointer; text-align: center;
}
.wc:hover:not(:disabled) { border-color: var(--gold); }
.wc:disabled { opacity: .4; cursor: not-allowed; }
.wc.is-spent { opacity: .3; }
.wc.is-armed { border-color: var(--bad); background: #2a1116; opacity: 1; }
.wc-label { font-size: 12px; font-weight: 900; }
.wc-left { font-size: 10px; color: #a99be0; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.tweak-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; margin-bottom: 12px; border-radius: 10px;
  background: #2a1116; border: 1px solid var(--bad); font-size: 13px; color: #fecaca;
}

/* Offer cards (roll 3) */

.offer-cards { display: grid; gap: 10px; }
.pcard {
  display: grid; grid-template-columns: 1fr; width: 100%; padding: 0; overflow: hidden; text-align: left;
  border-radius: 14px; border: 2px solid var(--club); background: var(--card2); color: var(--text); cursor: pointer;
  animation: dealIn .35s ease both;
  transition: transform .12s, box-shadow .15s;
}
.pcard:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 0 2px var(--club-accent); }
.pcard:disabled { opacity: .5; cursor: not-allowed; }
@keyframes dealIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pcard-plate {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--club); color: var(--club-text);
  border-left: 8px solid var(--club-accent);
}
.pcard-abbr { font-size: 13px; font-weight: 900; letter-spacing: 1px; padding: 2px 7px; border-radius: 5px; background: var(--club-accent); color: var(--club); }
.pcard-club { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-body { display: grid; gap: 6px; padding: 12px 14px 4px; }
.pcard-name { font-size: 20px; font-weight: 900; line-height: 1.15; }
.pcard-meta, .srow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pcard-span { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 4px; background: #2a2a44; color: #c7d2fe; letter-spacing: .3px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 12px; }
.pcard-cta { font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.tries-badge { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tries-badge strong { font-size: 18px; color: #6b6b85; font-weight: 900; margin-right: 2px; }
.tries-badge.is-revealed strong { color: var(--gold); }

/* Team Spin */

.reel { display: grid; grid-template-columns: 1fr auto 2fr; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.reel-box {
  display: grid; align-content: center; gap: 2px; height: 76px; overflow: hidden; padding: 8px 12px; border-radius: 12px;
  background: var(--bg2); border: 2px solid var(--line); text-align: center;
}
.reel-lbl { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.reel-val {
  font-size: 17px; font-weight: 900; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reel-year .reel-val { font-variant-numeric: tabular-nums; }
.reel-x { align-self: center; color: var(--dim); font-size: 22px; }
.reel.is-landed .reel-box:first-child { border-color: var(--gold); }
.reel.is-landed .reel-box:first-child .reel-val { color: var(--gold); }
.reel-year .reel-val { font-size: 24px; }
.reel-club[style] { background: var(--club); border-color: var(--club-accent); color: var(--club-text); }
.reel-club[style] .reel-lbl { color: var(--club-text); opacity: .7; }

/* Squad sort toggle (Team Spin) */
.sort-toggle { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.sort-btn {
  display: grid; gap: 1px; justify-items: center; padding: 8px 6px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 900;
}
.sort-btn + .sort-btn { border-left: 1px solid var(--line); }
.sort-btn .sort-dir { font-size: 11px; font-weight: 700; opacity: .8; }
.sort-btn.is-on { background: rgba(241, 192, 115, .16); color: var(--gold); }
.sort-btn:hover:not(.is-on) { color: #fff; }
.squad-group {
  position: sticky; top: 0; z-index: 1; padding: 6px 4px 4px; margin-top: 2px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
  background: var(--card);
}
.squad { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.srow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; text-align: left; cursor: pointer;
  background: var(--card2); color: var(--text); border: 1px solid var(--line); border-left: 6px solid var(--club);
}
.srow:hover:not(:disabled) { border-color: var(--club-accent); border-left-color: var(--club); background: #232338; }
.srow:disabled { opacity: .5; cursor: not-allowed; }
.srow-main { display: grid; gap: 3px; min-width: 0; }
.srow-name { font-size: 15px; font-weight: 800; }
.note { font-size: 12px; color: var(--muted); margin: 0 0 10px; }

/* Reveal after a pick */

.reveal {
  display: grid; justify-items: center; gap: 2px; padding: 26px 16px; border-radius: 14px;
  background: var(--club); color: var(--club-text); border: 3px solid var(--club-accent);
  animation: dealIn .3s ease both;
}
.reveal-name { font-size: 18px; font-weight: 900; text-align: center; }
.reveal-num { font-size: 64px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; animation: pop .5s ease both .1s; }
.reveal-lbl { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* Decision when full but short */

.decision { text-align: center; padding: 8px 4px; }
.decision-big { font-size: 34px; font-weight: 900; color: var(--bad); margin: 4px 0; }
.decision p { color: #c8c8d8; }

/* Sheet (slot chooser) */

.sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.sheet-body {
  position: relative; width: 100%; max-width: 480px; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 2px solid var(--gold); border-radius: 18px 18px 0 0;
  animation: sheetUp .22s ease both;
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-title { font-size: 18px; font-weight: 900; margin: 0 0 2px; }
.sheet-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
/* Dual-position chooser (phones) */
.chooser-card { overflow: hidden; border-radius: 14px; border: 2px solid var(--club); background: var(--card2); margin-bottom: 14px; }
.chooser-card .pcard-plate { display: flex; }
.chooser-name { display: block; padding: 10px 14px 12px; font-size: 20px; font-weight: 900; }
.chooser-card.is-goat { border-color: var(--gold); }
.chooser-card.is-goat .pcard-plate { background: linear-gradient(135deg, #7a5a12, #f1c073 40%, #fff1c4 55%, #f1c073 70%, #7a5a12); color: #1a1204; }
.chooser-card.is-goat .chooser-name { color: var(--gold); }
.chooser-q { margin: 0 0 10px; text-align: center; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.chooser-spots {
  display: flex; justify-content: center; gap: 12px; padding: 18px 12px 22px; margin-bottom: 12px; border-radius: 12px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 30px, transparent 30px 60px), linear-gradient(180deg, #0f2a17, #0b1f12);
  border: 1px solid #1d3b25;
}
.chooser-spot {
  position: relative; flex: 0 1 120px; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 12px; border: 2px solid var(--gold); background: rgba(241, 192, 115, .2); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 3px rgba(241, 192, 115, .25), 0 0 18px rgba(241, 192, 115, .5);
  animation: targetPulse 1.1s ease-in-out infinite;
}
.chooser-spot:active { transform: scale(.96); background: rgba(241, 192, 115, .38); }
.cs-code { font-size: 26px; font-weight: 900; line-height: 1; }
.cs-pos { font-size: 12px; font-weight: 700; opacity: .85; }
.cs-tag {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 9px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--gold); color: #111;
}
.chooser-back { display: block; width: 100%; padding: 10px; background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 800; cursor: pointer; }
.chooser-back:hover { color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 300; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px;
  background: #242438; border: 1px solid var(--gold); color: #fff; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Results */

.result-hero { text-align: center; padding: 22px 16px 18px; border-radius: 18px; margin-top: 4px; }
.result-hero.is-win { background: radial-gradient(circle at 50% 0, rgba(241, 192, 115, .28), rgba(241, 192, 115, .04) 70%); border: 2px solid var(--gold); }
.result-hero.is-fail { background: radial-gradient(circle at 50% 0, rgba(248, 113, 113, .18), rgba(248, 113, 113, .03) 70%); border: 2px solid #5a2630; }
.result-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.result-title { font-size: clamp(34px, 10vw, 52px); font-weight: 900; line-height: 1.05; margin: 6px 0 8px; text-transform: uppercase; }
.is-win .result-title { color: var(--gold); }
.is-fail .result-title { color: #fff; }
.result-total { display: grid; justify-items: center; }
.rt-num { font-size: clamp(56px, 18vw, 84px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.rt-of { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.result-sub { color: #c8c8d8; margin: 10px 0 0; }

.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rrow {
  display: grid; grid-template-columns: 34px 46px 1fr auto; align-items: center; gap: 8px;
  padding: 0 12px 0 0; border-radius: 10px; overflow: hidden;
  background: var(--card2); border: 1px solid var(--line);
}
.rrow-code { font-size: 11px; font-weight: 900; color: var(--muted); text-align: center; }
.rrow-club {
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  background: var(--club); color: var(--club-text); border-left: 4px solid var(--club-accent);
  font-size: 11px; font-weight: 900; padding: 10px 0;
}
.rrow.is-empty .rrow-club { display: none; }
.rrow.is-empty { grid-template-columns: 34px 1fr auto; padding: 10px 12px 10px 0; color: var(--dim); }
.rrow-name { font-size: 14px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 8px 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 5px; line-height: 1.25; }
.rrow-tries { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rrow.is-best { border-color: var(--gold); }
.best-tag { font-size: 9px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; background: var(--gold); color: #111; white-space: nowrap; line-height: 1.2; }
.rsum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 0; margin-top: 8px; border-top: 1px solid var(--line); }
.rsum span { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.rsum strong { font-size: 24px; font-weight: 900; color: var(--gold); }
#results .panel { margin-top: 18px; }

/* Unibet (neutral class names so content blockers do not hide the placements) */

.cp-partner { margin: 18px 0 0; }
.cp-partner-link { display: block; border-radius: 12px; overflow: hidden; text-decoration: none; }
.cp-partner-link img { display: block; width: 100%; height: auto; }

.cp-takeover {
  position: fixed; inset: 0; z-index: 400; padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .92);
}
.cp-takeover-link { display: block; width: 100%; max-width: 480px; border-radius: 16px; overflow: hidden; }
.cp-takeover-link img { display: block; width: 100%; height: auto; }
.cp-takeover-bar { width: 100%; max-width: 480px; height: 6px; margin-top: 8px; border-radius: 4px; background: #333; overflow: hidden; }
.cp-takeover-fill { height: 100%; width: 100%; background: var(--gold); transition: width .1s linear; }
.cp-takeover-label { margin-top: 6px; font-size: 11px; color: #888; }

/* Footer */

.site-footer { margin-top: 28px; padding: 18px 16px 32px; text-align: center; border-top: 1px solid #1a1a2a; }
.socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.socials a { color: var(--gold); opacity: .85; }
.socials a:hover { opacity: 1; }
.footer-links { font-size: 12px; color: var(--dim); margin: 0 0 10px; }
.footer-links a { color: #9a9ab0; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { font-size: 10px; color: #4a4a5e; max-width: 620px; margin: 0 auto; line-height: 1.6; }

/* Content pages (How it works, Privacy, Terms) */

.doc h1 { font-size: clamp(28px, 7vw, 38px); font-weight: 900; margin: 12px 0 4px; }
.doc .updated { font-size: 12px; color: var(--dim); margin: 0 0 20px; }
.doc h2 { font-size: 15px; font-weight: 900; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin: 26px 0 8px; }
.doc p, .doc li { color: #c0c0d0; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: #fff; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.doc td { color: #c0c0d0; }
.doc .cta { margin-top: 26px; }

/* How it works viewer (27-0 style) */

.how-it-works {
  margin: 20px 0 0; padding: 16px 14px 14px; border-radius: 16px;
  background: linear-gradient(180deg, #121226, #0d0d1a); border: 1px solid #25254a;
}
.hiw-title { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; text-align: center; margin-bottom: 12px; }
.hiw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.hiw-tile {
  padding: 10px 10px 9px; border-radius: 10px; text-align: center;
  background: rgba(245, 197, 24, .07); border: 1px solid rgba(245, 197, 24, .18);
}
.hiw-ico { font-size: 20px; line-height: 1; margin-bottom: 5px; }
.hiw-name { font-size: 14px; font-weight: 800; color: var(--gold); margin-bottom: 2px; }
.hiw-desc { font-size: 12.5px; color: #a0a0b8; line-height: 1.4; }
.hiw-goal {
  padding: 10px 14px; border-radius: 10px; text-align: center;
  background: rgba(245, 197, 24, .07); border: 1px solid rgba(245, 197, 24, .2);
}
.hiw-goal-label { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.hiw-goal-text { font-size: 16px; font-weight: 900; color: #fff; }
.hiw-foot { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
#homeAd:not(:empty) { margin-top: 4px; }

.rules-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 360px; margin: 14px auto 0; padding: 12px 16px;
  border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, rgba(241, 192, 115, .14), rgba(241, 192, 115, .04));
  border: 1.5px solid rgba(241, 192, 115, .45);
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.rules-btn:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(241, 192, 115, .15); }
.rules-ico { font-size: 24px; line-height: 1; }
.rules-txt { display: grid; flex: 1; line-height: 1.25; text-align: left; }
.rules-txt strong { font-size: 15px; font-weight: 900; color: var(--gold); }
.rules-txt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.rules-arrow { font-size: 20px; color: var(--gold); transition: transform .15s; }
.rules-btn:hover .rules-arrow { transform: translateX(3px); }

/* Rules pop-up */

.sheet.is-rules { align-items: center; padding: 16px; }
.sheet.is-rules .sheet-body {
  max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px;
  border: 1px solid var(--gold); padding: 22px 18px 18px;
}
.sheet-x {
  position: sticky; top: 0; float: right; z-index: 2; width: 38px; height: 38px; margin: -8px -6px 0 8px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.sheet-x:hover { border-color: var(--gold); color: var(--gold); }
.rules-pop h1 { margin-top: 0; }
.rules-pop table { display: block; overflow-x: auto; }

/* Back to game on content pages */

.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 6px; padding: 8px 14px;
  border-radius: 10px; border: 1.5px solid var(--gold); color: var(--gold);
  font-size: 13px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
}
.back-link:hover { background: var(--gold); color: #111; }
.header-nav .nav-play {
  padding: 7px 14px; border-radius: 10px; background: var(--gold); color: #111; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
}
.header-nav .nav-play:hover { background: var(--gold-dark); color: #111; }

/* Restart sheet */

.sheet-grab { width: 48px; height: 4px; border-radius: 2px; background: #2a2a4a; margin: 0 auto 18px; }
.sheet-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 6px; }
.sheet-title.center, .sheet-sub.center { text-align: center; }
.sheet-gap { margin-top: 10px; }

/* The GOAT: Alex Johnston */

.goat { font-style: normal; }
.pcard.is-goat, .reveal.is-goat, .slot.is-goat, .rrow.is-goat, .srow.is-goat {
  --goat: linear-gradient(135deg, #7a5a12 0%, #f1c073 30%, #fff1c4 50%, #f1c073 70%, #7a5a12 100%);
}
.pcard.is-goat { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(241, 192, 115, .35); }
.pcard.is-goat .pcard-plate { background: var(--goat); background-size: 200% 100%; color: #1a1204; border-left-color: #1a1204; animation: goatShine 3s linear infinite; }
.pcard.is-goat .pcard-abbr { background: #1a1204; color: var(--gold); }
.pcard.is-goat .pcard-name { color: var(--gold); }
.slot.is-goat { background: var(--goat); background-size: 200% 100%; color: #1a1204; border-color: #fff1c4; box-shadow: 0 0 18px rgba(241, 192, 115, .55); animation: goatShine 3s linear infinite; }
.slot.is-goat .slot-abbr { color: #1a1204; font-size: 15px; top: 2px; right: 4px; line-height: 1; }
.reveal.is-goat { background: var(--goat); background-size: 200% 100%; color: #1a1204; border-color: #fff1c4; animation: dealIn .3s ease both, goatShine 3s linear infinite; }
.rrow.is-goat { border-color: var(--gold); background: linear-gradient(90deg, rgba(241, 192, 115, .22), var(--card2) 70%); }
.rrow.is-goat .rrow-club { background: var(--goat); color: #1a1204; border-left-color: #1a1204; }
.rrow.is-goat .rrow-name, .rrow.is-goat .rrow-tries { color: var(--gold); }
.srow.is-goat { border-color: var(--gold); background: linear-gradient(90deg, rgba(241, 192, 115, .2), var(--card2) 75%); }
.srow.is-goat .srow-name { color: var(--gold); }
@keyframes goatShine { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* Mobile: tighter blocks so more of the offer fits on screen */

@media (max-width: 899px) {
  .wrap-wide.draft-grid { padding-top: 12px; gap: 12px; }
  .panel { padding: 12px; border-radius: 14px; }
  .panel-head { margin-bottom: 8px; }
  .wildcards { gap: 6px; margin-bottom: 8px; }
  .wc { min-height: 40px; padding: 5px 4px; }
  .wc-label { font-size: 11.5px; line-height: 1.2; }
  .offer-cards { gap: 8px; }
  .pcard { grid-template-columns: 1fr auto; border-radius: 12px; }
  .pcard-plate { grid-column: 1 / -1; padding: 6px 12px; border-left-width: 6px; }
  .pcard-abbr { font-size: 11px; }
  .pcard-club { font-size: 12px; }
  .pcard-body { padding: 8px 4px 9px 12px; gap: 4px; }
  .pcard-name { font-size: 17px; }
  .pcard-foot { padding: 8px 12px 9px 4px; align-self: center; }
  .pcard-cta { display: none; }
  .reel { margin-bottom: 8px; gap: 6px; }
  .reel-box { height: 70px; padding: 6px 10px; }
  .reel-val { font-size: 14px; line-height: 1.15; }
  .reel-club .reel-val { font-size: 14px; }
  .reel-year .reel-val { font-size: 20px; }
  .squad { gap: 5px; max-height: 360px; }
  .srow { padding: 7px 10px; }
  .srow-name { font-size: 14px; }
  .reveal { padding: 18px 12px; }
  .reveal-num { font-size: 52px; }
  .sb-inner { padding: 8px 16px 10px; row-gap: 6px; }
}

/* Desktop */

@media (min-width: 900px) {
  .draft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; padding-top: 20px; }
  .offer-panel { position: sticky; top: 150px; }
  .offer-cards { gap: 12px; }
  .slot { flex-basis: 108px; min-height: 84px; }
  .slot-name { font-size: 14px; }
  .slot-tries { font-size: 22px; }
  .pitch { gap: 10px; padding: 16px 10px; }
  .pitch-row { gap: 10px; }
  .mode-picker { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .promo-logo { width: 140px; }
  .mode-card { grid-template-columns: 1fr; grid-template-areas: "ico" "name" "line" "chips"; justify-items: center; text-align: center; padding: 18px 12px 16px; row-gap: 4px; }
  .mode-ico { font-size: 34px; margin-bottom: 4px; }
  .mode-name { font-size: 26px; }
  .mode-chips { justify-content: center; }
  .watch-track { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .wrap:not(.wrap-wide) { max-width: 760px; }
}

@media (max-width: 380px) {
  .slot { min-height: 62px; }
  .slot-name { font-size: 10.5px; }
  .slot-tries { font-size: 15px; }
  .pitch-row { gap: 4px; }
  .sb-help { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
