@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');
:root{--cream:#fff9ec;--gold:#edc985;--muted:#adbec0;--ink:#102c35}*{box-sizing:border-box}body{margin:0;background:#123a47;color:var(--cream);font-family:'DM Sans',sans-serif;overflow:hidden}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button{color:inherit}#world,#vignette{position:fixed;inset:0;width:100%;height:100%}#vignette{pointer-events:none;background:linear-gradient(90deg,rgba(5,27,35,.82),transparent 65%),linear-gradient(0deg,rgba(6,30,36,.5),transparent 25%)}header{position:fixed;top:0;left:0;right:0;z-index:5;padding:28px 4%;display:flex;justify-content:space-between;align-items:center}.brand{text-decoration:none;color:var(--cream);font:800 24px Outfit,sans-serif;letter-spacing:1px}.brand>span:last-child{font-weight:400}.brand-icon{color:var(--gold);margin-right:10px;font-size:32px}.header-right{display:flex;gap:18px;align-items:center}.tag,.eyebrow,label,.tiny{font-size:10px;letter-spacing:2px;font-weight:700}.tag{border:1px solid #ffffff32;border-radius:30px;padding:9px 14px}.icon-button{border:1px solid #ffffff36;background:#143c46a8;border-radius:50%;width:38px;height:38px;font-size:20px}#menu{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1600px;margin:auto;height:100dvh;padding:100px 5% 65px}.intro{width:60%}.eyebrow{color:var(--gold);line-height:1.6}.eyebrow>span{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);margin-right:7px}h1{font:800 clamp(45px,5.8vw,90px)/1.02 Outfit,sans-serif;letter-spacing:-3px;margin:25px 0}h1 em{font-style:normal;color:var(--gold)}.intro>p{color:#d3dfdd;line-height:1.8;font-size:15px}.features{display:flex;gap:22px;color:#d1dfdf;font-size:11px;margin-top:28px}.hero-caption{display:flex;gap:17px;align-items:center;margin-top:42px}.hero-caption>span{border:1px solid #ffffff40;border-radius:100%;width:55px;height:55px;display:grid;place-items:center;font-size:11px}.hero-caption div{font-size:9px;letter-spacing:2px;color:var(--muted)}.hero-caption strong{display:block;color:var(--cream);letter-spacing:0;font:500 20px Outfit;margin-top:6px}.panel{background:linear-gradient(135deg,#173f47ed,#102e38f5);border:1px solid #b0cfbd35;border-radius:20px;box-shadow:0 20px 80px #061c2830;backdrop-filter:blur(20px)}.setup{width:360px;flex-shrink:0;padding:27px}.section-top{display:flex;justify-content:space-between;align-items:center}.section-top .eyebrow{font-size:8px;letter-spacing:1.5px}.tiny{font-size:8px;color:#8db1a9;letter-spacing:1px}h2{font:600 28px Outfit;margin:10px 0 25px;letter-spacing:-.5px}label{display:block;font-size:9px;letter-spacing:1.6px;color:#b1c6c5;margin:18px 0 9px}input:not([type=range]),select{width:100%;border:1px solid #bbd2cf35;color:var(--cream);border-radius:8px;background:#153740;padding:12px;font-size:13px}select option{background:var(--ink)}.segmented{display:flex;border-radius:8px;padding:4px;background:#082934}.segmented button{width:50%;border:0;background:transparent;padding:10px;border-radius:6px;color:#a7bfbe;font-size:12px}.segmented .active{background:#31535a;color:#fff}.label-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.label-row label{margin:0}.label-row>span{font-size:10px;color:#d4e0db}#colors{display:flex;gap:10px;margin-top:12px}.swatch{border:2px solid transparent;border-radius:10px;background:#ffffff08;flex:1;display:flex;align-items:center;gap:9px;padding:10px;font-size:11px}.swatch.active{border-color:var(--gold);background:#edc9850d}.swatch i{width:22px;height:22px;border-radius:6px;box-shadow:inset 0 -4px #0003}.text-button{border:0;background:none;color:var(--gold);font-size:10px;padding:0}#trackSelect{margin-top:10px}.track-meta{display:flex;justify-content:space-between;color:#90b2b1;font-size:10px;margin:10px 0 22px}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--gold);color:#193c42;border:0;border-radius:9px;padding:15px 18px;font-weight:800;font-size:14px;box-shadow:0 5px 20px #edc98515}.primary:hover{background:#ffe0a8;transform:translateY(-1px)}.primary span{font-size:22px}.micro{text-align:center;font-size:9px;color:#90abaa;line-height:1.6;margin:13px 0 0}.secondary{width:100%;border:1px solid #ffffff30;background:transparent;border-radius:9px;padding:13px;margin-top:12px}footer{position:fixed;bottom:24px;left:4%;right:4%;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.7px;color:#b3c9c5;z-index:2}.hidden{display:none!important}dialog{color:var(--cream);background:#143740;border:1px solid #779e964d;border-radius:22px;padding:30px;max-height:85dvh;max-width:900px;width:90%;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#041a25a8;backdrop-filter:blur(9px)}.dialog-heading{display:flex;justify-content:space-between}.close{font-size:30px;background:none;border:0;align-self:flex-start}#trackGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.track-card{border:1px solid #ffffff20;background:#ffffff05;border-radius:12px;text-align:left;padding:13px}.track-card:hover,.track-card.selected{border-color:var(--gold);background:#e8c58412}.track-card .track-number{color:var(--gold);font:600 26px Outfit}.track-card strong{display:block;font:500 14px Outfit;margin:10px 0}.track-card small{font-size:9px;color:#a7c2bd}.race-top{position:fixed;left:4%;top:100px;display:flex;gap:12px}.hud-box{background:#102e38d9;border:1px solid #ffffff26;border-radius:12px;padding:13px 20px;display:flex;flex-direction:column;gap:4px}.hud-box>span{font-size:9px;letter-spacing:1.5px;color:#b5d0cc}.hud-box strong{font:600 26px Outfit;font-variant-numeric:tabular-nums}.hud-box small{color:#8dadac;font-size:16px}.hud-box b{font-weight:600}.position{flex-direction:row;align-items:center;gap:8px}.position>strong{font-size:42px;color:var(--gold)}#ranking{position:fixed;right:4%;top:100px;width:245px;padding:20px}h3{font:500 19px Outfit;margin:5px 0 16px}.rank-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid #ffffff12;gap:8px;font-size:11px}.rank-row b{color:var(--gold);margin-right:9px}.rank-row time{font-variant-numeric:tabular-nums;color:#bed0cb}.empty-rank{font-size:12px;color:#a8c5bf;line-height:1.8}.race-bottom{position:fixed;bottom:40px;left:4%;right:4%;display:flex;align-items:end;gap:35px}.speed strong{font:600 64px/.9 Outfit}.speed>span{font-size:10px;color:#bed1ce;margin-left:8px}.speed-bar{height:4px;background:#ffffff30;margin-top:14px;width:150px}.speed-bar i{display:block;height:100%;background:var(--gold);width:0}.item{display:flex;flex-direction:column;align-items:center;justify-content:center;width:110px;height:90px;border:1px solid #e8c58480;background:#173b45dc;border-radius:14px}.item>span{font-size:30px;color:var(--gold)}.item small{font-size:9px}.race-info{margin-left:auto;text-align:right;display:flex;flex-direction:column;gap:8px}.race-info strong{font-size:12px;letter-spacing:2px;color:var(--gold)}.race-info span{font-size:11px}#message{position:fixed;top:40%;left:0;right:0;text-align:center;pointer-events:none;font:800 clamp(40px,8vw,100px) Outfit;color:#fff5d6;text-shadow:0 5px 35px #102d38;z-index:8}#resultDialog,#pauseDialog{max-width:470px;text-align:center}#pauseDialog p{font-size:13px;line-height:2;color:#bbceca}.result-star{color:var(--gold);font-size:50px}.result-time{font:600 48px Outfit;color:var(--gold);margin:24px 0}.result-stats{display:flex;justify-content:space-around;margin-bottom:25px}.result-stats span{display:block;font-size:8px;letter-spacing:1px;color:#b4cbc6}.result-stats strong{display:block;font:500 19px Outfit;margin-top:8px}#resultDialog .primary{margin-top:20px}#touch{display:none}#volume{width:100%;margin:18px 0;accent-color:var(--gold)}body.racing #vignette{background:linear-gradient(0deg,#082a3870,transparent 30%)}
@media(min-height:850px){.setup{padding:32px}.setup label{margin-top:22px}.setup .label-row label{margin:0}}
@media(max-width:900px){h1{font-size:62px}.intro{width:50%}.features{gap:10px;flex-wrap:wrap}.setup{width:325px;padding:22px}.intro .eyebrow{font-size:8px}.tiny{display:none}#ranking{width:200px}.race-info{max-width:220px}}
@media(max-width:650px){body:not(.racing){overflow:auto}#menu{height:auto;min-height:100dvh;display:block;padding:105px 22px 70px}.intro{width:100%}h1{font-size:52px;margin:16px 0;letter-spacing:-2px}h1 br:nth-child(2){display:none}.intro>p{font-size:13px}.features{margin:18px 0 28px}.hero-caption{display:none}.setup{width:100%;padding:23px}.intro>.eyebrow{font-size:8px}header{padding:18px 22px}.brand{font-size:19px}.tag{display:none}.header-right{gap:8px}footer{position:relative;bottom:auto;margin-top:-42px;left:22px;right:auto;font-size:7px}footer span:last-child{display:none}#trackGrid{grid-template-columns:repeat(2,1fr)}dialog{padding:22px}.race-top{top:80px;left:12px;gap:6px}.hud-box{padding:10px 12px}.hud-box strong{font-size:20px}.position>strong{font-size:31px}#ranking{top:165px;right:12px;padding:10px;width:155px}#ranking h3{font-size:14px}#ranking .eyebrow{font-size:7px}#ranking .rank-row{font-size:9px;padding:6px 0}#ranking .micro{font-size:7px}#ranking .rank-row:nth-child(n+4){display:none}.empty-rank{font-size:10px}.race-bottom{left:16px;right:16px;bottom:135px;gap:14px}.speed strong{font-size:44px}.speed-bar{width:95px}.item{width:85px;height:70px}.race-info{max-width:120px}.race-info strong{font-size:8px}.race-info span{font-size:9px}#touch{position:fixed;bottom:18px;left:14px;right:14px;display:flex;justify-content:space-between}#touch>div{display:flex;gap:8px}#touch button{width:64px;height:68px;background:#113b49c9;border:1px solid #fff6;border-radius:14px;color:#fff;font-size:20px;touch-action:none;user-select:none}#touch button[data-key=ArrowDown]{font-size:10px}.result-time{font-size:39px}}

.next-race{padding:16px;margin-top:18px;border:1px solid #edc98555;border-radius:12px;background:#edc98508}.next-race p{font-size:12px;margin:5px 0;color:#bdd2cc}.next-race strong{color:var(--gold)}.next-race label{font-size:8px;margin-top:14px}.next-race .primary{font-size:12px;padding:12px}#resultDialog .result-time{margin:15px 0}#resultDialog .result-stats{margin-bottom:16px}

#message.notice{top:27%;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:90vw;padding:12px 22px;background:#123943eb;border:1px solid #edc98588;border-radius:14px;font:600 clamp(16px,2.2vw,28px) Outfit,sans-serif;box-shadow:0 8px 30px #061d2940}

.brand-group{display:flex;align-items:center;gap:24px}.portal-return{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid #b0cfbd55;border-radius:8px;color:var(--cream);text-decoration:none;font-size:13px;font-weight:500;transition:color .18s ease}.portal-return:hover,.portal-return:focus-visible{color:var(--gold)}.portal-return>span{font-size:16px}.portal-return-footer{color:var(--gold);font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap}.portal-return-footer:hover,.portal-return-footer:focus-visible{color:var(--cream);text-decoration:underline}@media(max-width:650px){header{padding:12px 22px}.brand-group{flex-direction:column;align-items:flex-start;gap:4px}.portal-return{min-height:36px;font-size:12px;padding:4px 8px}.portal-return-footer{font-size:11px}#menu{padding-top:136px}.race-top{top:112px}#ranking{top:196px}}

/* Menu ilustrado da edição Arcade de Dezembro. */
body:not(.racing) { overflow-y: auto; background: #151820; }
body:not(.racing) #world, body:not(.racing) #vignette { visibility: hidden; }
body:not(.racing) header { position: relative; padding-block: 10px; border-bottom: 2px solid #c92d39; background: #151820; }
body:not(.racing) :is(.brand,.brand-icon,.portal-return,.tag) { color: #eef1f6; border-color: #acb4c7; }
body:not(.racing) .icon-button { background: #c92d39; color: #fff9ef; }
#menu:not(.hidden) { height: auto; min-height: calc(100dvh - 120px); padding-block: 24px; }
.intro .kart-print { width: 100%; height: auto; display: block;  }
.intro h1 { margin: 16px 0 4px; color: #a21920; font: italic 900 clamp(58px,6vw,96px)/1 Impact,"Arial Narrow",sans-serif; letter-spacing: -.045em; }
.intro p, .intro .hero-caption, .intro .hero-caption strong { color: #eef1f6; }
.intro p { font-size: clamp(16px,1.5vw,21px); line-height: 1.4; }
#menu .setup { background: #222733; border: 0; border-radius: 10px; }
#menu .setup .primary { background: #c52c36; color: #fff; }
#footer:not(.hidden) { position: relative; inset: auto; display: flex; justify-content: space-between; gap: 12px; padding: 8px 4%; margin: 0; color: #eef1f6; }
#footer .portal-return-footer { color: #eef1f6; }
@media(max-width:650px){#menu:not(.hidden){padding-top:14px}.intro{margin-bottom:20px}.intro h1{font-size:48px}.intro .kart-print{max-height:175px;object-fit:contain}}

.intro .kart-lettering { display: block; width: min(65%, 380px); height: auto;  }
.setup :is(input,select,.segmented) { background: #172e57; color: #fff9ec; }
.setup .segmented button.active { background: #35538b; }
body:not(.racing) .brand-group .portal-return.portal-admin { border-color: #e34b58; background: #a92231; color: #fff; font-weight: 800; }
body:not(.racing) .brand-group .portal-return.portal-admin:hover,
body:not(.racing) .brand-group .portal-return.portal-admin:focus-visible { border-color: #ff8790; background: #c52c36; color: #fff; }
