:root {
  color-scheme: dark;
  --background: #071426;
  --surface: #0d2235;
  --surface-raised: #16354a;
  --ink: #f4fbff;
  --muted: #9db7c8;
  --line: #24485f;
  --line-strong: #3b7594;
  --accent: #35c9d5;
  --accent-bright: #69e1dc;
  --accent-ink: #032735;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0, rgba(35, 149, 184, .24), transparent 34rem),
    radial-gradient(circle at 95% 8%, rgba(51, 55, 173, .22), transparent 34rem),
    linear-gradient(180deg, #071224, #0a1c34 55%, #071426);
  color: var(--ink);
}
button, input { font: inherit; }

.special-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 15, 29, .92);
}
.special-brand { color: var(--ink); font-weight: 900; letter-spacing: .075em; text-decoration: none; }
.back-link { color: var(--accent-bright); font-weight: 750; text-decoration: none; }

main { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: clamp(38px, 7vw, 80px) 0 80px; }
.special-hero { max-width: 790px; }
.eyebrow { margin: 0 0 12px; color: var(--accent-bright); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.special-hero h1 { margin: 0; font-size: clamp(42px, 8vw, 78px); line-height: .98; letter-spacing: -.045em; }
.special-hero > p:not(.eyebrow) { max-width: 680px; margin: 20px 0 26px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.special-summary { display: flex; flex-wrap: wrap; gap: 10px; }
.special-summary span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(13, 34, 53, .74); color: var(--muted); }
.special-summary strong { color: var(--ink); }

.special-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 42px 0 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(13, 34, 53, .82);
}
.sport-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sport-filter { min-height: 42px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.sport-filter.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.started-toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; cursor: pointer; }
.started-toggle input { position: absolute; opacity: 0; }
.toggle-track { display: inline-flex; width: 45px; height: 25px; align-items: center; padding: 3px; border-radius: 999px; background: #375166; transition: .2s ease; }
.toggle-track span { width: 19px; height: 19px; border-radius: 50%; background: #e7f8ff; transition: .2s ease; }
.started-toggle input:checked + .toggle-track { background: var(--accent); }
.started-toggle input:checked + .toggle-track span { transform: translateX(20px); background: #06263a; }

.special-message { padding: 42px 20px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); text-align: center; }
.special-message[hidden] { display: none; }
.special-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.special-results { min-width: 0; }
.special-feed { display: grid; grid-template-columns: 1fr; gap: 17px; }
.special-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(18, 48, 71, .96), rgba(10, 27, 48, .98)); box-shadow: 0 18px 45px rgba(0, 0, 0, .18); }
.special-card > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.special-card > header > div { display: grid; gap: 4px; }
.special-sport { color: var(--accent-bright); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.special-kickoff { font-weight: 800; }
.special-league { max-width: 48%; color: var(--muted); font-size: 12px; text-align: right; }
.special-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; padding: 20px 19px 17px; font-size: clamp(18px, 3vw, 23px); }
.versus { color: #718fa4; font-size: 13px; text-transform: uppercase; }
.special-streaks { border-top: 1px solid rgba(36, 72, 95, .7); }
.special-streak-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 19px; border-bottom: 1px solid rgba(36, 72, 95, .7); }
.special-streak-row:last-child { border-bottom: 0; }
.special-count { color: var(--accent-bright); font-size: 18px; }
.special-streak-copy { min-width: 0; }
.special-basis { display: inline-flex; margin-bottom: 5px; padding: 3px 8px; border: 1px solid rgba(105, 225, 220, .34); border-radius: 999px; color: var(--accent-bright); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.special-copy { margin: 0; color: #d7e9f4; line-height: 1.5; }
.special-odd { display: grid; min-width: 78px; gap: 1px; padding: 9px 13px; border: 1px solid var(--accent); border-radius: 11px; background: rgba(53, 201, 213, .12); color: var(--ink); cursor: pointer; text-align: center; transition: .18s ease; }
.special-odd span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.special-odd strong { color: var(--accent-bright); font-size: 18px; }
.special-odd:hover { transform: translateY(-1px); background: rgba(53, 201, 213, .2); }
.special-odd.is-selected { border-color: var(--accent-bright); background: var(--accent); color: var(--accent-ink); }
.special-odd.is-selected span,
.special-odd.is-selected strong { color: var(--accent-ink); }

.bet-slip { position: sticky; isolation: isolate; top: 18px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 19px; background: linear-gradient(160deg, rgba(18, 48, 71, .99), rgba(7, 20, 38, .99)); box-shadow: 0 22px 55px rgba(0, 0, 0, .28); }
.bet-slip::after { content: "StreakPond.com"; position: absolute; z-index: 0; top: 50%; left: 50%; color: #d9f6ff; font-size: clamp(27px, 3.2vw, 42px); font-weight: 950; letter-spacing: -.035em; line-height: 1; opacity: .065; pointer-events: none; transform: translate(-50%, -50%) rotate(-24deg); white-space: nowrap; }
.bet-slip > * { position: relative; z-index: 1; }
.bet-slip > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px; border-bottom: 1px solid var(--line); }
.bet-slip-kicker { color: var(--accent-bright); font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.bet-slip h2 { margin: 3px 0 0; font-size: 23px; }
.bet-slip h2 span { display: inline-grid; min-width: 27px; height: 27px; place-items: center; margin-left: 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; vertical-align: 3px; }
.bet-slip-clear { border: 0; background: transparent; color: var(--accent-bright); cursor: pointer; font-weight: 800; }
.bet-slip-clear:disabled { color: #668397; cursor: default; }
.bet-slip-empty { padding: 34px 22px; color: var(--muted); line-height: 1.5; text-align: center; }
.bet-slip-list { display: grid; max-height: 43vh; overflow-y: auto; }
.bet-slip-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.bet-slip-item small { display: block; margin-bottom: 4px; color: var(--muted); }
.bet-slip-item strong { display: block; color: var(--ink); line-height: 1.35; }
.bet-slip-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.bet-slip-price { color: var(--accent-bright); font-size: 18px; font-weight: 900; }
.bet-slip-remove { align-self: start; width: 28px; height: 28px; margin-top: 25px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.bet-slip-totals { display: grid; gap: 12px; padding: 17px; border-top: 1px solid var(--line); }
.bet-slip-formula { overflow-wrap: anywhere; margin: 0; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: rgba(5, 17, 31, .5); color: var(--accent-bright); font-size: 12px; font-weight: 800; line-height: 1.5; }
.bet-slip-totals > div:not(.stake-input) { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); }
.bet-slip-totals strong { color: var(--ink); font-size: 20px; }
.bet-slip-totals label { color: var(--muted); font-size: 12px; font-weight: 800; }
.stake-input { display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(5, 17, 31, .72); color: var(--muted); }
.stake-input input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 800; }
.bet-slip-note { margin: 0; padding: 0 17px 18px; color: #7898aa; font-size: 11px; line-height: 1.45; }
.special-note { max-width: 760px; margin-top: 34px; padding: 20px; border-left: 3px solid var(--accent); background: rgba(13, 34, 53, .64); }
.special-note p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }

@media (max-width: 760px) {
  main { width: min(100% - 24px, 1220px); padding-top: 42px; }
  .special-toolbar { align-items: stretch; flex-direction: column; }
  .started-toggle { padding: 8px 2px 2px; }
  .special-workspace { grid-template-columns: 1fr; }
  .bet-slip { position: static; order: -1; }
  .bet-slip-list { max-height: 320px; }
}

@media (max-width: 480px) {
  .special-header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .special-card > header { flex-direction: column; }
  .special-league { max-width: none; text-align: left; }
  .special-streak-row { grid-template-columns: 39px minmax(0, 1fr); }
  .special-odd { grid-column: 2; justify-self: start; min-width: 92px; }
}
