/**
 * Flip Royale - Stylesheet
 * Head & Tail Battle Game
 */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --neon-gold: #ffd700;
    --neon-cyan: #00f5ff;
    --neon-pink: #ff0080;
    --neon-green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #8888aa;
    --silver: #c0c0c0;
    --gold: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.01) 50px,
            rgba(255, 255, 255, 0.01) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.01) 50px,
            rgba(255, 255, 255, 0.01) 51px
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 100;
}

.lang-btn {
    padding: 6px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: var(--bg-dark);
}

/* ==================== SCREENS ==================== */
.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== LOGO ==================== */
.logo {
    text-align: center;
    margin: 60px 0 50px;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 245, 255, 0.5);
    letter-spacing: 2px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ==================== COIN PREVIEW ==================== */
.coin-preview {
    width: 120px;
    height: 120px;
    margin: 40px auto;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-15px) rotateY(180deg); }
}

.coin-preview .coin {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8e8e8, #a0a0a0);
    box-shadow: 
        0 0 30px rgba(192, 192, 192, 0.4),
        inset 0 -5px 20px rgba(0, 0, 0, 0.3),
        inset 0 5px 20px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #d0d0d0;
}

.coin-preview .coin svg {
    width: 70px;
    height: 70px;
    fill: #555;
}

/* ==================== BUTTONS ==================== */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 50px;
}

.btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 18px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #0088aa);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.4);
}

/* ==================== LOBBY ==================== */
.lobby-header {
    text-align: center;
    margin-bottom: 40px;
}

.lobby-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 8px;
}

.room-code-display {
    background: var(--bg-card);
    border: 2px solid var(--neon-gold);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.room-code-display::before {
    content: 'ROOM CODE';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 0 12px;
    font-size: 0.75rem;
    color: var(--neon-gold);
    letter-spacing: 2px;
}

.room-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-gold);
    letter-spacing: 8px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.copy-btn {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 0.85rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--neon-gold);
    color: var(--neon-gold);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Rajdhani', sans-serif;
}

.copy-btn:hover {
    background: var(--neon-gold);
    color: var(--bg-dark);
}

