:root {
    --bg: #000000;
    --card-bg: #121212;
    --input-bg: #262626;
    --border: #363636;
    --text: #f5f5f5;
    --text-muted: #a8a8a8;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --success: #1db954;
    --error: #ff3b30;
}
* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg); color: var(--text); margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; overflow-x: hidden; }
.container { width: 100%; max-width: 450px; padding: 24px; display: flex; flex-direction: column; gap: 16px; margin-top: 2vh; }
h1, h2 { text-align: center; margin: 0 0 10px 0; font-weight: 800; }
.gradient-text { background: var(--ig-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
p { text-align: center; color: var(--text-muted); font-size: 15px; margin: 0; line-height: 1.4; }
input { width: 100%; background: var(--input-bg); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 16px; font-size: 16px; outline: none; }
button { width: 100%; background: var(--ig-gradient); color: white; border: none; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; transition: transform 0.1s; }
button:active { transform: scale(0.98); }
button.secondary { background: var(--input-bg); border: 1px solid var(--border); }
button.success { background: var(--success); }
.hidden { display: none !important; }
.card { background: var(--card-bg); border: 1px solid var(--border); padding: 20px; border-radius: 16px; }

/* In-Game UI */
#videoContainer { width: 100%; aspect-ratio: 9/16; max-height: 60vh; background: var(--bg); border-radius: 12px; overflow: hidden; position: relative; }
iframe { width: 100%; height: 100%; border: none; }
.timer-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.timer-fill { height: 100%; background: var(--ig-gradient); width: 100%; transform-origin: left; transition: transform 0.1s linear; }
.player-row { display: flex; justify-content: space-between; gap: 10px; }
.score-badge { background: var(--input-bg); padding: 5px 10px; border-radius: 20px; font-size: 14px; font-weight: bold; }
.btn-guess { flex: 1; padding: 20px; font-size: 18px; }
.btn-guess[disabled] { opacity: 0.5; filter: grayscale(1); }