:root {
    --amber: #ffb000;
    --amber-dim: #c87800;
    --amber-glow: #ff8c00;
    --bg: #0a0800;
    --bg-card: #0f0c00;
    --scanline-opacity: 0.04;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--amber);
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 18px;
    line-height: 1.5;
    /* CRT phosphor glow */
    text-shadow: 0 0 8px var(--amber-glow), 0 0 2px var(--amber);
    /* Scanlines overlay */
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, var(--scanline-opacity)) 2px,
        rgba(0, 0, 0, var(--scanline-opacity)) 4px
    );
}

/* Subtle CRT screen curvature / vignette */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 100;
}

a {
    color: var(--amber);
    text-decoration: none;
}

a:hover {
    color: #fff8e0;
    text-shadow: 0 0 12px var(--amber), 0 0 4px #fff;
}

/* ── Layout ─────────────────────────────────────────── */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Header ─────────────────────────────────────────── */

header {
    border-bottom: 1px solid var(--amber-dim);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.prompt-line {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.prompt {
    color: var(--amber-dim);
    user-select: none;
}

h1 {
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.tagline {
    color: var(--amber-dim);
    margin-top: 0.4rem;
    font-size: 1rem;
}

/* ── Section headings ───────────────────────────────── */

.section-heading {
    font-size: 1rem;
    color: var(--amber-dim);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

/* ── Game grid ──────────────────────────────────────── */

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    border: 1px solid var(--amber-dim);
    background: var(--bg-card);
    padding: 1.2rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: block;
}

.game-card:hover {
    border-color: var(--amber);
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.2), inset 0 0 10px rgba(255, 176, 0, 0.04);
    text-shadow: 0 0 8px var(--amber-glow), 0 0 2px var(--amber);
}

.game-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--amber-dim);
    padding-bottom: 0.5rem;
}

.game-card .card-title {
    font-size: 1.3rem;
}

.game-card .card-status {
    font-size: 0.8rem;
    color: var(--amber-dim);
    letter-spacing: 0.1em;
}

.game-card .card-status.wip {
    color: #886600;
}

.game-card .card-desc {
    font-size: 0.95rem;
    color: var(--amber-dim);
    line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--amber-dim);
    padding-top: 1rem;
    color: var(--amber-dim);
    font-size: 0.85rem;
}

/* ── Blinking cursor ────────────────────────────────── */

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    background: var(--amber);
    vertical-align: text-bottom;
    animation: blink 1.1s step-end infinite;
    box-shadow: 0 0 6px var(--amber-glow);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Game page specific ─────────────────────────────── */

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.game-container canvas {
    display: block;
    border: 1px solid var(--amber-dim);
    box-shadow: 0 0 16px rgba(255, 176, 0, 0.15);
}

.back-link {
    font-size: 0.9rem;
    color: var(--amber-dim);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.back-link:hover {
    color: var(--amber);
}
