@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --neon-purple: #bc13fe;
    --neon-blue: #00f3ff;
    --neon-green: #39ff14;
    --dark-bg: #0d0221;
    --panel-bg: #1a0b2e;
}

body {
    background-color: var(--dark-bg);
    color: #fff;
    font-family: 'VT323', monospace;
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

.pixel-border {
    border: 4px solid #fff;
    box-shadow: 
        0 0 0 4px var(--dark-bg),
        0 0 0 8px #fff,
        0 0 20px var(--neon-purple);
}

.pixel-btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    clip-path: polygon(
        0 10%, 5% 10%, 5% 0, 95% 0, 95% 10%, 100% 10%, 
        100% 90%, 95% 90%, 95% 100%, 5% 100%, 5% 90%, 0% 90%
    );
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.pixel-btn:hover {
    transform: scale(1.05);
    background: var(--neon-green);
    color: #000;
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(188, 19, 254, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
}

.display-font {
    font-family: 'Press Start 2P', cursive;
}

.quest-card {
    background: var(--panel-bg);
    border: 2px solid var(--neon-blue);
    image-rendering: pixelated;
}

.stats-bar {
    height: 12px;
    background: #222;
    border: 1px solid #444;
    position: relative;
}

.stats-fill {
    height: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Helper to ensure text colors are readable on dark background */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

p, li, span {
    color: #e5e7eb; /* gray-200 */
}

.tag-badge {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    background: var(--neon-green);
    color: #000;
    padding: 4px 10px;
    display: inline-block;
}