/* DockSplit Footy Tipping — night-stadium look, podium metals, live pulse.
   Uses the app's tokens (so managers' themes carry over) plus its own. */
:root {
  /* chart series (validated for the dark surface: L 0.65, CVD ΔE 21) */
  --viz-a: #1eab53; --viz-b: #3496de;
  --gold: #f5c542; --gold-ink: #3a2a00;
  --silver: #cfd6df; --silver-ink: #22282f;
  --bronze: #d58a4a; --bronze-ink: #3a1e08;
  --turf: oklch(0.72 0.17 150);
}

.tp { position: relative; min-height: 100vh; margin: -20px -20px -110px; padding: 0 20px 110px; }
/* the stadium background covers the whole screen (not just the app's
   480px column) — turf glow from the top, no theme colour mixed in */
.tp::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% -12%, color-mix(in oklab, var(--turf) 26%, transparent), transparent 70%),
    radial-gradient(70% 40% at 50% 110%, color-mix(in oklab, var(--turf) 10%, transparent), transparent 70%),
    var(--bg); }
.tp-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 14px 0 10px;
  background: linear-gradient(var(--bg) 70%, transparent); }
.tp-back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tp-brand { flex: 1; display: flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: .06em; font-size: 17px; }
.tp-brand b { color: var(--turf); margin-left: 4px; }
.tp-ball { width: 22px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, #b5652b, #7a3d15); box-shadow: 0 0 12px color-mix(in oklab, var(--turf) 60%, transparent); position: relative; transform: rotate(-25deg); display: inline-block; }
.tp-ball::after { content: ''; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 4px); opacity: .9; }
.tp-me { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 14px; padding: 6px 10px; cursor: pointer; }
.tp-me-rank { font-weight: 800; font-size: 12px; padding: 3px 7px; border-radius: 8px; background: var(--surface-3); }
.tp-me-pts { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 18px; }
.tp-me-pts small { font-size: 10px; color: var(--text-dim); margin-left: 2px; font-weight: 600; }
.tp-me-rank.gold, .tp-rank.gold, .tp-plinth.gold { background: var(--gold); color: var(--gold-ink); }
.tp-me-rank.silver, .tp-rank.silver, .tp-plinth.silver { background: var(--silver); color: var(--silver-ink); }
.tp-me-rank.bronze, .tp-rank.bronze, .tp-plinth.bronze { background: var(--bronze); color: var(--bronze-ink); }

