:root {
    --bg-dark: #09090e;
    --surface: rgba(25, 25, 35, 0.6);
    --surface-hover: rgba(45, 45, 60, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --tertiary: #ec4899;
    
    --win-color: #10b981;
    --lose-color: #ef4444;
    --draw-color: #f59e0b;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

.game-container {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.8s ease-out;
}

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

header {
    text-align: center;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

.scoreboard {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.score-card {
    flex: 1;
    text-align: center;
    padding: 1rem 0;
    border-radius: 15px;
    background: rgba(255,255,255,0.03);
    transition: transform 0.3s ease, background 0.3s ease;
}

.score-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
}

.score-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
}

.player .score-value { color: var(--primary); }
.computer .score-value { color: var(--tertiary); }
.draw .score-value { color: var(--draw-color); }

.battle-arena {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.choice-display {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.icon-placeholder {
    color: var(--text-muted);
    opacity: 0.3;
}

@keyframes shake {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-10deg); }
    75% { transform: translateY(15px) rotate(10deg); }
}

.shake {
    animation: shake 0.4s ease infinite;
}

.choice-display.pop {
    transform: scale(1.15);
}

.choice-display.winner {
    border-color: var(--win-color);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.choice-display.loser {
    opacity: 0.6;
    transform: scale(0.9);
}

.vs-badge {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.result-announcement {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: color 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.choice-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.2rem 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text-main);
    font-family: inherit;
}

.choice-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.choice-btn:active:not(:disabled) {
    transform: translateY(2px);
}

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

.choice-btn .icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.choice-btn:hover:not(:disabled) .icon {
    transform: scale(1.1) rotate(-5deg);
}

.choice-btn .btn-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.reset-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.reset-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    border-color: rgba(255,255,255,0.4);
}

.reset-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .game-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .choice-display {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .controls {
        gap: 0.5rem;
    }
    
    .choice-btn {
        padding: 0.8rem 0;
    }
    
    .choice-btn .icon {
        font-size: 1.8rem;
    }
}
