*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#092e36;color:#fff5da;font-family:var(--font,'Trebuchet MS',sans-serif);font-weight:700;user-select:none}body{--font:'Trebuchet MS',sans-serif;--gold:#f6d18a;--cyan:#62f3e4;--ink:#102e38}canvas#world{position:absolute;inset:0;width:100%;height:100%}.screen{position:absolute;inset:0}.hidden{display:none!important}.panel{border:14px solid transparent;border-image:url('assets/ui-panel.webp') 90 fill / 24px / 0 stretch;filter:drop-shadow(0 5px 8px #0a202530)}.plate{font:900 clamp(15px,1.5vw,21px) var(--font);color:#fff5dc;text-shadow:1px 2px 1px #133a43,-1px -1px #133a43;border:12px solid transparent;border-image:url('assets/ui-button.webp') 85 fill / 20px / 0 stretch;min-height:48px;padding:4px 22px;cursor:pointer;background:transparent;transition:transform .13s,filter .13s;outline:none;letter-spacing:.04em}.plate:hover,.plate.selected,.plate:focus-visible{filter:brightness(1.25);transform:translateY(-2px)}.plate:active{transform:scale(.95)}.primary{color:#fff9df;min-width:230px}.screen:not(.hidden){animation:enter .25s cubic-bezier(.2,.8,.2,1.2)}#title{background:linear-gradient(0deg,#072d42c9,transparent 40%),url('assets/title-bg.webp') center/cover}#titleLogo{position:absolute;left:50%;transform:translateX(-50%);top:1%;width:78%;height:32%;object-fit:contain;filter:drop-shadow(0 6px 10px #16354070);animation:logo .65s cubic-bezier(.18,.8,.22,1.2),float 4s 1s infinite ease-in-out}.title-actions{position:absolute;bottom:6%;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:9px}.title-actions .primary{animation:glow 2s infinite}.title-actions button:last-child{font-size:15px;min-height:46px;padding:2px 25px}#cinema{background:url('assets/title-bg.webp') center/cover;z-index:10}#intro{width:100%;height:100%;object-fit:cover}#skip{position:absolute;right:22px;top:18px;min-width:110px}.subtitle{position:absolute;bottom:7%;left:20%;width:60%;text-align:center;font-size:clamp(17px,2.3vw,26px);text-shadow:2px 2px 2px #092e36,-2px -2px #092e36;background:#092e368f;padding:10px 18px;border-radius:5px}#garage{padding:22px 34px;background:linear-gradient(115deg,#062c39f7 0%,#103d45e8 50%,#194855b8 100%),url('assets/title-bg.webp') center/cover}.garage-head{display:flex;align-items:center;justify-content:space-between;height:15%}small,.eyebrow{color:var(--gold);font-size:13px;letter-spacing:.12em}h1{font-size:clamp(25px,3.7vw,46px);font-weight:900;margin:4px 0;text-shadow:2px 3px #061f30}h2{font-size:clamp(18px,2.2vw,28px);font-weight:900;line-height:1.25;margin:8px 0 12px}p{font-size:clamp(14px,1.35vw,18px);line-height:1.55;font-weight:600;margin:10px 0}.credit{display:flex;gap:25px;align-items:center;padding:4px 18px;min-width:180px}.credit b{color:var(--cyan);font-size:28px}.garage-main{height:48%;display:grid;grid-template-columns:22% 44% 29%;gap:2.5%;align-items:center}.pilot-card{height:100%;position:relative;overflow:hidden;mask-image:linear-gradient(#000 85%,transparent)}.pilot-card img{width:100%;height:100%;object-fit:contain;object-position:bottom}.pilot-name{position:absolute;bottom:13%;left:5%;font-size:14px;letter-spacing:.08em;text-shadow:2px 2px #092e36}.garage-copy{padding:0 10px}.garage-copy .eyebrow{color:var(--cyan)}.control-hint{color:var(--gold);font-size:14px}.prizes{font-size:13px;line-height:1.4;color:#aad8d8;margin-top:12px}.preview{height:90%;position:relative;text-align:center;background:#08293455}#preview{width:100%;height:86%;display:block}#skinTitle{position:absolute;bottom:5%;width:100%;font-size:17px;color:var(--gold)}.skin-row{height:19%;display:flex;gap:12px;align-items:center;justify-content:center}.skin{height:88%;flex:1;display:flex;flex-direction:column;justify-content:center;gap:6px;text-align:center;min-width:0;font-size:17px;position:relative}.skin.selected:before{content:'';width:40%;position:absolute;top:5px;height:3px;background:var(--cyan);box-shadow:0 0 10px var(--cyan);left:30%}.skin small{color:#d0efea;font-size:14px;letter-spacing:0}.skin-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;background:var(--swatch);box-shadow:0 0 10px var(--swatch)}.garage-bottom{display:flex;justify-content:space-between;align-items:center;height:17%;gap:15px}.garage-bottom span{font-size:13px;color:#8ab7ba}.garage-bottom .primary{min-width:260px}#hud{position:absolute;inset:0;pointer-events:none}.hud-top{display:flex;gap:10px;position:absolute;top:14px;left:18px;right:76px;height:83px}.hud-stat{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:4px 12px;flex:0 0 205px}.hud-stat small{font-size:12px;white-space:nowrap}.hud-stat strong{font-size:29px;font-weight:900;line-height:1.15;font-variant-numeric:tabular-nums;color:white;text-shadow:2px 2px #052c3a}.hud-stat span{font-size:12px;color:#a7d6d4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-stat{flex-basis:165px}.rank-stat strong{color:var(--gold)}.rank-stat span{font-size:11px}.shift-stat{flex-basis:185px}.shift-stat strong{color:var(--cyan)}#mapWrap{position:absolute;right:18px;top:92px;width:188px;height:128px;padding:0}#minimap{width:100%;height:100%;display:block}#dashboard{position:absolute;left:50%;bottom:17px;transform:translateX(-50%);width:285px;height:80px;display:flex;gap:15px;align-items:center;padding:0 11px}#dashboard .speed b{font-size:35px;display:block;line-height:1;text-shadow:2px 2px #052c3a;font-style:italic}#dashboard .speed small{font-size:12px}#dashboard .energy{flex:1}#dashboard small{font-size:11px;letter-spacing:.07em}#dashboard .meter{height:7px;background:#07232d;border:1px solid #7caaa4;margin:7px 0}#energyFill{height:100%;display:block;background:var(--cyan);box-shadow:0 0 8px #62f3e459;width:100%;transition:width .08s}#itemText{font-size:12px;color:var(--gold)}#notice{position:absolute;top:24%;left:50%;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#062e3fe0 15%,#062e3fe0 85%,transparent);padding:12px 40px;color:var(--gold);font-weight:900;font-size:clamp(18px,2.5vw,28px);text-align:center;white-space:nowrap;text-shadow:1px 2px #082536;animation:enter .2s}#tutorial{position:absolute;top:110px;left:20px;max-width:58%;padding:6px 12px;font-size:14px;color:#fff1cb}#radio{position:absolute;left:50%;top:39%;transform:translateX(-50%);width:380px;display:flex;align-items:center;gap:12px;background:linear-gradient(90deg,#0e3445d9,#0e3445c0,transparent);border-left:3px solid #6bead4;min-height:54px;padding:6px 12px}#radio img{width:55px;height:56px;object-fit:cover;object-position:top}#radio span{font-size:15px;line-height:1.5;text-shadow:1px 2px #052536}#ending{display:flex;align-items:center;justify-content:center;background:#082b4299;backdrop-filter:blur(4px)}.end-panel{width:65%;text-align:center;padding:35px}.end-panel h1{color:var(--gold)}#medals{font-size:42px;color:var(--gold);letter-spacing:15px}#endBest{color:var(--cyan);font-size:28px;font-variant-numeric:tabular-nums}@keyframes enter{from{opacity:0;scale:.97;translate:0 10px}to{opacity:1;scale:1;translate:0 0}}@keyframes float{0%,100%{translate:0 0}50%{translate:0 -5px}}@keyframes glow{50%{filter:brightness(1.22)}}@keyframes logo{from{opacity:0;top:-8%;scale:.8}to{opacity:1;top:1%;scale:1}}
@media(max-height:520px){#garage{padding:12px 22px}.garage-head{height:16%}.garage-head small{font-size:12px}h1{font-size:25px}.credit{min-width:140px;padding:0 6px;height:50px}.credit b{font-size:22px}.garage-main{height:45%;grid-template-columns:18% 52% 26%;gap:2%}.garage-copy{padding:0}.garage-copy h2{font-size:19px;margin:3px 0 5px}.garage-copy p{font-size:14px;line-height:1.3;margin:5px 0}.prizes{font-size:12px;margin-top:4px}.pilot-name{font-size:12px}.eyebrow{font-size:12px}.skin-row{height:22%;gap:9px}.skin{font-size:15px;padding:3px 8px;gap:4px}.skin small{font-size:12px}.garage-bottom{height:17%}.garage-bottom .primary{min-width:220px}.garage-bottom span{font-size:12px;max-width:55%}.hud-top{top:9px;left:10px;gap:6px;height:66px;right:67px}.hud-stat{flex-basis:160px;padding:0 7px;border-width:10px}.hud-stat strong{font-size:23px}.hud-stat small{font-size:12px;letter-spacing:.03em}.hud-stat span{font-size:12px}.rank-stat{flex-basis:132px}.rank-stat span{display:none}.shift-stat{flex-basis:150px}#mapWrap{width:144px;height:88px;top:81px;right:12px;border-width:10px}#dashboard{width:232px;height:65px;bottom:10px;gap:10px;border-width:10px}#dashboard .speed b{font-size:28px}#dashboard .energy small{font-size:11px}#dashboard .meter{margin:4px 0}#itemText{font-size:12px}#notice{top:22%;font-size:20px;padding:7px 28px}#tutorial{top:81px;left:10px;max-width:63%;font-size:13px;padding:3px 8px;border-width:10px}#radio{top:40%;width:320px;min-height:44px}#radio img{height:40px;width:40px}#radio span{font-size:14px}.title-actions{bottom:5%;gap:8px}.title-actions .plate{min-height:44px;font-size:16px;padding:2px 20px}#skip{top:12px;right:12px}.end-panel{padding:18px}.end-panel h1{font-size:34px}#medals{font-size:30px}#endBest{font-size:24px}.preview{height:94%}#skinTitle{font-size:14px}}
