:root{--bg-color: #ffffff;--text-color: #333333;--accent-color: #666666;--secondary-bg: #f5f5f5;--border-color: #e0e0e0;--terminal-bg: #1a1a1a;--terminal-text: #f5f5f5;--terminal-accent: #999999}[data-theme=dark]{--bg-color: #121212;--text-color: #f5f5f5;--accent-color: #999999;--secondary-bg: #1a1a1a;--border-color: #333333;--terminal-bg: #000000;--terminal-text: #f5f5f5;--terminal-accent: #666666}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,sans-serif;background-color:var(--bg-color);color:var(--text-color);margin:0;padding:0;line-height:1.6;text-transform:lowercase;min-height:100vh;transition:background-color .3s ease,color .3s ease}.app{min-height:100vh}.theme-toggle{position:fixed;top:20px;right:20px;z-index:1000}.theme-toggle button{background:none;border:none;color:var(--text-color);cursor:pointer;font-size:1.5em;padding:10px;transition:transform .3s ease}.theme-toggle button:hover{transform:rotate(30deg)}.home-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.home-content{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));border-radius:8px;padding:40px;max-width:600px;width:100%;text-align:center;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.logo{font-size:60px;margin-bottom:20px}.title{font-size:2.5em;color:var(--text-color);margin-bottom:10px;font-weight:700}.subtitle{font-size:1.2em;color:var(--accent-color);margin-bottom:40px}.button-group{display:flex;flex-direction:column;gap:15px;margin-bottom:30px}.btn{padding:15px 30px;font-size:1em;font-weight:600;border:2px solid var(--text-color);border-radius:8px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--bg-color);color:var(--text-color);text-transform:lowercase;font-family:Inter,sans-serif}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:hover:not(:disabled){transform:translateY(-2px);background:var(--text-color);color:var(--bg-color)}.btn-icon{font-size:1.2em}.info-box{background:var(--secondary-bg);padding:20px;border-radius:8px;text-align:left;border:1px solid var(--border-color)}.info-box h3{color:var(--text-color);margin-bottom:15px;font-size:1.1em}.info-box ul{list-style:none}.info-box li{padding:8px 0;color:var(--accent-color);font-size:.95em}.info-box li:before{content:"→ ";color:var(--text-color);font-weight:700;margin-right:8px}.host-container{min-height:100vh;padding:20px;color:var(--text-color)}.host-header{text-align:center;margin-bottom:30px}.host-header h1{font-size:2.5em;margin-bottom:10px}.host-subtitle{font-size:1.2em;color:var(--accent-color)}.round-info{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));padding:10px 20px;border-radius:8px;display:inline-block;font-size:1em;margin-top:10px;border:1px solid var(--border-color)}.waiting-room{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));border-radius:8px;padding:40px;max-width:600px;margin:0 auto;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.waiting-room h2{color:var(--text-color);margin-bottom:20px;font-size:2em}.join-instructions{background:var(--terminal-bg);color:var(--terminal-text);padding:15px;border-radius:8px;margin-bottom:30px;font-size:.95em;font-family:Courier New,monospace}.players-list{margin-bottom:30px}.players-list h3{color:var(--text-color);margin-bottom:15px;font-size:1.3em}.no-players{color:var(--accent-color);text-align:center;padding:20px;font-style:italic}.players-list ul{list-style:none}.player-item{background:var(--secondary-bg);padding:12px 15px;border-radius:8px;margin-bottom:8px;display:flex;align-items:center;gap:10px;font-size:1em;border:1px solid var(--border-color);transition:transform .3s ease}.player-item:hover{transform:translateY(-2px)}.player-icon{font-size:1.2em}.challenge-display{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));border-radius:8px;padding:30px;max-width:900px;margin:0 auto 30px;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.challenge-display h2{color:var(--text-color);margin-bottom:20px;font-size:1.8em}.code-block{background:var(--terminal-bg);border-radius:8px;padding:20px;overflow-x:auto;margin:0}.code-line{display:flex;gap:20px;font-family:Courier New,monospace;font-size:.95em;line-height:1.6}.line-number{color:var(--terminal-accent);-webkit-user-select:none;user-select:none;min-width:30px;text-align:right}.line-content{color:var(--terminal-text)}.submissions-tracker{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));border-radius:8px;padding:20px 30px;max-width:600px;margin:0 auto 30px;text-align:center;box-shadow:0 4px 6px #0000001a;border:1px solid var(--border-color)}.submissions-tracker h3{color:var(--text-color);margin-bottom:15px;font-size:1.2em}.submission-dots{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.dot{width:50px;height:50px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.5em;font-weight:700;color:var(--terminal-text);border:2px solid var(--border-color)}.dot.correct{background:var(--terminal-bg);border-color:var(--text-color)}.dot.incorrect{background:var(--secondary-bg);border-color:var(--accent-color)}.results-panel{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));border-radius:8px;padding:30px;max-width:700px;margin:0 auto;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.results-panel h3{color:var(--text-color);margin-bottom:20px;font-size:1.8em;text-align:center}.correct-answer,.explanation{background:var(--terminal-bg);color:var(--terminal-text);padding:15px;border-radius:8px;margin-bottom:15px;font-family:Courier New,monospace;font-size:.9em}.correct-answer strong,.explanation strong{color:var(--terminal-text);display:block;margin-bottom:5px}.results-list{margin:20px 0}.result-item{display:flex;align-items:center;justify-content:space-between;padding:15px;border-radius:8px;margin-bottom:10px;border:1px solid var(--border-color);transition:transform .3s ease}.result-item:hover{transform:translateY(-2px)}.result-item.correct{background:var(--terminal-bg);color:var(--terminal-text)}.result-item.incorrect{background:var(--secondary-bg);opacity:.7}.result-name{font-weight:600;flex:1}.result-status{margin:0 15px;font-size:.9em}.result-points{font-weight:700;font-size:1.1em}.final-leaderboard{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));border-radius:8px;padding:40px;max-width:600px;margin:0 auto 30px;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.final-leaderboard h2{color:var(--text-color);text-align:center;margin-bottom:30px;font-size:2em}.leaderboard-item{display:flex;align-items:center;justify-content:space-between;padding:20px;border-radius:8px;margin-bottom:15px;font-size:1.1em;background:var(--secondary-bg);border:2px solid var(--border-color);transition:transform .3s ease}.leaderboard-item:hover{transform:translateY(-2px)}.leaderboard-item.rank-1{background:var(--terminal-bg);color:var(--terminal-text);border-color:var(--text-color)}.leaderboard-item .rank{font-size:2em;min-width:50px}.leaderboard-item .name{flex:1;font-weight:600;margin:0 20px}.leaderboard-item .score{font-weight:700;font-size:1.3em}.player-container{min-height:100vh;display:flex;flex-direction:column;padding:20px}.player-header{text-align:center;color:var(--text-color);margin-bottom:20px}.player-header h2{font-size:2em;margin-bottom:5px}.player-name{font-size:1.1em;color:var(--accent-color)}.player-content{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;max-width:500px;width:100%;margin:0 auto}.join-form{width:100%;display:flex;flex-direction:column;gap:15px;margin-top:30px}.input-name{padding:15px;font-size:1em;border:2px solid var(--border-color);border-radius:8px;text-align:center;outline:none;background:var(--bg-color);color:var(--text-color);font-family:Inter,sans-serif;text-transform:lowercase}.input-name:focus{border-color:var(--text-color)}.waiting-message{font-size:1.1em;color:var(--accent-color);margin-top:20px;text-align:center}.loading-dots{display:flex;gap:10px;justify-content:center;margin-top:30px}.loading-dots span{width:12px;height:12px;background:var(--text-color);border-radius:50%;animation:loading 1.4s infinite ease-in-out both}.loading-dots span:nth-child(1){animation-delay:-.32s}.loading-dots span:nth-child(2){animation-delay:-.16s}@keyframes loading{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.challenge-title{font-size:1.5em;color:var(--text-color);margin-bottom:10px;text-align:center}.instruction{font-size:1em;color:var(--accent-color);margin-bottom:30px;text-align:center}.challenge-display h2{color:var(--text-color)!important}.challenge-display p{color:var(--text-color)!important}.challenge-display div{color:var(--text-color)!important}.answer-form{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));padding:30px;border-radius:8px;width:100%;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.multiple-choice{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.choice-btn{display:flex;align-items:center;gap:15px;padding:15px;background:var(--bg-color);border:2px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .3s ease;text-align:left;font-family:Inter,sans-serif;text-transform:lowercase}.choice-btn:hover{background:var(--secondary-bg);transform:translateY(-2px)}.choice-btn.selected{background:var(--terminal-bg);color:var(--terminal-text);border-color:var(--text-color)}.choice-letter{font-size:1.2em;font-weight:700;min-width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:var(--secondary-bg);border-radius:4px}.choice-btn.selected .choice-letter{background:var(--text-color);color:var(--bg-color)}.choice-text{flex:1;font-size:.95em}.form-group{margin-bottom:20px}.form-group label{display:block;font-weight:600;margin-bottom:8px;color:var(--text-color)}.input-answer,.input-line{width:100%;padding:12px;font-size:1em;border:2px solid var(--border-color);border-radius:8px;outline:none;font-family:Courier New,monospace;background:var(--bg-color);color:var(--text-color)}.input-answer{resize:vertical}.input-answer:focus,.input-line:focus{border-color:var(--text-color)}.submitted-message{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));padding:40px;border-radius:8px;text-align:center;width:100%;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.check-icon{font-size:4em;margin-bottom:20px}.submitted-message h3{color:var(--text-color);font-size:1.8em;margin-bottom:10px}.submitted-message p{color:var(--accent-color);font-size:1em}.result-display{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));padding:40px;border-radius:8px;text-align:center;width:100%;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.result-icon{font-size:5em;margin-bottom:20px}.result-display h2{font-size:2.2em;margin-bottom:15px;color:var(--text-color)}.points-earned{font-size:1.8em;font-weight:700;margin-bottom:25px;color:var(--text-color)}.result-details{background:var(--terminal-bg);color:var(--terminal-text);padding:20px;border-radius:8px;text-align:left;margin-bottom:20px;font-family:Courier New,monospace;font-size:.9em}.result-details p{margin-bottom:10px;line-height:1.6}.result-details strong{color:var(--terminal-text)}.my-result{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));padding:40px;border-radius:8px;margin-bottom:30px;text-align:center;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.my-result h2{color:var(--text-color);margin-bottom:20px;font-size:1.5em}.my-rank{font-size:5em;margin:20px 0}.my-score{font-size:2em;font-weight:700;color:var(--text-color)}.final-leaderboard-player{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));padding:30px;border-radius:8px;width:100%;max-width:500px;box-shadow:0 4px 6px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.final-leaderboard-player h3{color:var(--text-color);margin-bottom:20px;text-align:center;font-size:1.5em}.final-leaderboard-player .leaderboard-item{display:flex;align-items:center;justify-content:space-between;padding:15px;border-radius:8px;margin-bottom:10px;background:var(--secondary-bg);border:1px solid var(--border-color)}.final-leaderboard-player .leaderboard-item.highlight{background:var(--terminal-bg);color:var(--terminal-text);border:2px solid var(--text-color)}.final-leaderboard-player .rank{font-size:1.5em;min-width:40px}.final-leaderboard-player .name{flex:1;font-weight:600;margin:0 15px}.final-leaderboard-player .score{font-weight:700}@media (max-width: 768px){.title{font-size:2em}.home-content{padding:30px 20px}.host-header h1{font-size:2em}.challenge-display{padding:20px}.code-line{font-size:.85em}}.waiting-text{text-align:center;color:var(--accent-color);font-style:italic;margin-top:15px;font-size:.9em}.pin-display{font-size:4em;font-weight:700;text-align:center;color:#ffffff;background:var(--terminal-bg);padding:30px;border-radius:12px;margin:20px 0;letter-spacing:.3em;font-family:Courier New,monospace}.error-message{color:#dc2626;background:#fee2e2;padding:10px;border-radius:8px;text-align:center;font-size:.9em;margin:10px 0}.timer-display{position:fixed;top:80px;right:20px;background:var(--terminal-bg);color:#ffffff;padding:15px 25px;border-radius:8px;font-size:2em;font-weight:700;font-family:Courier New,monospace;box-shadow:0 4px 6px rgba(0,0,0,.3);z-index:999;min-width:80px;text-align:center}.timer-display.warning{background:#dc2626;animation:pulse .5s infinite}.timer-display.expired{background:#991b1b}@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}.syntax-keyword{color:#c678dd}.syntax-function{color:#61afef}.syntax-string{color:#98c379}.syntax-number{color:#d19a66}.syntax-comment{color:#5c6370;font-style:italic}.syntax-operator{color:#56b6c2}.syntax-variable{color:#e06c75}.syntax-constant{color:#d19a66}.all-time-leaderboard{background:linear-gradient(145deg,var(--secondary-bg),var(--bg-color));border-radius:8px;padding:30px;max-width:600px;margin:30px auto;box-shadow:0 4px 6px rgba(0,0,0,.1);backdrop-filter:blur(10px);border:1px solid var(--border-color)}.all-time-leaderboard h3{color:var(--text-color);text-align:center;margin-bottom:20px;font-size:1.5em}.all-time-leaderboard .leaderboard-item{font-size:.95em;padding:12px 15px}.leaderboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.leaderboard-header h3{margin:0}
