:root {
    --bg: #040605;
    --panel-bg: rgba(12, 16, 14, 0.88);
    --panel-border: rgba(255, 255, 255, 0.08);

    --green: #22c55e;
    --green-dim: #14532d;
    --green-glow: rgba(34, 197, 94, 0.4);

    --gold: #eab308;
    --gold-glow: rgba(234, 179, 8, 0.4);

    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.4);

    --text-main: #f4f7f5;
    --text-muted: #7a847e;
    --font-head: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 14px;
    --anim-fast: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    --anim-smooth: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-head);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 197, 94, 0.14), transparent 55%),
        radial-gradient(ellipse 40% 40% at 85% 80%, rgba(234, 179, 8, 0.05), transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
    position: fixed;
    inset: 0;
    overflow: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #2a2f2c;
    border-radius: 3px;
    border: 1px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3d4540; }

::selection {
    background: var(--green);
    color: #000;
}

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    outline: none;
    color: inherit;
}

button {
    cursor: pointer;
    user-select: none;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

#game-canvas { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
#event-layer { position: absolute; inset: 0; z-index: 60; pointer-events: none; }

.bg-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.08), transparent 35%),
        radial-gradient(circle at 75% 60%, rgba(34, 197, 94, 0.05), transparent 40%);
    filter: blur(40px);
}
