/* Shared visual language: deep blue stage, pale surfaces, outlined picture cards. */
:root{--pink:#db3e73;--orange:#e77824;--yellow:#ffce54;--ink:#172f49;--paper:#eef4fa;--line:#718eaa;--blue:#2056a3;--muted:#4c6379}
button{min-height:44px;border:2px solid #718eaa;border-radius:12px;background:linear-gradient(180deg,#fff,#e8f0f8);color:#183b60;box-shadow:0 3px 0 #16385922;font-weight:800;transition:background .15s,box-shadow .15s}
button:hover:not(:disabled){border-color:#1d5a9e;box-shadow:0 4px 0 #16385933}button:disabled{cursor:default;color:#52677b;background:#dbe4ec;border-color:#a0b3c3;box-shadow:none}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #de7800;outline-offset:3px}
button.big{border-color:#b64f16;background:linear-gradient(135deg,#f6a23c,#dc6222);text-shadow:0 1px 1px #81410c;color:#fff;box-shadow:0 4px 0 #91450e}button.alt2,.tabs button.on,.career-tabs button.on{border-color:#123a74;background:linear-gradient(135deg,#3579c6,#214a91);color:#fff}button.alt,.back,#garageClose{background:#e0eaf4;border-color:#6d8cac;color:#254b71}button.danger{border-color:#b54e5c;background:#ffe6ea;color:#9a233b}
input,select{border:2px solid #6f8eac;border-radius:10px;background:#fff;color:#182f46;min-height:46px}input:focus,select:focus{outline:3px solid #76b6ee;outline-offset:2px}label{font-size:14px;color:#264764}.mini,.note{opacity:1;color:var(--muted)}a{color:#1c5896}p{line-height:1.6}h2,h3{line-height:1.35}h3{font-size:17px}
.screen{padding:24px;background:radial-gradient(ellipse at 15% 5%,#24516cde,transparent 65%),linear-gradient(135deg,#10253cf5,#142443ed 70%,#2a344cf2)}
.panel{width:min(640px,100%);max-height:calc(100dvh - 48px);border:3px solid #79a5c4;border-radius:22px;background:linear-gradient(145deg,#f7fbff,#e9f0f8);padding:26px;box-shadow:0 0 0 6px #091b3070,0 20px 70px #020e2380;color:var(--ink);scrollbar-color:#8faac1 #dbe6ef;scrollbar-width:thin;overscroll-behavior:contain;touch-action:pan-y}
.panel.scroll{max-height:calc(100dvh - 48px)}.panel h2{font-size:27px;margin:0 0 20px;padding-bottom:15px;border-bottom:2px solid #adc2d4;color:#193c61}.panel h3{margin-top:0}.grp{border:1px solid #9eb4c7;border-radius:14px;background:#fff;padding:14px;margin:16px 0}.msg:empty,#garageMsg:empty,.who:empty{display:none}.tabs,.career-tabs{gap:6px;padding:6px;border:1px solid #92acc2;background:#d6e2ee;border-radius:14px;margin:12px 0 20px}.tabs button,.career-tabs button{background:#f6faff;border:1px solid #92acc2;box-shadow:none;min-height:42px;font-size:14px}.tabs.wrap{justify-content:flex-start}.tabs.wrap button{flex:1 0 auto}.back{margin-top:22px}.eyebrow{display:block;font-size:12px;font-weight:900;letter-spacing:.12em;color:#45718f}.brand-label{font-size:13px;letter-spacing:.15em;font-weight:900;color:#c3e4ff}
/* Home */
#title{background:radial-gradient(ellipse at top left,#316c86,#142d47 52%,#101c32)}.title-panel{width:min(1160px,100%);padding:18px 22px 12px;background:#19324c;border:2px solid #6a98b7;box-shadow:0 24px 80px #081222a0;color:white}.home-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.home-top .language-choice{margin:0}.home-top label{font-size:11px;color:#d8eaff}.home-top .language-choice select{min-height:36px;margin:0;padding:5px 10px;font-size:14px}.home-layout{display:grid;grid-template-columns:1.03fr 1fr;gap:24px}.home-hero{position:relative;border-radius:16px;overflow:hidden;min-height:440px;background:#0d283e;border:1px solid #6d9bb9}.home-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:43% 50%}.home-hero:after{position:absolute;content:'';inset:0;background:linear-gradient(0deg,#0b2037 0%,#0b2037e8 17%,#0b203700 66%)}.home-hero-copy{position:absolute;z-index:1;bottom:25px;left:25px;right:16px}.home-hero-copy .eyebrow{color:#8cdef2;letter-spacing:.04em}.logo{font-size:clamp(36px,5vw,60px);transform:none;text-shadow:0 3px 0 #0d253f;margin:10px 0;letter-spacing:-.03em;color:#fff}.logo span{display:block;transform:none;color:#ffd568;margin:5px 0 0}.sub{font-size:15px;color:#d6e9f5;margin:12px 0 0}.home-menu{display:flex;flex-direction:column;gap:12px;min-width:0}.home-menu .who{margin:0;color:#a9d9f3;text-align:right;font-size:13px;min-height:0}.play-tile{display:flex;align-items:center;gap:10px;width:100%;text-align:left;height:108px}.play-tile img{width:124px;height:93px;object-fit:contain}.play-tile span{font-size:29px}.play-tile b{margin-left:auto;font-size:27px}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu-tile{display:flex;align-items:center;gap:6px;text-align:left;min-height:103px;background:#eaf4fb;border:2px solid #82aacc;border-bottom:4px solid #7194b5;padding:8px 10px;border-radius:13px;box-shadow:none}.menu-tile img{width:78px;height:72px;object-fit:contain;flex-shrink:0}.menu-tile span{font-size:15px;line-height:1.5}.home-utility{margin:0;gap:8px}.home-utility button{flex:1;min-width:0;font-size:12px;background:#294a69;border:1px solid #789bb8;color:#fff;box-shadow:none;padding:9px}.home-menu .note{font-size:11px;color:#c0d6e9;margin:0;line-height:1.5}.home-footer{display:flex;gap:18px;justify-content:flex-end;align-items:center;border-top:1px solid #50708e;margin-top:16px;padding-top:12px;color:#9cbbd4;font-size:11px}.home-footer span{margin-right:auto}.home-footer a{color:#c1e6ff}.title-panel .col{margin:0}
/* Shop */
.garage-panel{width:min(1000px,100%);max-width:1000px;max-height:calc(100dvh - 48px)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.section-heading h2{border:0;padding:0;margin:4px 0 0}.money{font-size:23px;color:#fff;background:linear-gradient(120deg,#21496e,#123352);border:2px solid #6c92b2;border-radius:12px;padding:10px 18px;margin:0;white-space:nowrap}.garage-tabs button{flex:1;min-width:0}.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.shop-card{position:relative;display:flex;flex-direction:column;align-items:stretch;background:#fff;border:2px solid #829fb8;border-bottom:5px solid #7594ae;border-radius:16px;margin:0;padding:12px;min-width:0;overflow:hidden}.catalog-art{display:block;max-width:100%;width:100%;height:140px;object-fit:contain;background:radial-gradient(ellipse,#e5f4ff,#f2f6fb 72%);border:1px solid #c2d4e4;border-radius:10px;margin:0 0 12px}.shop-card h3{font-size:16px;margin:3px 0 8px;line-height:1.5}.item-price{margin:0 0 8px;color:#19528c;font-size:20px;font-weight:900}.item-stat{align-self:flex-start;background:#e4f4f5;border:1px solid #8cc5ce;border-radius:6px;padding:3px 8px;font-size:12px;color:#1d6373;font-weight:800;margin-bottom:10px}.shop-card button{margin-top:auto;background:linear-gradient(145deg,#3379c1,#224f91);border-color:#1c477c;color:#fff;width:100%}.shop-card button:disabled{background:#e1e9f0;color:#48647d;border-color:#9ab0c4}.shop-card.equipped{border-color:#328f98;background:#f5fffd}.shop-card.equipped button{background:#d5f1e9;border-color:#78b1a1;color:#23634e}.shop-card.locked .catalog-art{filter:saturate(.4)}.shop-card details{font-size:12px;padding:8px 0 10px;line-height:1.5}.shop-card details p{font-size:12px;color:#4b6278}.character-card .catalog-art{height:180px}.character-card p:empty{display:none}.story-card{display:flex;gap:20px;align-items:center;background:#fff;border:2px solid #839fb7;border-left:6px solid #2a679f;border-radius:15px;padding:16px;margin-bottom:14px}.story-card>.catalog-art{width:140px;height:110px;margin:0;flex-shrink:0}.story-card>div{flex:1}.story-card h3{margin:0}.story-card p{font-size:13px;margin:7px 0}.story-card progress{display:block;width:100%;height:10px;accent-color:#25859c;margin:10px 0}.reward{display:block;color:#98620a;font-size:14px}.wing-note{grid-column:1/-1}
#garage[data-category=upgrade] .shop-card:not([data-kind=upgrade]),#garage[data-category=clothes] .shop-card[data-kind=upgrade],#garage:not([data-category=story]) #storyList,#garage:not([data-category=characters]) #characterList,#garage[data-category=story] #shopList,#garage[data-category=characters] #shopList,#garage[data-category=clothes] .wing-note{display:none}
/* Events and challenges */
.career-panel{width:min(1040px,100%)}#careerList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#careerList>.info-fold,#careerList>p{grid-column:1/-1;margin:0}.career-card{display:flex;flex-direction:column;min-width:0;margin:0;padding:13px;border:2px solid #829eb7;border-bottom:5px solid #7593ac;background:#fff;border-radius:16px}.career-card .catalog-art{height:125px}.career-card h3{font-size:17px;margin:1px 0 8px}.career-card>p{font-size:13px;line-height:1.7;color:#3a536c;margin:0 0 12px}.career-card>button{width:100%;margin-top:auto;background:linear-gradient(135deg,#3379c1,#234d8c);border-color:#174276;color:#fff}.career-card details{font-size:12px;padding:0 0 12px}.career-card details p{line-height:1.7}.career-intro p{font-size:13px}#careerOverview{background:#dce9f4;border:1px solid #99b4cc;border-radius:10px;padding:9px 13px;font-size:13px}#careerDifficultyBox{justify-content:flex-end;font-size:13px;margin:0 0 16px}#careerDifficultyBox select{width:auto;min-width:170px;margin:0}
/* Forms, help, multiplayer, pause, results and map */
#login .panel,#account .panel{width:min(560px,100%)}#login form{padding:15px;background:#fff;border:1px solid #a3b9cd;border-radius:13px;margin-bottom:12px}#login form button{width:100%;margin-top:18px}#account .row button{flex:1}#login label:first-child{margin-top:0}.how-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.how-cards article{background:#fff;border:2px solid #8da9c0;border-radius:14px;padding:10px}.how-cards img{width:100%;height:95px;object-fit:contain}.how-cards h3{font-size:15px;margin:8px 0}.how-cards p{font-size:12px;color:#4a6178;margin:0}#how .panel{width:min(960px,100%)}.info-fold{background:#fff;border:1px solid #90abc2;border-radius:12px;padding:13px 15px;margin:14px 0}summary{cursor:pointer;font-weight:800;color:#2a5478;min-height:24px}.keys{font-size:13px}.keys th,.keys td{padding:10px 7px;border-color:#c3d2df}.keys th{background:#e5eef7}.technique-guide{background:#e7f1f8;border:1px solid #b4cbde}.panel ul{font-size:13px}#pause .panel{width:min(660px,100%)}#pause .col{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}#pause .col button{min-width:0;width:100%;font-size:14px}#pause #btnResume{grid-column:1/-1;font-size:22px}#pause #btnToTitle{grid-column:1/-1;background:#dce7f1}#pause .language-choice{display:inline-block;margin:0}#pause .mini{font-size:11px;margin:7px 0}#partyScr .panel{width:min(650px,100%)}#partySetup{padding:16px;background:#fff;border:1px solid #9db6cc;border-radius:14px;text-align:left}#partyCreate{width:100%;margin-top:14px}#partySetup .grp{margin-bottom:0;background:#e9f1f8}.room-code{background:#fff;border:2px dashed #5c88af;border-radius:14px;padding:14px;color:#1d5893;font-variant-numeric:tabular-nums}#partyMembers{background:#e6f0f6;border:1px solid #9bb4c8;padding:12px;border-radius:12px}.mapwrap{background:#e5eef6}.mapwrap canvas{display:block;max-width:100%;margin:auto;border:6px solid #244c70;border-radius:14px}.mapwrap .mini{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px}.mapwrap h2{text-align:left}.rplace{font-size:44px!important;color:#155c99!important;border-bottom:0!important;margin:0!important;padding:0!important}.big-num{font-size:42px;font-variant-numeric:tabular-nums;background:linear-gradient(135deg,#163d60,#235d8d);color:#fff;border:2px solid #6e9abd;border-radius:14px;padding:12px;margin:14px 0!important}#result .panel{width:min(660px,100%)}.rcourse{font-size:17px;color:#3a6485}#rSub{font-size:13px;color:#50667b}#careerResult{font-size:13px;border:1px solid #a4bfd1;background:#fff;border-radius:12px;padding:12px}#careerResult:empty{display:none}.rlist{display:block;padding:10px 12px 10px 38px;background:#dce9f3;border:1px solid #98b3cb;border-radius:12px;line-height:1.8}.rlist .me{color:#a92755}#result .row button{flex:1;min-width:0;font-size:14px}
/* Rankings */
#rank .panel{width:min(920px,100%)}#rankModes button{font-size:15px}#rankTabs button{font-size:12px;max-width:100%}#rankRules,#rankCount{font-size:11px;line-height:1.7}#rankLocal{background:linear-gradient(135deg,#1d466e,#26658f);color:white;border:2px solid #75a1be;border-radius:12px;font-size:17px;font-weight:800;padding:13px 15px}.rank-row{background:#fff;border:1px solid #a8bdce;border-radius:10px;margin:7px 0;padding:12px}.rank-row.me{color:#173e69!important;background:#e0f3f6;border:2px solid #258599}.rank-row strong{font-size:17px}#rankRefresh{background:#fff}
/* Keep driving readable without changing control positions or target sizes. */
#raceBox,#freeBox,#walletHUD,#board,#prompt,#course{background:#f3f8ffed;border:2px solid #6085a6;color:#18344e}#course h3{color:#1d5a92}#course{border-width:3px}.iconbtn{background:#f3f8ffed;border:1px solid #6385a4}#skillHUD{background:#163453dd;border:1px solid #87a8c6}#careerStatus:not(:empty){border:1px solid #7da4be;background:#edf7ffed;color:#244662}.tb{border:2px solid #6787a6;background:#f1f7fff0;color:#1d3b58}.tb.pedal{background:linear-gradient(145deg,#ef9560,#d65c34);border-color:#ae4b28}.tb.boost{background:linear-gradient(145deg,#ffc75b,#df951f);color:#45320e;border-color:#b07a1a}.tb.on{background:#b6edee;color:#173e55}.graphics-recovery .panel{color:#19344e}#splash,#loading{background:#0e2339}.opening-start{border-color:#a6d0e7;background:linear-gradient(135deg,#23567c,#102c4c)}
@media(max-width:800px){.screen{padding:16px}.panel,.panel.scroll,.garage-panel{max-height:calc(100dvh - 32px)}.home-layout{gap:16px;grid-template-columns:.9fr 1fr}.menu-tile img{width:55px;height:60px}.menu-tile span{font-size:13px}.home-hero{min-height:430px}.home-hero-copy{left:18px}.home-top .brand-label{font-size:11px}#careerList{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-art{height:120px}}
@media(max-width:600px){.screen{padding:12px}.panel,.panel.scroll,.garage-panel{max-height:calc(100dvh - 24px);padding:18px;border-radius:18px}.panel h2{font-size:23px;margin-bottom:16px}.title-panel{padding:12px;max-height:calc(100dvh - 24px)}.home-layout{grid-template-columns:1fr;gap:12px}.home-top{margin-bottom:10px}.home-top .brand-label{font-size:10px;letter-spacing:.07em}.home-top label{font-size:0;gap:0}.home-top .language-choice select{font-size:13px;min-width:114px;min-height:34px}.home-hero{min-height:150px;height:24dvh;max-height:205px}.home-hero>img{object-position:50% 48%}.home-hero:after{background:linear-gradient(90deg,#10243dea,#10243d30 70%)}.home-hero-copy{bottom:17px;left:17px}.home-hero-copy .eyebrow{font-size:10px}.home-hero .logo,.home-hero .logo span{font-size:30px;line-height:1;display:inline-block;margin:7px 4px 0 0}.home-hero .sub{font-size:11px;margin-top:8px}.home-menu{gap:10px}.home-menu .who{font-size:11px}.play-tile{height:70px;min-height:70px;padding:4px 16px}.play-tile img{width:90px;height:65px}.play-tile span{font-size:24px}.home-grid{gap:9px}.menu-tile{min-height:77px;padding:4px 7px;gap:5px}.menu-tile img{width:54px;height:58px}.menu-tile span{font-size:12px}.home-utility button{font-size:11px;padding:8px 5px}.home-menu .note{font-size:10px}.home-footer{margin-top:12px;gap:12px;padding-top:10px}.home-footer,.home-footer a{font-size:10px}.section-heading .money{font-size:19px;padding:10px 12px}.garage-tabs{position:sticky;top:-18px;z-index:2;box-shadow:0 4px 0 #e9f0f8}.garage-tabs button{font-size:12px;padding:8px 3px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-card{padding:9px;border-radius:12px}.catalog-art{height:110px;margin-bottom:9px}.shop-card h3{font-size:13px}.item-price{font-size:17px}.shop-card button{font-size:12px;padding:9px 5px}.item-stat{font-size:11px}.story-card{padding:12px;gap:12px}.story-card>.catalog-art{width:76px;height:88px}.story-card h3{font-size:14px}.story-card p{font-size:12px}.career-card{padding:10px}.career-card .catalog-art{height:90px}.career-card h3{font-size:14px}.career-card p{font-size:11px}.career-card button{font-size:12px;padding:9px 4px}.career-tabs button{flex:1;font-size:11px;padding:8px 5px}.career-tabs button:last-child{flex-basis:100%}#careerDifficultyBox{font-size:12px}#careerDifficultyBox select{min-width:130px}.how-cards{grid-template-columns:1fr}.how-cards article{display:grid;grid-template-columns:80px 1fr;gap:0 12px;align-items:center}.how-cards img{width:80px;height:76px;grid-row:1/3}.how-cards h3{margin:0}.how-cards p{font-size:12px}.keys{font-size:11px}.keys td,.keys th{padding:9px 3px}.info-fold{padding:11px}.rank-row{grid-template-columns:58px minmax(0,1fr) auto;gap:6px;font-size:12px}.rank-row strong{font-size:14px}#rankLocal{font-size:14px}.mapwrap canvas{width:100%;max-height:65dvh;object-fit:contain}.rplace{font-size:38px!important}.big-num{font-size:34px}#result .row button{font-size:12px;padding:10px 7px}}
@media(max-height:500px) and (min-width:601px){.screen{padding:10px}.panel,.panel.scroll,.garage-panel{max-height:calc(100dvh - 20px)}.home-hero{min-height:360px}.home-hero-copy .logo{font-size:40px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.play-tile::after{content:"→";margin-left:auto;font-size:27px}.nav-art{width:46px;height:38px;object-fit:contain;vertical-align:middle;margin-right:5px}

.home-hero .logo{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
#garage[data-category=upgrade] #shopList{grid-template-columns:repeat(3,minmax(0,1fr))}#shopList{padding:14px;background:#d6e3ef;border:1px solid #8ba6bf;border-radius:16px}
@media(max-width:600px){#garage[data-category=upgrade] #shopList{grid-template-columns:repeat(2,minmax(0,1fr))}#shopList{padding:9px}.home-hero-copy .sub{margin-top:5px}}

#rankTabs{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:6px;scrollbar-width:thin}#rankTabs button{flex:0 0 155px;max-width:155px;white-space:normal;line-height:1.6}.rank-info{margin:8px 0 14px;padding:10px 13px;font-size:12px}.character-card.locked .catalog-art{filter:grayscale(.5) brightness(.72)}

.bell-ico{display:inline-flex;align-items:center;vertical-align:middle}.bell-ico img{width:26px;height:26px;object-fit:contain}
