/* Season rewards popup (moved from the beta). Self-contained: base styles first, then the narrow-card overrides. */
/* Team prizes notice (next season preview) */
.per-slot-notice { max-width:min(580px,94vw); max-height:min(90vh,840px); overflow-y:auto; border-color:rgba(245,166,35,.35);
  background:radial-gradient(120% 55% at 50% 0%, rgba(245,166,35,.16), transparent 70%), var(--surface); box-shadow:0 24px 70px rgba(0,0,0,.6); }
.tp-head { display:flex; flex-direction:column; align-items:center; gap:.4rem; text-align:center; }
.tp-head h2 { margin:0; font-family:'Rajdhani', system-ui, sans-serif; font-size:2rem; font-weight:700; line-height:1.05; text-wrap:balance; }
.per-slot-notice p.tp-lede { margin:0; color:var(--text); font-size:.95rem; }
.per-slot-notice .team-prizes { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; margin-top:1.2rem; }
.tp-prize { --tp:var(--accent); display:flex; flex-direction:column; align-items:center; text-align:center; gap:.15rem; min-width:0;
  padding:1rem .8rem .9rem; border-radius:14px; background:var(--bg); border:1px solid var(--border2); border-top:3px solid var(--tp);
  box-shadow:inset 0 50px 60px -45px color-mix(in srgb, var(--tp) 30%, transparent); }
.tp-prize--top { --tp:var(--gold); }
.tp-prize--strongest { --tp:var(--blue); }
.tp-icon { width:30px; height:30px; color:var(--tp); }
.tp-prize h3 { margin:.2rem 0 0; font-family:'Rajdhani', system-ui, sans-serif; font-size:1.25rem; font-weight:700; }
.per-slot-notice p.tp-rule { margin:0; font-size:.8rem; color:var(--muted); }
.per-slot-notice p.tp-reward { margin:.55rem 0 0; display:flex; flex-direction:column; align-items:center; line-height:1; }
.tp-reward strong { font-family:'Bebas Neue', Impact, sans-serif; font-size:2.7rem; font-weight:400; letter-spacing:.02em; color:var(--tp); }
.tp-reward span { margin-top:.25rem; font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.tp-you { width:100%; margin-top:.75rem; padding-top:.65rem; border-top:1px dashed var(--border2); display:flex; flex-direction:column; gap:.05rem; }
.tp-you[hidden] { display:none; }
.tp-you-label { font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); overflow-wrap:anywhere; }
.tp-you-rank { font-family:'Rajdhani', system-ui, sans-serif; font-size:1.75rem; font-weight:700; line-height:1.1; font-variant-numeric:tabular-nums; }
.tp-you-sub { font-size:.74rem; color:var(--muted); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.per-slot-notice p.tp-note { margin:.9rem 0 0; font-size:.8rem; line-height:1.5; text-align:center; }
.per-slot-team { margin-top:1rem; padding-top:.9rem; border-top:1px solid var(--border2); display:flex; flex-direction:column; gap:.55rem; }
.per-slot-pick { display:flex; flex-direction:column; gap:.35rem; font-size:.78rem; font-weight:600; color:var(--muted); }
.per-slot-pick select { width:100%; background:var(--surface2); color:var(--text); border:1px solid var(--border2); border-radius:8px; padding:.55rem .6rem; font:inherit; font-size:.9rem; }
.per-slot-notice p.per-slot-move { margin:0; font-size:.88rem; font-weight:700; }
.per-slot-move.up { color:var(--green); }
.per-slot-move.down { color:var(--red); }
.per-slot-move.same { color:var(--muted); }
.per-slot-notice p.per-slot-hint { margin:0; font-size:.8rem; }
.tp-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem; margin-top:1.1rem; }
.per-slot-hide { display:flex; align-items:center; gap:.5rem; font-size:.84rem; color:var(--muted); cursor:pointer; }
.per-slot-hide input { width:18px; height:18px; accent-color:var(--accent); }
.per-slot-notice .per-slot-actions { display:flex; gap:.6rem; }
@media (max-width:420px) {
  .tp-head h2 { font-size:1.65rem; }
  .tp-reward strong { font-size:2.2rem; }
  .tp-prize { padding:.85rem .55rem .8rem; }
  .per-slot-notice p.tp-rule { min-height:2.6em; }
  .tp-foot { flex-direction:column; align-items:stretch; }
  .per-slot-notice .per-slot-actions .btn { flex:1; }
}


