/* ─── Fonts ──────────────────────────────────────────── */
@font-face {
    font-family: 'LeyzuxGraduated';
    src: url('../LeyzuxGraduated.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ─── Custom Properties ──────────────────────────────── */
:root {
    --bg-base:      #070a13;
    --text:         #ffffff;
    --text-dim:     #9a9cb8;
    --text-faint:   #6a6c88;
    --link:         #b8d4f8;
    --panel-bg:     rgba(8, 12, 26, 0.42);
    --panel-border: rgba(255, 255, 255, 0.14);
    --panel-shine:  rgba(255, 255, 255, 0.09);
    --panel-shadow: rgba(0, 0, 0, 0.5);
    --ease:         180ms ease;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

/* ─── Body & Background ──────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 15% 10%,  #2c140b 0%, transparent 52%),
        radial-gradient(ellipse at 85% 90%,  #071830 0%, transparent 52%),
        radial-gradient(ellipse at 55% 45%,  #2e0635 0%, transparent 65%),
        var(--bg-base);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    image-rendering: pixelated;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

/* ─── Brand Bar ──────────────────────────────────────── */
.brand-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1.1rem 1.5rem;
}

.brand-bar a {
    font-family: 'LeyzuxGraduated', serif;
    font-size: 2.2rem;
    color: var(--text);
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.02em;
    line-height: 1;
}

.brand-bar a:hover {
    text-decoration: none;
    color: var(--text);
}

/* ─── Page Content ───────────────────────────────────── */
.game-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

/* ─── Game Card ──────────────────────────────────────── */
.game-card {
    background: var(--panel-bg);
    backdrop-filter: saturate(160%);
    -webkit-backdrop-filter: saturate(160%);
    border: 1px solid var(--panel-border);
    overflow: hidden;
    box-shadow:
        0 6px 32px var(--panel-shadow),
        inset 0 1px 0 var(--panel-shine);
    position: relative;
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        128deg,
        var(--panel-shine) 0%,
        rgba(255, 255, 255, 0.016) 36%,
        transparent 58%
    );
    pointer-events: none;
    z-index: 1;
}

.game-card img {
    width: 100%;
    display: block;
}

.game-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.game-card-desc {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.game-card-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.6rem;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background var(--ease), border-color var(--ease),
                box-shadow var(--ease), transform 0.28s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Glare sweep */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        8deg,
        transparent            40%,
        rgba(255,255,255,0.15) 50%,
        transparent            100%
    );
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 2;
    transition: transform 0.40s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    transform: perspective(500px) rotateX(12deg) scale(1.05);
}

.btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ─── Divider ────────────────────────────────────────── */
.game-card-divider {
    border: none;
    border-top: 1px solid var(--panel-border);
    margin: 1.25rem 0;
}

/* ─── Typography Helpers ─────────────────────────────── */
a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