/* Players List */
.players-list {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.player-slot {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-slot:last-child {
    margin-bottom: 0;
}

.player-slot.you {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.player-slot.waiting {
    border-style: dashed;
    border-color: var(--text-secondary);
}

.player-slot.opponent {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.1);
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 16px;
}

.player-avatar.empty {
    background: var(--bg-dark);
    border: 2px dashed var(--text-secondary);
    color: var(--text-secondary);
}

.player-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.player-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.player-tag {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.player-tag.you {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.waiting-text {
    text-align: center;
    color: var(--text-secondary);
    margin: 30px 0;
}

/* Input Group */
.input-group {
    margin: 20px 0;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: var(--bg-card);
    border: 2px solid var(--text-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

/* ==================== GAME SCREEN ==================== */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.round-info {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-pink);
    letter-spacing: 2px;
}

.timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.timer.warning {
    color: var(--neon-pink);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scoreboard */
.scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.player-score {
    text-align: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    position: relative;
}

.player-score.you {
    border: 2px solid var(--neon-cyan);
}

.player-score.opponent {
    border: 2px solid var(--neon-pink);
}

.player-score .name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-score .score {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
}

.player-score.you .score {
    color: var(--neon-cyan);
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.player-score.opponent .score {
    color: var(--neon-pink);
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

.vs-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Coin Area */
.coin-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.game-coin {
    width: 140px;
    height: 140px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 20px;
}

.coin-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.coin-inner.flipping {
    animation: coinFlip 2s ease-out forwards;
}

@keyframes coinFlip {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(1800deg); }
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.coin-symbol {
    font-size: 2.5rem;
    font-weight: 900;
}

.coin-face svg {
    width: 80px;
    height: 80px;
}

.coin-face.silver {
    background: linear-gradient(145deg, #e8e8e8, #a0a0a0);
    box-shadow: 
        0 0 40px rgba(192, 192, 192, 0.4),
        inset 0 -5px 20px rgba(0, 0, 0, 0.3),
        inset 0 5px 20px rgba(255, 255, 255, 0.5);
    color: #444;
    border: 5px solid #d0d0d0;
}

.coin-face.silver svg {
    fill: #555;
}

.coin-face.gold {
    background: linear-gradient(145deg, #ffd700, #b8860b);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.6),
        inset 0 -5px 20px rgba(0, 0, 0, 0.3),
        inset 0 5px 20px rgba(255, 255, 255, 0.5);
    color: #5a4000;
    border: 5px solid #daa520;
    animation: jackpotGlow 0.5s ease infinite alternate;
}

.coin-face.gold svg {
    fill: #5a4000;
}

@keyframes jackpotGlow {
    from { box-shadow: 0 0 60px rgba(255, 215, 0, 0.6); }
    to { box-shadow: 0 0 100px rgba(255, 215, 0, 0.9); }
}

.coin-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Choice Buttons */
.choice-section {
    margin: 30px 0;
}

.choice-section h3 {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.choice-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 20px;
    border: 2px solid;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.choice-btn.head {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.choice-btn.tail {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.choice-btn.jackpot {
    grid-column: span 2;
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    background: rgba(255, 215, 0, 0.05);
}

.choice-btn:hover:not(.selected):not(:disabled) {
    transform: scale(1.02);
}

.choice-btn.head:hover:not(.selected):not(:disabled) {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.choice-btn.tail:hover:not(.selected):not(:disabled) {
    background: rgba(255, 0, 128, 0.1);
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.3);
}

.choice-btn.jackpot:hover:not(.selected):not(:disabled) {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.choice-btn.selected {
    transform: scale(0.98);
}

.choice-btn.head.selected {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}

.choice-btn.tail.selected {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.5);
}

.choice-btn.jackpot.selected {
    background: var(--neon-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

.choice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.choice-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px currentColor);
    transition: all 0.3s ease;
}

.choice-btn:hover .choice-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px currentColor);
}

.choice-btn.selected .choice-icon {
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.jackpot-icon {
    width: 60px;
    height: 48px;
}

.choice-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.choice-btn .points {
    display: block;
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.8;
}

/* Result Display */
.result-display {
    display: none;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}

.result-display.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.result-title.win {
    color: var(--neon-green);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.result-title.lose {
    color: var(--neon-pink);
}

.result-title.jackpot-win {
    color: var(--neon-gold);
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    animation: jackpotText 0.3s ease infinite alternate;
}

@keyframes jackpotText {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.choices-reveal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.player-choice {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.player-choice .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.player-choice .choice {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.player-choice .result-icon {
    font-size: 1.5rem;
    margin-top: 8px;
}

.btn-next {
    width: 100%;
    margin-top: 20px;
}

/* ==================== GAME OVER ==================== */
.game-over-content {
    text-align: center;
    padding: 40px 0;
}

.trophy-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-over-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.game-over-title.winner {
    background: linear-gradient(135deg, var(--neon-gold), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-over-title.loser {
    color: var(--neon-pink);
}

.final-score {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}

.final-score-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.final-player {
    text-align: center;
}

.final-player .name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.final-player .score {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
}

.final-player.winner .score {
    color: var(--neon-gold);
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.final-player.loser .score {
    color: var(--text-secondary);
}

.match-stats {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--neon-cyan);
}

.game-over-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Final Round Notification */
.final-round-notif {
    display: none;
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--neon-pink), #aa0055);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 8px;
    animation: finalRoundPulse 1s ease infinite;
    text-align: center;
}

.final-round-notif.show {
    display: block;
}

@keyframes finalRoundPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(255, 0, 128, 0.8);
    }
}

/* Round Details Section */
.round-details-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.round-details-section .section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.round-details-header {
    display: grid;
    grid-template-columns: 50px 50px 1fr 60px;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.round-details {
    max-height: 250px;
    overflow-y: auto;
}

.round-detail-row {
    display: grid;
    grid-template-columns: 50px 50px 1fr 60px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.02);
    align-items: center;
    font-size: 0.85rem;
}

.round-detail-row.win {
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid var(--neon-green);
}

.round-detail-row.lose {
    background: rgba(255, 0, 128, 0.05);
    border-left: 3px solid rgba(255, 0, 128, 0.3);
}

.round-num {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-secondary);
}

.round-result-icon {
    font-size: 1.2rem;
    text-align: center;
}

.round-choices {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.round-choices .my-choice {
    color: var(--neon-cyan);
    font-weight: 600;
}

.round-choices .vs {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.round-choices .opp-choice {
    color: var(--neon-pink);
    font-weight: 600;
}

.round-points {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-align: right;
}

.round-points.win {
    color: var(--neon-green);
}

.round-points.lose {
    color: var(--text-secondary);
}

/* Strike Bonus Styling */
.strike-text {
    display: block;
    font-size: 0.9rem;
    color: #ff6b00;
    animation: strikeGlow 0.5s ease infinite alternate;
    margin-top: 5px;
}

@keyframes strikeGlow {
    from { 
        text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    }
    to { 
        text-shadow: 0 0 25px rgba(255, 107, 0, 0.9), 0 0 40px rgba(255, 107, 0, 0.5);
    }
}

.round-detail-row.has-strike {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 215, 0, 0.1));
    border-left: 3px solid #ff6b00;
}

.round-detail-row.has-strike .round-points {
    color: #ff6b00;
    font-weight: 900;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 380px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .room-code {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .choice-btn {
        padding: 16px;
        font-size: 0.9rem;
    }

    .choice-icon {
        width: 40px;
        height: 40px;
    }
}
