:root{--accent:#daff50;--desk-ink:#101813;--desk-line:#425041}
body>header{border-bottom:2px solid #a8c544;background:#111912}
.brand-mark,.pulse-switch button[aria-pressed=true]{color:#161c12!important;background:#daff50!important}
#menu{padding-top:clamp(12px,2vh,24px)}
#menu .menu-intro{border-left:5px solid #daff50;padding-left:18px}
#menu .menu-intro h1{font:900 clamp(44px,6vw,88px)/.92 "Arial Black",Arial,sans-serif;letter-spacing:-.075em;margin:8px 0}
#menu .menu-intro h1 span{display:inline;margin-left:.12em;color:#daff50}
#menu .menu-intro p{margin:6px 0;font-size:16px}
#menu .menu-play{margin-top:16px;gap:clamp(14px,3vw,40px)}
#menu .mode-list>button{min-height:65px;padding:9px 15px}
#menu .mode-list>button span{font-size:23px}
#menu .menu-circuit{max-height:155px;opacity:.75;pointer-events:none}
#menu .watch-menu{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#1a271d;border:1px solid #4d6247;margin:14px 0}
.watch-menu h2{font-size:18px}.watch-menu button{margin-left:auto}.watch-menu>a{color:#daff50}
.pulse-library{color:#ecf3e6;background:#152019;border:1px solid #81946c;width:min(650px,90vw);max-height:78dvh;padding:20px}
.pulse-library::backdrop{background:#080e0bd9}.pulse-library form,.pulse-switch{display:flex;align-items:center;gap:8px}.pulse-library form{justify-content:space-between}.pulse-library summary,.pulse-library a{display:block;padding:12px;border-bottom:1px solid #3d493c;cursor:pointer}.pulse-library summary{display:list-item}.pulse-library a{color:#d9ebbb}.pulse-library small{margin-left:8px}
.pulse-switch{padding:4px 0}.pulse-switch button{font-size:12px;padding:5px 12px;min-height:28px}
#arena[data-panel=Pista] :is(.telemetry,.race-state-strip,.surface-strip,.pit-strip,.incidents,#race-disclosure),#arena[data-panel=Incidentes] :is(.telemetry,.race-state-strip,.surface-strip,.pit-strip),#arena[data-panel=Telemetria] :is(.incidents,#race-disclosure){display:none!important}
@media(min-width:850px){
body:has(#arena:not([hidden])) main{padding:3px 12px 0}
#arena:not([hidden]){box-sizing:border-box;height:calc(100dvh - 62px);display:flex;flex-direction:column;gap:2px;overflow:auto}
#arena>.heading,#arena>.director,#arena>.race-actions{margin:0;padding:3px 8px;min-height:30px}
#arena .arena-grid{flex:1;min-height:200px;grid-template-columns:minmax(0,1fr) minmax(290px,28%);align-items:stretch;margin:0;overflow:hidden}
#arena .circuit{grid-column:1;grid-row:1;min-width:0;display:flex;flex-direction:column;min-height:0}
#arena .circuit-view{flex:1;min-height:0}
#arena #track{height:100%!important;width:100%;position:absolute;inset:0;min-height:0}
#arena .timing{grid-column:2;grid-row:1;overflow:auto;min-height:0}
}
@media(max-width:849px){#menu .menu-circuit{display:none}#menu .watch-menu{flex-wrap:wrap}.watch-menu button{margin-left:0}#arena #track{height:40dvh!important;min-height:190px}#arena .arena-grid{display:flex;flex-direction:column}#arena .circuit,#arena .timing{width:100%}}
@media(min-width:850px){
body:has(#arena:not([hidden]))>footer{display:none}
body:has(#menu:not([hidden])) main{padding-bottom:0}
#menu .menu-footer{margin:0;padding:5px 0;min-height:0}
#menu .menu-intro p{display:none}
#menu .menu-form,#menu .menu-setup{margin:0}
#menu .watch-menu{margin:5px 0;padding:6px 12px}
body:has(#menu:not([hidden]))>footer{min-height:0;padding:5px 16px}
#menu .menu-circuit{overflow:hidden}
}
body{isolation:isolate;background:radial-gradient(ellipse at 76% 19%,#304b40 0,transparent 45%),linear-gradient(140deg,#101d1b,#101717 50%,#22372a);background-attachment:fixed}
body::before{content:"";position:fixed;pointer-events:none;z-index:-1;left:-50%;width:200%;top:24%;height:140%;background-image:linear-gradient(#94d2aa26 1px,transparent 1px),linear-gradient(90deg,#94d2aa26 1px,transparent 1px);background-size:68px 68px;transform:perspective(440px) rotateX(64deg);transform-origin:center 38%;mask-image:linear-gradient(transparent,#000 34%,#000)}
#arena .arena-grid{background:transparent;border:0;gap:10px;padding:4px}
#menu .menu-play,#menu .watch-menu,#arena .circuit,#arena .timing,#arena .pulse-instruments,.preparation-page .setup-panel{background:linear-gradient(150deg,#202c28,#101815);border:1px solid #607769;box-shadow:inset 0 1px #aec6b44a,0 4px 0 #0a100e,0 10px 22px #0008;border-radius:8px}
#menu .menu-play{padding:10px}
#arena:not([data-panel=Pista]) .timing,#arena[data-panel=Pista] .pulse-instruments{display:none!important}
#arena .pulse-instruments{grid-area:1/2;min-width:0;min-height:0;overflow:auto;scrollbar-width:thin;padding:8px;color:#e9f3ee}
#arena .pulse-instruments .telemetry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;background:transparent;border:0}
#arena .telemetry>div{grid-column:auto;min-width:0;padding:6px 8px;border:0;border-bottom:1px solid #4b5c50;background:#202e28}
#arena .telemetry .driver-card{grid-column:1/-1}
#arena .telemetry small,#arena .telemetry-detail{color:#c0cfc4;font-size:11px}
#arena .telemetry strong{font-size:20px;font-variant-numeric:tabular-nums;line-height:1.1}
#arena .telemetry .speed-card strong{color:#dbff63;font-size:26px}
#arena .pulse-instruments :is(.pit-strip,.surface-strip,.race-state-strip){display:flex;flex-wrap:wrap;gap:6px;padding:8px;min-width:0}
@media(max-width:849px){#arena .pulse-instruments{width:100%;max-height:45dvh;box-sizing:border-box}#arena .arena-grid{gap:6px}#arena #track{height:32dvh!important}}
