/* base.css - Reset and foundation styles */
/* Note: CSS variables are now defined in /css/tokens.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Prevent text/element selection - this is a game, not a document */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Prevent touch callouts on mobile */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: var(--text-primary);
    position: relative;
    line-height: 1.6;

    /* Subtle grid background */
    background-color: var(--bg-base);
    background-image:
        /* Small grid */
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        /* Larger accent grid */
        linear-gradient(var(--grid-line-accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-accent) 1px, transparent 1px),
        /* Subtle radial vignette */
        radial-gradient(ellipse at center, transparent 0%, var(--bg-base) 70%);
    background-size:
        24px 24px,
        24px 24px,
        120px 120px,
        120px 120px,
        100% 100%;
    background-position:
        -1px -1px,
        -1px -1px,
        -1px -1px,
        -1px -1px,
        center;
}

/* Subtle animated glow effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-blue-10), transparent),
        radial-gradient(ellipse 60% 40% at 50% 120%, var(--accent-blue-08), transparent);
    pointer-events: none;
    z-index: 0;
}

.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    background: var(--bg-glass);
    /* backdrop-filter removed for mobile performance - was: blur(12px) */
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}
