/* =========================================================
   GLOBAL FPS / WARZONE THEME & GAME STYLES
========================================================= */

:root {
    --war-bg-black: #080b0a;
    --war-green: #34483d;
    --war-green-light: #52675a;
    --war-steel: #343a3a;
    --war-red: #c93427;
    --war-orange: #e06429;
    --war-yellow: #e4a62b;
    --war-white: #f2f2ed;
    --war-text: #d6dad5;
    --war-muted: #929b96;
    --war-card: rgba(18, 23, 21, .94);
    --war-border: rgba(255,255,255,.09);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

body {
    min-height: 100vh;
    color: var(--war-text);
    background: 
        radial-gradient(ellipse 55% 65% at 5% 15%, rgba(67, 94, 77, .75), transparent 72%),
        radial-gradient(ellipse 70% 70% at 50% 45%, rgba(59, 67, 65, .48), transparent 75%),
        radial-gradient(ellipse 45% 60% at 100% 20%, rgba(133, 52, 30, .48), transparent 70%),
        radial-gradient(ellipse 70% 45% at 65% 100%, rgba(105, 43, 28, .48), transparent 75%),
        linear-gradient(135deg, #1d2a23 0%, #222b29 35%, #202526 60%, #141918 100%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Header HUD */
.hud-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 12, 11, .92);
    padding: 15px 25px;
    border: 1px solid var(--war-border);
    box-shadow: 0 5px 25px rgba(0,0,0,.35);
}

.hud-box {
    display: flex;
    flex-direction: column;
}

.hud-box .label {
    font-size: 12px;
    color: var(--war-muted);
    letter-spacing: 1.5px;
}

.hud-box .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--war-yellow);
    text-shadow: 0 2px 5px rgba(0,0,0,.65);
}

/* Button */
.gun-button {
    color: #fff !important;
    background: linear-gradient(180deg, #d84435, #991e18) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,.4);
    transition: all .2s ease;
}

.gun-button:hover {
    background: linear-gradient(180deg, #ee6937, #bd291f) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.55);
}

/* Game Board */
.board-wrapper {
    position: relative;
    padding: 15px;
    background: linear-gradient(145deg, rgba(31,38,35,.95), rgba(12,16,15,.96));
    border: 1px solid var(--war-border);
    box-shadow: 0 15px 40px rgba(0,0,0,.45);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    gap: 8px;
}

.tile {
    width: 60px;
    height: 60px;
    background: rgba(10, 14, 13, 0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.tile:hover {
    background: rgba(255,255,255,0.05);
}

.tile.selected {
    border: 2px solid var(--war-orange);
    box-shadow: 0 0 12px var(--war-orange);
    transform: scale(1.05);
}

.tile.matched {
    animation: pop 0.25s ease forwards;
}

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); }
    100% { transform: scale(0); opacity: 0; }
}

/* Modal Overlay */
.modal {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 10, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal.hidden {
    display: none;
}

.modal-content {
    text-align: center;
    background: rgba(18, 23, 21, .98);
    padding: 30px;
    border: 1px solid var(--war-orange);
    box-shadow: 0 0 20px rgba(224, 100, 41, 0.3);
}

.modal-content h2 {
    color: var(--war-white);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.modal-content p {
    color: var(--war-text);
    font-size: 18px;
    margin-bottom: 20px;
}

/* Footer Section */
#footer {
    width: 100%;
    background: #080b0a !important;
    color: #9ca39f;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    line-height: 1.6;
}

.footer-col {
    max-width: 60%;
}

.footer-col h3 {
    color: var(--war-white);
    margin-bottom: 8px;
}

.footer-col.links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer-col.links a {
    color: #aeb5b0;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-col.links a:hover {
    color: var(--war-orange);
}