:root{--bg-gradient: linear-gradient(180deg, #ffffff 0%, #e0f7fa 100%);--glass-bg: rgba(255, 255, 255, .6);--glass-border: 1px solid rgba(255, 255, 255, .8);--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, .15);--blur: 12px;--primary-color: #29b6f6;--primary-dark: #0288d1;--text-color: #333;--text-secondary: #666;--radius: 20px;--card-bg: rgba(255, 255, 255, .8);--input-bg: rgba(255, 255, 255, .8);--border-color: rgba(0, 0, 0, .1)}[data-theme=dark]{--bg-gradient: linear-gradient(180deg, #0d1117 0%, #161b22 100%);--glass-bg: rgba(22, 27, 34, .8);--glass-border: 1px solid rgba(255, 255, 255, .1);--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, .4);--primary-color: #58a6ff;--primary-dark: #79c0ff;--text-color: #e6edf3;--text-secondary: #8b949e;--card-bg: rgba(33, 38, 45, .9);--input-bg: rgba(33, 38, 45, .9);--border-color: rgba(255, 255, 255, .1)}[data-theme=dark] body{background:var(--bg-gradient)}[data-theme=dark] .blob-1{background:#1f6feb}[data-theme=dark] .blob-2{background:#238636}*{box-sizing:border-box}body{margin:0;font-family:Quicksand,sans-serif;background:var(--bg-gradient);color:var(--text-color);min-height:100vh;overflow-x:hidden;display:flex;flex-direction:column}#main-footer{padding:1rem 2rem;text-align:center;margin:1rem}#main-footer a{color:var(--primary-dark);text-decoration:none;margin:0 .5rem}#main-footer a:hover{text-decoration:underline}#main-footer .copyright{display:block;margin-top:.5rem;color:#888;font-size:.85rem}.bg-blobs{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none;overflow:hidden}.blob{position:absolute;border-radius:50%;filter:blur(80px);opacity:.6;animation:moveBlob 20s infinite alternate}.blob-1{top:-10%;left:-10%;width:500px;height:500px;background:#81d4fa}.blob-2{bottom:-10%;right:-10%;width:600px;height:600px;background:#b39ddb;animation-delay:-5s}@keyframes moveBlob{0%{transform:translate(0) scale(1)}to{transform:translate(50px,50px) scale(1.1)}}.glass{background:var(--glass-bg);backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));border:var(--glass-border);box-shadow:var(--glass-shadow);border-radius:var(--radius)}.hidden{display:none!important}.glossy-btn{position:relative;background:linear-gradient(180deg,#4fc3f7,#039be5);border:none;border-radius:12px;color:#fff;font-weight:700;padding:12px 24px;cursor:pointer;box-shadow:0 4px 6px #0003,inset 0 1px #fff6;overflow:hidden;transition:transform .1s,filter .2s;text-shadow:0 1px 2px rgba(0,0,0,.3);text-decoration:none;display:inline-block}.glossy-btn:after{content:"";position:absolute;top:0;left:0;right:0;height:50%;background:linear-gradient(180deg,#ffffffb3,#ffffff1a);border-radius:12px 12px 60% 60%/12px 12px 20px 20px;pointer-events:none}.glossy-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.glossy-btn:active{transform:translateY(1px)}.glossy-btn.small{padding:8px 16px;font-size:.9rem}.glossy-btn.danger{background:linear-gradient(180deg,#ff8a80,#d32f2f)}.text-btn{background:none;border:none;color:var(--primary-dark);font-weight:700;cursor:pointer;text-decoration:underline}.discord-btn{background-color:#5865f2;color:#fff;border:none;padding:12px 20px;border-radius:8px;font-weight:700;cursor:pointer;width:100%;text-decoration:none;display:block;text-align:center}#main-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;margin:1rem;height:70px}.logo{font-size:1.8rem;font-weight:700;color:var(--primary-dark);letter-spacing:-1px}.user-widget{display:flex;gap:1rem;align-items:center}#user-info{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:5px 10px;border-radius:20px;background:#ffffff80;transition:background .2s}#user-info:hover{background:#fffc}#user-avatar{width:32px;height:32px;border-radius:50%}#app{flex:1;display:flex;flex-direction:column;align-items:center;padding:1rem;max-width:1400px;margin:0 auto;width:100%}.container{width:100%;padding:2rem}.dashboard-grid{display:flex;flex-direction:column;gap:2rem}.dashboard-row{display:grid;grid-template-columns:1fr 1fr;gap:2rem}@media(max-width:900px){.dashboard-row{grid-template-columns:1fr}}.dashboard-col{overflow:hidden}.dashboard-col h2{margin-top:0;border-bottom:2px solid var(--border-color);padding-bottom:.5rem;margin-bottom:1.5rem;color:var(--text-color)}.game-cards{display:flex;flex-direction:column;gap:1rem}.game-card{padding:2rem;text-align:left;display:flex;flex-direction:column}.game-card h3{margin:0;font-size:1.5rem}.game-card p{margin:5px 0 0;opacity:.9;font-weight:400}.join-form{display:flex;gap:10px;margin-bottom:2rem}.glass-input{flex:1;padding:10px 15px;border-radius:12px;border:1px solid rgba(0,0,0,.1);background:#fffc;font-family:inherit;font-size:1rem}.public-rooms ul{list-style:none;padding:0;margin:0}.public-rooms li{padding:10px;border-bottom:1px solid rgba(0,0,0,.05);display:flex;justify-content:space-between;cursor:pointer}.public-rooms li:hover{background:#ffffff4d}.public-rooms li.empty{color:#999;cursor:default}.theme-toggle-btn{width:44px;height:44px;border-radius:50%;border:none;background:var(--glass-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;box-shadow:var(--glass-shadow)}.theme-toggle-btn:hover{transform:scale(1.1);background:var(--primary-color)}.theme-icon{font-size:1.3rem}[data-theme=dark] .theme-icon:after{content:"☀️"}[data-theme=dark] .theme-icon{font-size:0}[data-theme=dark] .theme-icon:after{font-size:1.3rem}.carousel-container{display:flex;align-items:center;gap:1rem;width:100%;position:relative;padding:.5rem 0}.carousel-track-wrapper{flex:1;overflow:hidden;border-radius:var(--radius);padding:.5rem}.carousel-track{display:flex;gap:1rem;transition:transform .4s cubic-bezier(.25,.1,.25,1);padding:.5rem 0}.carousel-btn{width:40px;height:40px;border-radius:50%;border:2px solid var(--border-color);background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;font-size:1.2rem;color:var(--text-color);transition:all .2s ease;box-shadow:var(--glass-shadow);flex-shrink:0}.carousel-btn:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color);transform:scale(1.1)}.carousel-btn:disabled{opacity:.3;cursor:not-allowed;transform:none}.carousel-dots{display:flex;justify-content:center;gap:.5rem;margin-top:.5rem;padding-bottom:.5rem}.carousel-dot{width:10px;height:10px;border-radius:50%;background:var(--border-color);border:none;cursor:pointer;transition:all .2s ease}.carousel-dot.active{background:var(--primary-color);transform:scale(1.2)}.carousel-track .game-card{min-width:160px;max-width:160px;padding:1.25rem 1rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.4rem;flex-shrink:0;background:var(--card-bg);border:var(--glass-border);border-radius:16px;transition:all .3s ease;cursor:pointer}.carousel-track .game-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #00000026;border-color:var(--primary-color)}.game-icon{font-size:2.5rem;line-height:1;margin-bottom:.25rem}.carousel-track .game-card h3{margin:0;font-size:.95rem;color:var(--text-color);font-weight:600}.carousel-track .game-card p{margin:0;font-size:.75rem;color:var(--text-secondary);font-weight:400;line-height:1.3}[data-theme=dark] .glass-input{background:var(--input-bg);border-color:var(--border-color);color:var(--text-color)}[data-theme=dark] .glossy-btn{background:linear-gradient(180deg,#3b82f6,#1d4ed8)}[data-theme=dark] .logo{color:var(--primary-dark)}[data-theme=dark] #user-info{background:#ffffff1a}[data-theme=dark] #user-info:hover{background:#fff3}[data-theme=dark] .dashboard-col h2,[data-theme=dark] .public-rooms li{border-bottom-color:var(--border-color)}[data-theme=dark] .public-rooms li:hover{background:#ffffff0d}[data-theme=dark] .modal-content{background:#161b22f2;border:1px solid rgba(255,255,255,.1);color:var(--text-color)}[data-theme=dark] .modal-content label{color:var(--text-color)}[data-theme=dark] .modal-content select{background:var(--input-bg);color:var(--text-color);border:1px solid var(--border-color);border-radius:8px;padding:.5rem}[data-theme=dark] .modal-content h2{color:var(--text-color)}[data-theme=dark] .room-type-btn{background:var(--card-bg);border-color:var(--border-color);color:var(--text-color)}[data-theme=dark] .room-type-btn.active{background:var(--primary-color);border-color:var(--primary-color);color:#fff}[data-theme=dark] .text-btn{color:var(--primary-dark)}.modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#0006;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:#fffffff2;padding:2rem;width:340px;text-align:center;border-radius:16px}.modal-content label{display:block;text-align:left;margin:1rem 0 .5rem;font-weight:700}.modal-content select{width:100%;margin-bottom:1rem}.note{font-size:.8rem;color:#666;margin-top:10px}.room-type-selector{display:flex;gap:10px;margin-bottom:1rem}.room-type-btn{flex:1;padding:10px;border:2px solid #ddd;border-radius:8px;background:#fff;cursor:pointer;font-weight:700;transition:all .2s}.room-type-btn.active{border-color:var(--primary-color);background:var(--primary-color);color:#fff}.lobby-layout{display:grid;grid-template-columns:2fr 1fr;gap:1rem;min-height:400px}.lobby-main{display:flex;flex-direction:column;gap:1rem}.lobby-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}.lobby-header h1{margin:0}.lobby-controls{display:flex;gap:10px;align-items:center}#room-code-display{font-size:.8em;color:#666}#player-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.player-item{display:flex;align-items:center;gap:.5rem;padding:8px 12px;background:#ffffff80;border-radius:8px}.player-avatar{width:32px;height:32px;border-radius:50%}.crown{font-size:1.2rem}.you-tag{color:var(--primary-dark);font-size:.8rem}.color-dot{width:16px;height:16px;border-radius:50%;border:2px solid white;box-shadow:0 1px 3px #0003}.player-item.eliminated{opacity:.4;filter:grayscale(1)}.lobby-sidebar,.game-sidebar{display:flex;flex-direction:column;min-width:280px}.sidebar-tabs{display:flex;gap:0}.tab-btn{flex:1;padding:10px;background:#ffffff4d;border:none;cursor:pointer;font-weight:700;border-radius:8px 8px 0 0;transition:background .2s}.tab-btn.active{background:#ffffffb3}.sidebar-content{flex:1;background:#ffffff80;border-radius:0 0 12px 12px;overflow:hidden}.tab-panel{height:300px;display:flex;flex-direction:column}.tab-panel.hidden{display:none}#chat-messages,#game-chat-messages,#bomb-chat-messages{flex:1;overflow-y:auto;padding:10px}.chat-msg{margin-bottom:5px;font-size:.9rem}.system-msg{color:#666;font-style:italic}.chat-input-row{display:flex;gap:5px;padding:5px;border-top:1px solid rgba(0,0,0,.1)}.chat-input-row input{flex:1}#leaderboard-list li,#game-leaderboard-list li,#bomb-leaderboard-list li{display:flex;justify-content:space-between;padding:8px;border-bottom:1px solid rgba(0,0,0,.05)}.game-screen{width:100%;padding:1rem}.game-layout{display:grid;grid-template-columns:1fr 280px;gap:1rem}.game-main{display:flex;flex-direction:column}.game-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;gap:10px}.game-header h2{margin:0}.game-content{display:flex;flex-direction:column;align-items:center;gap:1rem;position:relative}.game-content.centered{text-align:center}#my-color-indicator{width:24px;height:24px;border-radius:50%;border:3px solid white;box-shadow:0 2px 6px #0000004d}.timer-overlay{position:fixed;top:100px;left:50%;transform:translate(-50%);font-size:2.5rem;font-weight:900;color:red;text-shadow:2px 2px 4px white,-2px -2px 4px white;z-index:100;pointer-events:none;animation:pulse 1s infinite}@keyframes pulse{0%,to{transform:translate(-50%) scale(1)}50%{transform:translate(-50%) scale(1.05)}}#victory-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000d9;display:flex;justify-content:center;align-items:center;z-index:2000;animation:fadeIn .5s}#victory-overlay.paint-splash{animation:paintSplash .8s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes paintSplash{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(150% at 50% 50%)}}#victory-content{text-align:center;color:#fff}#victory-emoji{font-size:6rem;animation:bounce .5s infinite alternate}@keyframes bounce{0%{transform:translateY(0)}to{transform:translateY(-20px)}}#victory-text{font-size:3rem;font-weight:900;text-shadow:2px 2px black}#victory-name{font-size:2rem;margin:1rem 0}#auto-restart-timer{font-size:1.2rem;margin-top:1rem}#grid-wrapper{position:relative}#grid-container{display:grid;grid-template-columns:repeat(20,1fr);width:400px;height:400px;background:#fff;border:5px solid #fff;box-shadow:0 4px 10px #0000001a}.pixel{border:1px solid rgba(0,0,0,.05);cursor:crosshair}#cursor-layer{position:absolute;top:0;left:0;width:400px;height:400px;pointer-events:none;overflow:visible}.player-cursor{position:absolute;top:0;left:0;transition:transform .08s linear;pointer-events:none;display:flex;align-items:flex-start;gap:4px}.cursor-name{background:#000000b3;color:#fff;font-size:10px;padding:2px 6px;border-radius:4px;white-space:nowrap}#bomb-game-area{position:relative;min-height:250px}#round-table{position:relative;width:300px;height:300px;margin:20px auto}.round-table-player{position:absolute;left:50%;top:50%;display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .3s,opacity .3s}.rt-avatar{width:48px;height:48px;border-radius:50%;border:3px solid white;box-shadow:0 2px 8px #0003}.rt-name{font-size:.75rem;font-weight:700;background:#0009;color:#fff;padding:2px 8px;border-radius:8px}.round-table-player.eliminated{opacity:.3;filter:grayscale(1)}.round-table-player.bomb-holder .rt-avatar{border-color:red;box-shadow:0 0 20px red;animation:bombGlow .5s infinite alternate}@keyframes bombGlow{0%{box-shadow:0 0 10px red}to{box-shadow:0 0 30px red,0 0 50px orange}}#bomb-status{font-size:5rem;margin:1rem 0;filter:drop-shadow(0 4px 6px rgba(0,0,0,.2))}#pass-btn{transition:none!important}.has-bomb{animation:shake .5s infinite}.explosion{animation:explode .5s}@keyframes shake{0%,to{transform:translate(1px,1px)}25%{transform:translate(-2px,-1px)}50%{transform:translate(2px,2px)}75%{transform:translate(-1px,2px)}}@keyframes explode{0%{background:#fff}20%{background:orange}40%{background:red}60%{background:orange}to{background:#fff}}.hit-flash{position:fixed;top:0;left:0;width:100%;height:100%;background:#0f03;pointer-events:none;z-index:9999;animation:hitFlashAnim .2s ease-out}@keyframes hitFlashAnim{0%{opacity:1}to{opacity:0}}.miss-flash{animation:missFlashAnim .3s}@keyframes missFlashAnim{0%,to{background:inherit}50%{background:#f006}}.btn-shake{animation:btnShakeAnim .15s ease-in-out!important}@keyframes btnShakeAnim{0%,to{transform:translate(0)}25%{transform:translate(-5px) rotate(-2deg)}50%{transform:translate(5px) rotate(2deg)}75%{transform:translate(-3px) rotate(-1deg)}}.phase-warmup{opacity:1}.phase-speed{background:linear-gradient(180deg,#fff3e0,#ffcc80)!important}.phase-speed .timer-overlay{color:#ff9800!important}.phase-hyper{background:linear-gradient(180deg,#ffebee,#ef5350)!important;animation:hyperPulse .5s infinite alternate}.phase-hyper .timer-overlay{color:#d32f2f!important;animation:hyperText .2s infinite}@keyframes hyperPulse{0%{background:linear-gradient(180deg,#ffebee,#ef5350)}to{background:linear-gradient(180deg,#ffcdd2,#c62828)}}@keyframes hyperText{0%,to{transform:translate(-50%) scale(1)}50%{transform:translate(-50%) scale(1.1)}}#pass-btn{transition:none!important;font-size:1.1rem;min-width:140px;z-index:100}#pass-btn:active{transform:scale(.95)}#glitch-type-screen{background:#0a0a0a;min-height:100vh}.glitch-layout{display:grid;grid-template-columns:1fr 300px;gap:1rem;height:100%;padding:1rem}.glitch-main{display:flex;flex-direction:column}.glitch-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #00ff00}.glitch-header h2{color:#0f0;font-family:Courier New,monospace;text-shadow:0 0 10px #00ff00;margin:0}.glitch-text{color:#0f0!important;font-family:Courier New,monospace}.glitch-game-area{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:2rem}.glitch-waiting{text-align:center}.glitch-waiting p{font-size:1.5rem;color:#0f0;font-family:Courier New,monospace;text-shadow:0 0 10px #00ff00}.glitch-btn{background:linear-gradient(145deg,#0f0,#0a0)!important;color:#000!important;font-family:Courier New,monospace!important;font-weight:700;text-shadow:none}.glitch-playing{width:100%;max-width:800px}.glitch-phrase-container{background:#111;border:2px solid #00ff00;border-radius:10px;padding:2rem;margin-bottom:1.5rem;text-align:center}.glitch-phrase{color:#0f0;font-family:Courier New,monospace;font-size:1.8rem;text-shadow:0 0 15px #00ff00;margin:0;letter-spacing:2px;transition:filter .3s}.glitch-input{width:100%;padding:1rem 1.5rem;font-size:1.5rem;font-family:Courier New,monospace;background:#111;border:2px solid #00ff00;border-radius:10px;color:#0f0;text-align:center;margin-bottom:1.5rem;outline:none;caret-color:#0f0;transition:transform .3s,color .3s}.glitch-input:focus{box-shadow:0 0 20px #00ff0080}.glitch-input::placeholder{color:#050}.glitch-progress-container{display:flex;flex-direction:column;gap:.5rem}.glitch-progress-bar{display:grid;grid-template-columns:120px 1fr 50px;align-items:center;gap:.5rem;padding:.5rem;background:#00ff001a;border-radius:5px}.progress-name{color:#0f0;font-family:Courier New,monospace;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress-track{height:20px;background:#222;border-radius:10px;overflow:hidden;border:1px solid #00ff00}.progress-fill{height:100%;background:linear-gradient(90deg,#0f0,#0c0);transition:width .2s ease-out;box-shadow:0 0 10px #0f0}.progress-percent{color:#0f0;font-family:Courier New,monospace;font-size:.9rem;text-align:right}.glitch-info{display:flex;gap:1.5rem;align-items:center}#glitch-round-info{color:#0f0;font-family:Courier New,monospace;font-size:1.1rem;text-shadow:0 0 5px #00ff00}.glitch-difficulty{font-family:Courier New,monospace;font-weight:700;padding:2px 8px;border-radius:4px;font-size:.9rem;color:#000}.glitch-difficulty.easy{background:#0f0;box-shadow:0 0 10px #0f0}.glitch-difficulty.medium{background:#ffeb3b;box-shadow:0 0 10px #ffeb3b}.glitch-difficulty.hard{background:#ff9800;box-shadow:0 0 10px #ff9800}.glitch-difficulty.expert{background:#ff5722;box-shadow:0 0 10px #ff5722}.glitch-difficulty.insane{background:#d500f9;box-shadow:0 0 10px #d500f9;color:#fff}.glitch-timer{font-family:Courier New,monospace;font-size:1.5rem;font-weight:700;color:#0f0}.glitch-timer.warning{color:#ffeb3b}.glitch-timer.critical{color:red;text-shadow:0 0 10px #ff0000;animation:glitchShake .5s infinite}.glitch-stats-container{display:flex;justify-content:center;margin-bottom:1rem}.glitch-combo{font-family:Courier New,monospace;font-size:3rem;font-weight:700;color:#ffffff1a;transition:all .2s}.glitch-combo.combo-1{color:#0f0;text-shadow:0 0 10px #00ff00}.glitch-combo.combo-2{color:#0f0;text-shadow:0 0 20px #00ff00;transform:scale(1.1)}.glitch-combo.combo-3{color:#ffeb3b;text-shadow:0 0 20px #ffeb3b;transform:scale(1.2)}.glitch-combo.combo-4{color:#ff9800;text-shadow:0 0 30px #ff9800;transform:scale(1.3)}.glitch-combo.combo-5{color:#ff5722;text-shadow:0 0 40px #ff5722;transform:scale(1.4);animation:comboPulse .5s infinite alternate}.glitch-combo.combo-break{color:red;text-shadow:0 0 20px #ff0000;animation:shake .3s}@keyframes comboPulse{0%{transform:scale(1.4);text-shadow:0 0 20px #ff5722}to{transform:scale(1.5);text-shadow:0 0 50px #ff5722}}.glitch-feedback{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-family:Courier New,monospace;font-size:2.5rem;font-weight:700;text-align:center;z-index:100;padding:2rem;border-radius:10px;background:#000c;border:2px solid #00ff00;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:fadeIn .3s}.glitch-feedback.winner{color:#0f0;box-shadow:0 0 50px #00ff004d}.glitch-feedback.timeout{color:#ffeb3b;border-color:#ffeb3b}.glitch-feedback.other{color:#fff;font-size:1.5rem}.speed-bonus{display:block;color:#00d2ff;font-size:1.2rem;margin-top:.5rem;animation:blink .5s infinite}.progress-score{color:#fff;font-family:Courier New,monospace;font-size:.9rem}.progress-combo{color:#ffeb3b;font-family:Courier New,monospace;font-weight:700;font-size:.9rem;text-align:right}.glitch-progress-bar{grid-template-columns:120px 1fr 60px 40px!important}.glitch-sidebar{background:#00ff000d;border:1px solid #00ff00;border-radius:10px;overflow:hidden}.glitch-sidebar .sidebar-tabs{background:#00ff001a}.glitch-sidebar .tab-btn{color:#0f0;font-family:Courier New,monospace}.glitch-sidebar .tab-btn.active{background:#0f03;text-shadow:0 0 5px #00ff00}.glitch-input-small{background:#111!important;border-color:#0f0!important;color:#0f0!important;font-family:Courier New,monospace}.glitch-card{background:linear-gradient(145deg,#1a1a1a,#0a0a0a)!important;border:2px solid #00ff00!important}.glitch-card h3{color:#0f0!important;text-shadow:0 0 10px #00ff00}.glitch-card p{color:#0c0!important}.glitch-mirror{transform:scaleX(-1)!important}.glitch-shake{animation:glitchShake .1s infinite}@keyframes glitchShake{0%,to{transform:translate(0)}10%{transform:translate(-5px,-3px)}20%{transform:translate(5px,3px)}30%{transform:translate(-3px,5px)}40%{transform:translate(3px,-5px)}50%{transform:translate(-5px,5px)}60%{transform:translate(5px,-3px)}70%{transform:translate(-3px,-5px)}80%{transform:translate(3px,5px)}90%{transform:translate(-5px,3px)}}.glitch-blur{filter:blur(4px)!important}.glitch-invisible{color:transparent!important;text-shadow:none!important}#quiz-blast-screen{background:linear-gradient(135deg,#1a1a2e,#16213e)}#quiz-blast-screen .game-header{background:#ffffff1a;padding:1rem;border-radius:12px}#quiz-blast-screen h2{color:#fff;margin:0}.quiz-round-info{display:flex;gap:1rem;align-items:center}#quiz-round{color:#aaa;font-size:1rem}.quiz-timer{font-size:1.5rem;font-weight:700;color:#0f0;text-shadow:0 0 10px currentColor}.quiz-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#fff}.quiz-waiting .waiting-text{font-size:1.5rem;color:#aaa}.quiz-playing{padding:2rem;position:relative}.quiz-question-container{background:#ffffff1a;padding:2rem;border-radius:16px;margin-bottom:2rem;text-align:center}.quiz-question{font-size:1.5rem;color:#fff;margin:0;line-height:1.4}.quiz-answers{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:600px;margin:0 auto}.quiz-answer-btn{padding:1.5rem;border:none;border-radius:12px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:all .2s;color:#fff;text-shadow:1px 1px 2px rgba(0,0,0,.5);box-shadow:0 4px 15px #0000004d}.quiz-answer-btn:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 6px 20px #0006}.quiz-answer-btn:active:not(:disabled){transform:translateY(1px)}.quiz-answer-btn.red{background:linear-gradient(145deg,#e74c3c,#c0392b)}.quiz-answer-btn.blue{background:linear-gradient(145deg,#3498db,#2980b9)}.quiz-answer-btn.green{background:linear-gradient(145deg,#2ecc71,#27ae60)}.quiz-answer-btn.yellow{background:linear-gradient(145deg,#f1c40f,#d4a506);color:#333;text-shadow:none}.quiz-answer-btn:disabled{opacity:.6;cursor:not-allowed}.quiz-answer-btn.correct{animation:correctPulse .5s;box-shadow:0 0 30px #2ecc71}.quiz-answer-btn.wrong{animation:wrongShake .3s}@keyframes correctPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}@keyframes wrongShake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.quiz-feedback{text-align:center;padding:1rem;border-radius:8px;font-size:1.2rem;font-weight:700;margin-top:1rem}.quiz-feedback.correct{background:#2ecc714d;color:#2ecc71}.quiz-feedback.wrong{background:#e74c3c4d;color:#e74c3c}.quiz-feedback.timeout{background:#f1c40f4d;color:#f1c40f}.quiz-freeze-overlay{position:absolute;inset:0;background:#3498dbcc;display:flex;justify-content:center;align-items:center;z-index:100;animation:freezePulse .5s infinite alternate}.quiz-freeze-overlay span{font-size:3rem;color:#fff;text-shadow:0 0 20px white}@keyframes freezePulse{0%{background:#3498db99}to{background:#3498dbe6}}.quiz-scoreboard{margin-top:1.5rem;padding:1rem;background:#ffffff1a;border-radius:12px}.quiz-scoreboard h3{color:#fff;margin:0 0 .5rem}#quiz-scores-list{list-style:none;padding:0;margin:0}#quiz-scores-list li{color:#ddd;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.1)}#quiz-scores-list li:last-child{border-bottom:none}#chat-messages,#game-chat-messages,#bomb-chat-messages,#quiz-chat-messages,#rhythm-chat-messages{flex:1;overflow-y:auto;padding:10px}#quiz-chat-messages,#rhythm-chat-messages{background:#0000004d;color:#ddd}#rhythm-master-screen{background:linear-gradient(135deg,#1a0a2e,#2d1b4e)}#rhythm-master-screen .game-header{background:#ffffff1a;padding:1rem;border-radius:12px}#rhythm-master-screen h2{color:#fff;margin:0}.rhythm-info{display:flex;gap:1.5rem;align-items:center}#rhythm-score{color:#fff;font-size:1.2rem;font-weight:700}.rhythm-timer{font-size:1.5rem;font-weight:700;color:#ff69b4;text-shadow:0 0 10px currentColor}.rhythm-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#fff}.rhythm-waiting .waiting-text{font-size:1.5rem;color:#aaa}.rhythm-playing{padding:1rem}.rhythm-game-container{position:relative;display:flex;flex-direction:column;align-items:center}.rhythm-lanes{display:flex;gap:.5rem;background:#00000080;padding:1rem;border-radius:12px;position:relative}.rhythm-lane{width:80px;height:400px;background:#ffffff1a;border-radius:8px;position:relative;display:flex;flex-direction:column;overflow:hidden}.rhythm-lane.flash{background:#fff6}.rhythm-lane[data-arrow=left]{border-bottom:4px solid #ff6b6b}.rhythm-lane[data-arrow=down]{border-bottom:4px solid #4ecdc4}.rhythm-lane[data-arrow=up]{border-bottom:4px solid #45b7d1}.rhythm-lane[data-arrow=right]{border-bottom:4px solid #f9ca24}.rhythm-target{position:absolute;bottom:0;left:0;right:0;height:60px;background:#fff3;display:flex;align-items:center;justify-content:center;font-size:2rem;color:#fff9;border-top:3px solid rgba(255,255,255,.5)}.rhythm-notes-container{position:absolute;inset:0 0 60px;pointer-events:none}.rhythm-note{position:absolute;left:50%;transform:translate(-50%);width:50px;height:50px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;border-radius:50%;background:linear-gradient(145deg,#ff69b4,#da2c8e);box-shadow:0 0 20px #ff69b480;animation:noteGlow .5s infinite alternate;transition:top .05s linear}.rhythm-note.hit{animation:noteHit .2s forwards}@keyframes noteGlow{0%{box-shadow:0 0 10px #ff69b480}to{box-shadow:0 0 25px #ff69b4cc}}@keyframes noteHit{0%{transform:translate(-50%) scale(1);opacity:1}to{transform:translate(-50%) scale(1.5);opacity:0}}.rhythm-feedback{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:2rem;font-weight:700;text-shadow:0 0 20px currentColor;z-index:100;animation:feedbackPop .5s}@keyframes feedbackPop{0%{transform:translate(-50%,-50%) scale(.5);opacity:0}50%{transform:translate(-50%,-50%) scale(1.2);opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:1}}.rhythm-scoreboard{margin-top:1rem;padding:1rem;background:#ffffff1a;border-radius:12px}.rhythm-scoreboard h3{color:#fff;margin:0 0 .5rem}#rhythm-scores-list{list-style:none;padding:0;margin:0}#rhythm-scores-list li{color:#ddd;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.1)}#math-race-screen{background:linear-gradient(135deg,#0a2e1a,#1a4a2e)}#math-race-screen .game-header{background:#ffffff1a;padding:1rem;border-radius:12px}#math-race-screen h2{color:#fff;margin:0}.math-info{display:flex;gap:1.5rem;align-items:center}#math-round{color:#aaa;font-size:1rem}.math-timer{font-size:1.5rem;font-weight:700;color:#27ae60;text-shadow:0 0 10px currentColor}.math-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#fff}.math-waiting .waiting-text{font-size:1.5rem;color:#aaa}.math-playing{padding:2rem}.math-game-container{display:flex;flex-direction:column;align-items:center;gap:2rem}.math-problem-container{text-align:center;padding:2rem 3rem;background:#ffffff1a;border-radius:16px}.math-difficulty{display:inline-block;padding:.25rem 1rem;border-radius:20px;font-size:.8rem;font-weight:700;margin-bottom:1rem;background:#fff3;color:#fff}.math-difficulty.easy{background:#27ae60}.math-difficulty.medium{background:#f39c12}.math-difficulty.hard{background:#e74c3c}.math-difficulty.expert{background:#9b59b6}.math-problem{font-size:2.5rem;font-weight:700;color:#fff;font-family:Courier New,monospace}.math-answer-area{display:flex;gap:1rem;align-items:center}.math-answer-input{font-size:1.5rem;padding:1rem 1.5rem;border:3px solid rgba(255,255,255,.3);border-radius:12px;background:#0000004d;color:#fff;text-align:center;width:200px;font-family:Courier New,monospace}.math-answer-input:focus{outline:none;border-color:#27ae60;box-shadow:0 0 20px #27ae6080}.math-feedback{padding:1rem 2rem;border-radius:12px;font-size:1.3rem;font-weight:700;text-align:center}.math-feedback.correct{background:#27ae604d;color:#2ecc71}.math-feedback.wrong{background:#e74c3c4d;color:#e74c3c}.math-feedback.timeout{background:#f1c40f4d;color:#f1c40f}.math-feedback.info{background:#3498db4d;color:#3498db}.math-scoreboard{margin-top:1.5rem;padding:1rem;background:#ffffff1a;border-radius:12px;width:100%;max-width:400px}.math-scoreboard h3{color:#fff;margin:0 0 .5rem}#math-scores-list{list-style:none;padding:0;margin:0}#math-scores-list li{color:#ddd;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.1)}#math-scores-list li:last-child{border-bottom:none}#chat-messages,#game-chat-messages,#bomb-chat-messages,#quiz-chat-messages,#rhythm-chat-messages,#math-chat-messages,#spot-chat-messages{flex:1;overflow-y:auto;padding:10px}#math-chat-messages,#spot-chat-messages{background:#0000004d;color:#ddd}#spot-diff-screen{background:linear-gradient(135deg,#2c3e50,#34495e)}#spot-diff-screen .game-header{background:#ffffff1a;padding:1rem;border-radius:12px}#spot-diff-screen h2{color:#fff;margin:0}.spot-info{display:flex;gap:1.5rem;align-items:center}#spot-found{color:#fff;font-size:1.2rem;font-weight:700}.spot-timer{font-size:1.5rem;font-weight:700;color:#8e44ad;text-shadow:0 0 10px currentColor}.spot-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#fff}.spot-waiting .waiting-text{font-size:1.5rem;color:#aaa}.spot-playing{padding:1rem}.spot-game-container{display:flex;flex-direction:column;align-items:center;gap:1rem}.spot-images{display:flex;gap:2rem;justify-content:center;flex-wrap:wrap}.spot-image-wrapper{text-align:center}.spot-image-wrapper h4{color:#fff;margin:0 0 .5rem}.spot-image{width:400px;height:240px;background:#ffffffe6;border-radius:12px;border:4px solid rgba(255,255,255,.3);cursor:crosshair}#spot-image-right{cursor:crosshair}#spot-image-right:hover{border-color:#8e44ad;box-shadow:0 0 20px #8e44ad80}.found-marker{animation:pulseMarker 1s ease-out}@keyframes pulseMarker{0%{stroke-width:8;opacity:1}to{stroke-width:4;opacity:1}}.spot-feedback{padding:1rem 2rem;border-radius:12px;font-size:1.3rem;font-weight:700;text-align:center}.spot-feedback.correct{background:#27ae604d;color:#2ecc71}.spot-feedback.wrong{background:#e74c3c4d;color:#e74c3c}.spot-feedback.info{background:#3498db4d;color:#3498db}.spot-scoreboard{margin-top:1rem;padding:1rem;background:#ffffff1a;border-radius:12px;width:100%;max-width:500px}.spot-scoreboard h3{color:#fff;margin:0 0 .5rem}#spot-scores-list{list-style:none;padding:0;margin:0}#spot-scores-list li{color:#ddd;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.1)}#spot-scores-list li:last-child{border-bottom:none}#word-chain-screen{background:linear-gradient(135deg,#c0392b,#8e44ad)}#word-chain-screen .game-header{background:#ffffff1a;padding:1rem;border-radius:12px}#word-chain-screen h2{color:#fff;margin:0}.chain-info{display:flex;gap:1rem;align-items:center}.chain-timer{font-size:2rem;font-weight:700;color:#fff;text-shadow:0 0 20px currentColor}.chain-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#fff}.chain-waiting .waiting-text{font-size:1.5rem;color:#ddd}.chain-playing{padding:1rem}.chain-game-container{display:flex;flex-direction:column;align-items:center;gap:1.5rem;padding:2rem}.chain-word-display{text-align:center}.chain-word-display .chain-label{color:#ddd;font-size:1rem}.chain-current-word{font-size:3rem;font-weight:700;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.3);letter-spacing:3px}.chain-letter-required{text-align:center}.chain-letter-required span{color:#ddd;font-size:1rem}.chain-letter{font-size:4rem;font-weight:700;color:#2ecc71;text-shadow:0 0 30px rgba(46,204,113,.5);animation:pulseLetter 1s ease-in-out infinite}@keyframes pulseLetter{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.chain-input-area{display:flex;gap:1rem;align-items:center}.chain-word-input{font-size:1.5rem;padding:1rem 1.5rem;border-radius:12px;border:3px solid rgba(255,255,255,.3);background:#ffffff1a;color:#fff;text-transform:uppercase;letter-spacing:2px;width:300px;text-align:center}.chain-word-input:focus{outline:none;border-color:#2ecc71;box-shadow:0 0 20px #2ecc7180}.chain-word-input:disabled{opacity:.5;cursor:not-allowed}.chain-word-input::placeholder{color:#ffffff80}.chain-turn-indicator{font-size:1.5rem;font-weight:700;color:#fff;padding:.5rem 1.5rem;background:#0000004d;border-radius:12px}.chain-feedback{padding:1rem 2rem;border-radius:12px;font-size:1.3rem;font-weight:700;text-align:center;animation:feedbackPop .3s ease-out}.chain-feedback.correct{background:#27ae604d;color:#2ecc71}.chain-feedback.wrong{background:#e74c3c4d;color:#e74c3c}.chain-feedback.eliminated{background:#00000080;color:#ff6b6b}.chain-players{margin-top:1rem;padding:1rem;background:#ffffff1a;border-radius:12px;width:100%;max-width:400px}.chain-players h3{color:#fff;margin:0 0 .5rem}#chain-players-list{list-style:none;padding:0;margin:0}#chain-players-list li{color:#ddd;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:1.1rem}#chain-players-list li:last-child{border-bottom:none}#chain-chat-messages{flex:1;overflow-y:auto;padding:10px;background:#0000004d;color:#ddd}.glitch-input::placeholder{color:#0a0}#quiz-round,#math-round{color:#ccc!important}.quiz-waiting .waiting-text,.math-waiting .waiting-text,.spot-waiting .waiting-text,.rhythm-waiting .waiting-text,.chain-waiting .waiting-text{color:#ccc}.rhythm-target{color:#ffffffd9}#victory-text,#victory-name{color:#fff}#quiz-scores-list li,#rhythm-scores-list li,#math-scores-list li,#spot-scores-list li,#chain-players-list li{color:#eee}[data-theme=dark] .note,[data-theme=dark] #room-code-display{color:#aaa}[data-theme=dark] .sidebar-tabs{background:#0000004d}[data-theme=dark] .tab-btn{background:#ffffff1a;color:#ddd}[data-theme=dark] .tab-btn.active{background:#fff3;color:#fff}[data-theme=dark] .sidebar-content{background:#0000004d}[data-theme=dark] .chat-msg{color:#eee}[data-theme=dark] .system-msg{color:#aaa}[data-theme=dark] .chat-input-row{border-top-color:#ffffff1a}[data-theme=dark] .chat-input-row input{background:#0000004d;color:#fff;border:1px solid rgba(255,255,255,.2)}[data-theme=dark] .lobby-sidebar,[data-theme=dark] .game-sidebar{background:#0003}[data-theme=dark] #chat-messages,[data-theme=dark] #game-chat-messages,[data-theme=dark] #bomb-chat-messages{color:#eee}[data-theme=dark] #leaderboard-list li,[data-theme=dark] #game-leaderboard-list li,[data-theme=dark] #bomb-leaderboard-list li{color:#ddd;border-bottom-color:#ffffff1a}
