:root{
  --bg:#070504;
  --bg2:#100906;
  --panel:#17120f;
  --panel2:#221915;
  --panel3:#0f0c0a;
  --panel4:#2a1d15;
  --text:#fff7eb;
  --muted:#bcae9c;
  --line:rgba(255,210,148,.18);
  --line2:rgba(255,255,255,.08);
  --accent:#ffbe3d;
  --accent2:#ff6b1a;
  --accent3:#ffe2a6;
  --track:#a45c2a;
  --dirt:#7b421f;
  --danger:#ff6262;
  --ok:#75e6a7;
  --warn:#ffd166;
  --shadow:0 24px 80px rgba(0,0,0,.46);
  --inset:inset 0 1px 0 rgba(255,255,255,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 20% -10%,rgba(255,190,61,.22),transparent 28%),
    radial-gradient(circle at 78% 6%,rgba(255,84,24,.14),transparent 24%),
    linear-gradient(140deg,#070504 0,#100805 48%,#060606 100%);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed;inset:0;pointer-events:none;z-index:-2;
  background:
    repeating-linear-gradient(105deg,rgba(255,255,255,.035) 0 1px,transparent 1px 28px),
    radial-gradient(ellipse at center,transparent 0 42%,rgba(0,0,0,.45) 76%,rgba(0,0,0,.75) 100%);
  opacity:.75;
}
body:after{
  content:"";
  position:fixed;left:-18vw;right:-18vw;bottom:-48vh;height:72vh;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse at center,transparent 0 30%,rgba(255,190,61,.20) 31% 33%,rgba(95,48,20,.85) 34% 52%,rgba(58,31,17,.85) 53% 60%,transparent 61%),
    repeating-radial-gradient(ellipse at center,rgba(255,255,255,.05) 0 2px,transparent 2px 17px);
  transform:rotate(-2deg);
  opacity:.85;
  filter:blur(.1px);
}
button,select{font:inherit}
button{
  border:0;border-radius:14px;padding:11px 15px;
  background:linear-gradient(135deg,var(--accent),#ffdf85 52%,#ff8a1f);
  color:#1a0f08;font-weight:950;cursor:pointer;
  box-shadow:0 12px 28px rgba(255,139,31,.20),var(--inset);
  transition:.14s transform,.14s opacity,.14s box-shadow,.14s filter;
  text-transform:none;
}
button:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 16px 36px rgba(255,139,31,.28),var(--inset)}
button:active{transform:translateY(0)}
button:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.25);box-shadow:none;transform:none}
button.secondary{background:linear-gradient(180deg,#2a201b,#18110e);color:var(--text);border:1px solid var(--line);box-shadow:var(--inset)}
button.ghost{background:rgba(255,190,61,.05);color:var(--accent3);border:1px solid rgba(255,190,61,.28);box-shadow:none}
button.danger{background:linear-gradient(180deg,#4a1720,#2b0d12);color:#ffe1e1;border:1px solid rgba(255,98,98,.42)}
button.linkbtn,.linkbtn{background:transparent;color:var(--accent);border:0;padding:0;font-weight:950;box-shadow:none}
select{background:#120d0b;color:var(--text);border:1px solid var(--line);border-radius:13px;padding:10px 12px;box-shadow:var(--inset)}
.ksm-input{background:#120d0b;color:var(--text);border:1px solid var(--line);border-radius:13px;padding:10px 12px;width:96px;font-weight:950;box-shadow:var(--inset)}
a{color:var(--accent);text-decoration:none}
.hidden{display:none!important}

.hero{
  max-width:1480px;
  margin:0 auto;
  padding:18px 16px 12px;
}
.hero-image{
  display:block;
  position:relative;
  isolation:isolate;
  border-radius:30px;
  overflow:hidden;
  border:1px solid rgba(255,190,61,.16);
  box-shadow:
    0 18px 48px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,190,61,.05);
  background:transparent;
}
.hero-image:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,0) 30%,rgba(0,0,0,.06) 100%);
}
.hero-image:after{
  content:none;
}
.hero-banner{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
  position:relative;
  z-index:0;
  border-radius:30px;
  filter:none;
}
.wrap{max-width:1480px;margin:0 auto;padding:0 20px 44px}
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px;position:sticky;top:0;z-index:20;padding:10px 0;background:linear-gradient(180deg,rgba(10,7,5,.96),rgba(10,7,5,.62),transparent);backdrop-filter:blur(12px)}
.tab{background:linear-gradient(180deg,#19110d,#0c0908);color:var(--text);border:1px solid var(--line);box-shadow:var(--inset)}
.tab.active{background:linear-gradient(135deg,var(--accent),#ffdf8d 52%,#ff6b1a);color:#1a0f08;border-color:rgba(255,255,255,.25)}
.grid{display:grid;grid-template-columns:410px 1fr;gap:18px}
@media(max-width:1050px){.grid{grid-template-columns:1fr}}
.card{
  background:linear-gradient(180deg,rgba(33,22,16,.96),rgba(13,10,8,.96));
  border:1px solid var(--line);border-radius:26px;padding:19px;box-shadow:var(--shadow),var(--inset);
  position:relative;overflow:hidden;
}
.card:before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,transparent,var(--accent),var(--accent2),transparent);opacity:.75}
.card h2{margin:0 0 12px;font-size:22px;letter-spacing:-.3px}.card h3{margin:0 0 9px;font-size:16px}.small{color:var(--muted);font-size:13px;line-height:1.45}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spaced{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.pill{border:1px solid var(--line);border-radius:999px;padding:6px 10px;color:var(--muted);font-size:12px;white-space:nowrap;background:rgba(255,255,255,.035);box-shadow:var(--inset)}
.pill.good{color:#caffdc;border-color:rgba(117,230,167,.34);background:rgba(117,230,167,.08)}.pill.warn{color:#ffe7a8;border-color:rgba(255,209,102,.4);background:rgba(255,209,102,.08)}.pill.bad{background:rgba(255,98,98,.16);color:#ffd2d2;border-color:rgba(255,98,98,.38)}
.kpi{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0}.kpi div{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.16));border:1px solid var(--line);border-radius:18px;padding:13px;box-shadow:var(--inset)}.kpi span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.kpi strong{display:block;font-size:24px;margin-top:4px;color:#fff3d6}
.slot{border:1px solid var(--line);border-radius:19px;padding:13px;background:linear-gradient(180deg,rgba(28,20,16,.92),rgba(11,9,8,.88));margin-bottom:10px;cursor:pointer;position:relative;overflow:hidden;transition:.16s border,.16s transform,.16s box-shadow}.slot:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--accent),var(--accent2));opacity:.18}.slot:hover{transform:translateY(-1px);border-color:rgba(255,190,61,.36)}.slot.active{border-color:rgba(255,190,61,.72);box-shadow:0 0 0 2px rgba(255,190,61,.12),0 14px 34px rgba(0,0,0,.25)}.slot.active:before{opacity:1}.slot h3{display:flex;justify-content:space-between;gap:8px}.pick-name{font-weight:1000;margin-top:8px;font-size:15px}.meta{display:flex;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:8px}.meta span{background:rgba(255,190,61,.07);border:1px solid rgba(255,190,61,.16);border-radius:999px;padding:5px 8px}
.draw{background:linear-gradient(135deg,rgba(255,190,61,.08),rgba(255,107,26,.04),rgba(0,0,0,.14));border:1px solid var(--line);border-radius:22px;padding:16px;margin-bottom:14px;position:relative;overflow:hidden}.draw:after{content:"";position:absolute;right:-30px;bottom:-35px;width:120px;height:120px;border-radius:50%;border:18px solid rgba(255,255,255,.05)}.rider-list{display:grid;gap:11px}.rider{display:grid;grid-template-columns:1fr auto;gap:12px;border:1px solid var(--line);border-radius:20px;padding:13px;background:linear-gradient(180deg,rgba(26,18,14,.96),rgba(11,9,8,.96));box-shadow:var(--inset);transition:.14s transform,.14s border}.rider:hover{transform:translateY(-1px);border-color:rgba(255,190,61,.38)}.rider.disabled{opacity:.55}.rider-name{font-size:17px;font-weight:1000}.ratings{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.rating{background:#120d0b;border:1px solid var(--line);border-radius:14px;padding:8px 9px;min-width:66px;text-align:center}.rating span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.rating strong{display:block;color:#fff1cb}.warning{border:1px solid rgba(255,209,102,.38);background:rgba(255,209,102,.10);color:#ffe6a3;border-radius:15px;padding:11px;margin:9px 0}.okbox{border:1px solid rgba(117,230,167,.32);background:rgba(117,230,167,.09);color:#c8ffd7;border-radius:15px;padding:11px;margin:9px 0}.foreign-note{border:1px solid var(--line);border-radius:16px;padding:11px 13px;background:rgba(255,255,255,.035);margin-top:10px}
.flag{font-size:1.15em;margin-right:6px}
.crest{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:13px;font-size:11px;font-weight:1000;letter-spacing:.4px;color:#0f172a;background:linear-gradient(135deg,var(--p) 0 48%,var(--s) 49% 100%);border:1px solid rgba(255,230,185,.72);box-shadow:0 9px 25px rgba(0,0,0,.32),var(--inset);vertical-align:middle;margin-right:8px;text-shadow:0 1px 0 rgba(255,255,255,.45);flex:0 0 auto;overflow:hidden}.crest-img{width:48px;height:48px;border-radius:16px;padding:4px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,244,222,.9));text-shadow:none}.crest-img img{display:block;max-width:100%;max-height:100%;object-fit:contain}.team-title{display:flex;gap:8px;align-items:center}
.table-wrap{overflow:auto}table{width:100%;border-collapse:separate;border-spacing:0 8px}th{text-align:left;color:#d6c6b4;font-weight:950;font-size:11px;padding:0 9px;text-transform:uppercase;letter-spacing:.06em}td{padding:11px 9px;background:linear-gradient(180deg,rgba(24,17,13,.96),rgba(11,9,8,.96));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td:first-child{border-left:1px solid var(--line);border-radius:14px 0 0 14px}td:last-child{border-right:1px solid var(--line);border-radius:0 14px 14px 0}tr:hover td{border-color:rgba(255,190,61,.34)}
.two{display:grid;grid-template-columns:minmax(340px,.9fr) 1.25fr;gap:18px}@media(max-width:1120px){.two{grid-template-columns:1fr}}
.round{border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,rgba(28,20,16,.9),rgba(11,9,8,.9));margin-bottom:13px;padding:13px;box-shadow:var(--inset)}.round.current{border-color:rgba(255,190,61,.6);box-shadow:0 0 0 2px rgba(255,190,61,.09),var(--inset)}.match-row{display:grid;grid-template-columns:1fr 94px 1fr auto;gap:12px;align-items:center;padding:9px;border-bottom:1px solid rgba(255,255,255,.07)}.match-row:last-child{border-bottom:0}.home{text-align:right}.away{text-align:left}.score{font-weight:1000;font-size:20px;text-align:center;white-space:nowrap;color:#fff0c6}.score.future{color:var(--muted);font-size:14px}.match-card{border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,rgba(15,11,9,.98),rgba(5,5,5,.94));padding:14px;box-shadow:var(--inset)}.big-score{font-size:34px;font-weight:1000;color:var(--accent);letter-spacing:-1px}.program-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.heat-table td,.heat-table th{font-size:12px}.heat-score{font-weight:1000;color:var(--warn)}.src-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:11px}.src{background:linear-gradient(180deg,rgba(25,18,14,.95),rgba(10,8,7,.95));border:1px solid var(--line);border-radius:17px;padding:12px;box-shadow:var(--inset)}.footer{margin-top:18px;color:var(--muted);font-size:12px;text-align:center}.locked-note{margin-top:8px;border-top:1px solid rgba(255,255,255,.07);padding-top:8px}
.live-panel{border:1px solid rgba(255,190,61,.52);border-radius:24px;background:linear-gradient(180deg,rgba(45,29,17,.98),rgba(13,10,8,.98));padding:16px;margin:15px 0;box-shadow:0 20px 64px rgba(0,0,0,.34),0 0 0 2px rgba(255,190,61,.06),var(--inset)}.live-teams{background:rgba(0,0,0,.2);border:1px solid var(--line);border-radius:17px;padding:11px;margin:11px 0}.live-heat{border-top:1px solid rgba(255,255,255,.09);margin-top:11px;padding-top:13px}.manual-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:13px 0}.manual-grid label{display:grid;gap:6px;color:var(--muted);font-size:12px}.manual-grid select{width:100%}.live-row{border-color:rgba(255,190,61,.72)!important;box-shadow:0 0 0 1px rgba(255,190,61,.12)}.rulebox{border:1px dashed rgba(255,190,61,.38);background:rgba(255,190,61,.07);border-radius:16px;padding:11px;margin-top:10px}.rt-log{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.045);border-radius:16px;padding:10px;margin:9px 0;color:var(--muted)}
@media(max-width:900px){.hero{padding:14px 12px 12px}.hero-image{border-radius:22px}.hero-banner{border-radius:22px}.wrap{padding:0 12px 34px}.manual-grid{grid-template-columns:1fr}.manual-grid button{width:100%}.program-grid{grid-template-columns:1fr}.match-row{grid-template-columns:1fr;gap:4px}.home{text-align:left}.card{border-radius:22px}.kpi{grid-template-columns:1fr 1fr}.rider{grid-template-columns:1fr}.ratings{justify-content:flex-start}}
@media(max-width:520px){h1{font-size:38px}.kpi{grid-template-columns:1fr}.tabs{position:static}.tab{flex:1 1 45%}}

.hero-image .hero-banner{transform:translateZ(0)}
.custom-season{border:1px solid var(--line);border-radius:19px;padding:13px;background:linear-gradient(180deg,rgba(255,190,61,.06),rgba(0,0,0,.12));margin:12px 0;box-shadow:var(--inset)}
.checkline{display:flex;align-items:center;gap:9px;font-weight:950;color:#fff0c6}
.checkline input{accent-color:var(--accent);width:17px;height:17px}
.custom-picker{display:grid;grid-template-columns:1fr auto;gap:10px;margin:12px 0}
.custom-picker select{min-width:0;width:100%}
.selected-opponents{display:grid;gap:8px;margin-top:9px;max-height:360px;overflow:auto;padding-right:3px}
.opponent-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(255,210,148,.16);background:rgba(0,0,0,.18);border-radius:15px;padding:9px 10px}
.opponent-chip span{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.opponent-chip small{color:var(--muted);font-size:11px}
@media(max-width:760px){.custom-picker{grid-template-columns:1fr}.opponent-chip{align-items:flex-start;flex-direction:column}}


/* Rules page */
.rules-page{
  overflow:visible;
}
.rules-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px;
  margin-top:16px;
}
.rule-card{
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  background:
    linear-gradient(180deg,rgba(255,190,61,.055),rgba(255,255,255,.025)),
    linear-gradient(180deg,rgba(25,18,14,.96),rgba(9,8,7,.96));
  box-shadow:var(--inset);
}
.rule-card.wide{
  grid-column:span 2;
}
.rule-card h3{
  color:#fff0c6;
  margin:0 0 10px;
  font-size:17px;
}
.rule-card p,
.rule-card li{
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}
.rule-card p{
  margin:0 0 10px;
}
.rule-card ul,
.rule-card ol{
  margin:8px 0 0;
  padding-left:20px;
}
.rule-card b{
  color:#ffe0a0;
}
.mini-table{
  display:grid;
  gap:8px;
  margin:12px 0;
}
.mini-table div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  border:1px solid rgba(255,190,61,.18);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,190,61,.055);
}
.mini-table b{
  color:#fff0c6;
}
.mini-table span{
  color:var(--accent3);
  font-weight:900;
}
@media(max-width:760px){
  .rule-card.wide{grid-column:auto}
}


/* v39: fixed player-card height in match program */
.match-program-table{
  table-layout:fixed;
  border-spacing:0 8px;
}
.match-program-table th:first-child,
.match-program-table td:first-child{
  width:46%;
}
.match-program-table th:not(:first-child),
.match-program-table td:not(:first-child){
  width:10.8%;
  text-align:center;
  white-space:nowrap;
}
.match-program-table tbody tr{
  height:76px;
}
.match-program-table tbody td{
  height:76px;
  vertical-align:middle;
}
.match-program-table .rider-program-cell{
  overflow:hidden;
}
.match-program-table .rider-program-cell b{
  display:block;
  line-height:1.2;
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.match-program-table .program-line{
  margin-top:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-height:17px;
}

/* v42 Online MVP */
.online-nav{margin:-6px 0 16px}.online-back,.online-link{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:10px 13px;color:var(--accent3);background:rgba(255,190,61,.06);font-weight:950;box-shadow:var(--inset)}.online-shell{min-height:520px}.online-app{margin-top:16px}.online-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}@media(max-width:850px){.online-grid{grid-template-columns:1fr}.online-match-header{grid-template-columns:1fr!important;text-align:left}.online-team-title.right{justify-content:flex-start!important}.big-score{text-align:left!important}}.online-box{border:1px solid var(--line);border-radius:21px;padding:16px;background:linear-gradient(180deg,rgba(28,20,16,.92),rgba(11,9,8,.88));box-shadow:var(--inset)}.online-input{background:#120d0b;color:var(--text);border:1px solid var(--line);border-radius:13px;padding:11px 12px;min-width:180px;text-transform:uppercase;font-weight:950;letter-spacing:.08em}.online-team-select{width:100%;margin:8px 0 12px}.online-status{margin-top:11px}.online-room-head{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.room-code-big,.room-side{border:1px solid rgba(255,190,61,.28);border-radius:18px;padding:16px;background:rgba(255,190,61,.08);font-weight:1000;font-size:28px;letter-spacing:.08em}.room-side{font-size:20px;letter-spacing:0;text-transform:uppercase}.online-match-header{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;border:1px solid var(--line);border-radius:24px;padding:14px;background:linear-gradient(135deg,rgba(255,190,61,.08),rgba(255,107,26,.04),rgba(0,0,0,.14));margin:14px 0}.online-team-title{display:flex;align-items:center;gap:10px}.online-team-title.right{justify-content:flex-end;text-align:right}.big-score{font-size:38px;font-weight:1000;color:var(--accent);letter-spacing:-.04em;text-align:center}.online-manual{margin-top:13px}.online-card-inner{margin-top:16px;box-shadow:none}.heat-row{border:1px solid var(--line);border-radius:16px;padding:12px;margin:9px 0;background:rgba(0,0,0,.16)}

/* v43 online stabilization */
.online-presence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.online-presence>div{border:1px solid var(--line);border-radius:16px;padding:11px 13px;background:rgba(255,255,255,.035);color:var(--muted);box-shadow:var(--inset)}
.status-dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:7px;vertical-align:-1px;background:var(--muted);box-shadow:0 0 0 3px rgba(255,255,255,.04)}
.status-dot.on{background:var(--ok);box-shadow:0 0 0 3px rgba(117,230,167,.13),0 0 16px rgba(117,230,167,.32)}
.status-dot.off{background:var(--danger);box-shadow:0 0 0 3px rgba(255,98,98,.12),0 0 16px rgba(255,98,98,.28)}
.status-dot.empty{background:var(--warn);box-shadow:0 0 0 3px rgba(255,209,102,.13)}
.rematch-panel{margin-top:14px}.rematch-actions{margin-top:12px}
@media(max-width:850px){.online-presence{grid-template-columns:1fr}.room-code-big{font-size:22px}}

/* v44 online draft */
.online-draft-grid{margin-top:16px;align-items:start}
.online-draft-slots{margin-top:12px}
.online-draft-grid .slot{cursor:default}
.online-draft-grid .rider{grid-template-columns:minmax(0,1fr) auto}
.online-draft-grid .ratings button{min-width:92px}
.online-draft-grid .draw{margin-top:12px}
@media(max-width:850px){.online-draft-grid .rider{grid-template-columns:1fr}.online-draft-grid .ratings{justify-content:flex-start}}

/* v45 online season */
.season-panel{margin-bottom:16px}
.season-panel table td,.season-panel table th{white-space:nowrap}
.season-my-row td{border-color:rgba(255,190,61,.55)!important;background:linear-gradient(180deg,rgba(255,190,61,.13),rgba(18,12,8,.96))!important}
.season-fixtures{display:grid;gap:8px}
.season-match{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px;background:rgba(255,255,255,.035)}
.season-match span:last-child{text-align:right}
.season-match b{font-size:15px;color:#fff1cb;text-align:center}
.season-match.active{border-color:rgba(255,190,61,.72);box-shadow:0 0 0 2px rgba(255,190,61,.10)}
.season-match.played{opacity:.86}
@media(max-width:760px){.season-match{grid-template-columns:1fr}.season-match span:last-child{text-align:left}.season-match b{text-align:left}}

/* v46 — online season stats and full schedule */
.season-section{margin-top:16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.035);padding:12px 14px;box-shadow:var(--inset)}
.season-section summary{cursor:pointer;font-weight:1000;color:#fff1cb;list-style:none}
.season-section summary::-webkit-details-marker{display:none}
.season-section summary:before{content:'▸';display:inline-block;margin-right:8px;color:var(--accent);transition:.15s transform}
.season-section[open] summary:before{transform:rotate(90deg)}
.season-stats-table{margin-top:12px;max-height:380px;overflow:auto}
.season-stats-table table td,.season-stats-table table th{white-space:nowrap}
.season-round-details{border:1px solid rgba(255,210,148,.14);border-radius:14px;margin:10px 0;padding:10px;background:rgba(0,0,0,.16)}
.season-round-details summary{cursor:pointer;font-weight:900;color:#ffe2a6;list-style:none}
.season-round-details summary::-webkit-details-marker{display:none}
.season-round-details summary:before{content:'▸';display:inline-block;margin-right:8px;color:var(--accent)}
.season-round-details[open] summary:before{content:'▾'}
.season-round-details .season-fixtures{margin-top:10px}

/* v47 — przedmeczowe ustawianie składów 1–7 */
.lineup-setup{border-color:rgba(255,190,61,.34)}
.lineup-editor{display:grid;gap:10px;margin:12px 0}
.lineup-slot{display:grid;grid-template-columns:92px 1fr;gap:10px;align-items:center;background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:var(--inset)}
.lineup-slot span{font-size:12px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.lineup-slot select{width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lineup-slot-main{display:grid;gap:8px;min-width:0}
.lineup-slot-info{min-width:0}
.lineup-slot-info-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lineup-info-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--muted);font-size:11px;line-height:1.1;font-weight:800;max-width:100%;white-space:normal}
.lineup-info-chip.form{color:#e7dfd1;border-color:rgba(255,190,61,.20);background:rgba(255,190,61,.06)}
.lineup-info-chip.form.good{color:#caffdc;border-color:rgba(117,230,167,.34);background:rgba(117,230,167,.08)}
.lineup-info-chip.form.warn{color:#ffe7a8;border-color:rgba(255,209,102,.36);background:rgba(255,209,102,.08)}
.lineup-info-chip.form.bad{color:#ffd2d2;border-color:rgba(255,98,98,.36);background:rgba(255,98,98,.10)}
.lineup-preview{display:grid;gap:8px;margin:12px 0}
.lineup-preview-row{display:flex;justify-content:space-between;gap:10px;align-items:center;background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:15px;padding:10px 12px}
.lineup-preview-row span{color:var(--muted);font-size:12px;white-space:nowrap}
@media(max-width:720px){.lineup-slot{grid-template-columns:1fr}.lineup-preview-row{align-items:flex-start;flex-direction:column}.lineup-preview-row span{white-space:normal}}

/* v48 — match day form */
.form-line{margin-top:4px;color:var(--accent3);font-weight:800}
.lineup-preview-row .form-line{display:block;color:var(--muted);font-weight:700}
/* v50 rotation */
.rotation-controls{margin-top:10px}
.rotation-slot{border-color:rgba(255,209,102,.48)!important;background:linear-gradient(180deg,rgba(48,34,18,.96),rgba(14,10,8,.94))!important}
.rotation-slot:before{opacity:.75!important;background:linear-gradient(var(--warn),var(--accent2))!important}
.lineup-slot select option{background:#120d0b;color:#fff7eb}

/* v51: online draft active-slot selection */
.online-draft-slots .clickable-slot{cursor:pointer;}
.online-draft-slots .clickable-slot:hover{border-color:rgba(255,190,61,.55);box-shadow:0 0 0 2px rgba(255,190,61,.10),0 14px 34px rgba(0,0,0,.25);}

/* v53: compact season average + match form chips in scorecards */
.match-program-table .rider-mini-info{
  display:flex;
  gap:5px;
  align-items:center;
  flex-wrap:nowrap;
  margin-top:3px;
  min-height:15px;
  max-width:100%;
  overflow:hidden;
}
.match-program-table .mini-stat-chip{
  display:inline-flex;
  align-items:center;
  max-width:50%;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:1px solid rgba(255,190,61,.22);
  border-radius:999px;
  padding:2px 6px;
  font-size:10px;
  line-height:1.05;
  color:var(--accent3);
  background:rgba(255,190,61,.065);
}
.match-program-table .mini-stat-chip.form{color:var(--muted);border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.035)}
.match-program-table .mini-stat-chip.form.good{color:#caffdc;border-color:rgba(117,230,167,.34);background:rgba(117,230,167,.08)}
.match-program-table .mini-stat-chip.form.warn{color:#ffe7a8;border-color:rgba(255,209,102,.36);background:rgba(255,209,102,.08)}
.match-program-table .mini-stat-chip.form.bad{color:#ffd2d2;border-color:rgba(255,98,98,.36);background:rgba(255,98,98,.10)}
.match-program-table .program-line{
  margin-top:4px;
}

/* v55 — awaryjna korekta draftu */
.emergency-card{
  margin:12px 0;
  padding:13px;
  border:1px solid rgba(255,209,102,.42);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,209,102,.10),rgba(255,107,26,.045));
  box-shadow:var(--inset);
}
.emergency-list{display:grid;gap:8px;margin-top:10px}
.emergency-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(0,0,0,.15);
}
.emergency-row span{display:flex;flex-direction:column;gap:3px;min-width:0}
.emergency-row small{color:var(--muted);font-size:12px;line-height:1.3}
.emergency-row button{white-space:nowrap;padding:8px 10px;border-radius:12px}
.emergency-used{margin:10px 0;color:var(--muted)}
@media(max-width:700px){.emergency-row{align-items:flex-start;flex-direction:column}.emergency-row button{width:100%}}

.lineup-bench{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin:10px 0 12px;
}
.lineup-bench .pill{
  white-space:normal;
  line-height:1.35;
}
.lineup-slot select option:disabled{
  color:#8c8176;
}


/* v60 — stadium card and heat times */
.stadium-card{
  margin:12px 0 14px;
  padding:13px 14px;
  border:1px solid rgba(255,190,61,.24);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,190,61,.075),rgba(255,107,26,.045),rgba(0,0,0,.16));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.stadium-kpis{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin-top:10px}
.stadium-kpis span{display:block;border:1px solid rgba(255,190,61,.16);background:rgba(0,0,0,.16);border-radius:14px;padding:8px 10px;color:var(--muted);font-size:12px;min-height:52px}
.stadium-kpis b{display:block;color:var(--accent3);font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}
.stadium-note{margin-top:8px}
.heat-time{font-variant-numeric:tabular-nums;color:var(--accent3);white-space:nowrap}
@media(max-width:900px){.stadium-kpis{grid-template-columns:repeat(2,minmax(120px,1fr))}}

/* v63/v64 — hover cards for rider and club details. Fixed overlay, so they do not change row heights. */
.rider-hover,.team-hover{
  cursor:help;
  text-decoration:underline dotted rgba(255,190,61,.55);
  text-underline-offset:3px;
}
.team-hover{ text-decoration-color:rgba(117,230,167,.60); }
#rider-global-tooltip{
  display:none;
  position:fixed;
  z-index:99999;
  max-width:330px;
  padding:12px 13px;
  border:1px solid rgba(255,190,61,.42);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(32,22,15,.98),rgba(9,8,7,.98));
  color:var(--text);
  box-shadow:0 22px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  font-size:12px;
  line-height:1.45;
  white-space:pre-line;
  pointer-events:none;
  backdrop-filter:blur(10px);
}
#rider-global-tooltip::first-line{
  color:var(--accent3);
  font-weight:950;
}

/* v65 — keep rider names on one line in scorecards */
.match-program-table .rider-program-cell b{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.2;
  -webkit-line-clamp:unset;
  -webkit-box-orient:unset;
}
.match-program-table .rider-program-cell .rider-hover{
  display:inline-block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align:bottom;
}
.match-program-table th:first-child,
.match-program-table td:first-child{
  width:49%;
}
.match-program-table th:not(:first-child),
.match-program-table td:not(:first-child){
  width:10.2%;
}
@media(max-width:900px){
  .match-program-table th:first-child,
  .match-program-table td:first-child{width:52%;}
  .match-program-table th:not(:first-child),
  .match-program-table td:not(:first-child){width:9.6%;}
}

/* v66 — more breathing room for scorecard average column */
.match-program-table th:first-child,
.match-program-table td:first-child{
  width:47%;
}
.match-program-table th:not(:first-child),
.match-program-table td:not(:first-child){
  width:10.6%;
}
.match-program-table th:last-child,
.match-program-table td:last-child{
  padding-right:16px;
}
@media(max-width:900px){
  .match-program-table th:first-child,
  .match-program-table td:first-child{width:49%;}
  .match-program-table th:not(:first-child),
  .match-program-table td:not(:first-child){width:10.2%;}
  .match-program-table th:last-child,
  .match-program-table td:last-child{padding-right:14px;}
}


/* v69 — subtelne wyróżnienia miejsc w tabeli ligowej */
tr.league-rank-gold td{
  background:linear-gradient(90deg,rgba(255,190,61,.20),rgba(24,17,13,.96) 52%,rgba(11,9,8,.96))!important;
  border-top-color:rgba(255,190,61,.58)!important;
  border-bottom-color:rgba(255,190,61,.58)!important;
}
tr.league-rank-gold td:first-child{box-shadow:inset 4px 0 0 rgba(255,190,61,.90),var(--inset)}
tr.league-rank-gold td:nth-child(1),tr.league-rank-gold td:nth-child(2),tr.league-rank-gold td:nth-child(5){color:#ffe6a3}

tr.league-rank-silver td{
  background:linear-gradient(90deg,rgba(203,213,225,.16),rgba(24,17,13,.96) 52%,rgba(11,9,8,.96))!important;
  border-top-color:rgba(203,213,225,.42)!important;
  border-bottom-color:rgba(203,213,225,.42)!important;
}
tr.league-rank-silver td:first-child{box-shadow:inset 4px 0 0 rgba(203,213,225,.76),var(--inset)}
tr.league-rank-silver td:nth-child(1),tr.league-rank-silver td:nth-child(2),tr.league-rank-silver td:nth-child(5){color:#e5edf7}

tr.league-rank-bronze td{
  background:linear-gradient(90deg,rgba(205,127,50,.17),rgba(24,17,13,.96) 52%,rgba(11,9,8,.96))!important;
  border-top-color:rgba(205,127,50,.46)!important;
  border-bottom-color:rgba(205,127,50,.46)!important;
}
tr.league-rank-bronze td:first-child{box-shadow:inset 4px 0 0 rgba(205,127,50,.78),var(--inset)}
tr.league-rank-bronze td:nth-child(1),tr.league-rank-bronze td:nth-child(2),tr.league-rank-bronze td:nth-child(5){color:#ffd6a8}

tr.league-rank-last td{
  background:linear-gradient(90deg,rgba(255,98,98,.13),rgba(24,17,13,.96) 52%,rgba(11,9,8,.96))!important;
  border-top-color:rgba(255,98,98,.40)!important;
  border-bottom-color:rgba(255,98,98,.40)!important;
}
tr.league-rank-last td:first-child{box-shadow:inset 4px 0 0 rgba(255,98,98,.72),var(--inset)}
tr.league-rank-last td:nth-child(1),tr.league-rank-last td:nth-child(2),tr.league-rank-last td:nth-child(5){color:#ffd0d0}

tr.league-rank-gold:hover td,tr.league-rank-silver:hover td,tr.league-rank-bronze:hover td,tr.league-rank-last:hover td{filter:brightness(1.08)}


/* v72 — czytelniejsze oznaczenia RT/RZ w bieg po biegu */
.heat-table td,.heat-table th{vertical-align:top}
.team-riders-cell{min-width:250px}
.heat-rider-line{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin:2px 0;
}
.heat-rider-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  line-height:1.35;
}
.heat-change-tag{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  border:1px solid rgba(255,190,61,.34);
  border-radius:999px;
  padding:1px 7px;
  font-size:10px;
  line-height:1.2;
  background:rgba(255,190,61,.08);
  color:#ffe3ad;
}
.heat-change-tag.rt{
  border-color:rgba(255,209,102,.42);
  background:rgba(255,209,102,.10);
  color:#ffe7b8;
}
.heat-change-tag.rz{
  border-color:rgba(117,230,167,.30);
  background:rgba(117,230,167,.10);
  color:#d9ffe8;
}
.heat-result-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  padding:1px 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#fff0c6;
  font-weight:900;
  line-height:1.2;
}
.heat-result-badge.bad{
  border-color:rgba(255,98,98,.38);
  background:rgba(255,98,98,.10);
  color:#ffd1d1;
}
.heat-riders-inline{
  display:grid;
  gap:6px;
  margin-top:6px;
}
.heat-riders-inline .heat-rider-line{
  padding-bottom:4px;
  border-bottom:1px dashed rgba(255,255,255,.08);
}
.heat-riders-inline .heat-rider-line:last-child{border-bottom:0;padding-bottom:0}
@media(max-width:760px){
  .team-riders-cell{min-width:210px}
  .heat-rider-line{gap:8px}
  .heat-rider-main{font-size:12px}
}


/* v74 — Drużynowy Puchar Świata */
.worldcup-results{margin-top:16px;display:grid;gap:12px}
.worldcup-meeting{border:1px solid var(--line);border-radius:20px;padding:13px;background:rgba(0,0,0,.16);box-shadow:var(--inset)}
.worldcup-meeting h3{margin:0}
.worldcup-meeting table td,.worldcup-meeting table th{white-space:nowrap}
.worldcup-meeting .season-section{margin-top:10px}


/* v75 — grywalny Drużynowy Puchar Świata */
.worldcup-live{margin-top:12px;display:grid;gap:12px}
.worldcup-live-controls{
  border:1px solid rgba(255,190,61,.28);
  border-radius:18px;
  padding:12px;
  background:linear-gradient(135deg,rgba(255,190,61,.08),rgba(255,107,26,.04),rgba(0,0,0,.18));
  box-shadow:var(--inset);
}
.worldcup-live-controls h4{margin:0 0 8px;color:#fff1cb}
.worldcup-live-controls select{min-width:280px;max-width:100%}
.worldcup-meeting .heat-change-tag{margin-left:4px}
.worldcup-meeting table td{vertical-align:top}
.worldcup-meeting .okbox{margin-top:8px}
@media(max-width:720px){.worldcup-live-controls select{min-width:100%;width:100%}}

/* v76 — czytelniejszy ekran meczu SWC */
.worldcup-live-controls{
  margin:12px 0;
  border:1px solid rgba(255,190,61,.28);
  border-radius:18px;
  padding:13px 14px;
  background:linear-gradient(180deg,rgba(255,190,61,.08),rgba(0,0,0,.16));
  box-shadow:var(--inset);
}
.worldcup-scorecards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}
.worldcup-scorecard{
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
  background:rgba(0,0,0,.16);
  box-shadow:var(--inset);
  overflow:hidden;
}
.worldcup-scorecard h4{margin:0 0 8px;color:#fff1cb}
.worldcup-scorecard table{margin:0}
.worldcup-scorecard .match-program-table td:first-child{min-width:150px}
.worldcup-scorecard .program-line{white-space:normal;line-height:1.35}
.worldcup-meeting .season-stats-table td{vertical-align:top}
.worldcup-meeting .heat-rider-line{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.worldcup-meeting .heat-rider-main{
  display:flex;
  gap:5px;
  align-items:center;
  flex-wrap:wrap;
  min-width:0;
}
@media(max-width:900px){.worldcup-scorecards{grid-template-columns:1fr}}


/* v77 — poprawa szerokości kolumn w scorecardach SWC */
.worldcup-scorecard .match-program-table{
  width:100%;
  table-layout:fixed;
}
.worldcup-scorecard .match-program-table th:first-child,
.worldcup-scorecard .match-program-table td:first-child{
  width:58%;
}
.worldcup-scorecard .match-program-table th:nth-child(2),
.worldcup-scorecard .match-program-table td:nth-child(2){
  width:8%;
  text-align:center;
  white-space:nowrap;
}
.worldcup-scorecard .match-program-table th:nth-child(3),
.worldcup-scorecard .match-program-table td:nth-child(3){
  width:10%;
  text-align:center;
  white-space:nowrap;
}
.worldcup-scorecard .match-program-table th:nth-child(4),
.worldcup-scorecard .match-program-table td:nth-child(4){
  width:24%;
  text-align:left;
  padding-right:14px;
}
.worldcup-scorecard .match-program-table .program-line{
  display:block;
  white-space:normal;
  overflow:visible;
  text-overflow:unset;
  line-height:1.35;
  word-break:break-word;
}
@media(max-width:900px){
  .worldcup-scorecard .match-program-table th:first-child,
  .worldcup-scorecard .match-program-table td:first-child{width:54%;}
  .worldcup-scorecard .match-program-table th:nth-child(2),
  .worldcup-scorecard .match-program-table td:nth-child(2){width:8%;}
  .worldcup-scorecard .match-program-table th:nth-child(3),
  .worldcup-scorecard .match-program-table td:nth-child(3){width:10%;}
  .worldcup-scorecard .match-program-table th:nth-child(4),
  .worldcup-scorecard .match-program-table td:nth-child(4){width:28%;}
}


/* v78 — responsywny układ SWC, bez ucinania paneli i kontrolek */
.worldcup-meeting,
.worldcup-live,
.worldcup-live-controls,
.worldcup-results{min-width:0}
.worldcup-live-controls .row{
  display:grid;
  grid-template-columns:auto minmax(150px,0.9fr) auto minmax(230px,1.15fr) auto;
  gap:10px;
  align-items:center;
  min-width:0;
}
.worldcup-live-controls .row > *{min-width:0}
.worldcup-live-controls label.small{white-space:nowrap}
.worldcup-live-controls select{
  width:100%;
  min-width:0;
  max-width:100%;
}
.worldcup-live-controls button{
  justify-self:start;
  white-space:nowrap;
}
.worldcup-meeting .season-stats-table,
.worldcup-meeting .table-wrap{overflow-x:auto}
.worldcup-live .okbox,
.worldcup-live-controls .small,
.worldcup-meeting .small{word-break:break-word}
@media(max-width:1100px){
  .worldcup-live-controls .row{
    grid-template-columns:1fr 1fr;
  }
  .worldcup-live-controls .row label.small:nth-of-type(1){grid-column:1/2}
  .worldcup-live-controls .row #wc-user-decision{grid-column:2/3}
  .worldcup-live-controls .row label.small:nth-of-type(2){grid-column:1/2}
  .worldcup-live-controls .row #wc-user-rider-select{grid-column:2/3}
  .worldcup-live-controls .row #wc-run-heat{grid-column:1/-1;justify-self:start}
}
@media(max-width:700px){
  .worldcup-live-controls .row{grid-template-columns:1fr}
  .worldcup-live-controls .row label.small,
  .worldcup-live-controls .row #wc-user-decision,
  .worldcup-live-controls .row #wc-user-rider-select,
  .worldcup-live-controls .row #wc-run-heat{grid-column:auto}
  .worldcup-live-controls button{width:100%}
}


/* v79 — tooltipy reprezentacji w SWC */
.nation-hover{ text-decoration-color:rgba(255,209,102,.70); }
.worldcup-meeting .small .nation-hover{display:inline-block;margin:2px 4px 2px 0}
#rider-global-tooltip{max-width:390px;}


/* v84 — SWC: limit 6 startów po TS/Jokerze + ostatni bieg widoczny u góry */
.swc-last-heat{
  margin:12px 0;
  padding:12px 13px;
  border:1px solid rgba(117,230,167,.30);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(117,230,167,.09),rgba(0,0,0,.16));
  box-shadow:var(--inset);
}
.swc-last-heat h4{margin:0;color:#d8ffe8}
.swc-last-heat-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 12px;
  margin-top:10px;
}
.swc-last-heat-grid .heat-rider-line{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:7px 9px;
  background:rgba(0,0,0,.14);
}
@media(max-width:760px){.swc-last-heat-grid{grid-template-columns:1fr}}


/* v85 — stabilniejszy ekran live DPS/SWC */
.worldcup-meeting{
  max-width:100%;
  overflow:hidden;
}
.worldcup-meeting > table,
.worldcup-live > table,
.worldcup-meeting .season-section table{
  width:100%;
  table-layout:fixed;
}
.worldcup-live{max-width:100%;overflow:hidden;display:grid;gap:12px;}
.worldcup-live-controls{max-width:100%;overflow:hidden;}
.worldcup-live-controls .row{
  grid-template-columns:minmax(115px,auto) minmax(180px,1fr) minmax(80px,auto) minmax(250px,1.2fr) auto;
}
.worldcup-live-controls select{min-width:0!important;}
.worldcup-live-controls button{max-width:100%;}
.swc-last-heat{max-width:100%;overflow:hidden;}
.swc-last-heat .spaced{align-items:flex-start;}
.swc-last-heat .pill{white-space:normal;max-width:100%;line-height:1.35;}
.swc-last-heat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.worldcup-scorecards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%;overflow:hidden;}
.worldcup-scorecard{min-width:0;}
.worldcup-scorecard .match-program-table td,
.worldcup-scorecard .match-program-table th{min-width:0;}
.worldcup-scorecard .match-program-table th:first-child,
.worldcup-scorecard .match-program-table td:first-child{width:55%;}
.worldcup-scorecard .match-program-table th:nth-child(4),
.worldcup-scorecard .match-program-table td:nth-child(4){width:27%;}
@media(max-width:1220px){
  .worldcup-scorecards{grid-template-columns:1fr;}
  .worldcup-live-controls .row{grid-template-columns:1fr 1fr;}
  .worldcup-live-controls .row #wc-run-heat{grid-column:1/-1;justify-self:start;}
  .swc-last-heat-grid{grid-template-columns:1fr;}
}
@media(max-width:720px){
  .worldcup-live-controls .row{grid-template-columns:1fr;}
  .worldcup-live-controls .row #wc-run-heat{justify-self:stretch;}
}


/* v88 — rider hover cards in SWC and slightly stronger home advantage */
.worldcup-scorecard .rider-hover,
.worldcup-meeting .heat-rider-line .rider-hover{
  text-decoration:underline dotted rgba(255,190,61,.55);
  text-underline-offset:3px;
}

/* v96 — czytelny pełny program meczu */
.match-program-preview{
  margin: 12px 0;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 16px;
  background: rgba(15,23,42,.44);
  padding: 10px 12px;
  overflow: hidden;
}
.match-program-preview > summary{
  cursor: pointer;
  font-weight: 800;
  color: #e5e7eb;
  list-style-position: inside;
}
.program-preview-table{
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}
.program-preview-table th,
.program-preview-table td{
  vertical-align: top;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(148,163,184,.16);
}
.program-preview-table th:first-child,
.program-preview-table td:first-child{width:70px;text-align:center;}
.program-preview-table th:last-child,
.program-preview-table td:last-child{width:150px;}
.program-preview-row.current{background: rgba(250,204,21,.13);}
.program-preview-row.done{opacity:.72;}
.program-preview-row.future{opacity:.95;}
.worldcup-program-preview .program-preview-table{min-width: 980px;}
.worldcup-program-preview .program-preview-table th:first-child,
.worldcup-program-preview .program-preview-table td:first-child{width:62px;}
.worldcup-program-preview .program-preview-table th:last-child,
.worldcup-program-preview .program-preview-table td:last-child{width:210px;}
@media (max-width: 860px){
  .program-preview-table{min-width: 680px;}
  .worldcup-program-preview .program-preview-table{min-width: 900px;}
}


.gate-helmet-group{display:inline-flex;align-items:center;gap:4px;margin-right:6px;vertical-align:middle;white-space:nowrap}
.gate-chip{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:7px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);font-size:12px;font-weight:950;color:var(--accent3);box-shadow:var(--inset)}
.gate-A{background:rgba(255,226,166,.16)}.gate-B{background:rgba(117,230,167,.12)}.gate-C{background:rgba(109,184,255,.12)}.gate-D{background:rgba(255,98,98,.10)}
.helmet-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:1000;border:1px solid rgba(255,255,255,.25);box-shadow:0 2px 9px rgba(0,0,0,.25)}
.helmet-red{background:#e63946;color:white}.helmet-blue{background:#2f80ed;color:white}.helmet-white{background:#f8f4e8;color:#1b130f}.helmet-yellow{background:#ffd23f;color:#241507}
.gate-wins-panel{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:rgba(255,190,61,.055);box-shadow:var(--inset)}
.gate-wins-panel.muted{opacity:.74}.gate-win-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid var(--line2);font-weight:850}
.program-preview-table .gate-helmet-group,.heat-table .gate-helmet-group,.heat-riders-inline .gate-helmet-group{margin-right:5px}
.next-heat-preview{margin-top:14px;padding:12px 14px;border:1px solid rgba(255,190,61,.28);border-radius:18px;background:rgba(255,190,61,.07);box-shadow:var(--inset)}
.next-heat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.next-heat-side{border:1px solid var(--line);border-radius:15px;padding:10px 12px;background:rgba(0,0,0,.18)}
.next-heat-team{font-weight:900;letter-spacing:.02em;color:var(--accent3);margin-bottom:6px}
.next-heat-riders{line-height:1.55}
@media(max-width:850px){.next-heat-grid{grid-template-columns:1fr}}


/* v115 — stabilniejsze wiersze bieg po biegu i czytelny poziom trudności */
.heat-table{table-layout:auto}
.team-riders-cell{min-width:280px;max-width:360px}
.heat-rider-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0}
.heat-rider-main{min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow:hidden}
.heat-rider-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;max-width:100%}
.heat-rider-main .gate-helmet-group{flex:0 0 auto}
.heat-rider-main .heat-change-tag{flex:0 0 auto}
.heat-riders-inline .heat-rider-line{grid-template-columns:minmax(0,1fr) auto}
.season-difficulty-note{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px;padding:8px 10px;border:1px solid rgba(255,190,61,.30);border-radius:14px;background:rgba(255,190,61,.065);box-shadow:var(--inset)}
.difficulty-pill{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid rgba(255,209,102,.58);background:linear-gradient(180deg,rgba(255,209,102,.20),rgba(255,107,26,.10));color:#ffe8ad;border-radius:999px;padding:4px 9px;font-weight:950;box-shadow:0 0 0 1px rgba(255,209,102,.08)}
@media(max-width:760px){.team-riders-cell{min-width:230px;max-width:none}.heat-rider-label{max-width:170px}}


/* v116 — program meczowy i tabela ligowa */
.program-preview-table{min-width:840px}
.program-preview-table th:nth-child(2),.program-preview-table td:nth-child(2),
.program-preview-table th:nth-child(3),.program-preview-table td:nth-child(3){width:calc((100% - 220px)/2)}
.program-preview-row td{vertical-align:middle}
.program-pair-stack{display:grid;gap:6px;min-width:0}
.program-rider-line{display:grid;grid-template-columns:auto 34px minmax(0,1fr);gap:8px;align-items:center;min-width:0}
.program-gate{display:inline-flex;align-items:center;min-width:0}
.program-no{font-weight:1000;color:#ffe9b0;text-align:right;white-space:nowrap}
.program-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff7eb}
.program-name .rider-hover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.program-change-inline{color:var(--warn);font-size:11px;font-weight:900;white-space:nowrap}
.program-preview-table .small{white-space:nowrap}
.program-preview-table td:nth-child(2),.program-preview-table td:nth-child(3){padding-top:10px;padding-bottom:10px}
.program-preview-table td:last-child{white-space:nowrap;text-align:center}
.program-preview-row.current td{border-top-color:rgba(255,209,102,.35);border-bottom-color:rgba(255,209,102,.35)}

.standings-table{table-layout:fixed;min-width:760px}
.standings-table th,.standings-table td{vertical-align:middle}
.standings-table th:nth-child(1),.standings-table td:nth-child(1){width:56px;text-align:center}
.standings-table th:nth-child(2),.standings-table td:nth-child(2){width:38%}
.standings-table th:nth-child(n+3),.standings-table td:nth-child(n+3){white-space:nowrap;text-align:center}
.standings-team{display:flex;align-items:center;gap:10px;min-width:0}
.standings-team-crest{flex:0 0 auto;display:inline-flex;align-items:center}
.standings-team-name{min-width:0;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:1.2;font-weight:900;color:#fff1cb}
.standings-team.online{display:block}
.season-panel .table-wrap{overflow-x:auto;padding-bottom:2px}
@media(max-width:980px){
  .program-preview-table{min-width:760px}
  .standings-table{min-width:700px}
}

/* v117 — czytelna tabela bez przewijania + równe pola składu */
.standings-card-list{
  display:grid;
  gap:8px;
  margin-top:8px;
  width:100%;
  overflow:visible;
}
.standings-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:0;
  align-items:stretch;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(24,17,13,.96),rgba(11,9,8,.96));
  box-shadow:var(--inset);
}
.standings-card.league-rank-gold{border-color:rgba(255,190,61,.72);box-shadow:inset 4px 0 0 rgba(255,190,61,.9),var(--inset)}
.standings-card.league-rank-silver{border-color:rgba(226,232,240,.62);box-shadow:inset 4px 0 0 rgba(226,232,240,.8),var(--inset)}
.standings-card.league-rank-bronze{border-color:rgba(180,104,43,.70);box-shadow:inset 4px 0 0 rgba(180,104,43,.9),var(--inset)}
.standings-card.league-rank-last{border-color:rgba(255,98,98,.62);box-shadow:inset 4px 0 0 rgba(255,98,98,.85),var(--inset)}
.standings-rank{
  grid-row:1 / span 2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  color:#ffe9b0;
  background:rgba(0,0,0,.22);
  border-right:1px solid rgba(255,210,148,.12);
}
.standings-club{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-width:0;
  padding:9px 11px 6px;
}
.standings-team-crest{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.standings-team-crest .crest,.standings-club .crest{width:42px;height:42px;border-radius:12px}
.standings-team-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:normal;
  line-height:1.16;
  font-weight:1000;
  color:#fff1cb;
}
.standings-stats{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:5px;
  padding:0 11px 10px;
}
.standings-stats span{
  display:grid;
  gap:1px;
  min-width:0;
  border:1px solid rgba(255,210,148,.12);
  border-radius:10px;
  padding:4px 5px;
  background:rgba(255,255,255,.035);
  text-align:center;
  font-size:12px;
  line-height:1.1;
  white-space:nowrap;
}
.standings-stats span b{
  font-size:9px;
  letter-spacing:.04em;
  color:var(--muted);
  text-transform:uppercase;
}
.standings-stats .pts{color:#fff0c6;font-weight:1000;background:rgba(255,190,61,.08);border-color:rgba(255,190,61,.22)}
.season-panel .standings-card-list{max-width:100%}
.season-panel .program-grid{align-items:start}

.lineup-slot{
  min-height:112px;
  height:112px;
  align-items:center;
}
.lineup-slot-main{
  min-height:88px;
  align-content:center;
}
.lineup-slot select{
  height:40px;
}
.lineup-slot-info-row{
  min-height:36px;
  max-height:36px;
  overflow:hidden;
  align-content:flex-start;
}
.lineup-info-chip{
  max-height:17px;
  overflow:hidden;
}
@media(max-width:900px){
  .standings-stats{grid-template-columns:repeat(3,minmax(0,1fr));}
  .lineup-slot{height:auto;min-height:112px;}
  .lineup-slot-info-row{max-height:none;}
}
@media(max-width:520px){
  .standings-card{grid-template-columns:34px minmax(0,1fr)}
  .standings-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
  .standings-club{grid-template-columns:auto minmax(0,1fr);gap:8px;padding-right:8px}
}


/* v118 — czytelniejszy ekran symulacji meczu */
.live-match-card-block{margin:14px 0 16px}
.live-match-card-block h3,.match-flow-stack .card h3{margin-bottom:10px}
.match-flow-stack{display:grid;gap:16px;margin:14px 0 18px}
.live-heat{margin-top:0;border:1px solid rgba(255,190,61,.30);border-radius:20px;padding:16px 16px 14px;background:linear-gradient(180deg,rgba(255,190,61,.08),rgba(255,190,61,.03))}
.live-heat h3{margin-bottom:10px}
.live-heat .manual-grid{margin-top:10px}
.live-panel>.okbox+.warning,.live-panel>.warning+.okbox,.live-panel>.warning+.warning,.live-panel>.okbox+.okbox{margin-top:10px}


/* v123 — rowne pola wyboru skladu i opis zawodnika w jednej linii */
.lineup-slot{
  grid-template-columns:92px minmax(0,1fr);
  min-height:106px;
  height:106px;
  align-items:center;
}
.lineup-slot-main{
  min-width:0;
  min-height:78px;
  display:grid;
  grid-template-rows:40px 24px;
  gap:8px;
  align-content:center;
}
.lineup-slot select{
  height:40px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.lineup-slot-info-row{
  display:grid!important;
  grid-template-columns:76px 148px minmax(160px,1fr) 74px;
  gap:6px;
  align-items:center;
  min-height:24px;
  max-height:24px;
  overflow:hidden;
  flex-wrap:nowrap!important;
}
.lineup-info-chip{
  min-width:0;
  height:20px;
  max-height:20px;
  padding:2px 7px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap!important;
  font-size:10.5px;
  line-height:1;
  text-transform:none!important;
  justify-content:center;
}
.lineup-info-chip.form{
  justify-content:flex-start;
}
.lineup-slot-info{min-width:0;overflow:hidden}
@media(max-width:900px){
  .lineup-slot{height:auto;min-height:106px;grid-template-columns:82px minmax(0,1fr)}
  .lineup-slot-info-row{grid-template-columns:64px 128px minmax(120px,1fr) 66px;max-height:24px;}
  .lineup-info-chip{font-size:10px;padding-left:5px;padding-right:5px;}
}
@media(max-width:620px){
  .lineup-slot{grid-template-columns:1fr;align-items:start;height:auto;min-height:116px;}
  .lineup-slot-main{grid-template-rows:40px auto;}
  .lineup-slot-info-row{grid-template-columns:1fr 1fr;max-height:none;min-height:0;}
}

/* v124 — decyzje menadżera: tor, morale, mobilizacja */
.manager-panel{border:1px solid rgba(255,190,61,.28);border-radius:17px;padding:11px 12px;margin:10px 0 12px;background:rgba(255,190,61,.065);box-shadow:var(--inset)}
.manager-panel h3{margin:0 0 5px;color:#fff0c6;font-size:15px}
.manager-panel select{margin-top:8px;width:100%}
.manager-panel.muted{opacity:.9;background:rgba(255,255,255,.035)}
.manager-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 12px;padding:9px 10px;border:1px solid rgba(255,190,61,.24);border-radius:15px;background:rgba(255,190,61,.055);box-shadow:var(--inset)}
.manager-status .pill{white-space:nowrap}
.manager-heat-grid{grid-template-columns:1fr 1fr minmax(180px,.72fr) auto}
@media(max-width:1000px){.manager-heat-grid{grid-template-columns:1fr 1fr}.manager-heat-grid button{grid-column:1/-1}}
@media(max-width:700px){.manager-heat-grid{grid-template-columns:1fr}}


/* v125 — objaśnienia decyzji menadżera */
.manager-help{margin-top:9px;border:1px solid rgba(255,210,148,.16);border-radius:14px;background:rgba(0,0,0,.14);padding:9px 10px;color:var(--muted);font-size:12px;line-height:1.35}
.track-help{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.track-help div{border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:8px;background:rgba(255,255,255,.035)}
.track-help b{display:block;color:#fff0c6;margin-bottom:3px;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.track-help span{display:block;color:var(--muted)}
.motivation-help{margin:8px 0 10px;color:#ffe6af;background:rgba(255,190,61,.055);border-color:rgba(255,190,61,.22)}
.manager-status .pill[title]{cursor:help;max-width:520px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.track-help{grid-template-columns:1fr}.manager-status .pill[title]{max-width:100%}}

/* v126 — wyraźniejsze objaśnienia toru i mobilizacji */
.manager-help{font-size:12.5px;line-height:1.45}
.manager-help-title{font-weight:1000;color:#fff0c6;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.track-help .manager-help-title{grid-column:1/-1;margin:0 0 2px;padding:0;background:transparent;border:0}
.manager-selected-help{margin-top:9px;border:1px solid rgba(117,230,167,.28);border-radius:14px;background:rgba(117,230,167,.065);padding:9px 10px;color:#d9ffe9;display:grid;gap:3px;box-shadow:var(--inset)}
.manager-selected-help b{color:#eafff2;text-transform:uppercase;letter-spacing:.03em;font-size:12px}
.manager-selected-help span{color:#d0f3dc;font-size:12.5px;line-height:1.38}
.motivation-help{display:grid;gap:5px;padding:10px 12px;background:linear-gradient(180deg,rgba(255,190,61,.09),rgba(255,190,61,.045));}
.motivation-help b{color:#fff0c6}
.captain-panel{border-color:rgba(255,220,80,.38);background:linear-gradient(135deg,rgba(255,210,77,.10),rgba(255,255,255,.035));}
.captain-pill{border-color:rgba(255,220,80,.45)!important;background:rgba(255,220,80,.13)!important;color:#fff2b2!important;}
.captain-help{border-color:rgba(255,220,80,.22);}

/* v128 — widoczny kapitan w karcie meczu */
.captain-card-pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  margin:4px 0 10px;
}
.captain-badge{
  display:inline-flex;
  align-items:center;
  gap:3px;
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid rgba(255,220,80,.48);
  background:rgba(255,220,80,.16);
  color:#fff2b2;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  vertical-align:middle;
  white-space:nowrap;
}
.captain-row{
  background:linear-gradient(90deg,rgba(255,220,80,.11),rgba(255,255,255,.02));
}

/* v132 — pogoda w każdym meczu */
.weather-card{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin:10px 0 8px;
  padding:10px 12px;
  border:1px solid rgba(140,205,255,.26);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(83,163,255,.10),rgba(255,255,255,.035));
  box-shadow:var(--inset);
}
.weather-card b{color:#eef7ff;text-transform:uppercase;letter-spacing:.035em;font-size:12px}
.weather-icon{font-size:30px;line-height:1;text-align:center;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.weather-pill{border-color:rgba(140,205,255,.36)!important;background:rgba(83,163,255,.13)!important;color:#eaf6ff!important;}
.weather-sunny,.weather-pill.weather-sunny{border-color:rgba(255,218,92,.42)!important;background:rgba(255,208,64,.12)!important;color:#fff2be!important;}
.weather-nice,.weather-pill.weather-nice{border-color:rgba(255,232,137,.34)!important;background:rgba(255,232,137,.09)!important;}
.weather-cloudy,.weather-pill.weather-cloudy{border-color:rgba(188,205,224,.30)!important;background:rgba(188,205,224,.08)!important;}
.weather-showers,.weather-pill.weather-showers{border-color:rgba(121,197,255,.34)!important;background:rgba(121,197,255,.10)!important;}
.weather-rainy,.weather-pill.weather-rainy{border-color:rgba(82,151,255,.38)!important;background:rgba(82,151,255,.13)!important;}
.weather-storm,.weather-pill.weather-storm{border-color:rgba(180,125,255,.42)!important;background:rgba(180,125,255,.13)!important;color:#efe1ff!important;}
@media(max-width:700px){.weather-card{grid-template-columns:42px 1fr}.weather-icon{font-size:25px}}

/* v133: readable alpha/rules manual */
.rules-head{align-items:flex-start}
.alpha-banner{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:14px;
  border:1px solid rgba(255,190,61,.34);
  border-radius:20px;
  padding:14px 16px;
  background:linear-gradient(180deg,rgba(255,190,61,.13),rgba(0,0,0,.18));
  box-shadow:var(--inset);
}
.alpha-banner b{color:#fff0c6;font-size:15px;text-transform:uppercase;letter-spacing:.04em}
.alpha-banner p{margin:4px 0 0;color:var(--muted);line-height:1.5;font-size:13.5px}
.alpha-icon{font-size:24px;line-height:1}
.rule-card.highlight{
  border-color:rgba(255,190,61,.34);
  background:linear-gradient(180deg,rgba(255,190,61,.09),rgba(15,11,9,.97));
}
.rules-nav-table div{
  align-items:flex-start;
}
.rules-nav-table b{
  min-width:150px;
  white-space:nowrap;
}
.rules-nav-table span{
  text-align:left;
  color:var(--muted);
  font-weight:700;
}
.weather-rule-list{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.weather-rule-list span{
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  padding:8px 10px;
  background:rgba(0,0,0,.16);
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
@media(max-width:760px){
  .alpha-banner{flex-direction:column}
  .rules-nav-table div{display:block}
  .rules-nav-table b{display:block;margin-bottom:4px}
}


/* v140 — panel ostatniego biegu nad obsadą aktualnego biegu */
.last-heat-preview{margin-top:14px;padding:12px 14px;border:1px solid rgba(117,230,167,.26);border-radius:18px;background:linear-gradient(180deg,rgba(117,230,167,.075),rgba(255,190,61,.045));box-shadow:var(--inset)}
.last-heat-preview.muted{opacity:.78;background:rgba(255,255,255,.035)}
.last-heat-preview h3{margin:0 0 4px}
.last-heat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.last-heat-side{border:1px solid var(--line);border-radius:15px;padding:10px 12px;background:rgba(0,0,0,.18);min-width:0}
.last-heat-rider-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.06);min-width:0}
.last-heat-rider-line:last-child{border-bottom:0}
.last-heat-match-total{flex:0 0 auto;color:var(--accent3);font-weight:900;font-size:12px;white-space:nowrap;opacity:.95}
@media(max-width:850px){.last-heat-grid{grid-template-columns:1fr}}
/* v142 — online season panel moved below current match */
.online-season-below-match{margin-top:18px}
.online-season-below-match .season-panel{margin-bottom:0}
.last-heat-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.next-heat-preview .last-heat-match-total{color:var(--accent3);font-size:12px;font-weight:900;opacity:.95;white-space:nowrap}


/* v146 — specjalizacje zawodników */
.mini-stat-chip.spec{
  border-color:rgba(125,211,252,.35);
  background:rgba(14,165,233,.10);
  color:#dff7ff;
}
.rider-mini-info .mini-stat-chip.spec{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* v151 — konto użytkownika, cloud save, statystyki profilu */
.account-grid{grid-template-columns:minmax(280px,0.8fr) minmax(420px,1.2fr);align-items:start}
.account-box label{display:block;margin-top:10px;font-size:12px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.account-box input{width:100%;margin-top:5px;padding:10px 11px;border:1px solid rgba(148,163,184,.35);border-radius:12px;background:rgba(255,255,255,.92);font:inherit;color:#0f172a}
.account-status{margin-top:12px;padding:10px 12px;border-radius:12px;background:#eff6ff;border:1px solid rgba(59,130,246,.20);color:#1d4ed8;font-weight:700}
.account-note{margin-top:10px;color:#64748b}.empty-account p{color:#475569}.account-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 8px}.account-stat-grid div{border:1px solid rgba(148,163,184,.25);background:linear-gradient(180deg,#fff,#f8fafc);border-radius:14px;padding:12px}.account-stat-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:800}.account-stat-grid b{display:block;margin-top:4px;font-size:22px;color:#0f172a}.save-list{display:flex;flex-direction:column;gap:10px}.save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid rgba(148,163,184,.25);border-radius:14px;background:#fff}.save-row small{display:block;margin-top:4px;color:#64748b}.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.achievement{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px;border-radius:14px;border:1px solid rgba(148,163,184,.25);background:#f8fafc}.achievement.unlocked{background:linear-gradient(135deg,#ecfdf5,#ffffff);border-color:rgba(34,197,94,.28)}.achievement.locked{opacity:.62}.achievement-icon{font-size:24px}.achievement small{display:block;color:#64748b;margin-top:3px}.pill.muted{background:#e2e8f0;color:#475569}@media(max-width:900px){.account-grid{grid-template-columns:1fr}.account-stat-grid,.achievement-grid{grid-template-columns:1fr}.save-row{align-items:flex-start;flex-direction:column}}

/* v151 — ciemny, czytelny panel zapisów konta */
.account-box label{color:rgba(245,235,215,.78)}
.account-box input{background:rgba(8,5,3,.72);border-color:rgba(255,190,61,.28);color:var(--text);box-shadow:var(--inset)}
.account-box input::placeholder{color:rgba(245,235,215,.45)}
.account-note,.empty-account p{color:var(--muted)}
.account-status{background:rgba(117,230,167,.10);border-color:rgba(117,230,167,.28);color:#d9ffe8}
.account-stat-grid div{border-color:var(--line);background:linear-gradient(180deg,rgba(255,190,61,.075),rgba(255,255,255,.025));box-shadow:var(--inset)}
.account-stat-grid span{color:var(--muted)}
.account-stat-grid b{color:var(--accent3)}
.save-row{background:linear-gradient(180deg,rgba(255,190,61,.085),rgba(0,0,0,.20));border-color:rgba(255,190,61,.28);box-shadow:var(--inset);color:var(--text)}
.save-row b{color:var(--accent3);text-shadow:0 1px 0 rgba(0,0,0,.35)}
.save-row small{color:rgba(245,235,215,.72)}
.save-row .row{flex:0 0 auto}
.achievement{border-color:var(--line);background:rgba(0,0,0,.18);color:var(--text)}
.achievement.unlocked{background:linear-gradient(135deg,rgba(117,230,167,.13),rgba(255,190,61,.06));border-color:rgba(117,230,167,.28)}
.achievement small{color:var(--muted)}
.pill.muted{background:rgba(255,255,255,.08);color:var(--muted)}

/* v151 — dopracowane osiągnięcia meczowe/sezonowe */
#account-dashboard .achievement-summary{display:flex;align-items:center;gap:10px;margin:8px 0 12px;padding:10px 12px;border:1px solid rgba(255,190,61,.25);border-radius:14px;background:linear-gradient(180deg,rgba(255,190,61,.08),rgba(0,0,0,.20));box-shadow:var(--inset);color:var(--text)}
#account-dashboard .achievement-summary b{font-size:20px;color:var(--accent3)}
#account-dashboard .achievement-summary span{color:var(--muted);font-size:13px}
#account-dashboard .achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#account-dashboard .achievement{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(0,0,0,.28))!important;border:1px solid rgba(255,190,61,.16)!important;color:var(--text)!important;box-shadow:var(--inset)}
#account-dashboard .achievement.unlocked{background:linear-gradient(135deg,rgba(117,230,167,.18),rgba(255,190,61,.08))!important;border-color:rgba(117,230,167,.38)!important}
#account-dashboard .achievement.locked{opacity:.72;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(0,0,0,.32))!important}
#account-dashboard .achievement b{color:var(--accent3)!important;text-shadow:0 1px 0 rgba(0,0,0,.4)}
#account-dashboard .achievement small{color:rgba(245,235,215,.74)!important;line-height:1.35}
#account-dashboard .achievement .pill.muted{background:rgba(148,163,184,.12);border-color:rgba(148,163,184,.20);color:rgba(245,235,215,.72)}
#account-dashboard .achievement-icon{filter:drop-shadow(0 1px 1px rgba(0,0,0,.55))}
@media(max-width:900px){#account-dashboard .achievement-grid{grid-template-columns:1fr}}
/* v151 manager profile polish */
#account-dashboard .manager-profile-card{
  border:1px solid rgba(255,190,61,.25);
  background:linear-gradient(135deg,rgba(255,190,61,.12),rgba(0,0,0,.28));
  border-radius:18px;
  padding:14px;
  margin:10px 0 12px;
  box-shadow:var(--inset);
}
#account-dashboard .manager-profile-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
#account-dashboard .manager-profile-head span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900}
#account-dashboard .manager-profile-head b{display:block;margin-top:4px;font-size:22px;color:var(--accent3);text-shadow:0 1px 0 rgba(0,0,0,.45)}
#account-dashboard .manager-profile-head small{display:block;margin-top:3px;color:rgba(245,235,215,.72)}
#account-dashboard .rep-badge{min-width:76px;text-align:center;border:1px solid rgba(117,230,167,.35);background:rgba(117,230,167,.12);color:#d9ffe8;border-radius:999px;padding:9px 12px;font-weight:900;font-size:18px}
#account-dashboard .rep-bar{height:9px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);margin-top:12px}
#account-dashboard .rep-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#75e6a7,#ffbe3d)}
#account-dashboard .manager-insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 8px}
#account-dashboard .manager-insight{border:1px solid rgba(255,190,61,.16);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.24));padding:12px;min-height:96px;box-shadow:var(--inset)}
#account-dashboard .manager-insight span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:var(--muted);font-weight:900;margin-bottom:5px}
#account-dashboard .manager-insight b{display:block;color:var(--text);font-size:15px;line-height:1.25}
#account-dashboard .manager-insight small{display:block;color:rgba(245,235,215,.68);line-height:1.35;margin-top:4px}
#account-dashboard .muted-text{color:var(--muted)}
@media(max-width:1050px){#account-dashboard .manager-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#account-dashboard .manager-profile-head{align-items:flex-start;flex-direction:column}#account-dashboard .manager-insight-grid{grid-template-columns:1fr}}


/* v160 — regulamin, prywatność, feedback i usuwanie konta */
.feedback-box{border:1px solid rgba(255,190,61,.16);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.26));padding:14px;box-shadow:var(--inset)}
.feedback-box textarea{width:100%;min-height:110px;margin-top:10px;padding:11px 12px;border-radius:13px;border:1px solid rgba(255,190,61,.22);background:rgba(8,5,3,.72);color:var(--text);font:inherit;resize:vertical;box-shadow:var(--inset)}
.feedback-box textarea::placeholder{color:rgba(245,235,215,.45)}
.feedback-box select{min-width:190px}
.ghost-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.035);color:var(--text);font-size:13px;font-weight:800;text-decoration:none}
.ghost-link:hover{border-color:rgba(255,190,61,.35);color:var(--accent3)}
.legal-page{max-width:980px;padding-top:22px;padding-bottom:32px}
.legal-page h1{margin-top:0;color:var(--accent3)}
.legal-page h2{margin-top:22px;color:var(--accent3)}
.legal-page p,.legal-page li{line-height:1.65;color:rgba(245,235,215,.88)}
.footer a{color:var(--accent3);font-weight:800;text-decoration:none}
.footer a:hover{text-decoration:underline}
