:root{--accent:#ffd23f;--accent2:#ff7a2c;--panel:#0c1228d1;--panel-line:#ffffff24;--text:#fff;--muted:#ffffffb3;--font:"M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif}#ui{pointer-events:none;font-family:var(--font);color:var(--text);-webkit-user-select:none;user-select:none;position:fixed;inset:0}#ui .screen{pointer-events:auto;box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:16px 0;display:flex;position:absolute;inset:0;overflow-y:auto}#ui .screen.dim{background:radial-gradient(#0a10288c,#050814d9)}#ui .screen.left{align-items:flex-start;padding-left:6vw}.logo{letter-spacing:.04em;background:linear-gradient(180deg, #fff6b0, var(--accent) 45%, var(--accent2));color:#0000;filter:drop-shadow(0 6px #7a2a00)drop-shadow(0 10px 18px #00000080);-webkit-background-clip:text;background-clip:text;font-size:clamp(44px,8vw,96px);font-style:italic;font-weight:900;line-height:1}.logo-sub{letter-spacing:.3em;color:var(--muted);margin-top:-6px;font-size:20px;font-weight:800}.hint{color:var(--muted);font-size:13px}.menu{flex-direction:column;gap:10px;min-width:280px;display:flex}.btn{font-family:var(--font);color:var(--text);background:var(--panel);border:2px solid var(--panel-line);cursor:pointer;text-align:left;border-radius:14px;padding:12px 22px;font-size:20px;font-weight:800;transition:transform 80ms,background .12s,border-color .12s}.btn:hover,.btn:focus{border-color:var(--accent);background:#28325aeb;outline:none;transform:translate(4px)}.btn.primary{background:linear-gradient(90deg, var(--accent2), var(--accent));color:#2a1300;text-align:center;border-color:#0000}.btn.primary:hover,.btn.primary:focus{filter:brightness(1.1);transform:scale(1.03)}.row{align-items:center;gap:10px;display:flex}.title-bar{text-shadow:0 3px #0006;font-size:30px;font-style:italic;font-weight:900}.panel{background:var(--panel);border:1px solid var(--panel-line);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:18px;padding:18px 22px}.char-grid{grid-template-columns:repeat(4,118px);gap:10px;display:grid}.char-card{font-family:var(--font);background:var(--panel);cursor:pointer;color:var(--text);text-align:center;border:3px solid #0000;border-radius:14px;padding:10px 6px 8px}.char-card:hover,.char-card:focus{border-color:#fff6;outline:none}.char-card.selected{border-color:var(--accent);box-shadow:0 0 0 3px #ffd23f40}.char-swatch{border:3px solid #fffc;border-radius:50%;width:54px;height:54px;margin:0 auto 6px}.char-name{font-size:17px;font-weight:900}.char-type{color:var(--muted);font-size:11px}.stat{grid-template-columns:90px 1fr;align-items:center;gap:10px;margin:6px 0;font-size:14px;font-weight:700;display:grid}.stat-bar{background:#ffffff26;border-radius:5px;height:10px;overflow:hidden}.stat-bar>i{background:linear-gradient(90deg, #4fd1ff, var(--accent));border-radius:5px;height:100%;transition:width .2s;display:block}.char-side{flex-direction:column;gap:10px;width:320px;display:flex}.char-detail{padding:14px 20px}.char-preview{border:1px solid var(--panel-line);border-radius:18px;height:clamp(150px,30vh,280px)}.char-detail h2{margin:0 0 2px;font-size:28px;font-style:italic}.char-layout{align-items:flex-start;gap:24px;display:flex}.course-list{grid-template-columns:repeat(3,230px);gap:14px;display:grid}.course-list:has(.cup-card){grid-template-columns:repeat(2,330px)}.course-list{align-items:start}.course-card.cup-card{width:330px}.cup-thumbs{grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0;display:grid}.cup-card .cup-thumbs canvas{height:64px;margin:0}.course-card{font-family:var(--font);background:var(--panel);width:230px;color:var(--text);cursor:pointer;text-align:left;border:3px solid #0000;border-radius:16px;padding:12px}.course-card:hover,.course-card:focus{border-color:var(--accent);outline:none}.course-card canvas{border-radius:10px;width:100%;height:118px;margin-bottom:8px;display:block}.course-card h3{margin:0 0 4px;font-size:20px}.course-card p{color:var(--muted);margin:0;font-size:12px;line-height:1.5}.settings{flex-direction:column;gap:14px;width:min(520px,90vw);display:flex}.setting{grid-template-columns:150px 1fr;align-items:center;gap:12px;font-weight:700;display:grid}.seg{flex-wrap:wrap;gap:6px;display:flex}.seg button{font-family:var(--font);color:var(--text);cursor:pointer;background:#ffffff14;border:2px solid #0000;border-radius:10px;padding:6px 12px;font-size:14px;font-weight:800}.seg button.on{background:var(--accent);color:#2a1300}.seg button:focus{border-color:var(--accent);outline:none}input[type=range]{width:100%;accent-color:var(--accent)}.results{min-width:min(560px,92vw)}.results table{border-collapse:collapse;width:100%;font-size:17px}.results td{border-bottom:1px solid var(--panel-line);padding:6px 10px}.results tr.me td{background:#ffd23f33;font-weight:900}.results td.rank{width:50px;font-style:italic;font-weight:900}.results td.num{text-align:right;font-variant-numeric:tabular-nums}.results .gain{color:#7dff9a;font-size:13px}.podium{align-items:flex-end;gap:10px;margin-bottom:8px;display:flex}.podium>div{text-align:center;background:var(--panel);border-radius:12px 12px 0 0;width:120px;padding:10px 4px;font-weight:900}.podium .p1{color:#3a2500;background:linear-gradient(#ffe680,#d9a400);height:150px}.podium .p2{color:#222;background:linear-gradient(#f2f4f8,#aeb7c4);height:115px}.podium .p3{color:#2b1200;background:linear-gradient(#ffc28f,#c26a2c);height:90px}.hud{pointer-events:none;position:absolute;inset:0}.hud-banner{text-align:center;color:var(--accent);text-shadow:0 6px #7a2a00,0 10px 24px #0009;font-size:clamp(56px,10vw,120px);font-style:italic;font-weight:900;animation:.35s ease-out pop;position:absolute;top:34%;left:0;right:0}.hud-banner.lap{color:#fff;font-size:clamp(40px,6vw,72px)}.hud-wrong{text-align:center;color:#ff4a4a;text-shadow:0 3px #000;font-size:40px;font-weight:900;animation:.6s steps(2,end) infinite blink;position:absolute;top:22%;left:0;right:0}@keyframes pop{0%{opacity:0;transform:scale(1.6)}to{opacity:1;transform:scale(1)}}@keyframes blink{50%{opacity:0}}@media (width<=760px){.char-grid{grid-template-columns:repeat(4,76px)}.char-layout{flex-direction:column}.char-preview{display:none}.course-list{grid-template-columns:1fr!important}}.online-panel{flex-direction:column;gap:14px;width:min(460px,90vw);display:flex}.text-input{font-family:var(--font);color:var(--text);border:2px solid var(--panel-line);box-sizing:border-box;background:#ffffff14;border-radius:10px;outline:none;width:100%;padding:8px 12px;font-size:18px;font-weight:800}.text-input:focus{border-color:var(--accent)}.code-input{text-align:center;letter-spacing:.3em;text-transform:uppercase;width:130px;font-size:22px}.or{text-align:center;color:var(--muted);font-size:13px}.status{min-height:1.4em;font-weight:700}.status.error{color:#ff7a7a}.room-code{color:var(--accent);letter-spacing:.15em;font-style:normal}.lobby{flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:16px;display:flex}.lobby-players{flex-direction:column;gap:6px;width:300px;display:flex}.lobby-head{margin-bottom:4px;font-weight:900}.lobby-player{background:#ffffff0d;border-radius:10px;align-items:center;gap:8px;padding:6px 8px;display:flex}.lobby-player.me{background:#ffd23f2e}.lobby-player .swatch{border:2px solid #fff;border-radius:50%;flex:none;width:18px;height:18px}.lobby-player .muted{color:var(--muted);font-size:13px}.lobby-player .pts{font-variant-numeric:tabular-nums;margin-left:auto;font-weight:800}.badge{background:var(--accent);color:#2a1300;border-radius:6px;padding:1px 6px;font-size:11px;font-weight:900}.seg button:disabled{cursor:default;opacity:.75}.seg button:disabled.on{opacity:1}.hud-flash{opacity:0;pointer-events:none;background:#fff8c0;position:absolute;inset:0}.hud-shock{text-align:center;color:#ffe14f;text-shadow:0 3px #5a3a00;font-size:34px;font-weight:900;animation:.25s steps(2,end) infinite blink;display:none;position:absolute;top:60%;left:0;right:0}.check{cursor:pointer;align-items:center;gap:6px;font-size:14px;display:flex}.check input{width:18px;height:18px;accent-color:var(--accent)}.room-panel{flex-direction:column;gap:8px;width:min(420px,90vw);display:flex}.room-panel .lobby-head{justify-content:space-between;align-items:center;display:flex}.room-list{flex-direction:column;gap:6px;max-height:46vh;display:flex;overflow-y:auto}.room-row{text-align:left;font-family:var(--font);color:var(--text);cursor:pointer;background:#ffffff0f;border:2px solid #0000;border-radius:12px;grid-template-columns:1fr auto;gap:2px 10px;padding:8px 12px;display:grid}.room-row:hover,.room-row:focus{border-color:var(--accent);background:#ffd23f1f;outline:none}.room-row:disabled{opacity:.45;cursor:default}.room-row .count{grid-area:1/2/span 2;align-self:center;font-size:18px;font-weight:900}.room-row .muted{color:var(--muted);font-size:12px}.phase{font-size:12px;font-weight:800}.phase.lobby{color:#6be38a}.phase.racing{color:#ffb347}.phase.voting{color:#7ec8ff}.btn.small{padding:4px 10px;font-size:13px}.badge.ready{color:#062b10;background:#35d35a}.badge.wait{color:var(--text);background:#ffffff2e}.ping{font-variant-numeric:tabular-nums;background:#ffffff1a;border-radius:6px;padding:1px 6px;font-size:11px;font-weight:800}.ping.good{color:#6be38a}.ping.ok{color:#ffd23f}.ping.bad{color:#ff7a7a}.lobby-head.small{margin-top:8px;font-size:13px}.stamps{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.stamp{font-family:var(--font);color:var(--text);border:1px solid var(--panel-line);cursor:pointer;background:#ffffff1a;border-radius:8px;padding:5px 2px;font-size:11px;font-weight:800}.stamp:hover,.stamp:focus{background:var(--accent);color:#2a1300;outline:none}.stamp-log{flex-direction:column;gap:2px;min-height:3em;font-size:13px;display:flex}.vote-panel{width:min(640px,92vw);margin-top:10px}.vote-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px;display:grid}.vote-btn{font-family:var(--font);color:var(--text);cursor:pointer;background:#ffffff14;border:2px solid #0000;border-radius:10px;padding:8px;font-weight:800}.vote-btn:hover,.vote-btn:focus{border-color:var(--accent);outline:none}.vote-btn.on{background:var(--accent);color:#2a1300}.vote-count{font-weight:900}.net-notice{z-index:50;color:#fff;pointer-events:none;background:#a01e1ee6;border-radius:12px;padding:8px 18px;font-weight:800;position:fixed;top:12px;left:50%;transform:translate(-50%)}.hud-stamp{color:#222;background:#ffffffeb;border-radius:14px 14px 2px;padding:6px 12px;font-weight:800;animation:.25s ease-out stampIn}.hud-stamp b{color:#c2410c;margin-right:4px}@keyframes stampIn{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}.hud-spectate{text-align:center;background:#00000080;border-radius:12px;padding:6px 16px;font-weight:800;position:absolute;top:124px;left:50%;transform:translate(-50%)}.hud-spectate small{color:var(--muted);font-size:11px;display:block}.hud-back{background:#00000080;border-radius:10px;padding:4px 14px;font-size:14px;font-weight:800;display:none;position:absolute;top:124px;left:50%;transform:translate(-50%)}.coin-badge{color:#ffe27a;font-variant-numeric:tabular-nums;background:#00000073;border:2px solid #ffd23f;border-radius:999px;padding:4px 14px;font-size:18px;font-weight:900;display:inline-block}.coin-badge.bump{animation:.35s ease-out coinBump}@keyframes coinBump{0%{transform:scale(1.25)}to{transform:scale(1)}}.screen.left>.coin-badge{position:fixed;top:18px;right:22px}.title-row{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.coin-gain{color:#ffe27a;text-shadow:0 2px 4px #0009;margin:6px 0;font-size:22px;font-weight:900}.char-card{position:relative}.char-card.locked{opacity:.6}.char-card.locked .char-swatch{filter:grayscale(.8)}.char-lock{color:#ffe27a;font-size:12px;font-weight:900;position:absolute;top:4px;right:6px}.char-swatch.kart{border-radius:10px}.lock-note{color:#ffe27a;min-height:1.3em;margin-top:8px;font-size:14px;font-weight:800}.shop-panel{width:min(760px,92vw);max-height:56vh;overflow-y:auto}.shop-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:8px;display:grid}.shop-card{text-align:left;font-family:var(--font);color:var(--text);cursor:pointer;background:#ffffff12;border:2px solid #0000;border-radius:12px;flex-direction:column;gap:3px;padding:10px 12px;display:flex}.shop-card:hover,.shop-card:focus{border-color:var(--accent);outline:none}.shop-card:disabled{opacity:.5;cursor:default}.shop-card.owned{opacity:.7}.shop-card .price{color:#ffe27a;font-weight:900}.shop-card .muted{color:var(--muted);font-size:12px}.shop-card.wide,.shop-grid .wide{grid-column:1/-1}.tab.primary{box-shadow:0 0 0 2px var(--accent)}.dialog-back{z-index:40;background:#0000008c;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.dialog{text-align:center;flex-direction:column;align-items:center;gap:16px;width:min(440px,90vw);display:flex}.dialog-text{font-size:17px;font-weight:800}.ad-label{color:var(--muted);font-size:12px}.ad-body{padding:30px 10px;font-size:18px;font-weight:800}.ad-count{color:var(--accent);font-size:40px;font-weight:900}.hud-panel,.hud-lap,.hud-standings,.hud-mapwrap,.hud-item{background:linear-gradient(160deg,#263860d1,#0e162ad1);border:2px solid #ffffff24;border-radius:16px;box-shadow:0 6px 18px #00000059,inset 0 1px #ffffff26}.hud-topleft{align-items:flex-start;gap:12px;display:flex;position:absolute;top:12px;left:18px}.hud-rank{text-shadow:0 4px #00000059,0 0 18px #00000059;align-items:flex-end;font-style:italic;font-weight:900;line-height:.85;display:flex}.hud-rank b{background:linear-gradient(#fff6c2 0%,#ffd23f 45%,#ff8a1f 100%);color:#0000;-webkit-text-stroke:2px #5028008c;-webkit-background-clip:text;background-clip:text;padding-right:6px;font-size:104px}.hud-rank b[data-rank="1"]{background-image:linear-gradient(#fffbe0,#ffd84f 50%,#ffae1f)}.hud-rank b[data-rank=x]{-webkit-text-stroke-color:#141e3c99;background-image:linear-gradient(#fff,#d9e3f5 55%,#9fb2d6)}.hud-rank b.pop{animation:.35s ease-out rankPop}@keyframes rankPop{0%{transform:scale(1.35)}to{transform:scale(1)}}.hud-rank span{color:#fff;margin-bottom:10px;font-size:34px}.hud-rank small{color:#ffffffbf;margin:0 0 12px 4px;font-size:26px}.hud-lap{text-align:left;margin-top:10px;padding:8px 18px 10px}.hud-lap .lap{font-style:italic;font-weight:900}.hud-lap .lap span{color:#ffd23f;letter-spacing:.08em;font-size:16px}.hud-lap .lap b{font-size:38px}.hud-lap .lap small{color:#ffffffb3;font-size:20px}.hud-lap .time{font-variant-numeric:tabular-nums;opacity:.92;font-size:22px;font-weight:800}.hud-itemwrap{flex-direction:column;align-items:center;gap:4px;display:flex;position:absolute;top:132px;left:22px}.hud-item{border-width:3px;border-radius:22px;justify-content:center;align-items:center;width:92px;height:92px;display:flex;position:relative}.hud-item.rolling{border-color:var(--accent);box-shadow:0 0 22px #ffd23f99}.hud-item-img{filter:drop-shadow(0 3px 2px #0006);width:74px;height:74px}.hud-item .uses{color:#6ff0ff;text-shadow:0 2px #06324a,0 0 6px #000;font-size:26px;font-style:italic;font-weight:900;position:absolute;bottom:-6px;right:-10px}.hud-item-name{text-shadow:0 1px 3px #000;white-space:nowrap;font-size:13px;font-weight:800}.hud-right{flex-direction:column;align-items:flex-end;gap:8px;display:flex;position:absolute;top:14px;right:16px}.hud-standings{flex-direction:column;gap:3px;min-width:230px;padding:8px 10px;display:flex}.st-row{border-radius:10px;align-items:center;gap:10px;padding:4px 10px;font-size:16px;font-weight:800;display:flex}.st-row b{width:18px;font-size:20px;font-style:italic}.st-row.me{color:#2a1300;background:linear-gradient(90deg,#ffb01f,#ff8a1f)}.st-chip{border-radius:4px;width:10px;height:20px;transform:skew(-12deg);box-shadow:0 0 0 1px #0000004d}.st-name{white-space:nowrap;text-overflow:ellipsis;max-width:170px;overflow:hidden}.st-gap{text-align:left;opacity:.6;padding-left:14px;line-height:.6}.hud-mapwrap{border-radius:22px;padding:6px;position:absolute;bottom:16px;left:16px}.hud-minimap{width:210px;height:210px;display:block}.hud-gauge{width:170px;height:170px;position:absolute;bottom:16px;right:16px}.hud-help{opacity:.65;text-shadow:0 1px 2px #000;white-space:nowrap;font-size:11px;position:absolute;bottom:8px;left:50%;transform:translate(-50%)}.hud-online{flex-direction:column;align-items:flex-end;gap:3px;font-size:13px;display:flex}.hud-online div{background:#0006;border-radius:8px;align-items:center;gap:6px;padding:2px 8px;display:flex}.hud-stamps{flex-direction:column;align-items:flex-end;gap:4px;display:flex;position:absolute;top:240px;right:16px}@media (width<=900px),(height<=560px){.hud-rank b{font-size:72px}.hud-minimap{width:150px;height:150px}.hud-gauge{width:130px;height:130px}.hud-itemwrap{top:104px}.hud-item{width:72px;height:72px}.hud-item-img{width:56px;height:56px}.hud-standings{min-width:180px}.st-row{font-size:13px}.hud-help{display:none}}.fps-meter{z-index:60;pointer-events:none;color:#8dff9a;background:#0000008c;border-radius:8px;padding:3px 10px;font:600 13px/1.2 ui-monospace,Consolas,monospace;position:fixed;top:6px;left:50%;transform:translate(-50%)}.fps-meter.warn{color:#ffd84f}.fps-meter.bad{color:#ff6b6b}.site-notice{z-index:100;font-family:var(--font);color:var(--text);background:#000000b3;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.site-notice-box{box-sizing:border-box;text-align:left;width:min(420px,100%);padding:24px 22px 20px}.site-notice-tag{background:var(--accent);color:#2a1300;border-radius:999px;padding:2px 10px;font-size:13px;font-weight:900;display:inline-block}.site-notice h2{margin:10px 0 8px;font-size:19px;font-weight:900;line-height:1.4}.site-notice p{color:var(--muted);margin:0 0 18px;font-size:15px;line-height:1.7}.site-notice-row{flex-wrap:wrap;gap:10px;display:flex}.site-notice-row .btn{text-align:center;box-sizing:border-box;flex:140px;font-size:17px;text-decoration:none}body:has(#ui .hud) .yk-home{display:none}
