/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --accent-primary: #00d9ff;
    --accent-secondary: #7b2cbf;
    --accent-glow: #ff006e;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Force hidden scrollbars */
    margin: 0;
    padding: 0;
}

/* ===== Container & Layout ===== */
.container {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center game in view */
    align-items: center;
}

header {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.2em;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    letter-spacing: 0.1em;
}

#gameCanvas {
    /* Fill remaining space in flex column */
    flex-grow: 1;
    min-height: 0;
    /* Important for scroll/overflow behavior */
    width: 100%;
    display: block;

    background: linear-gradient(180deg, #000814 0%, #001d3d 100%);
}

/* ===== Game Interface ===== */
.game-interface {
    flex-shrink: 0;
    /* Don't shrink when canvas is large */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0e27;
    padding: 15px 30px;
    border-bottom: 2px solid var(--accent-primary);
    z-index: 10;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    /* Ensure structure doesn't collapse */
}

.score-box .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 4px;
    font-weight: 600;
}

.score-box .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    text-shadow: 0 0 15px currentColor;
    color: var(--accent-primary);
    /* Both scores Cyan */
}

/* ===== Control Button ===== */
.control-btn {
    background: transparent;
    border: 2px solid var(--accent-glow);
    /* Pink Border */
    color: var(--accent-glow);
    /* Pink Text */
    padding: 10px 30px;
    border-radius: 50px;
    /* Rounded for circle aesthetic */
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
}

.control-btn:hover {
    background: var(--accent-glow);
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.6);
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(1px);
}

/* ===== Override Injected Portfolio Styles ===== */

/* 1. Reset the body to your intended layout */
html body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
}

/* 2. Reset the wrapper to match your local design */
html body .game-wrapper {
    position: relative !important; /* Forces it back from 'absolute' */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important; 
    display: flex !important;
    flex-direction: column !important;
}

/* 3. Ensure the canvas doesn't get shrunk by the 95vw/vh injection */
html body #gameCanvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important; /* Removes the injected green glow */
    image-rendering: auto !important; /* Or 'pixelated' if you prefer */
}
/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }
} 


