:root {
    --bg-color: #050505;
    --primary-color: #ff003c;
    --secondary-color: #00f0ff;
    --text-color: #fceea7;
    --container-bg: #11111b;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-container {
    background-color: var(--container-bg);
    border: 4px solid var(--primary-color);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 
        0 0 10px var(--primary-color),
        inset 0 0 15px rgba(255, 0, 60, 0.2);
    max-width: 800px;
    width: 95%;
    text-align: center;
    position: relative;
}

header {
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2rem;
    color: var(--text-color);
    text-shadow: 4px 4px var(--primary-color), -2px -2px var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.7rem;
    color: var(--secondary-color);
    animation: blink 1.5s infinite;
}

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

.scoreboard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.score-card {
    background: #000;
    padding: 1rem;
    border: 2px solid var(--secondary-color);
    min-width: 120px;
}

.score-card h2 {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 1rem;
}

.score-number {
    font-size: 2rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.player-score-card {
    border-color: var(--secondary-color);
}

.player-score-card .score-number {
    color: var(--secondary-color);
}

.computer-score-card {
    border-color: var(--primary-color);
}

.computer-score-card .score-number {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.battlefield {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem 1rem;
    background-color: #000;
    border: 2px dashed #333;
}

.fighter {
    background: #222;
    font-size: 3rem;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--text-color);
    box-shadow: 4px 4px 0 #000;
}

.vs {
    font-size: 1.5rem;
    color: #555;
}

.result-board {
    margin-bottom: 2rem;
    min-height: 2.5rem;
}

#result-message {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 2px 2px #000;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.choice-btn {
    background-color: #000;
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    border: 4px solid var(--text-color);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 var(--primary-color);
}

.choice-btn:hover {
    background-color: var(--primary-color);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--secondary-color);
}

.choice-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--secondary-color);
}

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

.choice-btn .icon {
    font-size: 2rem;
}

.choice-btn .text {
    font-size: 0.7rem;
}

footer {
    margin-top: 2rem;
    font-size: 0.5rem;
    color: #444;
}

/* Animations */
@keyframes shakePlayer {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-10deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(10px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

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

/* Mobile Adjustments */
@media (max-width: 600px) {
    h1 { font-size: 1.2rem; }
    .fighter { width: 70px; height: 70px; font-size: 2rem; }
    .score-card { min-width: 80px; padding: 0.5rem; }
    .score-number { font-size: 1.5rem; }
    .controls { gap: 0.5rem; }
    .choice-btn { padding: 0.5rem; }
    .choice-btn .icon { font-size: 1.5rem; }
    .choice-btn .text { font-size: 0.5rem; }
}
