@font-face{font-family:Rally;src:url('assets/display.woff2') format('woff2');font-style:italic;font-weight:900;font-display:swap}
:root{--pine:#1d382a;--ink:#1e3127;--lime:#d0fa78;--muted:#687366;--paper:#f6f7f1;--line:#dbe0d4;--ui:Inter,"Helvetica Neue",Arial,sans-serif;color-scheme:light;font:16px/1.5 var(--ui);color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:transparent}button:focus-visible,a:focus-visible{outline:3px solid #669a1c;outline-offset:4px}button{touch-action:manipulation}button:disabled{cursor:default}button svg,i svg{width:100%;height:100%;display:block}i[data-i]{display:inline-flex;width:20px;height:20px;flex:none;font-style:normal}h1,h2,h3,p{margin:0}button,a{transition:background-color .16s,color .16s,border-color .16s,box-shadow .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}
#app{min-height:100vh;min-height:100dvh;background:var(--paper)}
#lobby{min-height:100vh;position:relative;isolation:isolate;overflow:hidden}
#lobby:before{content:"";position:absolute;z-index:-1;inset:4.8rem 0 0;background-image:url('assets/relief.png');background-size:690px 460px;opacity:.33;mask-image:linear-gradient(105deg,#000,transparent 37%,transparent 66%,#000);pointer-events:none}
.wrap{width:min(1280px,calc(100% - clamp(48px,9.6vw,150px)));margin-inline:auto}
.topbar{border-bottom:1px solid var(--line);background:rgba(249,250,245,.98)}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:20px}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);line-height:1}.brand img{width:43px;height:43px}.brand span{display:grid;gap:6px}.brand strong{font-size:25px;font-weight:800;letter-spacing:-1.35px}.brand small{font:700 10px/1 var(--ui);letter-spacing:2.55px}
nav{display:flex;align-self:stretch;gap:26px}.nav-item{position:relative;display:flex;align-items:center;gap:9px;font-size:.91rem;font-weight:650;color:#697268;padding:0 2px}.nav-item i{width:18px;height:18px}.nav-item.current{color:var(--pine)}.nav-item.current:after{content:"";position:absolute;bottom:0;height:3px;left:0;right:0;background:#547e37;border-radius:2px 2px 0 0}.nav-item:hover{color:#35683c}
.header-actions,.hero-actions,.race-buttons{display:flex;align-items:center;gap:10px}.icon-button,.fullscreen{height:40px;border:1px solid #d5dcd0;background:#fafbf7;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.icon-button{width:42px}.fullscreen{gap:9px;padding:0 15px;font-size:.875rem;font-weight:650}.icon-button i,.fullscreen i{width:17px;height:17px}.icon-button:hover,.fullscreen:hover{background:#eaf0e4}
main.wrap{padding-top:26px}.hero{min-height:430px;height:clamp(430px,34vw,480px);display:flex;align-items:center;position:relative;isolation:isolate;overflow:hidden;border-radius:22px;background:#14251c;color:#fff;box-shadow:0 6px 22px #1e331209}.hero-photo,.hero-shade{position:absolute;inset:0;z-index:-2}.hero-photo{left:6%;background:url('assets/yayla-start.webp') right 43% / cover no-repeat}.hero-shade{z-index:-1;background:linear-gradient(90deg,#0e241afc 0%,#10271cf2 19%,#132b20cb 36%,#182d206b 54%,#14291c08 76%),linear-gradient(0deg,#07170f47,transparent 24%)}.hero-shade:before{content:"";position:absolute;inset:0;background:url('assets/relief.png') 0 center / 720px auto;mask-image:linear-gradient(to right,#000 0%,transparent 40%);filter:brightness(1.8);opacity:.39}
.hero-copy{padding:31px clamp(26px,4.2vw,68px);z-index:1}.eyebrow{display:flex;align-items:center;gap:10px;color:#dfefc4;font-size:.73rem;letter-spacing:2.4px;line-height:1.2;font-weight:750}.eyebrow i{width:18px;height:18px;color:var(--lime)}h1{font:italic 900 clamp(91px,7.55vw,118px)/.82 Rally,"Arial Black",Arial,sans-serif;letter-spacing:-.055em;margin:23px 0 19px;text-shadow:0 1px 0 #0001;width:max-content}.atv-word,.safari-word{display:block}.atv-word{color:#fffdf3}.safari-word{color:var(--lime);margin-top:.06em}.dotted{position:relative}.dotted:after{content:"";position:absolute;top:.01em;left:52%;width:.12em;height:.085em;transform:skew(-12deg);background:currentColor}.slashes{display:inline-flex;align-items:flex-end;gap:5px;vertical-align:middle;margin-left:.18em;transform:translateY(-.045em) skew(-18deg)}.slashes b{width:6px;height:.28em;display:block;background:#c8f376}.slashes b:nth-child(2){opacity:.62}.slashes b:nth-child(3){opacity:.28}
.hero-copy p{color:#e0e7dc;font-size:1.025rem;line-height:1.48;letter-spacing:.04px}.hero-actions{gap:12px;margin-top:24px}.primary,.glass,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;min-height:49px;padding:0 23px;font-size:.96rem;font-weight:750}.primary{background:var(--lime);color:#1c311e;box-shadow:0 2px 0 #5a7f3a61}.primary:hover{background:#dfff99;box-shadow:0 3px 15px #d0fa7820}.glass{color:#f5f7ef;background:#ffffff09;border:1px solid #e6eddf63;backdrop-filter:blur(6px);padding-inline:18px}.glass:hover{background:#ffffff22}.secondary{border:1px solid var(--line);background:#f6f8f1}.secondary:hover{background:#e8eddf}.hero-actions i{width:18px;height:18px}

.tracks{margin-top:30px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-heading h2{display:flex;align-items:center;gap:11px;font-size:clamp(24px,2.1vw,32px);letter-spacing:-1.2px;font-weight:780;line-height:1.15}.section-heading h2 i{width:25px;height:25px;color:#506d40}.section-count{font-size:.82rem;color:#687563;font-weight:600}
.track-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.track{width:100%;padding:0;border:1px solid #d5ddce;overflow:hidden;display:flex;flex-direction:column;text-align:left;border-radius:15px;background:#fdfef9;position:relative;isolation:isolate;box-shadow:0 2px 3px #14311704}.track[aria-pressed=true]{border-color:#628d41;box-shadow:0 0 0 2px #83a959}.track:hover{transform:translateY(-2px);border-color:#7f9a66}.track-photo{width:100%;height:clamp(112px,9.2vw,145px);object-fit:cover;display:block}.track-image{position:relative;width:100%;overflow:hidden}.track-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#18221927,transparent 70%);pointer-events:none}.difficulty{position:absolute;left:12px;top:12px;z-index:1;display:flex;gap:6px;align-items:center;border-radius:6px;background:#17271ed6;color:#fff;padding:4px 9px;font-size:.75rem;line-height:1.3;font-weight:700;backdrop-filter:blur(6px)}.bars{display:inline-flex;align-items:flex-end;gap:2px;height:11px}.bars b{width:3px;border-radius:1px;background:#ffffff45;height:5px}.bars b:nth-child(2){height:8px}.bars b:nth-child(3){height:11px}.bars b.on{background:var(--rating,#c7f38e)}.selection{position:absolute;z-index:1;right:11px;top:10px;border-radius:50%;width:25px;height:25px;background:var(--lime);color:var(--pine);display:none;align-items:center;justify-content:center;box-shadow:0 1px 5px #0003}.selection svg{width:16px;height:16px;stroke-width:3}.track[aria-pressed=true] .selection{display:flex}.track-body{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 17px 15px}.track-name{display:block;font-size:1.19rem;font-weight:750;line-height:1.25;letter-spacing:-.55px}.track-meta{display:flex;align-items:center;gap:9px;margin-top:6px;font-size:.795rem;color:#62705f;font-weight:500;line-height:1.3}.track-meta span{display:flex;align-items:center;gap:4px}.track-meta svg{width:14px;height:14px}.track-meta b{width:3px;height:3px;background:#9da79a;border-radius:50%}.course-line{width:64px;height:42px;flex:none;color:#92a789}.track[aria-pressed=true] .course-line{color:#66864d}
footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d9dfd3;margin:27px 0 0;padding:15px 0 20px;color:#73816d;font-size:.79rem;font-weight:550}footer span{display:flex;gap:7px;align-items:center}footer i[data-i]{width:14px;height:14px}
body.in-game{overflow:hidden}#game{position:fixed;inset:0;background:#9bc5b2;color:white;overflow:hidden;touch-action:none;user-select:none;z-index:5}#road,#world{width:100%;height:100%;display:block}
.game-top,.race-metrics,.progress-wrap,.game-bottom,.keyboard-note,#countdown,#raceToast{position:absolute}.game-top{left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between}.race-caption,.race-metrics,.game-icon,.speed,.keyboard-note{background:#11281edb;backdrop-filter:blur(8px);border:1px solid #ffffff32}.race-caption{display:flex;align-items:center;gap:10px;padding:9px 15px 9px 10px;border-radius:12px}.mini-flag{width:33px;height:33px;background:#d3f68f;color:#254329;border-radius:8px;display:grid;place-items:center}.race-caption small,.race-caption strong{display:block;line-height:1.15}.race-caption small,.race-metrics small{font-weight:700;color:#d3e2c4;font-size:.67rem;letter-spacing:1.4px}.race-caption strong{font-size:1rem;margin-top:4px}.game-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center}.game-icon i{width:20px;height:20px}.race-metrics{left:50%;top:max(18px,env(safe-area-inset-top));transform:translateX(-50%);display:flex;border-radius:12px;padding:8px 6px}.race-metrics>div{padding:0 15px;text-align:center}.race-metrics>div+div{border-left:1px solid #ffffff33}.race-metrics small,.race-metrics strong{display:block}.race-metrics strong{font-size:1.2rem;line-height:1.15;font-variant-numeric:tabular-nums}.race-metrics em{color:#d5dfcf;font-size:.82rem;font-style:normal}.race-metrics .star-metric{display:flex;justify-content:center;gap:4px;align-items:center}.star-metric i{color:#fbe179;width:16px;height:16px}.progress-wrap{top:83px;left:50%;transform:translateX(-50%);width:min(30vw,340px);height:5px;background:#17291f66;border-radius:5px;overflow:hidden}#raceProgress{height:100%;background:var(--lime);width:0}#countdown{left:50%;top:39%;transform:translate(-50%,-50%);font:italic 900 clamp(72px,13vmin,150px)/1 Rally,Arial,sans-serif;color:#e0ff9e;-webkit-text-stroke:1px #34572c;text-shadow:0 5px 0 #28432d,0 7px 15px #182c1d70}#raceToast{left:50%;top:25%;transform:translateX(-50%);font-weight:bold;color:#254025;background:#ecffc1;border-radius:20px;padding:5px 16px;opacity:0;transition:opacity .17s;white-space:nowrap}#raceToast.visible{opacity:1}
.game-bottom{left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}.speed{border-radius:12px;padding:7px 17px;display:flex;gap:7px;align-items:baseline}.speed strong{font-size:1.9rem;font-variant-numeric:tabular-nums}.speed span{font-size:.8rem;color:#d7e2ca}.touch-controls{display:none;pointer-events:auto;gap:8px}.touch-controls button{touch-action:none;user-select:none;-webkit-user-select:none;width:59px;height:56px;background:#182d23df;border:1px solid #fff8;color:white;border-radius:14px;font-weight:750;display:grid;place-items:center}.touch-controls [data-drive=gas]{background:var(--lime);color:#254128;border-color:#f1ffd0}.touch-controls button.held{background:#f9ffd0;color:#182d23}.keyboard-note{bottom:24px;right:22px;border-radius:10px;padding:8px 11px;font-size:.8rem}.keyboard-note kbd{font:700 .8rem/1 var(--ui);display:inline-block;padding:4px;background:#fff2;border-radius:3px;margin-right:3px}
dialog{color:var(--ink);padding:0;border:1px solid #e1e8da;border-radius:22px;background:#fbfcf7;width:min(430px,calc(100% - 30px));max-height:calc(100dvh - 24px);box-shadow:0 22px 90px #0b211f40}dialog::backdrop{background:#0c201ac2;backdrop-filter:blur(5px)}.dialog-body{padding:30px;position:relative}.close-button{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#eef1e9}.dialog-emblem{width:47px;height:47px;display:grid;place-items:center;color:#305533;background:#e3f4cb;border-radius:14px;margin-bottom:15px}.dialog-emblem svg{width:24px;height:24px}dialog h2{font-size:1.8rem;letter-spacing:-1px;line-height:1.2;margin:0 40px 13px 0}#dialogContent p{color:#586755;line-height:1.5}#dialogActions{display:flex;gap:9px;flex-wrap:wrap;margin-top:21px}#dialogActions button{flex:auto;min-height:45px;padding-inline:15px}.guide,.records{list-style:none;margin:14px 0 0;padding:0}.guide li,.records li{display:flex;gap:13px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.guide li>svg,.records li>svg{width:22px;height:22px;flex:none;color:#617f48}.guide small,.records small{display:block;font-size:.85rem;color:#60705c}.records li>span{flex:1}.record-time{font-size:.9rem;white-space:nowrap}.result-numbers{display:flex;gap:12px;margin:14px 0}.result-numbers div{flex:1;border-radius:10px;background:#edf2e6;padding:10px 12px}.result-numbers small,.result-numbers strong{display:block}.result-numbers small{font-size:.78rem;color:#5b6d53}.result-numbers strong{font-size:1.35rem}.dialog-body .note{font-size:.85rem;margin-top:12px}.app-full{position:fixed!important;inset:0;z-index:10;overflow:auto;height:100dvh}.app-full #lobby{min-height:100%}
@media(min-width:1550px){main.wrap{padding-top:32px}.tracks{margin-top:34px}}
@media(max-width:900px){.wrap{width:calc(100% - 44px)}.header-inner{min-height:68px}.hero-photo{left:2%}.hero{min-height:405px;height:405px}.hero-copy{padding-left:30px}.track-grid{gap:12px}.track-body{padding:13px}.course-line{width:41px}.game-top .race-caption strong{max-width:140px}.race-metrics>div{padding:0 9px}}
@media(max-width:650px){.wrap{width:calc(100% - 28px)}.header-inner{gap:8px;min-height:64px}.brand{gap:7px}.brand img{width:36px;height:36px}.brand strong{font-size:21px}.brand small{font-size:8px;letter-spacing:2.2px}.brand span{gap:4px}nav{margin-left:auto;gap:0}.nav-item.current{display:none}.nav-item{padding:0 9px}.nav-item span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.nav-item i{width:19px;height:19px}.header-actions{gap:6px}.fullscreen,.icon-button{width:37px;height:37px;padding:0;border-radius:10px}.fullscreen span{display:none}main.wrap{padding-top:14px}.hero{height:clamp(420px,57dvh,508px);min-height:420px;align-items:flex-end;border-radius:17px}.hero-photo{inset:0;background-size:cover;background-position:70% 32%}.hero-shade{background:linear-gradient(0deg,#0e231bef 2%,#11271deb 17%,#132b2099 53%,#14291c04 84%),linear-gradient(90deg,#0e231b94,transparent 80%)}.hero-shade:before{opacity:.18}.hero-copy{padding:22px;width:100%}.eyebrow{font-size:.65rem;letter-spacing:1.9px;gap:7px}.eyebrow i{width:15px;height:15px}h1{font-size:clamp(67px,17vw,82px);margin:16px 0 13px}.hero-copy p{font-size:.95rem;max-width:295px;line-height:1.42}.wide-only{display:none}.hero-actions{gap:8px;margin-top:17px}.primary,.glass{min-height:45px;padding:0 14px;font-size:.87rem;gap:7px}.hero-actions i{width:16px;height:16px}.tracks{margin-top:24px}.section-heading{margin-bottom:13px}.section-heading h2{font-size:24px;gap:7px}.section-heading h2 i{width:22px;height:22px}.track-grid{grid-template-columns:1fr;gap:12px}.track{display:grid;grid-template-columns:minmax(115px,39%) 1fr;align-items:stretch;border-radius:12px;min-height:92px}.track-photo{height:100%;position:absolute;inset:0}.difficulty{top:auto;bottom:7px;left:7px;font-size:.69rem;padding:3px 6px}.selection{width:20px;height:20px;top:6px;right:6px}.selection svg{width:13px;height:13px}.track-body{padding:11px 12px;gap:4px}.track-name{font-size:1.04rem}.track-meta{gap:6px;font-size:.74rem}.course-line{width:34px}.track-meta svg{width:12px;height:12px}footer{margin-top:19px}.game-top{left:10px;right:10px;top:max(10px,env(safe-area-inset-top))}.race-caption{padding:7px;border-radius:9px}.race-caption strong{font-size:.9rem}.race-buttons{gap:5px}.game-icon{width:37px;height:37px}.race-metrics{top:72px}.progress-wrap{top:128px;width:52vw}.game-bottom{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(13px,env(safe-area-inset-bottom))}.dialog-body{padding:24px}}
@media(pointer:coarse),(max-width:800px){.touch-controls{display:flex}.keyboard-note{display:none}.speed{position:absolute;bottom:66px;left:50%;transform:translateX(-50%);padding:1px 11px;border-radius:20px}.speed strong{font-size:1rem}.speed span{font-size:.7rem}}
@media(max-width:360px){.course-line{display:none}.hero-copy{padding:18px}.hero-actions{gap:6px}}
@media(max-height:520px) and (orientation:landscape){.race-metrics{top:8px}.race-metrics>div{padding:0 8px}.progress-wrap{top:65px}.game-top{top:max(7px,env(safe-area-inset-top))}.game-bottom{bottom:9px}.speed{bottom:3px}.touch-controls button{height:46px;width:50px}dialog .dialog-body{padding:16px 23px}dialog .dialog-emblem{display:none}dialog h2{font-size:1.45rem}.guide li,.records li{padding:5px 0}#dialogActions{margin-top:12px}.hero{height:380px;min-height:380px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.mobile-start{display:none}
@media(max-width:650px){.mobile-start{position:fixed;z-index:2;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:9px 15px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fbfcf7f5;box-shadow:0 -4px 18px #29432412;backdrop-filter:blur(12px)}.mobile-start>span{font-weight:700}.mobile-start button{min-height:42px}.show-mobile-start footer{padding-bottom:84px}}

#world{position:absolute;inset:0;background:linear-gradient(180deg,#78b5cc 0%,#b9d3c8 37%,#d7ddbb 65%,#a1ae81 100%)}
.hero-photo{background-position:70% 50%}
@media(max-width:650px){.hero-photo{background-position:75% 34%}}
@media(max-height:460px) and (orientation:landscape) and (pointer:coarse){.speed{bottom:0}}
#world{background: url('assets/yamaclar.webp') center top / 115% 54% no-repeat,linear-gradient(#a2c7cb,#c5d7bd 60%,#91a174)}

.hero-photo{left:24%;background-position:58% 49%}
.route-card{display:grid;grid-template-columns:43% 1fr;overflow:hidden;border:1px solid #cbd6c6;border-radius:17px;background:#fff}
.route-art{min-height:190px;background:#598552 url('assets/yayla-forest.webp') center / cover no-repeat}
.route-details{min-width:0;padding:20px 26px 16px}.route-details p{margin:12px 0 3px;color:#4d6354;font-size:.92rem;line-height:1.45;max-width:64ch}
.route-facts{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.route-facts span{display:inline-flex;align-items:center;gap:6px;font-weight:720;font-size:.88rem}.route-facts i{width:16px;height:16px;color:#587847}
#profile{display:block;width:100%;height:37px;border-bottom:1px solid #bdcdb5}.profile-ends{display:flex;justify-content:space-between;margin-top:4px;font-size:.68rem;font-weight:650;color:#566a54}
#road{position:absolute;inset:0;background:url('assets/yamaclar.webp') center top / 115% 54% no-repeat,linear-gradient(#a2c7cb,#c5d7bd 60%,#91a174)}
#weatherFx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#condition{display:block;color:#d6e6c9;font-size:.69rem;font-weight:600;margin-top:2px}
.opening .race-metrics,.opening .progress-wrap,.opening .game-bottom,.opening .keyboard-note,.opening .race-caption{opacity:0;pointer-events:none}
.race-metrics,.game-bottom,.keyboard-note,.race-caption{transition:opacity .25s}
@media(max-width:650px){.hero-photo{left:0;background-position:59% 12%;background-size:auto 83%;background-color:#1d3424}.route-card{grid-template-columns:1fr}.route-art{min-height:105px}.route-details{padding:14px 16px}.route-facts{gap:12px}.route-section .section-heading h2{font-size:1.38rem}.route-details p{margin:8px 0 2px}.game-top .race-caption strong{max-width:142px;font-size:.8rem}.race-caption .mini-flag{display:none}#raceToast{max-width:94vw;font-size:.83rem}}
@media(max-height:480px) and (orientation:landscape){#condition{font-size:.61rem}.game-top .race-caption{padding:5px 7px}}

.game-bottom{display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"wheel speed gas";align-items:end;gap:10px}
#wheelControl{--turn:0deg;grid-area:wheel;justify-self:start;position:relative;width:clamp(106px,16vmin,155px);aspect-ratio:1;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto}
.wheel-art{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 4px #10231b5c)}.rotor{transform-origin:64px 64px;transform:rotate(var(--turn));transition:transform .12s ease-out}.gripped .rotor{transition:transform .035s linear}
.wheel-zone{position:absolute;top:0;bottom:0;width:50%;border:0;border-radius:64px 0 0 64px;background:transparent;color:#fff;display:flex;align-items:center;justify-content:flex-start;padding:0 3%;touch-action:none}.wheel-zone:last-child{right:0;border-radius:0 64px 64px 0;justify-content:flex-end}.wheel-zone[data-side="-1"]{left:0}
.wheel-zone i{width:14px;height:14px}.wheel-zone:focus-visible,.gas-pedal:focus-visible{outline:3px solid #e3fcb2;outline-offset:1px}
.game-bottom .speed{grid-area:speed;position:static;transform:none;justify-self:center;margin:0}
.gas-pedal{grid-area:gas;justify-self:end;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;display:grid;justify-items:center;align-content:center;gap:7px;min-width:72px;min-height:75px;border-radius:15px;border:1px solid #e4efc99e;background:#192e24ed;color:#fafcf4;font-weight:770;font-size:.9rem;line-height:1;box-shadow:inset 0 -4px #102119,0 2px 5px #12211848}.pedal-tread{display:grid;gap:3px;transform:skew(-12deg);background:#475b4b;padding:4px 6px;border-radius:5px}.pedal-tread b{display:block;width:21px;height:3px;border-radius:2px;background:#bcc9b3}
.gas-pedal.held{background:#e1f7ae;color:#243d25;box-shadow:inset 0 3px #9bbb77}.gas-pedal.held .pedal-tread{transform:translateY(1px) skew(-12deg)}.keyboard-note{bottom:121px}
.opening .game-bottom *{pointer-events:none!important}
@media(max-width:600px) and (orientation:portrait){.game-bottom{grid-template-areas:"wheel speed gas";gap:4px;align-items:center}.game-bottom .speed{justify-self:center}.gas-pedal{min-width:61px;min-height:69px}.game-icon{min-width:42px;min-height:42px}#wheelControl{width:clamp(109px,32vw,145px)}}
@media(any-pointer:coarse),(max-height:520px) and (max-width:1000px){.keyboard-note{display:none}}
@media(max-height:520px) and (orientation:landscape){#wheelControl{width:clamp(84px,25vh,112px)}.gas-pedal{min-width:60px;min-height:61px;gap:4px}.game-bottom{bottom:max(8px,env(safe-area-inset-bottom))}}

.gas-pedal{background:#c4ee82;color:#173521;border-color:#edffce;box-shadow:inset 0 -4px #92b65b,0 3px 7px #14251f3d;border-radius:20px 20px 16px 16px;min-width:70px;min-height:76px;letter-spacing:.01em}
.gas-pedal .pedal-tread{background:#4c6b40}.gas-pedal .pedal-tread b{background:#c6dfa8}.gas-pedal.held{background:#e4ffa9;transform:translateY(2px)}
.photo-stop .game-bottom,.photo-stop .keyboard-note,.photo-stop .race-metrics,.photo-stop .race-caption,.photo-stop .progress-wrap{visibility:hidden;pointer-events:none}
#finder{position:absolute;inset:22% 23%;pointer-events:none;color:#fdfff2bb}
#finder i{position:absolute;width:clamp(14px,3vmin,29px);height:clamp(14px,3vmin,29px);border:2px solid currentColor;filter:drop-shadow(0 1px 2px #27402a88)}
#finder i:nth-child(1){top:0;left:0;border-width:2px 0 0 2px}#finder i:nth-child(2){top:0;right:0;border-width:2px 2px 0 0}#finder i:nth-child(3){bottom:0;left:0;border-width:0 0 2px 2px}#finder i:nth-child(4){bottom:0;right:0;border-width:0 2px 2px 0}
#finder.snap:after{content:"";position:fixed;inset:0;background:#f5f6da;animation:camera-snap .27s ease-out forwards}
@keyframes camera-snap{0%{opacity:.23}100%{opacity:0}}
#photoControls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}
#takePhoto{min-height:52px;display:flex;gap:9px;align-items:center;white-space:nowrap;border:2px solid #edffcc;border-radius:28px;padding:0 20px;background:#dbf6a4;color:#1e3927;font-weight:750}#takePhoto i{width:22px;height:22px}
.souvenir{position:relative;margin:12px 0 3px}.souvenir img{display:block;width:100%;height:150px;object-fit:contain;border-radius:12px;background:#263b31}.souvenir figcaption{font-size:.76rem;color:#4b6550;margin-top:5px}
@media(hover:hover) and (pointer:fine) and (min-width:901px),(hover:hover) and (pointer:fine) and (min-width:650px) and (min-height:560px){
 #wheelControl,.gas-pedal,.game-bottom .pedals{display:none}.game-bottom{display:flex;justify-content:flex-start}.keyboard-note{bottom:24px}
}
@media(max-width:650px){#finder{inset:27% 12% 28%}.game-bottom .speed{align-self:end;margin-bottom:7px}}
@media(prefers-reduced-motion:reduce){#finder.snap:after{display:none}}

.helmet-shelf{margin:17px 0 7px;padding:14px 0 0;border-top:1px solid #dce5d7;text-align:left}
.shelf-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.shelf-title h3{margin:0;font-size:1rem;color:#233e2a}.shelf-title strong{display:flex;align-items:center;gap:4px;color:#645016;font-size:.85rem}.shelf-title svg{width:18px;height:18px;color:#c68a13}
.helmet-shelf p{margin:4px 0 10px;font-size:.85rem;color:#4b6452}
.helmet-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.helmet-list button{display:flex;gap:8px;align-items:center;text-align:left;padding:6px 8px;min-height:47px;border-radius:10px;border:1px solid #d2ddcd;background:white;color:#2a402d}
.helmet-list button[aria-pressed=true]{border-color:#588047;background:#edf6e6}.helmet-list button:disabled{background:#f4f5f1;color:#586458;cursor:default}
.helmet-symbol{position:relative;flex:0 0 24px;width:24px;height:21px;background:var(--paint);border:1px solid #2d423b55;border-radius:58% 57% 22% 31%;box-shadow:inset 4px 2px #ffffff40}
.helmet-symbol:after{content:"";position:absolute;right:-1px;top:8px;width:14px;height:6px;background:#273d43;border-radius:50% 8% 24% 40%}
.helmet-list b,.helmet-list small{display:block;line-height:1.18}.helmet-list b{font-size:.81rem}.helmet-list small{font-size:.75rem;margin-top:2px}
#arrivalBar{position:absolute;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:calc(100% - 24px);width:max-content;padding:9px 10px 9px 12px;border:1px solid #d9eac691;border-radius:15px;background:#102b20ef;color:white;box-shadow:0 4px 12px #10221933}
#arrivalBar[hidden]{display:none}.arrival-identity{display:flex;align-items:center;gap:9px}.arrival-identity strong,.arrival-identity small{display:block;line-height:1.2}.arrival-identity small{font-size:.8rem;color:#d6e5d2;margin-top:3px}.arrival-flag{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:#c6e999;color:#254727}.arrival-flag i{width:20px;height:20px}
#seeResult{min-height:42px;padding:0 13px;white-space:nowrap}
.at-finish .game-bottom,.at-finish .keyboard-note,.at-finish .progress-wrap,.at-finish .race-metrics,.at-finish .race-caption,.at-finish #pause{visibility:hidden;pointer-events:none}
@media(max-height:480px) and (orientation:landscape){#arrivalBar{bottom:max(5px,env(safe-area-inset-bottom));padding:4px 6px 4px 9px}.arrival-flag{width:27px;height:27px}#seeResult{min-height:38px}}
@media(max-width:370px){#arrivalBar{gap:10px}.arrival-flag{display:none}.helmet-list button{gap:5px;padding:5px}}

.race-star-board{margin:14px 0 0;text-align:left}.race-star-board h3{margin:0 0 7px;font-size:.93rem;color:#233e2a}.race-star-board ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
.race-star-board li,.race-star-board li span,.race-star-board li b{display:flex;align-items:center}.race-star-board li{justify-content:space-between;gap:5px;padding:5px 0;font-size:.85rem;border-bottom:1px solid #dce5d7}.race-star-board li span{gap:6px}.race-star-board li i{width:10px;height:10px;border-radius:50%;border:1px solid #405a4255;background:var(--paint)}.race-star-board li b{gap:3px}.race-star-board li svg{width:14px;height:14px;color:#bd8b28}

/* Both modes share the lobby, instruments and steering wheel. */
.estate-plan{background-color:#dfe8d5;background-image:radial-gradient(#acc29e 1px,transparent 1px);background-size:8px 8px;overflow:hidden;display:grid;place-items:center;min-height:158px}
.estate-plan svg{width:100%;height:160px;display:block;filter:drop-shadow(0 1px 1px #829a7140)}
.explore-details .route-details{align-self:center}.plan-key{display:flex;align-items:center;gap:6px;margin-top:15px;font-size:.81rem;color:#4c6354}
.plan-key span{display:inline-block;width:14px;height:6px;background:#f6f0d8;border:1px solid #c5ba9b;border-radius:3px}
.plan-key span+span{margin-left:9px;width:8px;height:8px;border-radius:1px;background:#9a7461;border-color:#775d4c}
.pause-plan{margin:.8rem auto;max-width:350px;border-radius:10px;border:1px solid #cad8c4}.pause-plan svg{height:min(24vh,175px)}
#game.exploring #weatherFx,#game.exploring .race-metrics,#game.exploring .progress-wrap{display:none}
.pedals{grid-area:gas;justify-self:end;display:flex;gap:8px;align-items:end}
.reverse-pedal{pointer-events:auto;touch-action:none;min-width:54px;min-height:59px;border:1px solid #d4e3d18c;border-radius:14px;background:#203c2eeb;color:#f1f6e7;font-weight:720;font-size:.84rem;display:grid;place-content:center;justify-items:center;gap:3px;box-shadow:inset 0 -3px #112a20}
.reverse-pedal i{width:18px;height:18px}.reverse-pedal.held,.reversing .reverse-pedal{background:#d3e2bd;color:#1d382b}
#reverseHint{display:inline-flex;align-items:center;gap:5px}#hudMark svg{width:20px;height:20px}.exploring .race-caption{max-width:55vw}
@media(max-width:650px){
 .explore-details .estate-plan{min-height:125px}.explore-details .estate-plan svg{height:125px}
 .pedals{gap:5px}.exploring .gas-pedal{min-width:57px}.reverse-pedal{min-width:45px;min-height:52px}
 .exploring .game-bottom .speed{padding:2px 6px;gap:3px}.exploring #wheelControl{width:clamp(95px,28vw,130px)}
}
@media(max-height:490px) and (orientation:landscape){.pause-plan{min-height:55px;margin:4px auto}.pause-plan svg{height:15vh}}

.join-race,.direction-cue{position:absolute;left:50%;transform:translateX(-50%);top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:center;gap:8px;color:#f6ffe9;font-size:.9rem;font-weight:740;border:1px solid #e7f3c56b;background:#183629ed;padding:9px 15px;border-radius:25px;white-space:nowrap}.join-race{cursor:pointer;min-height:44px;color:#1e3624;background:#cbf68e;border-color:#f3ffcd;box-shadow:0 3px 14px #102b2640}.join-race i{width:17px;height:17px}.direction-cue{pointer-events:none;padding:5px 12px}.direction-cue b{font-size:1.35rem;line-height:1.35}.direction-cue span{font-variant-numeric:tabular-nums}.plan-key .route-line{height:4px;background:#b95524;border:0}.plan-key .step-line{width:15px;height:7px;border:0;background:repeating-linear-gradient(90deg,#535c56 0 2px,transparent 2px 4px)}
@media(max-width:760px){.join-race,.direction-cue{top:calc(max(12px,env(safe-area-inset-top)) + 70px);font-size:.82rem}.join-race{left:auto;right:max(12px,env(safe-area-inset-right));transform:none}.direction-cue{top:auto;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 70px)}}
#game.opening .direction-cue,#game.photo-stop .direction-cue,#game.at-finish .direction-cue{display:none}
@media(min-width:761px){.direction-cue{top:104px}}

/* Keep the two available courtyard actions together, leaving the riding controls clear. */
.tour-actions{position:absolute;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px}
.tour-actions button,.atv-locator{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 13px;border:1px solid #e2efd382;border-radius:14px;background:#18372df2;color:#fff9eb;font:inherit;font-size:.89rem;font-weight:740;white-space:nowrap;box-shadow:0 2px 12px #19352c29}
.tour-actions button:focus-visible{outline:3px solid #e6f6ac;outline-offset:2px}
.tour-actions button i,.atv-locator i{width:19px;height:19px;display:inline-flex}
.tour-actions button i svg,.atv-locator i svg{width:100%;height:100%}
.tour-actions #joinRace{background:#d0f799;color:#213a25;border-color:#efffc9}
#mountAction kbd{font-family:inherit;font-size:.72rem;line-height:1.4;padding:0 .32em;color:#e9f6da;border:1px solid #f3ffdf70;border-radius:4px}
.atv-locator{pointer-events:none;min-height:36px;gap:6px;font-size:.88rem}.atv-locator i{color:#dfef9a}.atv-locator b{font-variant-numeric:tabular-nums}
.walk-map-key,.walk-map-key span{display:flex;align-items:center;gap:.45rem}.walk-map-key{justify-content:center;margin:.25rem 0 1rem;gap:1rem;font-size:.86rem;color:#334c39}
.walk-map-key i{width:10px;height:10px;background:#145440;clip-path:polygon(50% 0,100% 100%,50% 75%,0 100%)}
.walk-map-key span+span i{clip-path:none;border-radius:2px;background:#a7502c}
#game.on-foot #wheelControl,#game.on-foot .pedals,#game.on-foot .speed,#game.on-foot .drive-note{display:none}
#walkStick{position:relative;grid-area:wheel;justify-self:start;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;width:clamp(105px,17vmin,137px);aspect-ratio:1;border-radius:50%;border:1px solid #d7e5c991;background:radial-gradient(circle,#203c32ad 25%,#213a31c7 64%,#11271ee6);box-shadow:inset 0 0 0 4px #20392b55}
.stick-ring{position:absolute;inset:12%;border-radius:50%;border:1px solid #a7bc9d70}
.stick-ring b{position:absolute;top:1%;left:calc(50% - 3px);border-width:0 3px 5px;border-color:transparent transparent #dcf3c1;border-style:solid}
.stick-ring b:nth-child(2){top:auto;bottom:1%;transform:rotate(180deg)}.stick-ring b:nth-child(3){top:calc(50% - 2px);left:0;transform:rotate(-90deg)}.stick-ring b:nth-child(4){top:calc(50% - 2px);left:auto;right:0;transform:rotate(90deg)}
#stickThumb{position:absolute;left:28%;top:28%;width:44%;height:44%;display:grid;place-items:center;border-radius:50%;border:1px solid #e8f3ca99;background:#415d49ed;color:#e8f6d5;box-shadow:inset 0 -3px #253e30;transform:translate(var(--knob-x,0%),var(--knob-y,0%));pointer-events:none}
#stickThumb i{width:45%;height:45%}#stickThumb svg{width:100%;height:100%}#walkStick.held #stickThumb{background:#c4e68e;color:#28452c}
.stick-zone{position:absolute;background:transparent;border:0;border-radius:32%;width:42%;height:42%;touch-action:none}
.stick-zone:focus-visible{outline:2px solid #e4fab1;outline-offset:-2px}
.stick-up{top:0;left:29%}.stick-down{bottom:0;left:29%}.stick-right{right:0;top:29%}.stick-left{left:0;top:29%}
@media(max-width:850px){
 .tour-actions{top:calc(max(12px,env(safe-area-inset-top)) + 70px);left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));transform:none;justify-content:flex-start;gap:6px}
 .tour-actions button{padding:0 11px}
}
@media(any-pointer:coarse),(max-width:600px){#mountAction kbd{display:none}}
@media(hover:hover) and (pointer:fine) and (min-width:901px),(hover:hover) and (pointer:fine) and (min-width:650px) and (min-height:560px){
 #walkStick{display:none}
}
@media(max-height:490px) and (orientation:landscape){
 .tour-actions{top:calc(max(8px,env(safe-area-inset-top)) + 52px)}
 #walkStick{width:clamp(85px,25vh,108px)}
}

/* Keep the cover first and the visitor controls together directly below it. */
#ana-ekran{padding-top:0}
#ana-ekran .hero{border-top-left-radius:0;border-top-right-radius:0}
.lobby-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;margin:0;border-bottom:1px solid var(--line)}
.lobby-links,.lobby-settings{display:flex;align-items:center}
.lobby-links{align-self:stretch;gap:22px}.lobby-settings{gap:8px}
.lobby-tools .nav-item{display:inline-flex;align-self:stretch;min-height:44px}
.lobby-tools .nav-item span{position:static;clip-path:none;width:auto;height:auto;overflow:visible}
.lobby-settings button{min-width:44px;min-height:44px}
@media(max-width:650px){
 .lobby-tools{gap:6px;min-height:61px}.lobby-links{gap:12px}.lobby-settings{gap:4px}
 .lobby-tools .nav-item{gap:5px;padding:0;font-size:.85rem;line-height:1.2}
 .lobby-tools .nav-item i{width:16px;height:16px;flex-shrink:0}
}
@media(max-width:399px){.lobby-tools .nav-item i{display:none}.lobby-links{gap:10px}}

.guide-link{display:inline-flex;align-items:center;gap:6px;color:var(--pine);font-weight:650;min-height:44px;font-size:.875rem}
.guide-link i{width:17px;height:17px}
@media(max-width:650px){
 .hero-actions .glass,.hero-actions .primary{min-width:0;padding-inline:12px;font-size:.9rem;gap:6px}
 .mobile-start{gap:8px}.mobile-start button{flex:1;min-height:44px;padding-inline:5px}
 .section-heading{flex-wrap:wrap;column-gap:10px;row-gap:0}
}

.mode-picker .section-heading{margin-bottom:12px}
.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2vw,26px)}
.mode-card{display:flex;flex-direction:column;min-width:0;border:1px solid #cdd8c7;border-radius:17px;background:#fff;overflow:hidden}
.mode-visual{position:relative;background:#738666}
.mode-visual img{display:block;width:100%;height:clamp(130px,12.4vw,182px);object-fit:cover;object-position:50% 58%}
.mode-fact{position:absolute;bottom:12px;left:clamp(16px,2vw,25px);display:inline-flex;align-items:center;gap:7px;padding:4px 10px;color:white;background:#162b20eb;border-radius:6px;font-size:.84rem;font-weight:650}
.mode-fact i[data-i]{width:15px;height:15px}
.mode-copy{flex:1;display:flex;align-items:flex-start;flex-direction:column;padding:clamp(16px,1.65vw,23px);padding-top:15px}
.mode-copy h3{font-size:clamp(1.28rem,1.7vw,1.56rem);line-height:1.15;letter-spacing:-.035em}
.mode-copy p{color:#455b4b;font-size:1rem;line-height:1.5;margin:7px 0 15px;max-width:49ch}
.mode-launch{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:9px;padding:0 16px;color:#fff;background:#294a35;font-size:.9375rem;font-weight:700}
.mode-launch:hover{background:#365f43}
.mode-launch i[data-i]{width:17px;height:17px}
.guide-estate{margin:12px 0}
.guide-estate summary{font-weight:650;cursor:pointer;padding:8px 0}
.guide-estate .estate-plan{border-radius:10px}
@media(max-width:600px){
 .mode-grid{grid-template-columns:1fr;gap:12px}
 .mode-card{display:grid;grid-template-columns:32% minmax(0,1fr);border-radius:14px}
 .mode-visual img{position:absolute;inset:0;height:100%}
 .mode-fact{position:relative;bottom:auto;left:auto;align-self:flex-start;padding:0;font-size:.82rem;color:#486047;background:transparent}
 .mode-visual{position:static}
 .mode-card{position:relative}
 .mode-visual img{width:32%;object-position:50% 55%}
 .mode-fact{position:absolute;left:calc(32% + 14px);top:12px}
 .mode-fact i[data-i]{width:14px;height:14px}
 .mode-copy{padding:36px 14px 13px}
 .mode-copy h3{font-size:1.22rem}
 .mode-copy p{font-size:.94rem;line-height:1.38;margin:5px 0 10px}
 .mode-launch{font-size:.9rem;padding:0 12px}
}
