/* PredictXI themes H2 (Wagon Wheel Dial) and C (Premium Pitch, dark). Same markup as theme H (app.css):
   only tokens and layout change here. A theme add-on ships one more file like this one. */

html[data-theme] body { background: var(--bg); }

/* ---- pieces H2 / C use (hidden in H) ---------------------------------------------- */
.stake-chips { display: none; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.stake-chips button { min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; }
.stake-chips button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); font-weight: 800; }
.wagon { display: none; position: absolute; left: 50%; top: 50%; overflow: visible; z-index: 2; pointer-events: none; }
.wagon line { stroke: rgba(255, 255, 255, .8); stroke-width: 2.4; stroke-linecap: round; }
.wagon line.boundary { stroke: #FFE08A; stroke-width: 3; }
.wagon line.fresh { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw .9s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wagon circle { fill: #fff; }
.wagon circle.boundary { fill: #FFE08A; }

/* theme picker sheet */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.theme-card { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.theme-card[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--green); }
.swatch { display: flex; gap: 4px; height: 40px; border-radius: 12px; padding: 8px; align-items: center; margin-bottom: 4px; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; }
.swatch i:nth-child(1) { background: #00C282; }
.swatch i:nth-child(2) { background: #6655D3; }
.swatch i:nth-child(3) { background: #FA3C09; }
.sw-h { background: #CFE3F5; }
.sw-h2 { background: radial-gradient(circle at 78% 50%, #4E8F4B 0 26%, #DCEAF6 27%); }
.sw-c { background: #0E0F12; box-shadow: inset 0 0 0 1px #F2C766; }
.sw-auto { background: linear-gradient(90deg, #CFE3F5 50%, #0E0F12 50%); }

/* ---- H2 · Wagon Wheel Dial ---------------------------------------------------------- */
[data-theme="h2"] {
  --bg: #DCEAF6; --surface: #FFFFFF; --surface-2: #EEF3F8; --line: #D5DFEA; --ink: #10233A; --ink-2: #48607A; --ink-inv: #FFFFFF; --ink-inv-2: #A9BCD0;
  --hero: #10233A; --accent-soft: #FFB4A0; --green: #00C282; --red: #FA3C09; --violet: #6655D3; --coin: #F5B700; --grass-a: #4E8F4B; --grass-b: #579A53;
  --rope: #B7C9DB; --pitch: #D9C9A3; --ok-bg: #E9FBF3; --ok-ink: #047857; --bad-bg: #FDECE7; --bad-ink: #B42D07;
  --shadow: 0 2px 8px rgba(16, 35, 58, .08); --shadow-lg: 0 10px 24px rgba(16, 35, 58, .22); --radius: 20px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif; --font-brand: 'Exo 2', var(--font);
}
[data-theme="h2"] .ground { height: 340px; margin-top: 118px; }
[data-theme="h2"] .ground-rope { width: 336px; height: 336px; border-radius: 50%; box-shadow: 0 10px 30px rgba(16, 35, 58, .25); }
[data-theme="h2"] .ground-grass { width: 264px; height: 264px; border-radius: 50%; box-shadow: inset 0 0 0 4px #F4F7FA, 0 0 0 4px var(--ink); }
[data-theme="h2"] .ground-ring { width: 136px; height: 136px; }
[data-theme="h2"] .wagon { display: block; }
[data-theme="h2"] .score-card { top: -118px; bottom: auto; left: 0; background: none; color: var(--ink); box-shadow: none; padding: 0; }
[data-theme="h2"] .score-card .live-tag { color: #C2410C; }
[data-theme="h2"] .score-card .score small, [data-theme="h2"] .score-card .dim { color: var(--ink-2); }
[data-theme="h2"] .over-card { top: -46px; bottom: auto; left: 0; right: 0; max-width: none; background: none; box-shadow: none; padding: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
[data-theme="h2"] .over-card .ball-row { margin: 0; }
[data-theme="h2"] .over-card .b { min-width: 28px; height: 28px; font-size: 12px; background: var(--surface); }
[data-theme="h2"] .over-card .b.four { background: var(--ink); }
[data-theme="h2"] .over-card .b.w { background: var(--red); }
[data-theme="h2"] .over-card .b.six { background: linear-gradient(135deg, #FFD34D, #F5A300); }
[data-theme="h2"] .over-card .b.extra { background: #FFF1D6; }
[data-theme="h2"] .over-card .b.empty { background: transparent; }
[data-theme="h2"] .pick-sheet { background: transparent; box-shadow: none; padding: 0 16px 18px; }
[data-theme="h2"] .pick-sheet > .grab { display: none; }
[data-theme="h2"] .pick { min-height: 60px; border-radius: 999px; flex-direction: column; justify-content: center; gap: 0; padding: 0 6px; text-align: center; }
[data-theme="h2"] .pick-name { flex: none; font-size: 15px; }
[data-theme="h2"] .pick-x { font-size: 12px; }
[data-theme="h2"] .number-grid { background: var(--surface); border-radius: 22px; padding: 12px 10px; box-shadow: 0 4px 14px rgba(16, 35, 58, .1); justify-items: center; }
[data-theme="h2"] .nball { width: 56px; max-width: 100%; }
[data-theme="h2"] .results, [data-theme="h2"] .mine { background: var(--surface); border-radius: 18px; padding: 10px 12px; box-shadow: var(--shadow); }

/* H2 and C: no Colour/Number tabs — colours in a row of three, numbers always shown */
[data-theme="h2"] [data-pick-panel] > .seg, [data-theme="c"] [data-pick-panel] > .seg { display: none; }
[data-theme="h2"] .colour-picks, [data-theme="h2"] .colour-picks[hidden],
[data-theme="c"] .colour-picks, [data-theme="c"] .colour-picks[hidden] { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
[data-theme="h2"] .number-grid[hidden], [data-theme="c"] .number-grid[hidden] { display: grid !important; }
[data-theme="h2"] .pick .mini-balls, [data-theme="c"] .pick .mini-balls { display: none; }
[data-theme="h2"] .number-grid::before, [data-theme="c"] .number-grid::before { content: attr(data-label); grid-column: 1 / -1; justify-self: stretch; font-size: 12px; font-weight: 800; padding: 0 6px; }
[data-theme="h2"] .stake-chips, [data-theme="c"] .stake-chips { display: grid; }

/* ---- C · Premium Pitch (dark) ------------------------------------------------------- */
[data-theme="c"] {
  --bg: #0E0F12; --surface: #17191E; --surface-2: #1F2229; --line: #2A2D35; --ink: #F1F2F4; --ink-2: #A6ABB5; --ink-inv: #0E0F12; --ink-inv-2: #A6ABB5;
  --hero: #17191E; --accent-soft: #F2C766; --gold: #F2C766; --green: #00C282; --red: #FA3C09; --violet: #6655D3; --coin: #F2C766;
  --grass-a: #1D4527; --grass-b: #22502D; --rope: #23262E; --pitch: #8C7B58; --ok-bg: #0F2E24; --ok-ink: #7FE0B8; --bad-bg: #3A1A14; --bad-ink: #FF8F7A;
  --shadow: 0 2px 10px rgba(0, 0, 0, .45); --shadow-lg: 0 12px 30px rgba(0, 0, 0, .55); --radius: 20px;
  --font: 'Sora', system-ui, sans-serif; --font-brand: 'Exo 2', var(--font);
  color-scheme: dark;
}
[data-theme="c"] .chip { background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
[data-theme="c"] .chip.coins { border-color: var(--gold); color: var(--gold); }
[data-theme="c"] .kicker { color: #FF8F7A; }
[data-theme="c"] .card, [data-theme="c"] .live-card { border: 1px solid var(--line); }
[data-theme="c"] .btn.primary, [data-theme="c"] .btn.light { background: var(--gold); color: #2A1D00; }
[data-theme="c"] .round-btn, [data-theme="c"] .watch-pill { border: 1px solid var(--line); box-shadow: none; background: var(--surface); }
[data-theme="c"] #auth-form input:not([type=checkbox]) { background: var(--surface-2); color: var(--ink); }
[data-theme="c"] .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
[data-theme="c"] .tabbar { border: 1px solid var(--line); }
[data-theme="c"] .tab-pill { background: #262A33; }
[data-theme="c"] .tabbar a[aria-current="page"] { color: var(--gold); }
/* big centred score above a floodlit night pitch */
[data-theme="c"] .ground { margin-top: 150px; height: 280px; }
[data-theme="c"] .ground::before {
  content: ''; position: absolute; inset: -40px -10px -10px; pointer-events: none; z-index: 0;
  background: radial-gradient(35% 45% at 18% 12%, rgba(255, 240, 200, .22), transparent 70%), radial-gradient(35% 45% at 82% 12%, rgba(255, 240, 200, .22), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 35%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 35%, transparent 75%);
  animation: flood 6s ease-in-out infinite;
}
@keyframes flood { 50% { opacity: .6; } }
[data-theme="c"] .ground-grass { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), inset 0 0 60px rgba(0, 0, 0, .45); }
[data-theme="c"] .score-card { top: -150px; bottom: auto; left: 0; right: 0; background: none; box-shadow: none; text-align: center; padding: 0; color: var(--ink); }
[data-theme="c"] .live-tag { justify-content: center; color: #FF8F7A; letter-spacing: .14em; }
[data-theme="c"] .score { font-size: 52px; letter-spacing: -1px; line-height: 1; }
[data-theme="c"] .score small { font-size: 15px; color: var(--ink-2); letter-spacing: 0; }
[data-theme="c"] .score-card .dim { color: var(--ink-2); font-size: 13px; }
[data-theme="c"] .over-card { top: -58px; bottom: auto; left: 0; right: 0; max-width: none; background: none; box-shadow: none; padding: 0; display: flex; flex-direction: column; align-items: center; }
[data-theme="c"] .over-card [data-over-label] { display: none; }
[data-theme="c"] .over-card .b { min-width: 34px; height: 34px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); }
[data-theme="c"] .over-card .b.four { background: var(--ink); color: var(--ink-inv); box-shadow: inset 0 0 0 2px var(--gold); }
[data-theme="c"] .over-card .b.w { background: var(--red); border-color: var(--red); }
[data-theme="c"] .over-card .b.six { background: linear-gradient(135deg, #FFD34D, #F5A300); color: #2A1D00; border: none; }
[data-theme="c"] .over-card .b.extra { background: #3A2E12; color: var(--gold); }
[data-theme="c"] .over-card .b.empty { background: transparent; border: 1px dashed #3A3F4A; }
[data-theme="c"] .b.dot .dotmark { background: var(--ink-2); }
[data-theme="c"] .pick-sheet { background: var(--surface); border-top: 1px solid var(--line); box-shadow: none; }
[data-theme="c"] .pick { min-height: 70px; border-radius: 18px; flex-direction: column; justify-content: center; gap: 2px; padding: 0 6px; text-align: center; }
[data-theme="c"] .pick-name { flex: none; font-size: 15px; font-weight: 700; }
[data-theme="c"] .pick-x { font-size: 12px; font-weight: 600; }
[data-theme="c"] .pick[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 199, 102, .25); }
[data-theme="c"] .nball { border-color: var(--surface); }
[data-theme="c"] .nball[aria-pressed="true"] { border-color: var(--gold); }
[data-theme="c"] .stake-chips button[aria-pressed="true"] { background: var(--gold); color: #2A1D00; border-color: var(--gold); }
[data-theme="c"] .stepper { background: var(--bg); border: 1px solid var(--line); }
[data-theme="c"] .stepper button { background: var(--surface-2); border: 1px solid var(--line); }
[data-theme="c"] .pick-item, [data-theme="c"] .pick-list .pick-item { background: var(--bg); border: 1px solid var(--line); }
[data-theme="c"] .crowd i { opacity: .75; }
[data-theme="c"] .fx-reveal-card { border: 1px solid var(--line); }
[data-theme="c"] .live-card .pitch-strip { filter: brightness(.75); }
[data-theme="c"] .mini-strip .b { background: var(--surface-2); }
[data-theme="c"] .hero { border: 1px solid var(--line); background: radial-gradient(120% 90% at 85% 0%, #2A2410 0%, transparent 60%), linear-gradient(160deg, #17191E, #0E0F12); }
[data-theme="c"] .cd { background: var(--surface-2); border: 1px solid var(--line); }
[data-theme="c"] .tag.n { background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { [data-theme="c"] .ground::before { animation: none; } }
/* C: text on the (dark) hero surfaces is light, not the inverse ink */
[data-theme="c"] .live-card, [data-theme="c"] .live-pill, [data-theme="c"] .score-card { color: var(--ink); }
[data-theme="c"] .live-pill { background: rgba(14, 15, 18, .8); border: 1px solid var(--line); }
[data-theme="c"] .mini-strip .b.four { background: var(--ink); color: #0E0F12; }
/* C: add-on how-to box sits on the dark hero surface: light text */
[data-theme="c"] .ao-how-box { color: var(--ink); border: 1px solid var(--line); }
[data-theme="c"] .ao-tag { background: var(--gold); color: #2A1D00; }
