:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}html,body{margin:0;padding:0;width:100%;min-height:100vh;touch-action:auto;overflow-y:auto;overflow-x:hidden;position:static}.game-container{display:flex;flex-direction:column;padding:0;height:auto;min-height:100vh;min-height:100dvh;overflow:visible;background:linear-gradient(135deg,#0f0f23,#1a1a2e,#16213e);color:#fff;font-family:Segoe UI,Roboto,Arial,sans-serif;position:relative}.game-container.racing .game-header{display:none}.game-container.racing .race-track-container{position:fixed;top:0;left:0;width:100vw!important;height:100vh!important;height:100dvh!important;z-index:100;padding:0;margin:0;display:block!important}.game-header{padding:.5rem 1rem;background:linear-gradient(135deg,#000c,#0006);border-bottom:3px solid #00ff00;box-shadow:0 4px 20px #0f03;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);flex-shrink:0}.game-header h1{margin:0;font-size:2rem;font-weight:700;text-align:center;background:linear-gradient(45deg,#0f0,#0c0,#0f8);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 30px rgba(0,255,0,.5);letter-spacing:2px}.game-stats{display:flex;justify-content:center;gap:1rem;margin-top:1rem;font-size:.9rem;font-weight:600}.game-stats>div{background:#0009;padding:8px 16px;border-radius:20px;border:2px solid rgba(0,255,0,.3);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);box-shadow:0 2px 10px #00ff001a;transition:all .3s ease}.game-stats>div:hover{border-color:#0f0;box-shadow:0 4px 15px #00ff004d;transform:translateY(-2px)}.start-section{text-align:center;padding:1.5rem 2rem 1rem}.start-race-button{font-size:1.5rem;font-weight:700;padding:1.2rem 2.5rem;background:linear-gradient(135deg,#0f0,#0c0);color:#000;border:3px solid #00ff00;border-radius:15px;cursor:pointer;transition:all .3s ease;box-shadow:0 6px 20px #0f06;text-transform:uppercase;letter-spacing:1px;animation:pulse 2s infinite ease-in-out}.start-race-button:hover:not(:disabled){background:linear-gradient(135deg,#0c0,#0a0);transform:translateY(-3px);box-shadow:0 8px 25px #0f09}.start-race-button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:0 2px 10px #0f03}.race-track-container{display:flex;justify-content:center;align-items:center;padding:0;margin:0;gap:0;width:100%;flex:1;min-height:0;position:relative;overflow:hidden}.race-track{width:100%;height:100%;background:transparent;border-radius:0;box-shadow:none;display:block;position:relative;overflow:hidden;margin:0;padding:0}.game-container.racing .race-track{width:100vw!important;height:100vh!important;height:100dvh!important}.race-canvas{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;overflow:hidden}.race-canvas canvas{width:100%!important;height:100%!important;display:block!important;position:absolute;top:0;left:0;margin:0;padding:0;border:none;outline:none}.race-hud{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none;display:grid;grid-template-areas:"top-left    top-center    top-right" "mid-left    .            mid-right" "bottom-left bottom-center bottom-right";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto 1fr;padding:20px;gap:20px}.race-hud>*{pointer-events:auto}.hud-top{grid-area:top-left;display:flex;flex-direction:column;gap:10px;align-items:flex-start}.hud-left{grid-area:mid-left;display:flex;flex-direction:column;justify-content:center;max-width:300px}.hud-bottom{grid-area:bottom-center;display:flex;justify-content:center}.hud-toggle{grid-area:top-right;justify-self:end;align-self:start;width:40px;height:40px;background:#000c;border:2px solid #00ff00;border-radius:50%;color:#0f0;font-size:1.2rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 15px #0f03;transition:all .3s ease;gap:4px}.hamburger-line{width:24px;height:3px;background:#0f0;border-radius:2px;transition:all .3s ease}.hud-toggle.active .hamburger-line:nth-child(1){transform:rotate(45deg) translate(5px,5px)}.hud-toggle.active .hamburger-line:nth-child(2){opacity:0}.hud-toggle.active .hamburger-line:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}.speed-meter,.position{background:#000000e6;padding:12px 18px;border-radius:10px;border:2px solid #00ff00;color:#fff;font-weight:700;font-size:1rem;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);box-shadow:0 4px 20px #00ff004d;min-width:200px}.bot-info{background:#000000e6;padding:15px;border-radius:10px;border:2px solid #00ff00;max-height:250px;overflow-y:auto;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);box-shadow:0 4px 20px #00ff004d;color:#fff}.bot-info h4{margin:0 0 10px;color:#0f0;font-size:1rem;font-weight:700}.bot-info>div{font-size:.9rem;margin:5px 0;padding:3px 0;border-bottom:1px solid rgba(255,255,255,.1)}.bot-info>div:last-child{border-bottom:none}.controls{background:#000000e6;padding:15px 25px;border-radius:10px;border:2px solid #00ff00;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);box-shadow:0 4px 20px #00ff004d;display:flex;gap:20px;align-items:center}.control-hint{color:#fff;font-size:.9rem;display:flex;align-items:center;gap:5px}.key{background:#0f03;border:1px solid #00ff00;padding:2px 8px;border-radius:4px;font-family:Courier New,monospace;font-size:.8rem;color:#0f0;font-weight:700}.race-hud.collapsed .hud-top,.race-hud.collapsed .hud-left,.race-hud.collapsed .hud-bottom{display:none}.hud-minimal{grid-area:top-left;background:#000000e6;padding:10px 15px;border-radius:8px;border:2px solid #00ff00;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);box-shadow:0 4px 20px #00ff004d}.speed-compact{color:#0f0;font-weight:700;font-size:1.1rem}.hud-toggle{display:flex}.race-hud>div{margin-bottom:.25rem;font-size:.7rem}.controls p{margin:.2rem 0;font-size:.65rem;color:#ccc;line-height:1.1}.bot-info{background:#0000004d;padding:.4rem;border-radius:4px;margin:.5rem 0;max-height:120px;overflow-y:auto}.bot-info h4{margin:0 0 .3rem;color:#0f0;font-size:.65rem;font-weight:700}.bot-info>div{font-size:.6rem;margin:.1rem 0;font-weight:400;line-height:1.1}.speed-boost-display{color:#0f0!important;font-weight:700}.final-bot-standings{background:#0006;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:1rem;border-radius:8px;margin:1rem 0;border:1px solid rgba(255,255,255,.1)}.final-bot-standings h3{margin:0 0 .75rem;color:#f39c12}.final-bot-standings>div{margin:.5rem 0;font-weight:700;font-size:.9rem}.loading-track{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#0000004d;border-radius:6px;font-size:1rem;color:#ccc;text-align:center;padding:1rem}.toast-container{position:fixed;top:15px;right:15px;z-index:1001;display:flex;flex-direction:column;gap:8px;max-width:280px}.toast{display:flex;align-items:center;padding:8px 12px;border-radius:6px;box-shadow:0 2px 8px #0003;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:all .3s ease;max-width:280px;word-wrap:break-word;font-size:.85rem}.toast-visible{opacity:1;transform:translate(0)}.toast-hidden{opacity:0;transform:translate(100%)}.toast-success{background:#22c55ee6;color:#fff;border:1px solid rgba(34,197,94,.3)}.toast-error{background:#ef4444e6;color:#fff;border:1px solid rgba(239,68,68,.3)}.toast-info{background:#3b82f6e6;color:#fff;border:1px solid rgba(59,130,246,.3)}.toast-icon{margin-right:6px;font-size:14px}.toast-message{flex:1;font-size:.8rem;line-height:1.3}.toast-close{background:none;border:none;color:inherit;cursor:pointer;font-size:14px;margin-left:6px;padding:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;opacity:.7;transition:opacity .2s}.toast-close:hover{opacity:1}@media (max-width: 768px){.toast-container{top:10px;right:10px;left:10px;max-width:none}.toast{font-size:.7rem;padding:6px 8px;max-width:250px}.toast-icon{font-size:12px;margin-right:4px}}.quiz-overlay{position:fixed;inset:0;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;padding:10px;box-sizing:border-box}.quiz-modal{background:#2c3e50;border-radius:12px;padding:1rem;max-width:600px;width:90%;box-shadow:0 8px 32px #00000080;max-height:80vh;overflow-y:auto;display:flex;flex-direction:column}.quiz-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid rgba(255,255,255,.1)}.quiz-header h2{margin:0;color:#f39c12}.timer{font-size:1.2rem;color:#e74c3c;font-weight:700}.question h3{margin-bottom:1rem;line-height:1.4;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.topic-difficulty{display:flex;gap:1rem;margin-bottom:1.5rem;font-size:.9rem}.topic{background:#3498db;padding:.25rem .5rem;border-radius:4px}.difficulty{background:#e67e22;padding:.25rem .5rem;border-radius:4px}.choices{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem;flex:1;overflow-y:auto}.choice-button{padding:.75rem;background:#34495e;border:2px solid transparent;border-radius:8px;color:#fff;cursor:pointer;text-align:left;transition:all .3s;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;font-size:.95rem}.choice-button:hover{background:#4a5f7a}.choice-button.selected{border-color:#3498db;background:#2980b9}.submit-button{width:100%;padding:1rem;background:#27ae60;color:#fff;border:none;border-radius:8px;font-size:1.1rem;cursor:pointer;transition:background .3s}.submit-button:hover:not(:disabled){background:#229954}.submit-button:disabled{opacity:.6;cursor:not-allowed}.feedback{text-align:center;padding:2rem}.feedback.correct{color:#27ae60}.feedback.incorrect{color:#e74c3c}.leaderboard{max-width:800px;margin:0 auto;padding:2rem}.leaderboard-header{text-align:center;margin-bottom:2rem}.period-selector{display:flex;justify-content:center;gap:.5rem;margin-top:1rem}.period-button{padding:.5rem 1rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:4px;cursor:pointer;transition:all .3s}.period-button:hover{background:#fff3}.period-button.active{background:#3498db;border-color:#2980b9}.leaderboard-headers{display:grid;grid-template-columns:80px 1fr 120px 80px;gap:1rem;padding:1rem;background:#0000004d;border-radius:8px 8px 0 0;font-weight:700}.leaderboard-entry{display:grid;grid-template-columns:80px 1fr 120px 80px;gap:1rem;padding:1rem;background:#ffffff0d;border-bottom:1px solid rgba(255,255,255,.1);align-items:center}.leaderboard-entry:last-child{border-radius:0 0 8px 8px}.rank{font-size:1.2rem;text-align:center}.best-time{font-family:monospace;font-size:1.1rem}.completed-races{text-align:center}.spectator-mode{text-align:center;padding:4rem 2rem}.spectator-mode h2{color:#e74c3c;margin-bottom:1rem}.error-banner{background:#e74c3c;color:#fff;padding:1rem;margin:1rem 2rem;border-radius:6px;display:flex;justify-content:space-between;align-items:center}.error-banner button{background:none;border:none;color:#fff;font-size:1.2rem;cursor:pointer}.loading,.empty,.error{text-align:center;padding:2rem;color:#bdc3c7}.error button{margin-top:1rem;padding:.5rem 1rem;background:#3498db;color:#fff;border:none;border-radius:4px;cursor:pointer}@media (max-width: 768px){body,html{margin:0;padding:0;overflow-x:hidden;height:auto;min-height:100vh}.game-container{padding:0;min-height:100vh;width:100vw;overflow-x:hidden;height:auto;position:relative}.game-container.racing{height:100vh;height:100dvh;overflow:hidden;position:fixed;inset:0;display:flex;flex-direction:column}.game-container.main-page{height:auto;min-height:100vh;overflow-y:auto;overflow-x:hidden}.game-header{flex-direction:column;gap:5px;text-align:center;flex-shrink:0;padding:.3rem .5rem}.game-header h1{font-size:1.3rem;margin:0;line-height:1.2}.game-stats{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:.4rem;font-size:.7rem;margin-top:.2rem}.game-stats>div{white-space:nowrap;font-size:.7rem;padding:.1rem .3rem;background:#0003;border-radius:3px}.race-track-container{flex:1;padding:0;width:100vw;min-height:0;overflow:hidden;display:flex;flex-direction:column;position:relative}.race-track{width:100%;height:100%;border-radius:0;flex:1;position:relative;overflow:hidden}.race-hud{grid-template-areas:"top-left    .         top-right" "mid-left    .         ." "bottom-left bottom-center .";padding:10px;gap:8px}.hud-top{gap:5px}.speed-meter,.position{padding:6px 10px;font-size:.7rem;min-width:100px}.bot-info{max-height:100px;padding:8px;font-size:.65rem}.bot-info h4{font-size:.7rem}.controls{padding:6px 10px;flex-direction:column;gap:3px;text-align:center}.control-hint{font-size:.65rem;justify-content:center}.key{font-size:.6rem;padding:1px 3px}.hud-toggle{width:28px;height:28px;font-size:.8rem}.hud-minimal{padding:5px 8px}.speed-compact{font-size:.8rem}.race-hud>div{margin:.2rem 0;font-size:.5rem;line-height:1.1;flex-shrink:0}.race-hud h4{margin:.3rem 0 .2rem;font-size:.55rem;color:#0f0}.bot-info{display:none}.final-bot-standings{position:relative;top:auto;right:auto;margin:10px 0;width:100%;max-width:none}.quiz-modal{padding:.5rem;max-height:90vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.quiz-header{flex-direction:column;align-items:flex-start;gap:.3rem}.choices{gap:.2rem;max-height:40vh;overflow-y:auto}.choice-button{font-size:.8rem;padding:.4rem;min-height:40px;display:flex;align-items:center;justify-content:flex-start;white-space:normal;word-break:break-word}}@media (max-width: 768px) and (pointer: coarse){.choice-button{min-height:48px;padding:12px 16px}.start-race-button{min-height:48px;padding:12px 24px}.toast-close{width:32px;height:32px;font-size:20px}}@media (max-width: 768px) and (orientation: landscape){.game-header{flex-direction:row;justify-content:space-between}.race-hud{inset:8px 8px auto auto;width:160px;height:auto;max-height:120px;font-size:.65rem;padding:6px}.quiz-modal{max-height:90vh;overflow-y:auto}}@media (max-width: 480px){.game-container{padding:0}.quiz-modal{padding:1rem;margin:5px;max-height:95vh;overflow-y:auto;display:flex;flex-direction:column}.choice-button{font-size:.85rem;padding:.7rem;margin-bottom:.5rem;word-wrap:break-word;white-space:normal;line-height:1.4;min-height:48px;display:flex;align-items:center}.bot-info{display:none}.final-bot-standings{font-size:.8rem;padding:.75rem}.race-hud{inset:8px auto auto 8px;width:120px;height:auto;max-height:140px;padding:6px;font-size:.55rem}.quiz-overlay{align-items:flex-start;padding:5px}.quiz-modal{margin-top:10px;max-height:calc(100vh - 20px)}.choices{gap:.5rem;max-height:40vh}}.volume-control{margin-top:10px;padding:5px;background:#0000004d;border-radius:5px}.volume-control label{display:flex;align-items:center;font-size:.9rem;color:#fff}.volume-control input[type=range]{background:#fff3;border-radius:5px;outline:none;height:4px}.volume-control input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#0f0;cursor:pointer;box-shadow:0 0 5px #00ff0080}.volume-control input[type=range]::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#0f0;cursor:pointer;border:none;box-shadow:0 0 5px #00ff0080}@media (max-width: 768px){.volume-control{display:none}}.game-menu{position:fixed;top:20px;right:20px;z-index:1000}.menu-toggle{width:50px;height:50px;background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid #00ff00;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;box-shadow:0 4px 15px #0f03;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.menu-toggle:hover{background:linear-gradient(135deg,#16213e,#1a1a2e);box-shadow:0 6px 20px #0f06;transform:translateY(-2px)}.menu-toggle.active{background:linear-gradient(135deg,#0f0,#0c0);border-color:#fff;box-shadow:0 6px 25px #0f09}.hamburger-svg{width:24px;height:24px;transition:all .3s ease}.hamburger-line{transition:all .3s ease;transform-origin:center}.menu-toggle.active .hamburger-line.top{transform:rotate(45deg) translate(6px,6px);stroke:#fff}.menu-toggle.active .hamburger-line.middle{opacity:0}.menu-toggle.active .hamburger-line.bottom{transform:rotate(-45deg) translate(6px,-6px);stroke:#fff}.menu-overlay{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:998;animation:fadeIn .3s ease}.menu-panel{position:fixed;top:60px;right:20px;width:320px;max-height:calc(100vh - 80px);background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);border:2px solid #00ff00;border-radius:15px;box-shadow:0 10px 30px #000000b3;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);transform:translate(100%) scale(.8);opacity:0;transition:all .3s cubic-bezier(.175,.885,.32,1.275);overflow:hidden;z-index:999}.menu-panel.open{transform:translate(0) scale(1);opacity:1}.menu-header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background:linear-gradient(90deg,#0f0,#0c0);border-bottom:2px solid #00aa00}.menu-header h3{margin:0;font-size:1.1rem;font-weight:700;color:#000;text-shadow:1px 1px 2px rgba(255,255,255,.3)}.menu-close{width:30px;height:30px;background:#0003;border:1px solid #000000;border-radius:50%;color:#000;font-size:18px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.menu-close:hover{background:#fff3;transform:scale(1.1)}.menu-content{padding:20px;max-height:calc(100vh - 150px);overflow-y:auto}.menu-content::-webkit-scrollbar{width:6px}.menu-content::-webkit-scrollbar-track{background:#ffffff1a;border-radius:3px}.menu-content::-webkit-scrollbar-thumb{background:#0f0;border-radius:3px}.menu-section{margin-bottom:25px;padding:15px;background:#0000004d;border-radius:10px;border:1px solid rgba(0,255,0,.2)}.menu-section h4{margin:0 0 15px;font-size:.95rem;color:#0f0;font-weight:700;text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid rgba(0,255,0,.3);padding-bottom:8px}.menu-button{width:100%;padding:12px 16px;margin:8px 0;background:linear-gradient(135deg,#2a2a3e,#1e1e2e);border:2px solid #444;border-radius:8px;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px;text-align:left}.menu-button:hover{background:linear-gradient(135deg,#3a3a4e,#2e2e3e);border-color:#0f0;transform:translate(5px);box-shadow:0 4px 15px #0f03}.menu-button.pause{border-color:orange}.menu-button.pause:hover{border-color:orange;box-shadow:0 4px 15px #ffa5004d}.menu-button.resume{border-color:#0f0}.menu-button.resume:hover{border-color:#0f0;box-shadow:0 4px 15px #00ff004d}.menu-button.finish{border-color:#ff6b6b}.menu-button.finish:hover{border-color:#ff6b6b;box-shadow:0 4px 15px #ff6b6b4d}.menu-button.leaderboard{border-color:#f39c12}.menu-button.leaderboard:hover{border-color:#f39c12;box-shadow:0 4px 15px #f39c124d}.menu-button.restart{border-color:#3498db}.menu-button.restart:hover{border-color:#3498db;box-shadow:0 4px 15px #3498db4d}.volume-setting{margin-top:10px}.volume-setting label{display:flex;flex-direction:column;gap:8px;color:#fff;font-size:.85rem;font-weight:500}.volume-slider{width:100%;height:6px;background:#fff3;border-radius:3px;outline:none;cursor:pointer;transition:all .2s ease}.volume-slider::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,#0f0,#0c0);cursor:pointer;box-shadow:0 2px 8px #0f06;transition:all .2s ease}.volume-slider::-webkit-slider-thumb:hover{transform:scale(1.2);box-shadow:0 4px 12px #0f09}.volume-value{align-self:flex-end;font-size:.8rem;color:#0f0;font-weight:700}.game-info{display:flex;flex-direction:column;gap:8px}.info-item{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:.85rem}.info-item:last-child{border-bottom:none}.info-value{color:#0f0;font-weight:700;text-transform:capitalize}.controls-help{display:flex;flex-direction:column;gap:8px}.control-item{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;padding:4px 0}.keys{background:#00000080;padding:3px 8px;border-radius:4px;border:1px solid #00ff00;font-family:Courier New,monospace;font-size:.75rem;color:#0f0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@media (max-width: 768px){.game-menu{top:15px;right:15px}.menu-toggle{width:45px;height:45px}.menu-panel{width:280px;max-height:calc(100vh - 60px);top:50px;right:15px}.menu-content{padding:15px;max-height:calc(100vh - 110px);overflow-y:auto;-webkit-overflow-scrolling:touch}.menu-section{padding:12px;margin-bottom:20px}.menu-button{padding:10px 14px;font-size:.85rem}}@media (max-width: 480px){.menu-panel{width:calc(100vw - 40px);right:20px;max-height:calc(100vh - 50px);top:45px;left:20px}.menu-toggle{width:40px;height:40px}.hamburger-icon{width:20px;height:15px}}.random-questions-container{max-width:1200px;margin:0 auto 2rem;padding:1.5rem 2rem;background:#ffffff0d;border-radius:16px;border:1px solid rgba(255,255,255,.1);min-height:600px;overflow:visible}.random-questions-container h3{color:#0f0;text-align:center;margin-bottom:1rem;font-size:1.8rem;text-shadow:0 0 10px rgba(0,255,0,.5)}.preview-description{text-align:center;color:#bdc3c7;margin-bottom:2rem;font-size:1.1rem;line-height:1.6}.questions-grid{display:flex;flex-direction:column;gap:1.5rem;margin-bottom:2rem;align-items:stretch}.question-preview{background:#0006;border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:1.5rem;transition:all .3s ease;position:relative;animation:slideInUp .6s ease-out}.question-preview:hover{transform:translateY(-5px);box-shadow:0 10px 30px #0f03;border-color:#0f06}.question-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.question-meta{display:flex;align-items:center;gap:.75rem}.timer{background:#3498db33;border:1px solid rgba(52,152,219,.4);color:#3498db;padding:.25rem .75rem;border-radius:20px;font-size:.9rem;font-weight:600;display:flex;align-items:center;gap:.25rem;animation:pulse 2s infinite}.timer-warning{background:#e74c3c33;border-color:#e74c3c66;color:#e74c3c;animation:urgentPulse .5s infinite}.timer-controls{display:flex;align-items:center;gap:.5rem}.skip-button{font-size:.9rem;background:#9b59b633;color:#9b59b6;border:1px solid rgba(155,89,182,.3);padding:.25rem .5rem;border-radius:20px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;min-width:36px;height:28px}.skip-button:hover{background:#9b59b64d;border-color:#9b59b680;transform:translateY(-1px)}@keyframes pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.8}}@keyframes urgentPulse{0%,to{transform:scale(1);box-shadow:0 0 #e74c3c66}50%{transform:scale(1.1);box-shadow:0 0 0 10px #e74c3c00}}.question-topic{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.question-difficulty{color:#f39c12;font-size:1.2rem;font-weight:700}.question-body{margin-bottom:1.5rem}.question-body h4{color:#ecf0f1;font-size:1.1rem;line-height:1.4;margin:0;font-weight:500;word-break:break-word;white-space:pre-wrap;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.question-options{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.option{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1);transition:all .2s ease;cursor:pointer;position:relative}.option:hover{background:#ffffff1a;border-color:#fff3;transform:translateY(-2px)}.option.selected{background:#3498db4d;border-color:#3498db99}.option.correct{background:#27ae604d;border-color:#27ae6099}.option.incorrect{background:#e74c3c4d;border-color:#e74c3c99}.question-preview.answered .option{cursor:default}.question-preview.answered .option:hover{transform:none}.question-preview.fading{animation:fadeOut .5s ease-out forwards;pointer-events:none}.question-preview.new-question{animation:slideInUp .6s ease-out forwards}.question-preview.active{border-color:#3498db99;box-shadow:0 0 20px #3498db33}.question-preview:not(.active):not(.answered){opacity:.6}.question-preview:not(.active):not(.answered) .option.inactive{cursor:not-allowed;opacity:.5}.question-preview:not(.active):not(.answered) .option.inactive:hover{background:#ffffff0d;transform:none}@keyframes fadeOut{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(.95)}}.option-letter{background:#34495e;color:#fff;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;flex-shrink:0}.option-text{color:#bdc3c7;font-size:.95rem;line-height:1.3}.correct-indicator,.incorrect-indicator{margin-left:auto;font-size:1.2rem}.answer-result{display:flex;align-items:center;justify-content:center;padding:.75rem;border-radius:8px;margin-top:1rem;font-weight:600;font-size:.95rem;animation:slideIn .5s ease-out}.answer-result.correct{background:#27ae6033;border:1px solid rgba(39,174,96,.4);color:#2ecc71}.answer-result.incorrect{background:#e74c3c33;border:1px solid rgba(231,76,60,.4);color:#e74c3c}.answer-result.timeout{background:#f39c1233;border:1px solid rgba(243,156,18,.4);color:#f39c12}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.preview-footer{text-align:center;padding:1.5rem;background:#0000004d;border-radius:12px;margin-top:1rem}.preview-footer p{color:#ecf0f1;font-size:1rem;margin:0;line-height:1.5}.preview-footer strong{color:#0f0;text-shadow:0 0 5px rgba(0,255,0,.3)}.error-text{color:#e74c3c;text-align:center;font-size:1.1rem}.loading-more{text-align:center;padding:2rem;background:#0000004d;border-radius:12px;margin-bottom:2rem}.loading-more p{color:#3498db;font-size:1.1rem;margin:0;display:flex;align-items:center;justify-content:center;gap:.5rem}.loading-more p:before{content:"⏳";animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.no-more-questions{text-align:center;padding:2rem;background:#00ff001a;border:1px solid rgba(0,255,0,.3);border-radius:12px;margin-bottom:2rem}.no-more-questions p{color:#2ecc71;font-size:1.1rem;margin:.5rem 0;line-height:1.5}.no-more-questions p:first-child{font-weight:600;font-size:1.2rem}@media (max-width: 768px){.random-questions-container{border:2px solid red;margin:0 .5rem 4rem;padding:1rem;min-height:500px;max-height:none;overflow:visible;width:calc(100% - 1rem);box-sizing:border-box}.questions-grid{gap:1.5rem;width:100%;height:auto;max-height:none;overflow:visible}.question-preview{padding:.75rem;gap:.5rem}.question-body h4{font-size:.95rem;margin-bottom:.5rem}.question-options{gap:.25rem;margin-bottom:.5rem}.option{padding:.5rem;font-size:.85rem;min-height:40px;margin-bottom:.25rem}.option-text{font-size:.85rem}.answer-result{padding:.5rem;font-size:.85rem;margin-top:.5rem}.question-header{margin-bottom:.5rem}.questions-grid{gap:1rem}}@media (max-width: 480px){.game-container{padding:5px;height:auto!important;min-height:100vh;max-height:none;overflow:visible}.random-questions-container{margin:.25rem .25rem 5rem;padding:.75rem;height:auto;max-height:none;overflow:visible}.random-questions-container h3{font-size:1.5rem}.preview-description{font-size:1rem}.question-body h4{font-size:.9rem}.question-preview{padding:.5rem;height:auto;min-height:auto;max-height:none;overflow:visible;margin-bottom:2rem}.question-options{margin-bottom:1rem}.option{padding:.4rem;font-size:.8rem;min-height:36px}.option-text{font-size:.9rem;flex:1}.questions-grid{gap:2rem;height:auto;max-height:none;overflow:visible}.preview-footer{margin-bottom:4rem;padding:1rem}.mobile-controls{position:fixed;bottom:8vh;left:0;right:0;display:flex;justify-content:space-between;padding:0 2rem;z-index:9999;pointer-events:none}.mobile-controls__cluster{display:flex;gap:1rem;pointer-events:auto}.mobile-controls__cluster--left{justify-content:flex-start}.mobile-controls__cluster--right{justify-content:flex-end}.mobile-controls__btn{width:3.5rem;height:3.5rem;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:#00000040;color:#fff;font-size:1.6rem;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);-webkit-tap-highlight-color:transparent;touch-action:none}.mobile-controls__btn:active{background:#fff3}@media (pointer: fine){.mobile-controls{display:none}}body,html{overflow-x:hidden;overflow-y:auto}}.rocket-icon{display:inline-block;animation:rocket-launch 1.5s infinite ease-in-out}@keyframes rocket-launch{0%{transform:translateY(0) rotate(0)}50%{transform:translateY(-5px) rotate(-5deg)}to{transform:translateY(0) rotate(0)}}.mini-leaderboard{max-width:600px;margin:2rem auto;padding:1.5rem;background:#ffffff0d;border-radius:12px;border:1px solid rgba(255,255,255,.1)}.mini-leaderboard h3{text-align:center;margin-bottom:1rem;font-size:1.25rem}.mini-entry{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;margin:.5rem 0;background:#ffffff05;border-radius:8px}.mini-entry .rank{font-weight:700;min-width:40px}.mini-entry .name{flex:1;margin:0 1rem}.mini-entry .time{font-weight:700}.mini-entry.blurred{filter:blur(4px);opacity:.7}@media (max-width: 768px){.mini-leaderboard{margin:1rem .5rem;padding:1rem}.mini-entry{font-size:.9rem;padding:.5rem}}.auth-trigger{background:linear-gradient(135deg,#0f0,#0c0);color:#000;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:700;cursor:pointer;transition:all .3s;margin:1rem auto;display:block}.auth-trigger:hover{transform:translateY(-2px);box-shadow:0 4px 15px #0f06}.auth-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000e6;padding:2rem;border-radius:12px;border:2px solid #00ff00;box-shadow:0 8px 32px #00ff004d;z-index:1001;width:90%;max-width:400px;color:#fff}.auth-title{text-align:center;color:#0f0;margin-bottom:1.5rem}.auth-input{width:100%;padding:.75rem;margin-bottom:1rem;background:#ffffff1a;border:1px solid #00ff00;border-radius:6px;color:#fff;font-size:1rem;box-sizing:border-box}.auth-input::placeholder{color:#ffffff80}.auth-button{width:100%;padding:.75rem;border:none;border-radius:6px;font-weight:700;cursor:pointer;transition:all .3s;margin-bottom:.5rem}.auth-button.primary{background:linear-gradient(135deg,#0f0,#0c0);color:#000}.auth-button.secondary{background:#ffffff1a;color:#fff;border:1px solid #00ff00}.auth-button:hover{transform:translateY(-2px);box-shadow:0 4px 15px #0f06}.topic-selection{margin:2rem auto;max-width:800px;padding:1rem;background:#000c;border-radius:12px;border:2px solid #00ff00;box-shadow:0 4px 15px #0f03}.topic-selection h4{text-align:center;color:#0f0;margin-bottom:1rem}.topics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}.topic-button{padding:.75rem;background:#ffffff1a;border:1px solid #00ff00;border-radius:8px;color:#fff;cursor:pointer;transition:all .3s;font-size:1rem;text-align:center}.topic-button:hover{background:#0f03}.topic-button.selected{background:linear-gradient(135deg,#0f0,#0c0);color:#000;font-weight:700}
