:root{--bg-dark:#0f1115;--panel-bg:#161b22;--accent:#f59e0b;--text-main:#e2e8f0;--text-sub:#94a3b8;--green:#22c55e;--red:#ef4444}*{box-sizing:border-box}body{margin:0;background:var(--bg-dark);color:var(--text-main);font-family:'Segoe UI',sans-serif;height:100vh;display:flex;flex-direction:column;overflow:hidden;user-select:none}body.racing{background:var(--bg-dark)}.modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.85);backdrop-filter:blur(5px);z-index:1000;display:flex;align-items:center;justify-content:center}.modal-panel{background:#1e293b;width:400px;padding:30px;border-radius:10px;border:1px solid #334155;box-shadow:0 20px 50px rgba(0,0,0,0.7);position:relative;text-align:center;animation:slideIn 0.3s ease}.modal-panel.wide{width:700px;max-width:95%;text-align:left}@keyframes slideIn{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-title{margin:0 0 20px 0;color:var(--accent);font-weight:900}.close-modal{position:absolute;top:10px;right:15px;background:none;border:none;color:#64748b;font-size:1.2rem;cursor:pointer}.close-modal:hover{color:#fff}.auth-input{width:100%;padding:12px;margin-bottom:10px;background:#0f172a;border:1px solid #334155;color:#fff;border-radius:5px}.auth-input:focus{border-color:var(--accent);outline:none}.link-text{font-size:0.8rem;color:var(--text-sub);cursor:pointer;text-decoration:underline;margin-top:10px}.link-text:hover{color:var(--accent)}.dashboard-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #334155;padding-bottom:15px;margin-bottom:20px}.player-stats{display:flex;gap:15px;align-items:center}.stat-badge{background:#0f172a;padding:5px 10px;border-radius:4px;font-family:monospace;font-size:1rem}.stat-badge.money{color:#ffd700;border:1px solid rgba(255,215,0,0.3);text-shadow:0 0 10px rgba(255,215,0,0.4);font-weight:bold;letter-spacing:1px;display:inline-flex;align-items:center;gap:6px}.garage-grid{display:flex;gap:20px}.garage-col{flex:1;background:#0f172a;padding:15px;border-radius:8px;border:1px solid #334155}.garage-col h3{margin-top:0;color:var(--text-sub);font-size:0.9rem;text-transform:uppercase}.upgrade-item{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #1e293b}.up-info{display:flex;flex-direction:column}.up-info span{font-weight:600;font-size:0.9rem}.up-info small{color:#64748b;font-size:0.75rem}.career-btn{background:linear-gradient(45deg,#f59e0b,#d97706);box-shadow:0 4px 15px rgba(245,158,11,0.3);border:none;color:#fff;padding:10px 20px;font-size:1rem;border-radius:5px;font-weight:700;cursor:pointer;transition:all 0.1s}.car-preview-box{height:100px;display:flex;align-items:center;justify-content:center;background:#1e293b;margin-top:10px;border-radius:5px}#preview-car{width:44px;height:24px;background:var(--accent);border-radius:2px;position:relative}#preview-car::before{content:'';position:absolute;top:4px;left:16px;width:16px;height:16px;background:#0f172a}#setup-menu{position:absolute;inset:0;background:rgba(15,17,21,0.95);z-index:900;display:flex;justify-content:center;align-items:center}.menu-panel{background:#1e293b;padding:30px;border-radius:10px;border:1px solid #334155;text-align:center}.menu-group{margin-bottom:20px;text-align:left}.menu-group label{display:block;margin-bottom:8px;font-size:0.9rem;color:var(--text-sub);font-weight:600}.menu-group input[type="range"]{width:100%;cursor:pointer}.track-options{display:flex;gap:10px}.track-card{flex:1;background:#0f172a;border:2px solid #334155;border-radius:8px;padding:15px;cursor:pointer;transition:all 0.2s;text-align:center}.track-card:hover{border-color:#64748b}.track-card.selected{border-color:var(--accent);background:rgba(245,158,11,0.1)}.t-icon{font-size:1.5rem;margin-bottom:5px}.big-btn{width:100%;padding:15px;font-size:1.2rem;margin-top:10px}header{height:50px;background:var(--panel-bg);display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #334155;z-index:20}.header-title{font-weight:900;font-size:1rem;letter-spacing:0.5px}.header-controls{display:flex;gap:10px}main{flex:1;display:flex;padding:10px;gap:10px;position:relative}#game-area{flex:1;background:#16a34a;border-radius:8px;position:relative;overflow:hidden;box-shadow:inset 0 0 80px rgba(0,0,0,0.6);border:1px solid #334155}canvas{display:block;width:100%;height:100%}.vehicle-preview canvas{width:auto;height:100%}aside{width:190px;background:var(--panel-bg);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:8px;border:1px solid #334155;z-index:20}.panel-header{color:var(--accent);font-weight:bold;font-size:0.7rem;text-transform:uppercase;letter-spacing:0.5px;border-bottom:1px solid #334155;padding-bottom:4px}.racer-card{background:#0f172a;padding:6px 8px;border-radius:5px;border:1px solid #334155;display:flex;flex-direction:column;gap:2px;transition:transform 0.2s}.racer-card.player{border-color:var(--accent);background:rgba(245,158,11,0.15)}.top-info{display:flex;justify-content:space-between;font-weight:bold;font-size:0.75rem}.sub-info{font-size:0.65rem;color:var(--text-sub);display:flex;justify-content:space-between;align-items:center;margin-top:1px}.xp-badge{background:#334155;color:#fff;padding:0px 4px;border-radius:3px;font-size:0.6rem;font-family:monospace}.hp-track{width:100%;height:6px;background:#020617;margin-top:4px;border-radius:3px;overflow:hidden;border:1px solid rgba(255,255,255,0.1)}.hp-fill{height:100%}.info-box{margin-top:auto;font-size:0.65rem;color:#64748b;text-align:center;line-height:1.4}.btn{background:var(--accent);color:#000;border:none;padding:10px 20px;font-size:1rem;border-radius:5px;font-weight:700;cursor:pointer;transition:all 0.1s}.btn.sm{padding:6px 12px;font-size:0.75rem}.btn.outline{background:transparent;border:1px solid var(--accent);color:var(--accent)}.btn:hover{filter:brightness(1.1)}.btn.outline:hover{background:rgba(245,158,11,0.1)}.btn:active{transform:scale(0.95)}#countdown-layer{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;pointer-events:none;z-index:50}.traffic-light{display:flex;gap:15px;background:#000;padding:15px;border-radius:40px;border:3px solid #333;opacity:0;transform:scale(0.8);transition:all 0.2s}.light{width:50px;height:50px;border-radius:50%;background:#333;box-shadow:inset 0 0 10px #000}.light.red.active{background:#ef4444;box-shadow:0 0 40px #ef4444}.light.yellow.active{background:#f59e0b;box-shadow:0 0 40px #f59e0b}.light.green.active{background:#22c55e;box-shadow:0 0 40px #22c55e}#go-text{position:absolute;font-size:6rem;font-weight:900;color:#22c55e;text-shadow:0 0 20px #000;opacity:0;transform:scale(0.5);transition:all 0.3s}#overlay{position:absolute;inset:0;background:rgba(0,0,0,0.85);backdrop-filter:blur(5px);display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity 0.3s;z-index:60}#overlay.active{opacity:1;pointer-events:all}#end-title{color:var(--accent);font-size:2rem;margin-bottom:20px}.leaderboard-container{width:90%;max-width:400px;background:rgba(15,23,42,0.95);border:1px solid #334155;border-radius:8px;padding:10px;margin-bottom:20px}.lb-row{display:flex;align-items:center;padding:10px;border-bottom:1px solid rgba(255,255,255,0.1);font-size:0.9rem}.lb-row:last-child{border-bottom:none}.lb-row.is-player{background:rgba(245,158,11,0.15);border-left:3px solid var(--accent)}.lb-pos{width:30px;font-weight:900;color:var(--text-sub)}.lb-pos.podium{color:var(--accent)}.lb-name{flex-grow:1;font-weight:600;text-align:left}.lb-dist{font-family:monospace;color:var(--text-sub);font-size:0.8rem}#mobile-ui{display:none;position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:100}@media (max-width:1024px) and (pointer:coarse){#mobile-ui{display:block}}#mobile-ui.force-show{display:block !important}#joystick-zone{position:absolute;bottom:30px;right:30px;width:120px;height:120px;background:rgba(255,255,255,0.1);border:2px solid rgba(255,255,255,0.3);border-radius:50%;pointer-events:all;touch-action:none;transition:right 0.3s,left 0.3s}#mobile-ui.left-mode #joystick-zone{right:auto;left:30px}#joystick-stick{position:absolute;top:50%;left:50%;width:50px;height:50px;background:var(--accent);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 15px var(--accent)}.shake{animation:shake 0.4s cubic-bezier(.36,.07,.19,.97) both}@keyframes shake{10%,90%{transform:translate3d(-3px,0,0)}20%,80%{transform:translate3d(5px,0,0)}30%,50%,70%{transform:translate3d(-5px,0,0)}40%,60%{transform:translate3d(5px,0,0)}}#nitro-btn{position:absolute;bottom:40px;left:30px;width:80px;height:80px;border-radius:50%;border:4px solid #fff;background:rgba(56,189,248,0.6);color:#fff;font-weight:900;font-size:1.2rem;pointer-events:all;box-shadow:0 0 20px rgba(56,189,248,0.4);transition:all 0.3s ease;touch-action:manipulation;cursor:pointer;z-index:101}#nitro-btn:active{transform:scale(0.9);background:#0ea5e9;box-shadow:0 0 30px #0ea5e9}#mobile-ui.left-mode #nitro-btn{left:auto;right:30px;background:rgba(239,68,68,0.6);box-shadow:0 0 20px rgba(239,68,68,0.4)}#mobile-ui.left-mode #nitro-btn:active{background:#dc2626}#lights-btn{position:absolute;bottom:130px;left:30px;width:55px;height:55px;border-radius:50%;border:3px solid #fff;background:rgba(100,116,139,0.6);color:#fff;font-size:1.3rem;pointer-events:all;box-shadow:0 0 15px rgba(100,116,139,0.4);transition:all 0.2s ease;touch-action:manipulation;cursor:pointer;z-index:101}#lights-btn:active,#lights-btn.active{background:rgba(250,204,21,0.8);box-shadow:0 0 25px rgba(250,204,21,0.6);border-color:#facc15}#mobile-ui.left-mode #lights-btn{left:auto;right:30px}.lobby-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;max-height:400px;overflow-y:auto;margin-bottom:20px}.lobby-slot{background:#0f172a;border:1px solid #334155;padding:15px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;transition:all 0.3s}.lobby-slot.empty{opacity:0.3;border-style:dashed}.lobby-slot.me{border-color:var(--accent);background:rgba(245,158,11,0.1)}.slot-info{display:flex;align-items:center;gap:10px}.slot-color{width:12px;height:12px;border-radius:50%}.slot-name{font-weight:bold;color:#fff}.slot-status{font-size:0.8rem;font-weight:bold;color:#64748b;text-transform:uppercase}.slot-status.connected{color:#facc15;animation:blink 1s infinite}.slot-status.ready{color:#22c55e;animation:none}@keyframes blink{50%{opacity:0.5}}button:disabled{opacity:0.5;cursor:not-allowed;filter:grayscale(100%);pointer-events:none}.guest-alert{margin-top:15px;padding:10px;background:rgba(239,68,68,0.15);border:1px solid #ef4444;border-radius:6px;font-size:0.85rem;color:#fca5a5;animation:pulse 2s infinite}@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(239,68,68,0.4)}70%{box-shadow:0 0 0 10px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}.gold-coin{display:inline-block;width:14px;height:14px;background:radial-gradient(ellipse at center,#ffd700 0%,#d4af37 100%);border-radius:50%;border:1px solid #b8860b;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5),0 0 4px rgba(255,215,0,0.6);vertical-align:text-bottom;margin-right:4px;position:relative}.gold-coin::after{content:'';position:absolute;top:25%;left:25%;width:50%;height:50%;border-radius:50%;border:1px solid rgba(184,134,11,0.5)}.earned-money{display:inline-flex;justify-content:center;align-items:anchor-center}.modal-panel.store-panel{width:960px;max-width:95vw;background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);border:1px solid #334155;box-shadow:0 0 50px rgba(0,0,0,0.8);padding:0;display:flex;flex-direction:column;max-height:90vh;overflow-x:hidden;overflow-y:auto}.store-header{padding:20px 30px;background:rgba(0,0,0,0.3);border-bottom:1px solid rgba(255,255,255,0.1);display:flex;justify-content:space-between;align-items:center}.store-layout{display:grid;grid-template-columns:320px 1fr;height:520px}.store-left{background:rgba(0,0,0,0.2);padding:16px;border-right:1px solid rgba(255,255,255,0.05);display:flex;flex-direction:column;gap:14px}.vehicle-preview{height:90px;background:radial-gradient(circle at center,#334155 0%,#0f172a 70%);border-radius:10px;border:1px solid #475569;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:inset 0 0 20px #000}.stats-container{background:#0f172a;padding:12px;border-radius:8px;border:1px solid #334155}.stat-row{margin-bottom:12px}.stat-label{display:flex;justify-content:space-between;color:#94a3b8;font-size:0.8rem;margin-bottom:4px;text-transform:uppercase;font-weight:bold}.progress-bg{height:8px;background:#1e293b;border-radius:4px;overflow:hidden;position:relative}.bar-current{height:100%;background:linear-gradient(90deg,#3b82f6,#2563eb);width:0%;transition:width 0.3s ease;position:absolute;top:0;left:0;z-index:2}.bar-preview{height:100%;background:#22c55e;width:0%;position:absolute;top:0;left:0;opacity:0.6;z-index:1;animation:pulseBar 1s infinite}@keyframes pulseBar{0%{opacity:0.4}50%{opacity:0.8}100%{opacity:0.4}}.store-right{padding:16px;overflow-y:auto}.tabs{display:flex;gap:8px;margin-bottom:14px;border-bottom:2px solid #334155}.tab-btn{background:none;border:none;color:#64748b;padding:10px 20px;font-size:1rem;font-weight:bold;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all 0.3s}.tab-btn:hover{color:#fff}.tab-btn.active{color:var(--accent);border-bottom-color:var(--accent)}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.item-card{background:#1e293b;border:1px solid #334155;border-radius:6px;padding:10px;cursor:pointer;transition:all 0.2s;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}.item-card:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 5px 15px rgba(0,0,0,0.3)}.item-card.locked{opacity:0.6;filter:grayscale(0.8);cursor:not-allowed;border-color:#ef4444}.item-card.locked:hover{transform:none;box-shadow:none}.item-icon{font-size:1.4rem;margin-bottom:6px}.item-name{font-weight:bold;color:#fff;margin-bottom:5px}.item-level{font-size:0.75rem;color:#94a3b8;margin-bottom:10px}.item-price{background:#0f172a;padding:4px 8px;border-radius:14px;color:#ffd700;font-weight:bold;display:flex;align-items:center;gap:4px}.item-card.locked .item-price{color:#ef4444}.color-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.color-swatch{width:18px;height:18px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:transform 0.2s;justify-self:center}.color-swatch:hover{transform:scale(1.2);border-color:#fff}.color-swatch.active{border-color:var(--accent);box-shadow:0 0 10px var(--accent)}#setup-menu{display:flex;justify-content:center;align-items:center;padding:20px}.menu-layout-wrapper{display:flex;flex-direction:row;align-items:stretch;overflow:hidden;max-width:850px;width:100%;height:85%;padding:5px}@media (max-height:550px){.menu-layout-wrapper{height:auto;max-height:90vh;overflow-y:auto}}.side-settings-panel{width:200px;background:#1e293b;padding:15px;display:flex;flex-direction:column;flex-shrink:0;height:60%;box-shadow:inset -1px 0px 0px 2px #0b111f70;margin-top:50%;transform:translateY(-50%);border-radius:12px 0 0 12px}.side-title{color:#94a3b8;font-size:0.75rem;font-weight:800;margin-top:0;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}.config-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.config-header .side-title{margin:0}.config-icon{font-size:1rem;filter:grayscale(0.3)}.side-settings-panel .menu-group{margin-bottom:10px}.side-settings-panel .menu-group label{font-size:0.7rem;color:#94a3b8;margin-bottom:4px;display:block}.side-settings-panel input[type="range"]{width:100%;height:4px;-webkit-appearance:none;appearance:none;background:#0f172a;border-radius:2px;outline:none}.side-settings-panel input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;background:var(--accent);border-radius:50%;cursor:pointer}.side-settings-panel .track-options.vertical{gap:4px}.side-settings-panel .track-card{padding:6px 10px;background:#0f172a;border-radius:6px;font-size:0.75rem;border:1px solid transparent;transition:all 0.2s}.side-settings-panel .track-card:hover{background:#334155}.side-settings-panel .track-card.selected{border-color:var(--accent);background:#334155}.side-settings-panel .track-card .t-icon{font-size:1rem}.side-settings-panel .pole-checkbox-wrapper{font-size:0.75rem}.side-settings-panel .pole-checkbox-wrapper input[type="checkbox"]{width:14px !important;height:14px !important}.side-settings-panel .tooltip-icon{width:14px;height:14px;font-size:0.6rem}.menu-panel.main-section{flex-grow:1;min-width:380px;border-radius:12px;box-shadow:none;padding:25px 30px}#logged-in-welcome{display:flex;align-items:center;justify-content:center;gap:10px}.track-options.vertical{display:flex;flex-direction:column;gap:8px}.track-options.vertical .track-card{padding:8px 12px;display:flex;align-items:center;gap:15px;text-align:left;background:#1e293b}.side-leaderboard-panel{width:200px;background:#1e293b;padding:15px;display:flex;flex-direction:column;flex-shrink:0;height:60%;box-shadow:inset 1px 0px 0px 2px #0b111f70;margin-top:50%;transform:translateY(-50%);border-radius:0 12px 12px 0}.side-leaderboard-panel .leaderboard-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.side-leaderboard-panel .side-title{margin:0;padding:0;border:none}.online-indicator{width:10px;height:10px;background:#22c55e;border-radius:50%;box-shadow:0 0 8px #22c55e,0 0 16px #22c55e;animation:pulse-online 1.5s ease-in-out infinite}@keyframes pulse-online{0%,100%{opacity:1;transform:scale(1);box-shadow:0 0 8px #22c55e,0 0 16px #22c55e}50%{opacity:0.6;transform:scale(0.85);box-shadow:0 0 4px #22c55e,0 0 8px #22c55e}}#btn-join-next.logged-in-glow{animation:pulse-join-btn 2s ease-in-out infinite}@keyframes pulse-join-btn{0%,100%{background:#22c55e;box-shadow:0 0 15px rgba(34,197,94,0.4)}50%{background:#16a34a;box-shadow:0 0 25px rgba(34,197,94,0.7),0 0 40px rgba(34,197,94,0.3)}}.side-leaderboard-panel .leaderboard-list{flex:1;overflow-y:auto;overflow-x:hidden}.side-leaderboard-panel .leaderboard-list::-webkit-scrollbar{width:4px}.side-leaderboard-panel .leaderboard-list::-webkit-scrollbar-track{background:#0f172a;border-radius:2px}.side-leaderboard-panel .leaderboard-list::-webkit-scrollbar-thumb{background:#334155;border-radius:2px}.side-lb-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 0;color:#94a3b8;font-size:0.8rem}.side-lb-spinner{width:18px;height:18px;border-radius:999px;border:2px solid rgba(148,163,184,0.4);border-top-color:#22c55e;animation:side-lb-spin 0.8s linear infinite;margin-bottom:6px}@keyframes side-lb-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.side-lb-item{display:flex;align-items:center;gap:8px;padding:6px 8px;background:#0f172a;border-radius:6px;margin-bottom:6px;font-size:0.75rem;transition:background 0.2s}.side-lb-item:hover{background:#334155}.side-lb-rank{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:#334155;border-radius:4px;font-weight:bold;font-size:0.65rem;color:#94a3b8}.side-lb-item:nth-child(1) .side-lb-rank{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#000}.side-lb-item:nth-child(2) .side-lb-rank{background:linear-gradient(135deg,#94a3b8,#64748b);color:#000}.side-lb-item:nth-child(3) .side-lb-rank{background:linear-gradient(135deg,#cd7f32,#a0522d);color:#fff}.side-lb-name{flex:1;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-lb-xp{color:#22c55e;font-weight:bold;font-size:0.65rem}.cookie-banner{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:15px;padding:12px 20px;background:rgba(15,23,42,0.95);border-top:1px solid #334155;z-index:3000;font-size:0.8rem}.cookie-text{max-width:700px;color:var(--text-sub)}#site-footer{height:32px;background:var(--panel-bg);border-top:1px solid #334155;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:0.75rem;color:var(--text-sub);position:relative;z-index:950}#site-footer .footer-link-btn{background:none;border:none;color:var(--accent);font-size:0.75rem;cursor:pointer;text-decoration:underline;padding:0}.tooltip-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;background:#334155;color:#94a3b8;border-radius:50%;font-size:0.7rem;font-weight:bold;cursor:help;position:relative}.tooltip-icon:hover::after{content:attr(data-tooltip);position:absolute;bottom:130%;left:50%;transform:translateX(-50%);background:#1e293b;color:#e2e8f0;padding:10px 12px;border-radius:6px;font-size:0.75rem;font-weight:normal;white-space:normal;width:220px;text-align:center;box-shadow:0 4px 12px rgba(0,0,0,0.4);border:1px solid #475569;z-index:1000;line-height:1.4}.tooltip-icon:hover::before{content:'';position:absolute;bottom:115%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:#1e293b}.afk-popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5000;animation:afk-pulse 0.5s ease-in-out infinite alternate}@keyframes afk-pulse{0%{transform:translate(-50%,-50%) scale(1)}100%{transform:translate(-50%,-50%) scale(1.02)}}.afk-popup-content{background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%);border:3px solid #ef4444;border-radius:16px;padding:30px 40px;text-align:center;box-shadow:0 0 40px rgba(239,68,68,0.5),0 0 80px rgba(239,68,68,0.2);opacity:0.95}.afk-popup .afk-icon{font-size:3rem;margin-bottom:10px;animation:afk-shake 0.3s ease-in-out infinite}@keyframes afk-shake{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}.afk-popup h3{color:#ef4444;font-size:1.5rem;margin:0 0 10px 0;text-transform:uppercase;letter-spacing:2px}.afk-popup p{color:#94a3b8;margin:5px 0;font-size:0.9rem}.afk-popup .afk-countdown{color:#fbbf24;font-weight:bold;font-size:1rem;margin-top:15px}.afk-popup .afk-countdown span{color:#ef4444;font-size:1.5rem;font-weight:900}.afk-popup .afk-warning-count{margin-top:15px;padding:8px 16px;background:rgba(239,68,68,0.2);border-radius:20px;color:#ef4444;font-weight:bold;font-size:0.85rem}.racer-card .afk-indicator{display:inline-block;margin-left:5px;color:#ef4444;font-size:0.7rem;animation:blink 0.5s ease-in-out infinite}@keyframes blink{0%,100%{opacity:1}50%{opacity:0.3}}.racer-card.eliminated{opacity:0.5;background:rgba(239,68,68,0.1);border-left:3px solid #ef4444}@media (max-width:1024px){.menu-layout-wrapper{max-width:100%;padding:10px;height:auto;max-height:90vh;overflow-y:auto}.side-settings-panel,.side-leaderboard-panel{width:180px;height:auto;margin-top:0;transform:none}.menu-panel.main-section{min-width:300px;padding:20px}.modal-panel.store-panel{width:95vw}.store-layout{grid-template-columns:280px 1fr;height:auto;max-height:70vh}}@media (max-width:900px) and (orientation:landscape){header{height:35px;padding:0 8px}.header-title{font-size:0.75rem}.header-controls .btn{padding:4px 8px;font-size:0.65rem}aside{position:fixed;top:35px;left:0;right:0;width:100%;height:auto;max-height:50px;overflow-x:auto;overflow-y:hidden;padding:2px 6px;background:rgba(15,23,42,0.95);backdrop-filter:blur(3px);border-bottom:1px solid #334155;z-index:100;display:flex;flex-direction:row;gap:0}aside h3{display:none}aside .info-box{display:none}#racer-list{display:flex;flex-direction:row;gap:6px;overflow-x:auto;padding:2px 0}.racer-card{min-width:80px;max-width:80px;flex-shrink:0;padding:3px 5px;font-size:0.6rem}.racer-card .top-info{font-size:0.55rem}.racer-card .sub-info{display:none}.racer-card .hp-track{height:2px}main{padding:2px;gap:2px;padding-top:52px}#game-area{margin-top:0;width:100%;height:100%}#site-footer{height:20px;font-size:0.6rem}body.racing #site-footer{display:none}}@media (max-width:768px){header{height:45px;padding:0 10px}.header-title{font-size:0.85rem}.header-controls{gap:5px}.header-controls .btn{padding:6px 10px;font-size:0.7rem}main{padding:5px;gap:5px;padding-top:75px}aside{position:fixed;top:45px;left:0;right:0;width:100%;height:auto;max-height:70px;overflow-x:auto;overflow-y:hidden;padding:3px 8px;background:rgba(15,23,42,0.95);backdrop-filter:blur(3px);border-bottom:1px solid #334155;z-index:100;display:flex;flex-direction:column}aside h3{display:none}#racer-list{display:flex;flex-direction:row;gap:8px;overflow-x:auto;padding-bottom:5px}.racer-card{min-width:100px;max-width:100px;flex-shrink:0;padding:4px 6px;font-size:0.65rem}.racer-card .top-info{font-size:0.6rem}.racer-card .sub-info{font-size:0.55rem;display:none}.racer-card .hp-track{height:2px}#game-area{margin-top:0}#game-area{border-radius:5px}.menu-panel{padding:20px;width:95%;max-width:400px}.menu-panel h1{font-size:1.5rem}.big-btn{padding:12px;font-size:1rem}.menu-layout-wrapper{flex-direction:column;height:auto;max-height:85vh;overflow-y:auto}.side-settings-panel{width:100%;height:auto;margin-top:0;transform:none;border-radius:0 0 12px 12px;padding:12px;order:2}.menu-panel.main-section{min-width:unset;width:100%;border-radius:12px 12px 0 0;padding:20px 15px;order:1}.side-leaderboard-panel{width:100%;height:auto;max-height:150px;margin-top:0;transform:none;border-radius:12px;padding:10px;order:3;overflow-y:auto}.side-leaderboard-panel h4{font-size:0.8rem;margin-bottom:8px}.side-lb-item{padding:4px 6px;font-size:0.7rem}.side-lb-rank{width:18px;height:18px;font-size:0.6rem}.track-options.vertical{flex-direction:row;flex-wrap:wrap}.side-settings-panel .track-card{flex:1;min-width:80px}.modal-panel{width:95%;max-width:360px;padding:20px}.modal-panel.wide{max-width:95%}.modal-panel.store-panel{width:95vw;max-height:90vh}.store-layout{grid-template-columns:1fr;height:auto}.store-left{border-right:none;border-bottom:1px solid rgba(255,255,255,0.05)}.vehicle-preview{height:80px}.shop-grid{grid-template-columns:repeat(2,1fr);gap:8px}.item-card{padding:8px}.item-icon{font-size:1.2rem}.item-name{font-size:0.8rem}.tabs{flex-wrap:wrap}.tab-btn{padding:8px 12px;font-size:0.85rem}.lobby-grid{grid-template-columns:1fr}.cookie-banner{flex-direction:column;gap:10px;padding:15px;text-align:center}.cookie-text{font-size:0.75rem}#site-footer{height:28px;font-size:0.65rem;padding:0 10px;flex-wrap:wrap;justify-content:center;gap:5px}#end-title{font-size:1.5rem}.leaderboard-container{width:95%;padding:8px}.lb-row{padding:8px;font-size:0.8rem}.traffic-light{gap:10px;padding:10px}.light{width:35px;height:35px}#go-text{font-size:4rem}#joystick-zone{width:100px;height:100px;bottom:20px;right:20px}#joystick-stick{width:40px;height:40px}#nitro-btn{width:65px;height:65px;bottom:25px;left:20px;font-size:1rem}#mobile-ui.left-mode #joystick-zone{left:20px}#mobile-ui.left-mode #nitro-btn{right:20px}#lights-btn{width:45px;height:45px;bottom:100px;left:20px;font-size:1.1rem}#mobile-ui.left-mode #lights-btn{right:20px}.afk-popup-content{padding:20px 25px}.afk-popup .afk-icon{font-size:2.5rem}.afk-popup h3{font-size:1.2rem}}@media (max-width:375px){.menu-panel{padding:15px}.menu-panel h1{font-size:1.3rem}.big-btn{padding:10px;font-size:0.9rem}.btn.sm{padding:5px 8px;font-size:0.7rem}#joystick-zone{width:85px;height:85px;bottom:15px;right:15px}#joystick-stick{width:35px;height:35px}#nitro-btn{width:55px;height:55px;bottom:20px;left:15px;font-size:0.85rem}.shop-grid{grid-template-columns:1fr}}