:root {
    --bg: #09090b;
    --primary: #22c55e;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --danger: #ef4444;
    --text: #f8fafc;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Teko', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-hud {
    background: #000;
    padding: 0.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    z-index: 10;
}

.btn-exit {
    color: var(--text);
    font-size: 1.5rem;
    text-decoration: none;
    margin-right: 1.5rem;
}

.stat-item {
    font-size: 1.8rem;
    color: var(--primary);
}

.expression-container {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--primary);
    padding: 0.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expression-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
}

#answer-input {
    background: #000;
    border: 2px solid var(--primary);
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.8rem;
    width: 100px;
    text-align: center;
    border-radius: 5px;
    padding: 2px;
}

#answer-input:focus {
    outline: none;
    box-shadow: 0 0 15px var(--primary);
}

#battleground {
    flex-grow: 1;
    position: relative;
    background: radial-gradient(circle at center, #111827 0%, #000 100%);
}

#defenseCanvas {
    display: block;
}

.hidden {
    display: none !important;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
}

.neon-title {
    font-size: 4rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    margin-bottom: 1rem;
}

.btn-action {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1rem 3.5rem;
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 2rem;
    transition: 0.3s;
}

.btn-action:hover {
    box-shadow: 0 0 30px var(--primary);
    transform: scale(1.05);
}

.instructions {
    margin-top: 2rem;
    color: #94a3b8;
    font-size: 1.2rem;
}

/* Hide Spinners */
#answer-input::-webkit-outer-spin-button,
#answer-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
