/* Hex Conquest — Strategy Theme */
/* Brand: #a78bfa purple, #fb923c orange, #67e8f9 cyan, #0a0a12 bg */

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

body {
    background: #0a0a12;
    color: #e4e4f0;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    max-width: 100vw;
}

#game-canvas {
    display: block;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 8px;
}

/* HUD */
#hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #12121e;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    margin-bottom: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    gap: 8px;
}

.hud-group { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hud-label { color: #888; font-size: 7px; letter-spacing: 1px; }
.hud-value { font-size: 14px; }
.hud-value.purple { color: #a78bfa; }
.hud-value.orange { color: #fb923c; }
.hud-sub { font-size: 7px; color: #67e8f9; }

#turn-indicator {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse-glow 1.5s ease-in-out infinite;
    white-space: nowrap;
}

#turn-indicator.player-turn {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border: 1px solid #a78bfa;
}

#turn-indicator.enemy-turn {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid #fb923c;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Overlays */
.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(6px);
    z-index: 10;
    border-radius: 8px;
}

.game-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 32px;
    text-align: center;
    line-height: 1.4;
    background: linear-gradient(135deg, #a78bfa, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.victory-text { background: linear-gradient(135deg, #a78bfa, #34d399); -webkit-background-clip: text; }
.defeat-text { background: linear-gradient(135deg, #fb923c, #ef4444); -webkit-background-clip: text; }

.subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.game-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 20px;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.instructions {
    max-width: 420px;
    text-align: left;
    font-size: 12px;
    line-height: 1.7;
    color: #aaa;
}

.instructions strong { color: #67e8f9; }
.instructions .purple { color: #a78bfa; font-weight: 700; }

.final-stat {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 8px;
}

.final-stat span { color: #67e8f9; font-weight: 700; }

/* Badge */
#badge {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: #555;
    font-family: 'Inter', sans-serif;
}

#badge a {
    color: #a78bfa;
    text-decoration: none;
}

#badge a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 820px) {
    #game-container { width: 100vw; }
    .game-title { font-size: 22px; }
    #hud { font-size: 7px; padding: 6px 8px; }
    .hud-value { font-size: 11px; }
    #turn-indicator { font-size: 7px; padding: 4px 8px; }
    .instructions { font-size: 11px; max-width: 90vw; }
}