/* Season rewards: tabs, this season's prize, top-bar season pill */
button.season-chip { font-family:inherit; cursor:pointer; transition:filter .15s, box-shadow .15s; }
button.season-chip:hover { filter:brightness(1.25); box-shadow:0 0 0 3px rgba(76,175,125,.18); }
button.season-chip:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.tp-tabs { display:grid; grid-template-columns:1fr 1fr; gap:.35rem; padding:.3rem; margin-bottom:1.1rem; background:var(--bg); border:1px solid var(--border2); border-radius:12px; }
.tp-tabs [role=tab] { font-family:'Rajdhani', system-ui, sans-serif; font-size:1.05rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding:.6rem .5rem; border:0; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; min-height:44px; }
.tp-tabs [role=tab]:hover { color:var(--text); }
.tp-tabs [role=tab][aria-selected=true] { background:var(--accent); color:#111; box-shadow:0 2px 14px rgba(245,166,35,.3); }
.tp-tabs [role=tab]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.tp-panel[hidden] { display:none; }
.per-slot-notice .team-prizes.tp-single { grid-template-columns:minmax(0,300px); justify-content:center; }
.per-slot-notice > .tp-tabs { display:grid; }
.tp-prize--now { --tp:var(--green); }
.tp-reward-text { font-size:.9rem; color:var(--text); line-height:1.4; }
.tp-subtitle { margin:1.1rem 0 .5rem; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-align:center; }
.tp-leaders { list-style:none; margin:0; padding:0; display:grid; gap:.35rem; }
.tp-leaders li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.6rem; padding:.45rem .7rem; background:var(--bg); border:1px solid var(--border2); border-radius:9px; font-size:.86rem; }
.tp-leader-rank { font-family:'Rajdhani', system-ui, sans-serif; font-weight:700; font-size:1.1rem; color:var(--gold); min-width:1.2rem; text-align:center; }
.tp-leader-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tp-leader-pts { color:var(--muted); font-variant-numeric:tabular-nums; font-size:.8rem; }
@media (max-width:420px) { .tp-tabs [role=tab] { font-size:.95rem; letter-spacing:.06em; } }
.per-slot-notice { box-sizing:border-box; width:min(560px,94vw); }
.per-slot-notice .tp-tabs [role=tab] { font-size:.95rem; letter-spacing:.06em; }
.per-slot-notice .tp-head h2 { font-size:1.65rem; }
.per-slot-notice .tp-reward strong { font-size:2.2rem; }
.per-slot-notice .tp-prize { padding:.85rem .55rem .8rem; }
.per-slot-notice p.tp-rule { min-height:2.6em; }
.per-slot-notice p.tp-lead { margin:.35rem 0 0; font-size:.72rem; color:var(--muted); overflow-wrap:anywhere; }
.per-slot-notice #per-slot-result { margin-top:.6rem; }
.per-slot-notice .tp-foot { flex-direction:column; align-items:stretch; }
.per-slot-notice .per-slot-actions .btn { flex:1; }
/* Next season chest ladder: 1st place chips + title on the card, places 2-10 in a dropdown at its foot. */
.per-slot-notice p.tp-chest-label { width:100%; margin:.65rem 0 .3rem; padding-top:.55rem; border-top:1px dashed var(--border2); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.tp-chests { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:.25rem; }
.tp-chest { padding:.12rem .45rem; border-radius:999px; font-size:.72rem; font-weight:700; white-space:nowrap; color:var(--muted); background:var(--surface2); border:1px solid var(--border2); }
.tp-chest--rare { color:#60a5fa; background:rgba(37,99,235,.15); border-color:rgba(37,99,235,.35); }
.tp-chest--epic { color:#c084fc; background:rgba(147,51,234,.15); border-color:rgba(147,51,234,.35); }
.tp-chest--legendary { color:#fbbf24; background:rgba(217,119,6,.15); border-color:rgba(217,119,6,.4); }
.per-slot-notice p.tp-victor { margin:.4rem 0 0; font-size:.76rem; color:var(--muted); }
.tp-victor-name { font-weight:700; color:var(--tp); }
.tp-ladder { width:100%; margin-top:.7rem; padding-top:.55rem; border-top:1px dashed var(--border2); }
.tp-ladder summary { cursor:pointer; font-size:.78rem; font-weight:700; color:var(--tp); list-style-position:inside; }
.tp-ladder summary:focus-visible { outline:2px solid var(--tp); outline-offset:2px; border-radius:4px; }
.tp-ladder ol { list-style:none; margin:.5rem 0 0; padding:0; display:grid; gap:.3rem; }
.tp-ladder ol > li { display:grid; grid-template-columns:2rem minmax(0,1fr); align-items:center; gap:.3rem; }
.tp-ladder .tp-chests { justify-content:flex-start; }
.tp-ladder-place { font-family:'Rajdhani', system-ui, sans-serif; font-weight:700; font-size:.95rem; color:var(--muted); }
/* 500 Marble Money with the 1st-place emote beside it. */
.tp-reward .tp-reward-row { margin:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.3rem .45rem; font-size:inherit; letter-spacing:normal; text-transform:none; color:inherit; }
.tp-bonus { font-style:normal; font-size:.72rem; font-weight:700; line-height:1.2; color:var(--tp); border:1px solid currentColor; border-radius:999px; padding:.2rem .5rem; white-space:nowrap; }
/* Next season's two rules under the prize cards. */
.per-slot-notice ul.tp-rules { margin:.7rem 0 0; font-size:.8rem; line-height:1.5; padding:0; list-style:none; display:grid; gap:.25rem; text-align:center; }
/* Live's season chip is a <span>; team-rewards.js makes it a button. */
.season-chip[role=button] { cursor:pointer; transition:filter .15s, box-shadow .15s; }
.season-chip[role=button]:hover { filter:brightness(1.25); box-shadow:0 0 0 3px rgba(76,175,125,.18); }
.season-chip[role=button]:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
/* This season only: the "waiting for points" line and an empty leaders list. */
.per-slot-notice p.tp-waiting { margin:.8rem 0 0; padding:.5rem .75rem; border-radius:9px; border:1px solid rgba(255,215,0,.35);
  background:rgba(255,215,0,.08); color:var(--gold); font-size:.82rem; line-height:1.45; text-align:center; }
.tp-leaders li.tp-leaders-empty { display:block; text-align:center; color:var(--muted); }
