*, *::before, *::after { 
    box-sizing: border-box; 
}

body { 
    background: #020617; 
    color: #fff; 
    font-family: 'Inter', sans-serif; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    margin: 0; 
    text-align: center; 
    overflow: hidden; 
    user-select: none; 
}

#particles { 
    position: fixed; 
    inset: 0; 
    z-index: 0; 
    pointer-events: none; 
}

.bg-glow { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(ellipse 80% 60% at 50% 40%, #1e3a8a44 0%, transparent 70%); 
    z-index: 0; 
    pointer-events: none; 
}

.back-home { 
    position: fixed; 
    top: 20px; 
    left: 24px; 
    font-size: 0.85rem; 
    color: #475569; 
    text-decoration: none; 
    transition: color 0.2s; 
    z-index: 10; 
}

.back-home:hover { 
    color: #fff; 
}

.container { 
    position: relative; 
    z-index: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 40px 24px; 
    max-width: 560px; 
    width: 100%; 
}

h1 { 
    font-family: 'Syne', sans-serif; 
    font-size: clamp(2rem, 8vw, 3rem); 
    font-weight: 900; 
    margin: 0 0 6px; 
    letter-spacing: -2px; 
}

.subtitle { 
    font-size: 0.95rem; 
    color: #64748b; 
    margin-bottom: 28px; 
}

/* Scoreboard */
.scoreboard {
    display: flex; 
    gap: 0; 
    width: 100%; 
    margin-bottom: 28px;
    background: rgba(15, 23, 42, 0.7); 
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 16px; 
    overflow: hidden; 
    backdrop-filter: blur(14px);
}

.score-cell { 
    flex: 1; 
    padding: 16px 12px; 
}

.score-cell + .score-cell { 
    border-left: 1px solid rgba(51, 65, 85, 0.5); 
}

.score-val { 
    font-family: 'Syne', sans-serif; 
    font-size: 2rem; 
    font-weight: 900; 
}

.score-val.you { color: #60a5fa; }
.score-val.ai  { color: #f87171; }
.score-val.tie { color: #94a3b8; }

.score-label { 
    font-size: 0.7rem; 
    color: #475569; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}

/* Arena */
.arena { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 24px; 
    margin-bottom: 24px; 
    min-height: 120px; 
}

.player-choice { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
}

.choice-emoji { 
    font-size: 4rem; 
    transition: transform 0.3s; 
    min-height: 64px; 
}

.choice-emoji.reveal { 
    animation: choiceReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

@keyframes choiceReveal { 
    0% { transform: scale(0) rotate(-20deg); } 
    100% { transform: scale(1) rotate(0); } 
}

.choice-label { 
    font-size: 0.75rem; 
    color: #475569; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}

.vs-label { 
    font-family: 'Syne', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 900; 
    color: #334155; 
}

/* Result Text */
.result-text { 
    font-family: 'Syne', sans-serif; 
    font-size: 1.4rem; 
    font-weight: 900; 
    min-height: 36px; 
    margin-bottom: 8px; 
    transition: color 0.3s; 
}

.result-text.win  { color: #10b981; }
.result-text.lose { color: #f87171; }
.result-text.tie  { color: #94a3b8; }

.ai-comment { 
    font-size: 0.9rem; 
    color: #475569; 
    min-height: 20px; 
    margin-bottom: 28px; 
    font-style: italic; 
}

/* Controls */
.btn-row { 
    display: flex; 
    gap: 14px; 
}

.rps-btn {
    width: 90px; 
    height: 90px; 
    border-radius: 20px;
    background: rgba(30, 58, 138, 0.25); 
    border: 1.5px solid rgba(51, 65, 85, 0.6);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 4px;
    cursor: pointer; 
    transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
    font-size: 2.2rem;
}

.rps-btn span { 
    font-size: 0.65rem; 
    color: #475569; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-family: 'Inter', sans-serif; 
}

.rps-btn:hover { 
    background: rgba(37, 99, 235, 0.35); 
    border-color: rgba(96, 165, 250, 0.5); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
}

.rps-btn:active { 
    transform: translateY(0); 
}

.rps-btn:disabled { 
    opacity: 0.3; 
    cursor: default; 
    transform: none; 
    box-shadow: none; 
}

/* AI Indicator */
.ai-thinking { 
    font-size: 0.8rem; 
    color: #334155; 
    min-height: 18px; 
    margin-top: 16px; 
}
