@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
    --bg: #08061a;
    --bg-mid: #0c0920;
    --plum: #110e28;
    --cyan: #00d4ff;
    --purple: #7b2fff;
    --white: #ffffff;
    --white-dim: rgba(255, 255, 255, 0.62);
    --white-faint: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 212, 255, 0.38);

    /* Type scale — shared across site */
    --font-heading: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --font-body:    'Inter', sans-serif;
    --text-fine:   0.68rem;
    --text-sm:     0.85rem;
    --text-base:   1rem;
    --text-h3:     clamp(1rem, 2.8vw, 1.3rem);
    --text-h2:     clamp(1.4rem, 4vw, 2rem);
    --text-h1:     clamp(2.2rem, 7vw, 3.5rem);
    --text-hero:   clamp(2.8rem, 9vw, 6.5rem);
    --text-nav:    0.68rem;
    --text-label:  0.7rem;
    --lead-tight:  1.2;
    --lead-body:   1.75;
    --lead-loose:  1.9;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--lead-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Semantic type scale ── */
h1 {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 900;
    line-height: var(--lead-tight);
    letter-spacing: 0.04em;
}

h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: var(--lead-tight);
    letter-spacing: 0.04em;
}

h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    line-height: var(--lead-tight);
    letter-spacing: 0.04em;
}

h4 {
    font-family: var(--font-heading);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

p {
    font-size: var(--text-base);
    line-height: var(--lead-body);
    color: var(--white-dim);
}

canvas#stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

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

/* ── NAV ── */

/* ── Hero logo ── */
.hero-logo {
    width: clamp(240px, 65vw, 560px);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 24px rgba(244, 212, 160, 0.18))
            drop-shadow(0 0 60px rgba(0, 212, 255, 0.08));
    
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* ── HERO ── */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: var(--lead-tight);
    color: var(--white);
    text-shadow:
        0 0 40px rgba(0, 212, 255, 0.18),
        0 0 100px rgba(123, 47, 255, 0.12);
    margin-bottom: 1.4rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2.4vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white-dim);
    letter-spacing: 0.06em;
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 5.5rem;
    animation: bounce 2.2s ease-in-out infinite;
    transition: color 0.2s;
}

.scroll-cue:hover { color: rgba(255, 255, 255, 0.6); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* ── ABOUT ── */
.about {
    position: relative;
    z-index: 10;
    padding: 7rem 0;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--bg-mid) 15%,
        var(--bg-mid) 85%,
        transparent 100%);
}

.about-inner {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.about-inner p {
    font-size: var(--text-base);
    line-height: var(--lead-loose);
    color: var(--white-dim);
    text-align: center;
}

/* ── GAMES ── */
.games {
    position: relative;
    z-index: 10;
    padding: 6rem 0 9rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.38em;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(0, 212, 255, 0.4);
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
    justify-content: center;
    gap: 2rem;
}

/* ── GAME CARD ── */
.game-card {
    background: var(--white-faint);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.28s ease, transform 0.28s ease;
}

.game-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.game-card-visual {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--plum);
}

.game-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-visual img { transform: scale(1.05); }

.game-card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-fine);
    letter-spacing: 0.2em;
    color: var(--purple);
    border: 1px solid rgba(123, 47, 255, 0.45);
    padding: 0.25em 0.65em;
    align-self: flex-start;
    text-transform: uppercase;
}

.game-title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: var(--lead-tight);
}

.game-sub {
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--cyan);
    opacity: 0.85;
}

.game-desc {
    font-size: var(--text-sm);
    line-height: var(--lead-loose);
    color: var(--white-dim);
}

.game-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-family: var(--font-heading);
    font-size: var(--text-fine);
    letter-spacing: 0.15em;
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 0.15em;
    align-self: flex-start;
    transition: color 0.2s, border-color 0.2s;
    text-transform: uppercase;
}

.game-link:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

/* ── FOOTER ── */

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .about-inner { gap: 1.3rem; }
    .game-card-body { padding: 1.25rem; }
}