.tp-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.tp-tabs button { flex: 1; padding: 10px 4px; border: 0; border-radius: 10px; background: none; color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; }
.tp-tabs button.on { background: var(--turf); color: #04210f; box-shadow: 0 4px 16px color-mix(in oklab, var(--turf) 35%, transparent); }

.tp-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; flex-wrap: nowrap; }
.tp-chips.tight { margin-bottom: 10px; flex-wrap: wrap; }
.tp-chips button { flex-shrink: 0; padding: 8px 13px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tp-chips button.on { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); }
.tp-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin: 18px 2px 8px; display: flex; align-items: center; gap: 7px; }
.tp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tp-dot.live { background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,.7); animation: tp-pulse 1.4s infinite; }
@keyframes tp-pulse { 70% { box-shadow: 0 0 0 8px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
.tp-nudge { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px;
  background: color-mix(in oklab, var(--warn) 16%, var(--surface)); border: 1px solid color-mix(in oklab, var(--warn) 55%, var(--border)); }
.tp-empty { padding: 26px 18px; text-align: center; color: var(--text-dim); border: 1px dashed var(--border); border-radius: 14px; font-size: 14px; }
.tp-empty.small { padding: 14px; }
.tp-loading { display: flex; justify-content: center; padding: 60px 0; }
.tp-loading .tp-ball { width: 38px; height: 26px; animation: tp-spin 1s linear infinite; }
@keyframes tp-spin { to { transform: rotate(335deg); } }

/* match card */
.tp-match { background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, var(--turf)), var(--surface)); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden; }
.tp-match.powered { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 6px 24px color-mix(in oklab, var(--gold) 25%, transparent); }
.tp-match.is-live { border-color: #ff5a5a; }
.tp-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-dim); margin-bottom: 10px; }
.tp-league { font-weight: 700; color: var(--turf); text-transform: uppercase; letter-spacing: .05em; }
.tp-when b { color: var(--text); font-weight: 600; }
.tp-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.tp-team { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; }
.tp-team:not(:disabled):active { transform: scale(.97); }
.tp-team.picked { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent), 0 8px 22px color-mix(in oklab, var(--accent) 22%, transparent); background: color-mix(in oklab, var(--accent) 10%, var(--surface-2)); }
.tp-team.won { border-color: var(--good); }
.tp-team.lost { opacity: .55; }
.tp-team:disabled { cursor: default; }
.tp-logo { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.tp-logo-txt { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-3); font-weight: 800; font-size: 22px; }
.tp-tname { font-weight: 700; font-size: 14px; text-align: center; line-height: 1.15; }
.tp-odds { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.tp-tick { position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tp-vs { align-self: center; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; color: var(--text-dim); font-size: 14px; letter-spacing: .1em; }
.tp-score { align-self: center; display: flex; flex-direction: column; align-items: center; font-family: 'Space Grotesk', system-ui, sans-serif; }
.tp-score b { font-size: 26px; line-height: 1; }
.tp-score i { font-style: normal; color: var(--text-dim); line-height: .8; }
.tp-score.live b { color: #ff7a7a; }
.tp-clock { font-size: 10.5px; font-weight: 700; color: var(--text-dim); margin-top: 4px; }
.tp-draw { width: 100%; margin-top: 8px; padding: 9px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; }
.tp-draw.picked { border-color: var(--accent); color: var(--accent); }
.tp-predict { margin-top: 12px; padding: 12px; border-radius: 14px; background: color-mix(in oklab, var(--bg) 60%, var(--surface)); text-align: center; }
.tp-plabel { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.tp-plabel span { display: block; font-weight: 500; color: var(--text-dim); font-size: 11px; }
.tp-steppers { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tp-dash { font-weight: 800; color: var(--text-dim); }
.tp-step { display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; background: var(--surface-2); }
.tp-step button { width: 34px; height: 40px; border: 0; background: none; color: var(--text); font-size: 20px; font-weight: 700; cursor: pointer; }
.tp-step input { width: 46px; height: 40px; border: 0; border-radius: 0; padding: 0; text-align: center; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 18px; background: none; -moz-appearance: textfield; }
.tp-step input::-webkit-outer-spin-button, .tp-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-margin { margin-top: 8px; font-size: 12.5px; color: var(--turf); font-weight: 700; }
.tp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.tp-power { padding: 8px 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.tp-power.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 16px color-mix(in oklab, var(--gold) 50%, transparent); }
.tp-power:disabled { opacity: .45; cursor: default; }
.tp-count, .tp-hint { font-size: 12px; color: var(--text-dim); }
.tp-split { margin-top: 12px; }
.tp-split-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--surface-3); }
.tp-split-bar span { background: var(--accent); }
.tp-split-bar span.a { background: var(--info); margin-left: auto; }
.tp-split-bar span.d { background: var(--text-dim); }
.tp-split-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.tp-faces { display: flex; align-items: center; font-size: 12.5px; }
.tp-faces .dp { margin-right: -6px; border: 2px solid var(--surface); border-radius: 50%; }
.tp-faces b { margin: 0 10px 0 12px; }
.tp-faces.right .dp { margin: 0 0 0 -6px; }
.tp-faces.right b { margin: 0 12px 0 0; }
.tp-mytip { margin-top: 10px; font-size: 13px; }
.tp-mytip.dim { color: var(--text-dim); }
.tp-points { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.tp-points b { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 20px; color: var(--text); margin-right: 2px; }
.tp-points.good b { color: var(--turf); }
.tp-points span { padding: 3px 8px; border-radius: 10px; background: var(--surface-2); }

/* ladder + podium */
.tp-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 18px 0 16px; }
.tp-podium > button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); cursor: pointer; position: relative; padding-top: 40px; }
.tp-av { position: relative; display: inline-flex; }
/* crowns sit on top of the picture AND its aura (auras are z 0–2 inside .dp) */
.tp-crown { position: absolute; left: 50%; bottom: 84%; z-index: 10; width: 46px; height: 32px; transform: translateX(-50%) rotate(-8deg); transform-origin: 50% 100%; pointer-events: none; animation: tp-bob 2.6s ease-in-out infinite; }
.tp-crown.c1 { width: 58px; height: 40px; animation-name: tp-bob, tp-glow1; animation-duration: 2.6s, 2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.tp-crown.c2 { animation-name: tp-bob, tp-glow2; animation-duration: 2.6s, 2.2s; animation-iteration-count: infinite; animation-delay: -.8s, 0s; }
.tp-crown.c3 { animation-name: tp-bob, tp-glow3; animation-duration: 2.6s, 2.4s; animation-iteration-count: infinite; animation-delay: -1.6s, 0s; }
@keyframes tp-bob { 50% { transform: translateX(-50%) translateY(-4px) rotate(-3deg); } }
@keyframes tp-glow1 { 0%, 100% { filter: drop-shadow(0 0 4px rgba(245,197,66,.8)) drop-shadow(0 0 10px rgba(245,197,66,.45)); } 50% { filter: drop-shadow(0 0 8px rgba(255,214,90,1)) drop-shadow(0 0 20px rgba(245,197,66,.75)); } }
@keyframes tp-glow2 { 0%, 100% { filter: drop-shadow(0 0 3px rgba(215,221,229,.7)) drop-shadow(0 0 8px rgba(215,221,229,.35)); } 50% { filter: drop-shadow(0 0 7px rgba(255,255,255,.95)) drop-shadow(0 0 16px rgba(215,221,229,.6)); } }
@keyframes tp-glow3 { 0%, 100% { filter: drop-shadow(0 0 3px rgba(213,138,74,.7)) drop-shadow(0 0 8px rgba(213,138,74,.35)); } 50% { filter: drop-shadow(0 0 7px rgba(240,170,110,.95)) drop-shadow(0 0 16px rgba(213,138,74,.6)); } }
@media (prefers-reduced-motion: reduce) { .tp-crown { animation: none !important; filter: drop-shadow(0 0 6px rgba(245,197,66,.7)); } }
.tp-pname { font-weight: 700; font-size: 13.5px; margin-top: 8px; position: relative; z-index: 3; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.tp-podium .tp-step-1 .dp { margin-bottom: 10px; }
.tp-ppts { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 20px; }
.tp-plinth { width: 100%; border-radius: 12px 12px 4px 4px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 800; font-size: 22px; box-shadow: inset 0 -12px 20px rgba(0,0,0,.18); }
.tp-step-1 .tp-plinth { height: 92px; }
.tp-step-2 .tp-plinth { height: 66px; }
.tp-step-3 .tp-plinth { height: 48px; }
.tp-plinth.gold { background: linear-gradient(180deg, #ffe07a, var(--gold) 45%, #b8891a); }
.tp-plinth.silver { background: linear-gradient(180deg, #f3f6fa, var(--silver) 45%, #8e98a4); }
.tp-plinth.bronze { background: linear-gradient(180deg, #f0b27d, var(--bronze) 45%, #8a4f22); }
.tp-ladder { display: flex; flex-direction: column; gap: 8px; }
.tp-lrow { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; text-align: left; color: var(--text); cursor: pointer; font: inherit; margin: 0 !important; }
.tp-lrow.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tp-rank { width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: var(--surface-3); }
.tp-lname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tp-lname b { font-size: 14px; }
.tp-lname small { color: var(--text-dim); font-size: 11.5px; }
.tp-move { font-size: 10.5px; font-weight: 800; margin-left: 6px; }
.tp-move.up { color: var(--good); }
.tp-move.down { color: var(--bad); }
.tp-badges { display: flex; gap: 6px; font-size: 13px; margin-top: 2px; }
.tp-badges i { font-style: normal; font-size: 10px; color: var(--text-dim); margin-left: 1px; }
.tp-lpts { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 20px; text-align: right; }
.tp-lpts small { display: block; font-size: 10px; color: var(--text-dim); font-family: 'IBM Plex Sans', system-ui, sans-serif; }

/* player card */
.tp-modal .modal-card.tp-card { max-width: 440px; max-height: 90vh; overflow-y: auto; }
.tp-phead { display: flex; align-items: center; gap: 16px; padding: 22px 14px; margin: -20px -20px 14px; border-radius: 14px 14px 0 0; }
.tp-phead.card { border: 0; }
.tp-pbig { padding: 26px; margin: -26px; }
.tp-pn { font-size: 20px; font-weight: 800; }
.tp-pr { margin-top: 4px; display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; }
.tp-titles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tp-titles span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); }
.tp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-stat { padding: 10px 6px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.tp-stat b { display: block; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 20px; }
.tp-stat span { font-size: 11px; color: var(--text-dim); }
.tp-bigbadges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tp-bigbadges span { padding: 6px 10px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.tp-recent { display: flex; flex-direction: column; gap: 6px; }
.tp-rt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.tp-rt small { display: block; color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.tp-rtp { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; white-space: nowrap; }
.tp-rtp.good { color: var(--turf); }

/* hall of fame */
.tp-season { padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 10px; }
.tp-season.done { border-color: color-mix(in oklab, var(--gold) 55%, var(--border)); background: linear-gradient(180deg, color-mix(in oklab, var(--gold) 9%, var(--surface)), var(--surface)); }
.tp-shead { display: flex; justify-content: space-between; margin-bottom: 10px; }
.tp-shead span { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.tp-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-minip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.tp-minip.gold { border-color: var(--gold); }
.tp-minip.silver { border-color: var(--silver); }
.tp-minip.bronze { border-color: var(--bronze); }
.tp-minip small { color: var(--text-dim); font-size: 11px; }
.tp-minip i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: var(--gold); color: var(--gold-ink); }
.tp-medal { font-size: 18px; }

/* bets */
.tp-panel { padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 12px; }
.tp-panel h3 { margin: 0 0 8px; font-size: 15px; }
.tp-panel p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; }
.tp-panel .field { margin-bottom: 10px; }
.tp-bet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 8px; font-size: 13.5px; }
.tp-bet small { display: block; color: var(--text-dim); font-size: 11.5px; margin-top: 2px; }
.btn.sm { padding: 7px 12px; min-height: 0; font-size: 12.5px; white-space: nowrap; text-decoration: none; }
.tp-pill { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 10px; background: var(--surface-3); white-space: nowrap; }
.tp-pill.good { background: var(--good); color: var(--good-ink); }
.tp-pill.bad { background: var(--bad); color: var(--bad-ink); }
.tp-owe { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.tp-owe:last-child { border-bottom: 0; }
.tp-owe b.good { color: var(--good); }
.tp-owe b.bad { color: var(--bad); }
.tp-paybtns { display: flex; flex-wrap: wrap; gap: 6px; }

.tp-rule { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.tp-rule b { font-size: 14px; }
.tp-rule span { grid-column: 1; font-size: 12px; color: var(--text-dim); }
.tp-rule em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; color: var(--turf); }
.tp-help { display: block; margin: 20px auto 0; border: 0; background: none; color: var(--text-dim); text-decoration: underline; font-size: 13px; cursor: pointer; }

/* the doors in the profile menu + the managers' settings sheet */
.btn.gd-open { background: linear-gradient(135deg, var(--turf), color-mix(in oklab, var(--turf) 60%, #0b3d22)); color: #04210f; font-weight: 800; }
.modal-card.gd-admin { max-width: 440px; max-height: 90vh; overflow-y: auto; }
.gd-players { display: flex; flex-direction: column; gap: 2px; max-height: 42vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 4px 10px; }
.gd-player { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.gd-player:last-child { border-bottom: 0; }

.tp-countbtn { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 16px; padding: 6px 11px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tp-row + .tp-split { margin-top: 10px; }
.tp-pickrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); margin-bottom: 6px; font-size: 13.5px; }
.tp-pickrow.me { box-shadow: 0 0 0 1px var(--accent); }
.tp-pickrow small { display: block; color: var(--text-dim); font-size: 11.5px; }

.tp-addpred { width: 100%; margin-top: 12px; padding: 11px; border-radius: 12px; border: 1px dashed var(--border); background: none; color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.tp-addpred span { font-weight: 500; color: var(--text-dim); font-size: 12px; margin-left: 4px; }
.tp-link { margin-top: 8px; border: 0; background: none; color: var(--text-dim); text-decoration: underline; font-size: 12px; cursor: pointer; }
.tp-saverow { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.tp-unsaved { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--warn); }
.tp-saved { flex: 1; font-size: 13px; font-weight: 700; color: var(--turf); }
.tp-saved.flash { animation: tp-flash 1.2s ease-out; }
@keyframes tp-flash { 0% { transform: scale(1.12); } 100% { transform: none; } }
.tp-err { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: color-mix(in oklab, var(--bad) 16%, var(--surface)); border: 1px solid color-mix(in oklab, var(--bad) 55%, var(--border)); }
.tp-unsavedbar { position: sticky; top: 70px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 13.5px;
  background: color-mix(in oklab, var(--warn) 20%, var(--surface)); border: 1px solid var(--warn); }

.tp-watch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-size: 13px; background: var(--surface); border: 1px dashed var(--border); }
.tp-bet.forme { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tp-betfaces { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.tp-betfaces i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--text-dim); }
.tp-fodds { font-size: 10.5px; font-weight: 700; color: var(--turf); }
.tp-poolchip { display: block; width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--gold) 50%, var(--border)); background: color-mix(in oklab, var(--gold) 10%, var(--surface-2)); color: var(--text); font-weight: 700; font-size: 12.5px; text-align: left; cursor: pointer; }
.tp-explain { margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; line-height: 1.45; }
.tp-explain summary { font-weight: 700; cursor: pointer; }
.tp-explain p { margin: 8px 0 0; }
.tp-pool { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.tp-pot { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 4px 0 10px; }
.tp-pot span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); font-weight: 700; }
.tp-pot b { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 28px; color: var(--gold); text-shadow: 0 0 18px color-mix(in oklab, var(--gold) 45%, transparent); }
.tp-psides { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.tp-pside { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; background: var(--surface-2); border: 2px solid transparent; text-align: center; }
.tp-pside.won { border-color: var(--good); }
.tp-pside .tp-logo { width: 40px; height: 40px; }
.tp-pside b { font-size: 13.5px; }
.tp-podds { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 20px; color: var(--turf); }
.tp-pfaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 4px; min-height: 24px; }
.tp-pbox { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.tp-preview { font-size: 12.5px; font-weight: 700; color: var(--turf); margin: 2px 0 10px; }
.tp-pres { margin-top: 10px; text-align: center; font-weight: 800; font-size: 14px; }
.tp-pres.good { color: var(--good); }
.tp-pres.bad { color: var(--bad); }

/* ---- Stats ---- */
.ts-people { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.ts-people button { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; border: 0; background: none; color: var(--text-dim); font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 4px; border-radius: 12px; }
.ts-people button.on { color: var(--text); background: color-mix(in oklab, var(--turf) 16%, transparent); box-shadow: 0 0 0 2px var(--turf); }
.ts-people.small { padding-bottom: 6px; }
.ts-hero { display: flex; align-items: center; gap: 18px; padding: 20px 18px; margin-bottom: 12px; }
.ts-hero-info { min-width: 0; }
.ts-name { font-size: 20px; font-weight: 800; }
.ts-rank { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.ts-pts { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 34px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.ts-pts small { font-size: 12px; color: var(--text-dim); margin-left: 3px; }
.ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ts-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-height: 88px; }
.ts-tile b { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 24px; line-height: 1.1; }
.ts-tile span { font-size: 11.5px; font-weight: 700; margin-top: 3px; }
.ts-tile small { font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }
.ts-ring { width: 64px; height: 64px; }
.ts-ring-t { fill: var(--text); font: 700 17px 'Space Grotesk', system-ui, sans-serif; }
.ts-card { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px; }
.ts-card h4 { margin: 0 0 10px; font-size: 14px; }
.ts-card h4 span { font-weight: 500; font-size: 11.5px; color: var(--text-dim); margin-left: 6px; }
.ts-form { display: flex; gap: 6px; flex-wrap: wrap; }
.ts-form span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.ts-form .w { background: var(--good); color: var(--good-ink); }
.ts-form .l { background: var(--bad); color: var(--bad-ink); }
.ts-chart { width: 100%; height: auto; display: block; overflow: visible; }
.ts-grid-l { stroke: var(--border); stroke-width: 1; }
.ts-base { stroke: var(--text-dim); stroke-width: 1; opacity: .5; }
.ts-axis { fill: var(--text-dim); font-size: 9.5px; }
.ts-val { fill: var(--text); font: 700 11px 'Space Grotesk', system-ui, sans-serif; }
.ts-bar:hover path, .ts-bar:active path { opacity: .8; }
.ts-teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ts-team { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.ts-team .tp-logo { width: 44px; height: 44px; }
.ts-team-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 700; }
.ts-team b { font-size: 13.5px; }
.ts-team small { font-size: 11px; color: var(--text-dim); }
.ts-closest { font-size: 13.5px; line-height: 1.45; }
.ts-h2h-head { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 6px; margin: 8px 0 10px; text-align: center; }
.ts-h2h-head > div:first-child, .ts-h2h-head > div:last-child { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.ts-h2h-score b { display: block; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 30px; }
.ts-h2h-score small { font-size: 11px; color: var(--text-dim); }
.ts-legend { display: flex; gap: 14px; font-size: 12px; margin-bottom: 8px; }
.ts-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ts-legend i.a, .ts-cmp-bar span.a { background: var(--viz-a); }
.ts-legend i.b, .ts-cmp-bar span.b { background: var(--viz-b); }
.ts-cmp { margin-bottom: 10px; }
.ts-cmp-l { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.ts-cmp-bar { display: flex; align-items: center; gap: 8px; height: 12px; margin-bottom: 4px; }
.ts-cmp-bar span { height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; }
.ts-cmp-bar em { font-style: normal; font-size: 11.5px; color: var(--text); font-weight: 700; }
.ts-rec { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.ts-rec:last-child { border-bottom: 0; }
.ts-rec-l { flex: 1; color: var(--text-dim); }
.ts-rec-v { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }
.ts-rec-v small { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 500; color: var(--text-dim); font-size: 11px; }
.tp-tabs button { font-size: 12.5px; padding: 10px 2px; }
.ts-h2h-head .dp { margin-bottom: 12px; }
.ts-hero .dp { margin: 6px; }

/* ---- achievements / medals ---- */
.medal { --md: 56px; position: relative; display: inline-flex; width: var(--md); height: var(--md); border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 210deg, var(--m1), var(--m2), var(--m1), var(--m3), var(--m1)); padding: calc(var(--md) * .09);
  box-shadow: 0 0 calc(var(--md) * .18) color-mix(in oklab, var(--m2) 45%, transparent), inset 0 0 0 1px rgba(255,255,255,.25); }
.medal-in { flex: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: calc(var(--md) * .44); line-height: 1;
  background: radial-gradient(circle at 35% 30%, #2a3240, #0d1017 70%); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.medal.t1 { --m1: #8a4f22; --m2: #f0b27d; --m3: #d58a4a; }
.medal.t2 { --m1: #8e98a4; --m2: #ffffff; --m3: #cfd6df; }
.medal.t3 { --m1: #b8891a; --m2: #fff1a8; --m3: #f5c542; }
.medal.legend { --m1: #7c3aed; --m2: #f0abfc; --m3: #22d3ee; animation: medal-glow 2.4s ease-in-out infinite; }
.medal.legend::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(#f0abfc, #22d3ee, #fde047, #f0abfc); z-index: -1; filter: blur(4px); animation: medal-spin 3s linear infinite; }
.medal.locked { --m1: #2b313b; --m2: #4a5260; --m3: #353c47; box-shadow: none; }
.medal.locked .medal-in { filter: grayscale(1); opacity: .35; }
.medal-lock { position: absolute; right: -2px; bottom: -2px; font-size: calc(var(--md) * .28); }
.medal.is-new::after { content: 'NEW'; position: absolute; top: -6px; right: -8px; font: 800 9px 'IBM Plex Sans', sans-serif; padding: 2px 5px; border-radius: 6px; background: #ff3b3b; color: #fff; }
@keyframes medal-spin { to { transform: rotate(360deg); } }
@keyframes medal-glow { 50% { box-shadow: 0 0 calc(var(--md) * .35) rgba(240,171,252,.6); } }
.tp-medalrow { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-badges .medal { margin-right: 2px; }
.tp-medalcount { font-style: normal !important; font-size: 11px !important; color: var(--text-dim); margin-left: 4px !important; }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 8px 12px; border-radius: 14px; background: var(--surface-2); }
.ach.off { opacity: .8; }
.ach .medal { margin-bottom: 6px; }
.ach b { font-size: 13.5px; }
.ach small { font-size: 11px; color: var(--text-dim); line-height: 1.3; }
.ach-tier { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ach-tier.t1 { color: #f0b27d; } .ach-tier.t2 { color: #e6ebf1; } .ach-tier.t3 { color: #f5c542; } .ach-tier.legend { color: #f0abfc; } .ach-tier.locked { color: var(--text-dim); }
.ach-bar { width: 80%; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.ach-bar i { display: block; height: 100%; background: var(--viz-a); border-radius: 4px; }
/* unlock celebration */
.ach-pop { overflow: hidden; }
.ach-card { text-align: center; position: relative; z-index: 2; }
.ach-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.ach-hero { display: flex; justify-content: center; margin: 22px 0 14px; animation: ach-in .9s cubic-bezier(.2,1.4,.4,1) both; }
.ach-title { font-size: 24px; font-weight: 800; }
.ach-sub { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }
@keyframes ach-in { 0% { transform: scale(.2) rotate(-200deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ach-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ach-confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); animation: ach-fall 2.6s var(--d) ease-in infinite; opacity: .9; }
@keyframes ach-fall { to { transform: translateY(105vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .medal.legend, .medal.legend::before, .ach-hero, .ach-confetti i { animation: none !important; } }
