/* V9.9 REBUILT from V9.8. The town hall sets every illustration's visual language:
   BLUE marker strokes + white paper + occasional yellow hand-drawn accent. */

/* Town hall comic: original facade untouched; tiny figure clearly visible through actual window. */
.town-scene .mascot-window-wrapper{pointer-events:none}
.town-scene .mascot circle{stroke:#2952e3;stroke-linecap:round}
.town-scene .comic-accent{transform-box:fill-box;transform-origin:center;pointer-events:none}
.town-scene .dust{pointer-events:none}
.town-scene{touch-action:pan-y}

/* Formula is redrawn on white paper, not a pale technical illustration on navy. */
#eforce.formula{
 background:#f3f7ff!important;
 color:#10182f!important;
 border-block:4px solid #10182f;
}
#eforce.formula:before{border-color:rgba(41,82,227,.18)!important}
#eforce .formula-copy{
 background:#fffdf7!important;
 border:3.3px solid #10182f!important;
 box-shadow:7px 8px 0 #d6e0f8!important;
 border-radius:18px 28px 15px 23px!important;
 color:#10182f!important;
}
#eforce .formula-copy:before{border-color:rgba(41,82,227,.22)!important}
#eforce .formula-copy .big,#eforce .formula-copy .text,#eforce .formula-copy .eyebrow{
 color:#10182f!important;
}
#eforce .formula-copy .tag{
 color:#10182f!important;
 background:#ffe58a!important;
 border:2.6px solid #10182f!important;
}
#eforce .formula-copy .btn{
 color:#2952e3!important;
 border:2.6px solid #2952e3!important;
 background:#fffdf7!important;
}
#eforce .formula-stage-card{
 background:#fffdf7!important;
 border:3.3px solid #10182f!important;
 box-shadow:8px 9px 0 #d6e0f8!important;
 border-radius:23px 15px 28px 19px!important;
 overflow:visible;
}
#eforce .formula-stage-card:before{border-color:rgba(41,82,227,.22)!important}
#eforce .formula-stage-card:after{background:#2952e3!important;height:6px!important;opacity:.86!important}
#eforce .formula-stage-card svg{
 display:block;
 width:100%;
 height:auto;
 color:#2952e3!important;
 overflow:visible!important;
 filter:none!important;
 transform:none!important;
}
#eforce .formula-stage-card .marker{color:#2952e3!important}
#eforce .formula-stage-card .racecar .car-art path{fill:none!important}
#eforce .formula-stage-card .racecar .wheel circle{fill:none!important;stroke:#2952e3!important}
#eforce .formula-stage-card .speed-lines{stroke:#2952e3!important}
#eforce .formula-stage-card .car-spark{stroke:#e5b323!important}
#eforce .formula-stage-card .track{stroke:#2952e3!important;stroke-width:7.5!important}
#eforce .formula-stage-card .car-note{color:#2952e3!important;text-shadow:none!important}
#eforce .car-stage{min-height:290px}
.overview-car .marker{color:#2952e3!important}
.overview-car path,.overview-car circle{stroke-linecap:round;stroke-linejoin:round}

/* Europe: geography is recognisable but sketched with thick round-ended marker ink.
   Exactly ONE outline over each country and an accurately clipped soft marker wash.
   No hatching, no straight zigzag grids and absolutely no lines outside the borders. */
#cesty .travel-map-panel{
 background:#f9fbff!important;
 border:3.5px solid #10182f!important;
 border-radius:24px 17px 29px 19px!important;
 box-shadow:7px 8px 0 #d8e3fa!important;
 overflow:hidden!important;
 transform:rotate(-.3deg)!important;
}
#cesty .travel-map-panel:before{
 border:2.3px solid rgba(41,82,227,.21)!important;
 transform:rotate(.5deg)!important;
}
#cesty .travel-map-panel .europe-sketch{
 overflow:visible!important;
 transform:none!important;
 width:100%;height:auto;
}
#cesty .travel-map-panel .europe-map-shapes .eu-country{
 fill:#fffef9!important;
 stroke:none!important;
 filter:none!important;
 transition:none!important;
}
#cesty .travel-map-panel .europe-map-shapes .eu-country:nth-child(3n){fill:#f1f5ff!important}
#cesty .travel-map-panel .europe-map-shapes .eu-country.visited,
#cesty .travel-map-panel .europe-map-shapes .eu-country.home,
#cesty .travel-map-panel .europe-map-shapes .eu-country.home.visited{
 fill:#fffef9!important;
 stroke:none!important;
}
#cesty .travel-map-panel .marker-washes{pointer-events:none}
#cesty .travel-map-panel .marker-wash{
 fill:#90b0f6!important;
 opacity:.53!important;
 stroke:none!important;
}
#cesty .travel-map-panel .country-ink{pointer-events:none}
#cesty .travel-map-panel .ink-reveal{
 transform-box:fill-box;
 transform-origin:0% 50%;
 transform:scaleX(0);
}
#cesty .travel-map-panel .marker-washes.is-playing .ink-reveal{
 animation:bf-v99-draw-country .85s cubic-bezier(.25,.65,.25,1) both;
 animation-delay:calc(var(--order) * 125ms);
}
#cesty .travel-map-panel .marker-washes.is-complete .ink-reveal{transform:scaleX(1)}
@keyframes bf-v99-draw-country{
 from{transform:scaleX(0)}
 to{transform:scaleX(1)}
}
#cesty .travel-map-panel .marker-borders{pointer-events:none}
#cesty .travel-map-panel .marker-border{
 fill:none!important;
 stroke:#2952e3!important;
 stroke-width:3.0!important;
 vector-effect:non-scaling-stroke;
 stroke-linecap:round!important;
 stroke-linejoin:round!important;
 opacity:1!important;
 filter:none!important;
}
#cesty .travel-map-panel .map-home-mark{pointer-events:none}
#cesty .travel-map-panel .map-stamp{color:#2952e3!important;top:5px!important;right:13px!important}
#cesty .travel-map-panel .map-legend{justify-content:center!important;gap:7px!important;font-size:10px!important}
#cesty .travel-map-panel .legend-visited{background:#90b0f6!important}
#cesty .travel-map-panel .map-legend .legend-home{background:#2952e3!important}
#cesty .travel-map-panel:focus-visible{outline:3px dashed #2952e3;outline-offset:6px}

@media(max-width:760px){
 #eforce.formula{border-block-width:3px}
 #eforce .formula-copy,#eforce .formula-stage-card{box-shadow:5px 6px 0 #d6e0f8!important}
 #eforce .car-stage{min-height:240px!important;padding-bottom:36px!important}
 #eforce .formula-stage-card{padding:13px 6px 28px!important}
 #cesty .travel-map-panel{padding:17px 6px 13px!important;transform:none!important;box-shadow:4px 5px 0 #d8e3fa!important}
 #cesty .travel-map-panel .marker-border{stroke-width:2.4!important}
 #cesty .travel-map-panel .map-stamp{font-size:29px!important;top:1px!important;right:7px!important}
}
@media(prefers-reduced-motion:reduce){
 #cesty .travel-map-panel .ink-reveal{animation:none!important;transform:scaleX(1)!important}
}
