/* ETAP 35B - Dashboard Premium 2.0. Scoped only to dashboard via .dash-stats sibling. */
#game #view:has(> .dash-stats) > .dash-intro{min-height:205px!important;padding:28px 32px!important;margin-bottom:18px!important;border-radius:18px!important;border-color:#987847a0!important;background:linear-gradient(95deg,rgba(8,16,28,.97),rgba(10,23,39,.91) 58%,rgba(10,23,39,.38)),url('stadium-b.webp') center 47%/cover no-repeat!important;gap:24px;align-items:center;box-shadow:0 18px 40px #0005!important}
#game #view:has(> .dash-stats) > .dash-intro h2{font-size:clamp(29px,3.1vw,43px)!important;line-height:1.12!important;letter-spacing:-.04em!important;margin:10px 0!important}
#game #view:has(> .dash-stats) > .dash-intro p{font-size:13px!important;line-height:1.6!important;max-width:550px}
#game #view:has(> .dash-stats) > .dash-intro>.btn{flex-shrink:0;align-self:flex-start;padding:12px 17px;border-radius:11px;border:1px solid #92774f;background:#22384f;color:#ffe0a3;font-weight:750}
#game #view:has(> .dash-stats) > .dash-intro:after{right:22px;bottom:15px;opacity:.55;letter-spacing:.15em}
#game #view:has(> .dash-stats) > .dash-intro .game-clock{max-width:370px;padding:10px 15px!important;border-radius:11px;background:#0b192bc9!important;box-shadow:inset 0 0 0 1px #5c543d55}
#game #view:has(> .dash-stats) > .dash-intro .game-clock strong{font-size:clamp(15px,1.6vw,20px)!important}
#game #view > .dash-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0 0 20px!important}
#game #view > .dash-stats > .dash-stat{position:relative;display:flex;flex-direction:column;gap:11px!important;min-height:145px!important;padding:22px 20px 19px!important;background:linear-gradient(140deg,#20364d,#132238)!important;border:1px solid #39516a!important;border-radius:16px!important;box-shadow:0 9px 26px #0003;overflow:hidden;transition:border-color .2s,transform .2s}
#game #view > .dash-stats > .dash-stat:before{content:'';position:absolute;left:0;top:20px;bottom:20px;width:3px;border-radius:0 3px 3px 0;background:#f0bd64}
#game #view > .dash-stats > .dash-stat:hover{border-color:#c49c60!important;transform:translateY(-2px)}
#game #view > .dash-stats > .dash-stat > span{font-size:11px!important;line-height:1.5;color:#bdcfe0!important;font-weight:700;letter-spacing:.025em}
#game #view > .dash-stats > .dash-stat > strong{font-size:clamp(23px,2.5vw,34px)!important;color:#fff!important;letter-spacing:-.04em;line-height:1.16!important;font-variant-numeric:tabular-nums}
#game #view > .dash-stats > .dash-stat > small{font-size:11px!important;color:#9fb4c9!important;line-height:1.5;margin-top:auto}
#game #view:has(> .dash-stats) .dash-main{grid-template-columns:minmax(0,1.22fr) minmax(320px,.92fr)!important;gap:18px!important;align-items:start}
#game #view:has(> .dash-stats) .dash-feature,#game #view:has(> .dash-stats) .dash-panel{padding:23px!important;margin-bottom:18px!important;border:1px solid #354c65!important;border-radius:17px!important;background:linear-gradient(145deg,#1a2d43,#132238)!important;box-shadow:0 10px 26px #0002}
#game #view:has(> .dash-stats) .dash-feature{border-color:#8b744c90!important;background:linear-gradient(145deg,#20364b,#14263c)!important}
#game #view:has(> .dash-stats) .dash-section-head{margin-bottom:17px!important;gap:12px;flex-wrap:wrap}
#game #view:has(> .dash-stats) .dash-section-head h3{font-size:17px!important;font-weight:800;letter-spacing:-.015em;color:#f2f6fa}
#game #view:has(> .dash-stats) .dash-label{font-size:9px;letter-spacing:.08em;padding:7px 10px;background:#55472e;color:#ffd88d}
#game #view:has(> .dash-stats) .mc-live-header{border:1px solid #9b594f;border-radius:13px;background:linear-gradient(145deg,#382e34,#1a293d);padding:18px;margin-bottom:18px}
#game #view:has(> .dash-stats) .dash-fixture,#game #view:has(> .dash-stats) .dash-result{gap:15px;padding:17px 5px;line-height:1.35}
#game #view:has(> .dash-stats) .dash-fixture strong,#game #view:has(> .dash-stats) .dash-result strong{font-size:clamp(25px,3vw,38px);color:#ffd17d;font-variant-numeric:tabular-nums;white-space:nowrap}
#game #view:has(> .dash-stats) .dash-fixture span,#game #view:has(> .dash-stats) .dash-result span{font-size:13px;min-width:0;overflow-wrap:anywhere}
#game #view:has(> .dash-stats) .dash-table-row{min-height:45px;padding:12px 10px;gap:10px;font-size:12px;grid-template-columns:28px minmax(0,1fr) 34px 65px}
#game #view:has(> .dash-stats) .dash-table-row.mine{background:#423b2b;border-left:3px solid #efbc62}
#game #view:has(> .dash-stats) .dash-rider{padding:13px 0;gap:13px}
#game #view:has(> .dash-stats) .dash-rider-name{font-size:12px}
#game #view:has(> .dash-stats) .dash-rider-name small{font-size:10px;line-height:1.45}
#game #view:has(> .dash-stats) .dash-ovr{font-size:11px;white-space:nowrap}
#game #view:has(> .dash-stats) .mc-result-link{border-radius:9px;min-height:45px;gap:10px}
#game #view:has(> .dash-stats) .dash-link{font-size:11px;padding:7px 9px}
#game #view:has(> .dash-stats) .dash-task{gap:13px;line-height:1.5}
#game #view:has(> .dash-stats) #dashboard-weekly-calendar{margin-bottom:18px}
#game #view:has(> .dash-stats) #dashboard-weekly-calendar .weekly-calendar{border:1px solid #364d65;border-radius:16px;overflow:hidden}
@media(max-width:1200px){#game #view:has(> .dash-stats) .dash-main{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:900px){#game #view>.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){#game #view:has(> .dash-stats)>.dash-intro{padding:23px 19px!important;min-height:170px!important;align-items:flex-start;flex-direction:column}#game #view>.dash-stats{gap:10px!important}#game #view>.dash-stats>.dash-stat{min-height:134px!important;padding:17px 15px!important}#game #view>.dash-stats>.dash-stat>strong{font-size:clamp(20px,5vw,28px)!important}#game #view:has(> .dash-stats) .dash-feature,#game #view:has(> .dash-stats) .dash-panel{padding:17px!important}#game #view:has(> .dash-stats) .dash-fixture{flex-wrap:wrap}#game #view:has(> .dash-stats) .dash-table-row{font-size:11px}}
@media(max-width:390px){#game #view>.dash-stats{grid-template-columns:1fr!important}#game #view>.dash-stats>.dash-stat{min-height:110px!important}}
@media(prefers-reduced-motion:reduce){#game #view>.dash-stats>.dash-stat{transition:none}}

/* ETAP 35B.1 — korekta kompaktowości pulpitu i kalendarza. */
#game #view:has(> .dash-stats)>.dash-intro{min-height:132px!important;padding:16px 22px!important;margin-bottom:12px!important}
#game #view:has(> .dash-stats)>.dash-intro h2{font-size:clamp(24px,2.4vw,32px)!important;margin:5px 0!important}
#game #view:has(> .dash-stats)>.dash-intro p{font-size:12px!important;margin:4px 0!important}
#game #view:has(> .dash-stats)>.dash-intro .game-clock{padding:6px 10px!important;margin:5px 0!important}
#game #view>.dash-stats{gap:10px!important;margin-bottom:12px!important}
#game #view>.dash-stats>.dash-stat{min-height:95px!important;padding:13px 16px!important;gap:5px!important}
#game #view>.dash-stats>.dash-stat>strong{font-size:clamp(20px,2vw,27px)!important}
#game #view:has(> .dash-stats) .dash-feature,#game #view:has(> .dash-stats) .dash-panel{padding:15px!important;margin-bottom:12px!important}
#game #view:has(> .dash-stats) .dash-section-head{margin-bottom:10px!important}
#game #view:has(> .dash-stats) .dash-main{gap:12px!important}
/* Kalendarz: wyłącznie wybrany dzień, zwięzłe wiersze i limit wysokości. */
#game #dashboard-weekly-calendar{min-width:0;margin:0 0 12px!important}
#game #dashboard-weekly-calendar .weekly-calendar{margin:0!important;overflow:hidden;border-radius:12px}
#game #dashboard-weekly-calendar .weekly-title{padding:8px 12px!important}
#game #dashboard-weekly-calendar .weekly-days{min-width:0}
#game #dashboard-weekly-calendar .week-day{min-height:45px!important;padding:4px 1px!important}
#game #dashboard-weekly-calendar .week-day strong{font-size:14px!important}
#game #dashboard-weekly-calendar .week-events{max-height:235px!important;min-height:0!important;overflow-y:auto;overflow-x:hidden;padding:6px 12px!important;scrollbar-width:thin;scrollbar-color:#50647a #142237}
#game #dashboard-weekly-calendar .week-event-day[hidden]{display:none!important}
#game #dashboard-weekly-calendar .week-event{display:grid!important;grid-template-columns:48px 24px minmax(0,1fr) auto;align-items:center;gap:8px!important;min-height:36px;padding:6px 3px!important;margin:0!important;border-bottom:1px solid #30435a!important;font-size:11px!important}
#game #dashboard-weekly-calendar .week-event-time{min-width:0!important;font-size:11px!important;white-space:nowrap}
#game #dashboard-weekly-calendar .week-event-icon{font-size:15px!important}
#game #dashboard-weekly-calendar .week-event>div{min-width:0;overflow-wrap:anywhere}
#game #dashboard-weekly-calendar .week-event b{font-size:11px!important;line-height:1.35!important}
#game #dashboard-weekly-calendar .week-event small{font-size:10px!important;line-height:1.35!important}
#game #dashboard-weekly-calendar .week-event .btn{padding:5px 9px!important;min-height:30px!important;font-size:10px!important}
#game #dashboard-weekly-calendar .week-footer{padding:6px 12px!important;font-size:9px!important}
@media(max-width:700px){#game #view:has(> .dash-stats)>.dash-intro{padding:15px!important}#game #dashboard-weekly-calendar .week-events{max-height:215px!important}#game #dashboard-weekly-calendar .week-event{grid-template-columns:40px 20px minmax(0,1fr) auto;gap:5px!important}#game #view>.dash-stats>.dash-stat{min-height:90px!important;padding:12px!important}}

/* ETAP 35B.2 — opisy zintegrowane w jednym wierszu kalendarza. */
#game #dashboard-weekly-calendar .week-event-integrated{display:grid!important;grid-template-columns:52px 26px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;min-height:54px!important;padding:9px 12px!important;margin:0!important;border:0!important;border-bottom:1px solid #30445b!important;background:transparent!important}
#game #dashboard-weekly-calendar .week-event-integrated:last-child{border-bottom:0!important}
#game #dashboard-weekly-calendar .week-event-integrated .week-event-time{font-size:12px!important;color:#f0c16b!important;font-weight:800;white-space:nowrap}
#game #dashboard-weekly-calendar .week-event-integrated .week-event-icon{font-size:18px!important;text-align:center}
#game #dashboard-weekly-calendar .week-event-details{display:flex;flex-direction:column;gap:3px;min-width:0;overflow:hidden}
#game #dashboard-weekly-calendar .week-event-details b{display:block;font-size:12px!important;color:#f3f7fc;line-height:1.4!important;white-space:normal;overflow-wrap:anywhere}
#game #dashboard-weekly-calendar .week-event-details small{display:block;font-size:10px!important;color:#9fb2c9;line-height:1.4!important;white-space:normal;overflow-wrap:anywhere}
#game #dashboard-weekly-calendar .week-event-tag{font-size:9px;font-weight:700;color:#91a7be;white-space:nowrap;border:1px solid #34495f;border-radius:7px;padding:5px 7px}
#game #dashboard-weekly-calendar .week-event-action{font:inherit;font-size:11px;font-weight:750;color:#f2c878;background:#243b52;border:1px solid #75613f;border-radius:8px;padding:7px 10px;cursor:pointer;white-space:nowrap}
#game #dashboard-weekly-calendar .week-event-action:hover{background:#354d64}
#game #dashboard-weekly-calendar .week-event-tournament{background:#25354a!important;border-left:3px solid #d9ac60!important}
#game #dashboard-weekly-calendar .week-events{max-height:295px!important;padding:4px 8px!important}
#game #dashboard-weekly-calendar .week-event-day[hidden]{display:none!important}
@media(max-width:650px){#game #dashboard-weekly-calendar .week-event-integrated{grid-template-columns:45px 22px minmax(0,1fr)!important;gap:7px!important;padding:9px 5px!important}#game #dashboard-weekly-calendar .week-event-tag{display:none}#game #dashboard-weekly-calendar .week-event-action{grid-column:3;justify-self:start;margin-top:3px}#game #dashboard-weekly-calendar .week-events{max-height:270px!important}}

/* ETAP 35B.3: prawdziwe spotkania i zintegrowane opisy */
#game #dashboard-weekly-calendar .week-event-fixture{grid-template-columns:52px 24px minmax(0,1fr) auto auto!important;gap:10px!important}
#game #dashboard-weekly-calendar .week-event-fixture.week-event-mine{background:linear-gradient(90deg,rgba(221,164,65,.13),transparent 70%)!important;border-left:3px solid #e9ad43!important}
#game #dashboard-weekly-calendar .week-event-tag-mine{color:#f6cb78!important;border-color:#9a733a!important}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-details b{font-size:12px!important}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-details small{font-size:11px!important}
#game #dashboard-weekly-calendar .week-events{max-height:330px!important}
@media(max-width:760px){#game #dashboard-weekly-calendar .week-event-fixture{grid-template-columns:45px 20px minmax(0,1fr)!important;gap:7px!important}#game #dashboard-weekly-calendar .week-event-fixture .week-event-tag{grid-column:3;justify-self:start}#game #dashboard-weekly-calendar .week-event-fixture .week-event-action{grid-column:3;justify-self:start}}

/* 35B.4 — stabilne wyrównanie i nawigacja do konkretnego spotkania */
#game #dashboard-weekly-calendar .week-event-fixture{grid-template-columns:52px 24px minmax(0,1fr) auto!important;gap:10px!important;min-height:58px!important}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-details{min-width:0;overflow:visible}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-details b{font-size:13px!important;line-height:1.4!important}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-details small{font-size:11px!important;line-height:1.4!important}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-tag-mine{grid-column:3;grid-row:2;justify-self:start;margin-top:-5px}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-action{grid-column:4;grid-row:1 / span 2;justify-self:end;align-self:center;background:#253c55!important;border:1px solid #8c7448!important;color:#ffe0a1!important;padding:8px 12px!important;border-radius:8px!important}
#game #dashboard-weekly-calendar .week-event-fixture .week-event-action:hover{background:#395675!important}
#game #view .calendar-fixture-target{outline:2px solid #efb54f;outline-offset:2px;background:rgba(232,178,75,.13)!important;border-radius:8px}
@media(max-width:760px){#game #dashboard-weekly-calendar .week-event-fixture{grid-template-columns:44px 19px minmax(0,1fr)!important;gap:7px!important}#game #dashboard-weekly-calendar .week-event-fixture .week-event-tag-mine{grid-column:3;grid-row:auto}#game #dashboard-weekly-calendar .week-event-fixture .week-event-action{grid-column:3;grid-row:auto;justify-self:start;margin:2px 0 4px}}
