/* SUPER NUNO KART — one 32-bit UI language, artwork and race physics untouched. */
:root{--pixel-ink:#07162c;--pixel-blue:#163756;--pixel-blue2:#244f75;--pixel-light:#91b2cb;--pixel-gold:#ffda54;--pixel-cream:#fff1cc;--pixel-cut:polygon(0 6px,6px 6px,6px 0,calc(100% - 6px) 0,calc(100% - 6px) 6px,100% 6px,100% calc(100% - 6px),calc(100% - 6px) calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 6px),0 calc(100% - 6px));}
.pixel-icon{display:inline-block;width:1.25em;height:1.25em;vertical-align:middle;flex:none;shape-rendering:crispEdges;overflow:visible;image-rendering:pixelated}
/* Paddock, cups, garage and auxiliary screens feel like the same console cartridge. */
#mode.active,#career.active,#options.active,#history.active,#awards.active,#ranking.active{background-image:linear-gradient(120deg,#091b33bd,#0b23458c 55%,#08172bd4),url('assets/paddock-v110.webp');background-size:cover;background-position:center}
#career.active,#awards.active,#ranking.active{background-image:linear-gradient(120deg,#071a31d9,#102741a6,#0a172cd9),url('assets/podium-art.webp')}
.mode-frame,#career .career-panel,#options .settings-panel,.history-panel{background:linear-gradient(180deg,#203e60 0 13px,#102b45 13px 17px,#102740 17px 100%);border:3px solid #8da9c3;border-top:6px solid #ffdc61;border-radius:0;box-shadow:inset 0 0 0 3px #071a31,inset 0 -5px #07182a,0 0 0 3px #081427,6px 8px 0 #061020,0 16px 35px #0006;position:relative}
.mode-frame:before,#career .career-panel:before,#options .settings-panel:before,.history-panel:before{content:'';height:6px;position:absolute;top:0;left:5px;right:5px;background:repeating-linear-gradient(90deg,#fff0ac 0 12px,#b57b2d 12px 24px);pointer-events:none;opacity:.9}
.flow-heading{position:relative;border-bottom:3px solid #7294ad;box-shadow:0 3px #081a2d;text-shadow:2px 2px #061326}
.flow-heading h1{color:#ffe187;text-shadow:2px 2px #7e4c20,4px 4px #061326}
.flow-heading>div>span{color:#add2e4;font-size:11px;text-shadow:1px 1px #07172b}
.flow-mark{padding:7px 10px;border:2px solid #547694;background:#081b32;box-shadow:3px 3px #061124;font-family:'Vila Arcade',monospace;line-height:1.45}
.flow-footer{border-top:2px solid #577c9b;position:relative;color:#b5cde2}
.flow-footer:before{content:'';height:4px;width:52px;background:repeating-linear-gradient(90deg,#ffce55 0 7px,#253f62 7px 14px);position:absolute;top:-3px;right:0}
.mode-card{background:#102a48;border:3px solid #82a7c3;border-top:6px solid var(--accent);box-shadow:inset 0 0 0 2px #10223d,5px 6px #06101f}
.mode-card:focus-visible,.mode-card:hover{box-shadow:inset 0 0 0 2px #fff3b8,5px 6px #06101f,0 0 0 2px var(--accent);outline:0}
.mode-card:focus-visible .mode-number,.mode-card:hover .mode-number{background:var(--accent);color:#102a46}
.mode-number{font-family:'Vila Arcade',monospace;font-size:11px;background:#1d4771;border-bottom:2px solid #061b38;text-shadow:none;color:#fff0c4}
.mode-art{border:0;border-bottom:4px solid var(--accent);box-shadow:inset 0 0 0 2px #122842}
.mode-art>img:first-child{image-rendering:auto}.mode-art .mode-kart{image-rendering:pixelated;filter:drop-shadow(4px 5px #06101bd1)}
.mode-art::after{background:linear-gradient(0deg,#06182b9c,transparent 58%)}
.mode-emblem{width:clamp(39px,6vw,74px);height:clamp(39px,6vw,74px);inset:auto 12px 12px auto;filter:drop-shadow(3px 4px #061124);display:grid;place-items:center;z-index:3}
.mode-emblem .pixel-icon{width:100%;height:100%}
.mode-info{background:linear-gradient(180deg,#1e4268 0 5px,#0d233d 5px 100%);padding:16px 13px 13px}
.mode-info strong{color:#fff1cc;text-shadow:2px 2px #061124;font-size:clamp(16px,2.1vw,26px)}
.mode-info small{color:#c6dced;font-size:12px}
.mode-info b,.career-btn.primary:not(:disabled),.career-tabs button[aria-selected=true],.history-panel>.primary{position:relative;background:linear-gradient(180deg,#fff0a1 0 5px,#ffda54 5px calc(100% - 8px),#e4a52e calc(100% - 8px) calc(100% - 4px),#a76d24 calc(100% - 4px));border:2px solid #ffed9b;border-bottom:3px solid #94601d;box-shadow:inset 0 1px #fff6cc,3px 3px #051023;clip-path:var(--pixel-cut);color:#0c2440;font-family:'Vila Arcade',monospace;font-weight:400;text-shadow:none;letter-spacing:-.025em}
.mode-info b{background:linear-gradient(180deg,#fff5b6 0 4px,var(--accent) 4px calc(100% - 8px),#a57836 calc(100% - 8px) calc(100% - 4px),#684820 calc(100% - 4px));min-height:42px;display:flex;gap:7px;justify-content:center;align-items:center;font-size:clamp(10px,1.15vw,14px)}
.mode-info b i{display:inline-block;width:12px;height:13px;background:currentColor;clip-path:polygon(0 0,4px 0,4px 3px,8px 3px,8px 5px,100% 5px,100% 8px,8px 8px,8px 10px,4px 10px,4px 100%,0 100%)}
.career-summary div{border:2px solid #84a1b8;border-left:4px solid #ffd052;box-shadow:inset 0 -4px #08172d,3px 3px #07172b;background:#1c4162}
.career-summary i{left:9px;width:28px;height:28px;display:grid;place-items:center}.career-summary i .pixel-icon{width:100%;height:100%}
.career-summary b{color:#ffdf68;text-shadow:2px 2px #061325}.career-summary small{color:#d1e7f1}
.career-tabs button,.career-btn,.career-panel select{border:2px solid #769aba;border-bottom:4px solid #06182e;border-radius:0;background:linear-gradient(#38628a 0 3px,#23496d 3px calc(100% - 3px),#173352 calc(100% - 3px));color:#f7ebcb;text-shadow:1px 1px #07172b;box-shadow:2px 3px #061124}
.career-tabs button{font-family:'Vila Arcade',monospace;font-weight:400;font-size:clamp(10px,1.15vw,15px)}.career-tabs button[aria-selected=true]{min-height:44px}
.career-content h2{color:#ffe28d;text-shadow:2px 2px #091a2c}.career-content p{color:#ccdeeb}
.career-cup{--cup-metal:#c58a58;border:3px solid #809ab4;border-top:5px solid var(--cup-metal);background:#162f48;box-shadow:inset 0 -4px #081627,4px 5px #040f1e}
.career-cup[data-cup=silver]{--cup-metal:#bfd3e3}.career-cup[data-cup=gold]{--cup-metal:#ffcf4c}
.cup-art{height:clamp(95px,13.3vw,158px);border-bottom:4px solid var(--cup-metal)}
.career-cup[data-cup=bronze] .cup-art{background:linear-gradient(0deg,#0a1837aa,transparent 80%),url('assets/vila-setor-1.webp') center/cover}
.career-cup[data-cup=silver] .cup-art{background:linear-gradient(0deg,#0a1837aa,transparent 80%),url('assets/vila-setor-5.webp') center/cover}
.career-cup[data-cup=gold] .cup-art{background:linear-gradient(0deg,#0a1837aa,transparent 80%),url('assets/vila-setor-4.webp') center/cover}
.cup-trophy{width:clamp(45px,7vw,80px);height:clamp(45px,7vw,80px);filter:drop-shadow(4px 5px #061124);display:grid;place-items:center}.cup-trophy .pixel-icon{width:100%;height:100%}
.career-cup[data-cup=bronze] .cup-trophy{filter:sepia(.7) saturate(.83) brightness(.88) drop-shadow(4px 5px #061124)}
.career-cup[data-cup=silver] .cup-trophy{filter:grayscale(1) brightness(1.1) drop-shadow(4px 5px #061124)}
.cup-index,.cup-status{font-family:'Vila Arcade',monospace;font-size:10px;background:#071a34;border:2px solid #a6beca;box-shadow:2px 2px #040d1d}.cup-status .pixel-icon{width:12px;height:12px}
.career-cup .career-line{min-height:126px;padding:11px}
.career-cup strong{color:#fff1d5;font-size:clamp(14px,1.5vw,19px);text-shadow:2px 2px #071527}
.career-card,.career-table-wrap{background:#183957;border:2px solid #7595ae;border-left:4px solid #6baad2;box-shadow:inset 0 -3px #08192d,3px 3px #061020;border-radius:0}
.career-card strong{font-family:'Vila Arcade',monospace;font-weight:400;font-size:clamp(12px,1.25vw,16px);color:#fff1cf}.career-card.done,.career-card.equipped{border-left-color:#ffda54}
.career-card progress{height:10px;border:2px solid #6c8aa3;background:#081b31;appearance:none}.career-card progress::-webkit-progress-bar{background:#081b31}.career-card progress::-webkit-progress-value{background:repeating-linear-gradient(90deg,#ffe16b 0 7px,#c18c31 7px 9px)}.career-badge-preview .pixel-icon{width:32px;height:32px}
.career-btn .pixel-icon{width:1.1em;height:1.1em}.career-table th{background:#234c70;color:#fff0bf;font-family:'Vila Arcade',monospace;font-weight:400;padding:8px}
.career-table td{background:#132d48;padding:8px}.career-table tr.you td{background:#384c54;color:#ffdc61}
.pit-hero{border:3px solid #81a3bd;box-shadow:inset 0 -5px #071a31,4px 4px #051020;background-image:linear-gradient(0deg,#06172dda,#091a3060),url('assets/paddock-v110.webp')}
.pit-hero>span{border:2px solid #ffe9a4;border-bottom:3px solid #aa7228;font-family:'Vila Arcade',monospace;font-weight:400;box-shadow:3px 3px #041226}
.pit-hero img{image-rendering:pixelated;filter:drop-shadow(4px 6px #041226)}.pit-hero:before{border-radius:0;clip-path:polygon(14% 0,86% 0,100% 27%,100% 73%,86% 100%,14% 100%,0 73%,0 27%);background:repeating-linear-gradient(135deg,#304b67 0 9px,#3d5974 9px 18px);border:0;box-shadow:inset 0 0 0 4px #91b2cb,inset 0 0 0 8px #1a3854}
.settings-group{background:#173754!important;border:2px solid #7c9db7!important;border-top:4px solid #75a8c8!important;box-shadow:inset 0 -3px #08172b,2px 3px #071326}
.settings-group h2{font-family:'Vila Arcade',monospace;color:#ffe9b1;text-shadow:2px 2px #061326}.settings-group h2 span{border-bottom:3px solid #b78332}
.settings-group .arcade-btn{border-radius:0;border-top:2px solid #98bad1;border-right:2px solid #6388a6;border-bottom:4px solid #081a30;background:linear-gradient(#426687 0 3px,#20476c 3px calc(100% - 4px),#102d49 calc(100% - 4px));box-shadow:2px 3px #07172b}
.pit-tips p{display:flex;align-items:center;gap:8px;line-height:1.35}.pit-tips .pixel-icon{height:23px;width:23px}.controls-guide{background:#0a2038;border:2px solid #6b91b3;border-radius:0;box-shadow:inset 0 -3px #061427}
.controls-keys kbd{border-radius:0;border:2px solid #e9edf0;border-bottom:3px solid #8396a7}
/* Secondary result screens get the same frames, button treatment and iconography. */
.history-panel{width:min(760px,94%);padding:clamp(12px,2.2vw,25px);color:#e4f1fa}.history-panel h1{font:italic 400 clamp(20px,3.4vw,37px)/1.15 'Vila Arcade',monospace;color:#ffe18b;text-shadow:3px 3px #081428;margin:0}
.history-panel p{color:#c6dbeb}.history-list{gap:6px}.history-entry{border:2px solid #688dab;border-left:4px solid #6ba3c9;border-radius:0;background:#183953;box-shadow:inset 0 -3px #0b1b32,2px 2px #051325}
.history-entry.earned,.history-entry.my-rank{border-left-color:#ffda54;background:#284653}.history-entry b{color:#fff2cd}.history-entry strong{font-family:'Vila Arcade',monospace;font-weight:400;color:#ffdc60}.history-entry .pixel-icon{width:20px;height:20px}
.replay-banner,.modal{border-radius:0;border:2px solid #afc4d7;border-top:5px solid #ffda54;background:#0e2945ed;box-shadow:inset 0 0 0 2px #07162c,4px 4px #06101c}
#race #item-btn .pixel-icon{width:65%;height:65%;max-width:34px;max-height:34px;pointer-events:none}
#race #item-btn{display:grid;place-items:center}
#pickup-toast i{border:none;background:none;box-shadow:none;width:28px;height:28px}
#pickup-toast i:after{content:none}
#pickup-toast i .pixel-icon{width:100%;height:100%}
#race.replaying #pickup-toast{visibility:hidden}
@media(max-width:700px){.mode-card{border-width:2px;border-top-width:4px}.mode-number{font-size:9px}.mode-info{padding:8px}.mode-info strong{font-size:13px}.mode-info b{min-height:28px;font-size:10px}.mode-emblem{width:32px;height:32px;right:5px;bottom:5px}.flow-heading>div>span{font-size:8px}.career-summary i{display:none}.career-tabs button[aria-selected=true]{min-height:33px}.career-tabs button{font-size:10px}.career-cup .career-line{min-height:0}.cup-art{height:90px}.cup-trophy{width:46px;height:46px}.pit-tips .pixel-icon{width:18px;height:18px}.mode-frame,#career .career-panel,#options .settings-panel,.history-panel{border-width:2px;border-top-width:4px;box-shadow:inset 0 0 0 2px #071a31,3px 4px #07152a}}
@media(max-height:490px) and (orientation:landscape){.mode-art{height:93px}.mode-info b{min-height:26px;font-size:9px;padding:4px}.mode-info strong{font-size:12px}.mode-emblem{width:31px;height:31px}.flow-heading>div>span{font-size:8px}.career-summary i{display:none}.career-tabs button[aria-selected=true]{min-height:28px}.career-cup .career-line{min-height:78px;padding:6px}.cup-art{height:69px}.cup-trophy{height:38px;width:38px}.flow-mark{padding:4px;font-size:8px!important}.settings-group{padding:5px!important}.pit-tips .pixel-icon{width:17px;height:17px}}
