/*==================================================
    PVP DUELS: FAIR / OPEN + SCOUT + UPSET (12 Nov 2026)
    js/duels.js
==================================================*/
.dl-mode-row{ display:grid; grid-template-columns:1fr 1fr; gap:8px; width:100%; margin:4px 0 6px; }
.dl-mode{
    display:flex; flex-direction:column; align-items:center; gap:3px; padding:10px 8px; border-radius:12px; cursor:pointer;
    font:inherit; color:#d7dcef; text-align:center; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.12);
}
.dl-mode b{ font-size:15px; color:#fff; }
.dl-mode small{ font-size:11px; color:#9fb3d6; line-height:1.25; }
.dl-mode.on{ background:linear-gradient(100deg, rgba(107,59,255,.45), rgba(139,63,255,.35)); border-color:#8b3fff; box-shadow:0 0 0 1px #8b3fff inset; }
.dl-mode:focus-visible{ outline:2px solid #00e5ff; outline-offset:2px; }

.dl-mode-chip{ display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:999px; font-size:11px; font-weight:700;
    color:#bfe3ff; background:rgba(0,229,255,.1); border:1px solid rgba(0,229,255,.35); }
.dl-mode-chip.open{ color:#ffd2a8; background:rgba(255,120,40,.12); border-color:rgba(255,140,60,.45); }

/* scout */
.dl-scout{ display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; }
.dl-sc-vs{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; width:100%; }
.dl-sc-mid{ font-weight:900; color:#8c96b8; letter-spacing:.1em; }
.dl-sc-side{ display:flex; flex-direction:column; align-items:center; gap:3px; padding:10px 6px; border-radius:14px; min-width:0;
    background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); text-align:center; }
.dl-sc-side strong{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:14px; }
.dl-sc-side span{ font-size:11px; color:#9fb3d6; }
.dl-sc-side b{ font-size:14px; color:#ffd76a; font-variant-numeric:tabular-nums; }
.dl-sc-img{ width:76px; height:76px; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.dl-sc-img img{ width:100%; height:100%; object-fit:contain; }
.dl-sc-chance{ display:flex; flex-direction:column; align-items:center; gap:2px; width:100%; padding:10px; border-radius:14px;
    background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.12); text-align:center; }
.dl-sc-chance span{ font-size:12px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.08em; }
.dl-sc-chance b{ font-size:34px; font-weight:900; line-height:1.1; font-variant-numeric:tabular-nums; color:#fff; }
.dl-sc-chance small{ font-size:11px; color:#b7c0dd; line-height:1.3; }
.dl-sc-chance.good{ border-color:rgba(125,255,176,.45); } .dl-sc-chance.good b{ color:#7dffb0; }
.dl-sc-chance.bad{ border-color:rgba(255,157,176,.45); } .dl-sc-chance.bad b{ color:#ff9db0; }
.dl-sc-chance.even b{ color:#ffd76a; }

/* result: upset */
.dl-upset{ margin:6px 0 2px; padding:7px 12px; border-radius:10px; font-size:12px; font-weight:700; text-align:center; line-height:1.35;
    color:#ffe08a; background:rgba(255,200,60,.12); border:1px solid rgba(255,200,60,.4); }
.dl-upset.bad{ color:#ffd0a8; background:rgba(255,140,60,.1); border-color:rgba(255,140,60,.4); }

@media (max-width:420px){
    .dl-sc-img{ width:60px; height:60px; }
    .dl-sc-chance b{ font-size:28px; }
    .dl-mode small{ font-size:10px; }
}

/* skip (12 Nov 2026) */
.dl-skip{ width:100%; padding:9px 12px; border-radius:10px; cursor:pointer; font:inherit; font-size:13px; font-weight:700;
    color:#cfd8ff; background:rgba(255,255,255,.06); border:1px dashed rgba(159,179,214,.5); }
.dl-skip:hover{ background:rgba(255,255,255,.1); }
.dl-skip:focus-visible{ outline:2px solid #00e5ff; outline-offset:2px; }

/* season prize bands (14 Nov 2026): one line each */
.dl-bands{ display:flex; flex-direction:column; gap:6px; width:100%; }
.dl-band{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:8px 12px; border-radius:10px;
    background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); }
.dl-band.b1{ border-color:rgba(255,215,106,.45); }
.dl-band-name{ color:#fff; font-size:13px; white-space:nowrap; }
.dl-band-rule{ font-size:12px; color:#9fb3d6; }
.dl-band-amt{ font-size:13px; font-weight:700; color:#7dffb0; font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (max-width:520px){ .dl-band{ grid-template-columns:1fr auto; } .dl-band-rule{ grid-column:1 / -1; order:3; margin-top:-4px; } }

/* season table: green = gets it now, red = not yet (14 Nov 2026) */
.dl-s-prize{ display:flex; flex-direction:column; align-items:flex-end; text-align:right; max-width:200px; white-space:normal; }
.dl-s-prize b{ white-space:nowrap; }
.dl-s-prize .dl-s-need{ color:#ff9db0; }
.dl-s-prize .dl-s-up{ color:#7dffb0; }
.dl-bands + .dl-season-rule{ margin-top:10px; }
@media (max-width:420px){ .dl-s-prize{ max-width:140px; } }
.dl-s-prize .dl-s-ok{ color:#7dffb0; font-variant-numeric:tabular-nums; }
.dl-s-prize .dl-s-no{ color:#ff7a8f; font-variant-numeric:tabular-nums; }
.dl-s-prize small{ font-family:Rajdhani, system-ui, sans-serif; font-size:12px; font-weight:600; color:#b7c0dd; }
.dl-s-prize b small{ font-size:11px; color:inherit; opacity:.8; }
.dl-s-mine{ margin:0 0 8px; }
.dl-s-mine > small{ display:block; margin:0 0 4px 2px; font-size:11px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.06em; }
.dl-s-pager{ margin-top:10px; }
.dl-s-rating .dl-s-unit{ font-family:Rajdhani, system-ui, sans-serif; font-size:11px; font-weight:600; color:#b7c0dd; }

/* season board: fixed columns so every number lines up (14 Nov 2026) */
.dl-sb .dl-sbrow, .dl-sbhead{ display:grid; grid-template-columns:44px minmax(0,1fr) 84px 104px 200px; align-items:center; gap:10px; }
.dl-sbhead{ padding:0 12px 2px; font-size:11px; font-weight:700; color:#8c96b8; text-transform:uppercase; letter-spacing:.06em; }
.dl-sbhead span:first-child{ text-align:center; } .dl-sbhead span:nth-child(n+3){ text-align:right; }
.dl-sb .dl-s-name small{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dl-sb .dl-sb-m{ display:none !important; }
.dl-sb-num{ display:flex; flex-direction:column; align-items:flex-end; line-height:1.1; }
.dl-sb-num b{ font-family:Orbitron, sans-serif; font-size:16px; color:#ffd76a; font-variant-numeric:tabular-nums; }
.dl-sb-num small{ font-size:10px; color:#8c96b8; }
.dl-sb-wl{ text-align:right; font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.dl-sb i{ font-style:normal; } .dl-sb i.w{ color:#7dffb0; } .dl-sb i.l{ color:#ff8fa3; }
.dl-sb .dl-s-prize{ max-width:none; width:100%; }
@media (max-width:640px){
    .dl-sb .dl-sbrow, .dl-sbhead{ grid-template-columns:34px minmax(0,1fr) 128px; gap:8px; padding-left:10px; padding-right:10px; }
    .dl-sbhead span:nth-child(3), .dl-sbhead span:nth-child(4){ display:none; }
    .dl-sb-num, .dl-sb-wl{ display:none; }
    .dl-sb .dl-sb-m{ display:block !important; color:#c9d0ea; font-size:11px; }
    .dl-sb .dl-sb-m b{ color:#ffd76a; font-family:Orbitron, sans-serif; font-size:11px; }
    .dl-sb .dl-s-prize{ max-width:128px; }
}
.dl-sb-wl i{ display:inline-block; min-width:3.4em; text-align:right; }
