* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: linear-gradient(135deg, #0b3d0b, #1a5f1a); color: #fff; min-height: 100vh; padding: 16px; }
header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 12px; background: rgba(0,0,0,0.3); border-radius: 8px; }
header .score, header .timer, header .points, header .streak { font-size: 1.1rem; font-weight: bold; }
.streak { color: #ffd54f; }
.link { color: #ffd54f; text-decoration: none; margin-left: auto; }
button, .tab { background: #ffd54f; color: #000; border: none; padding: 10px 16px; border-radius: 6px; font-weight: bold; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-container { max-width: 400px; margin: 40px auto; background: rgba(0,0,0,0.4); padding: 24px; border-radius: 12px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { flex: 1; background: rgba(255,255,255,0.1); color: #fff; }
.tab.active { background: #ffd54f; color: #000; }
.form { display: none; flex-direction: column; gap: 10px; }
.form.active { display: flex; }
.form input { padding: 10px; border-radius: 6px; border: 1px solid #555; background: rgba(255,255,255,0.1); color: #fff; }
.form input::placeholder { color: #bbb; }
.error { color: #ff6b6b; min-height: 20px; }
.status { text-align: center; padding: 20px; font-size: 1.2rem; }
.pick-section { text-align: center; padding: 20px; }
.options { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.option-btn { padding: 20px; font-size: 1.2rem; background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.3); border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.option-btn:hover { background: rgba(255,213,79,0.3); border-color: #ffd54f; }
.option-btn:active { transform: scale(0.97); }
.option-btn.selected { background: #ffd54f; color: #000; border-color: #ffd54f; }
.skip { margin-top: 16px; background: #66bb6a; color: #fff; }
.hidden { display: none !important; }
.result { background: rgba(0,0,0,0.4); padding: 16px; border-radius: 8px; margin: 16px 0; }
.result pre { white-space: pre-wrap; font-family: inherit; }
.result-summary { text-align: center; font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #ffd54f; }
.result-summary strong { color: #ffd54f; }
.result-score { text-align: center; font-size: 1.2rem; margin-bottom: 15px; color: #66bb6a; }
.result-streak { text-align: center; font-size: 1rem; margin-bottom: 10px; color: #ffd54f; }
.result-breakdown { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.result-row:last-child { border-bottom: none; }
.result-row strong { color: #ffd54f; margin-right: 5px; }
.result-row small { color: #aaa; font-size: 0.9rem; }
#leaderboardSection { background: rgba(0,0,0,0.3); padding: 16px; border-radius: 8px; margin-top: 16px; }
#leaderboard li { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; }
#leaderboard li:last-child { border-bottom: none; }
.timer.warning { color: #ff6b6b; animation: pulse 0.5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.05); } }
.play-breaker { margin-top: 20px; padding: 15px; background: rgba(255,213,79,0.2); border: 2px solid #ffd54f; border-radius: 8px; }
.play-breaker p { margin-bottom: 10px; font-weight: bold; }
.play-breaker-btn { background: #ffd54f; color: #000; padding: 12px 24px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; margin-right: 10px; }
.skip-btn { background: #757575; color: #fff; padding: 12px 24px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }
.final-score { background: rgba(0,0,0,0.6); padding: 24px; border-radius: 12px; margin: 16px 0; text-align: center; border: 2px solid #ffd54f; }
.final-banner h2 { font-size: 2.5rem; color: #ffd54f; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 4px; }
.final-subtitle { font-size: 1.2rem; color: #aaa; margin-bottom: 20px; }
.final-my-score { background: rgba(255,213,79,0.15); padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.final-my-score p { color: #aaa; font-size: 1rem; margin-bottom: 5px; }
.final-my-score h1 { font-size: 3rem; color: #ffd54f; margin: 10px 0; }
.final-rank { font-size: 1.2rem; color: #fff; }
.final-rank.gold { color: #ffd54f; font-size: 1.4rem; font-weight: bold; }
.final-rank.silver { color: #c0c0c0; font-size: 1.3rem; font-weight: bold; }
.final-rank.bronze { color: #cd7f32; font-size: 1.3rem; font-weight: bold; }
#finalLeaderboard { list-style: none; padding: 0; margin-top: 15px; text-align: left; }
#finalLeaderboard li { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 1.1rem; }
#finalLeaderboard li:last-child { border-bottom: none; }
.final-lb-me { background: rgba(255,213,79,0.2); border-radius: 6px; font-weight: bold; }
