:root {
    --bg: #070709;
    --bg-elev: #101018;
    --ink: #f4eef8;
    --muted: #a89bb3;
    --orange: #ff6a1a;
    --orange-soft: #ff8c3a;
    --purple: #9d4edd;
    --purple-deep: #5a189a;
    --line: rgba(255, 255, 255, 0.08);
    --glass: rgba(12, 10, 18, 0.62);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --radius: 22px;
    --font: "Sora", "Segoe UI", sans-serif;
    --display: "Orbitron", "Sora", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(157, 78, 221, 0.18), transparent 55%),
        radial-gradient(900px 500px at 110% 10%, rgba(255, 106, 26, 0.16), transparent 50%),
        var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 6vw;
    backdrop-filter: blur(18px);
    background: rgba(7, 7, 9, 0.72);
    border-bottom: 1px solid rgba(157, 78, 221, 0.22);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 106, 26, 0.18);
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.28rem;
}

.brand strong {
    font-family: var(--display);
    letter-spacing: 0.18em;
    font-size: 0.86rem;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(157, 78, 221, 0.55);
}

.brand span {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav a {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav a:hover,
.nav a.is-active { color: var(--ink); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 106, 26, 0.45);
    background: linear-gradient(135deg, rgba(255, 106, 26, 0.18), rgba(157, 78, 221, 0.16));
    color: var(--ink);
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    cursor: pointer;
}

.btn:hover { border-color: var(--orange); }

.wrap {
    width: min(1180px, calc(100% - 8vw));
    margin-inline: auto;
}

.hero,
.section {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: 18vh 0 10vh;
}

.kicker {
    color: var(--orange-soft);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin: 0 0 1rem;
}

h1, h2, .display {
    font-family: var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0;
}

h1 {
    font-size: clamp(3rem, 9vw, 8rem);
    text-shadow:
        0 0 12px rgba(240, 210, 255, 0.35),
        0 0 28px rgba(157, 78, 221, 0.7),
        0 0 64px rgba(255, 106, 26, 0.35);
}
h2 { font-size: clamp(2rem, 5vw, 4rem); }

.lede {
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-panel,
.glass {
    background: var(--glass);
    border: 1px solid rgba(157, 78, 221, 0.28);
    border-radius: var(--radius);
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(255, 106, 26, 0.08),
        0 0 40px rgba(157, 78, 221, 0.12);
    backdrop-filter: blur(16px);
}

.hero-panel { padding: 2rem; width: min(720px, 100%); }

.bg-stage {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    inset: -8%;
    opacity: 0.9;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 106, 26, 0.22), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(157, 78, 221, 0.28), transparent 36%),
        radial-gradient(circle at 50% 90%, rgba(90, 24, 154, 0.35), transparent 40%);
    animation: drift 28s ease-in-out infinite alternate;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    z-index: -1;
}

@keyframes drift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-2%, 2%, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: rise 0.9s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.22s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

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

.game-card[hidden],
.game-card.is-filtered-out {
    display: none !important;
}

.game-card {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, transparent 20%, rgba(7, 7, 9, 0.92)),
        var(--bg-elev);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 106, 26, 0.55);
}

.game-card.accent-purple:hover { border-color: rgba(157, 78, 221, 0.6); }

.card-glow {
    position: absolute;
    inset: auto -20% 40% -20%;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 106, 26, 0.35), transparent 60%);
    filter: blur(8px);
}

.game-card.accent-purple .card-glow {
    background: radial-gradient(circle, rgba(157, 78, 221, 0.4), transparent 60%);
}

.badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 106, 26, 0.4);
    color: var(--orange-soft);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge.purple {
    border-color: rgba(157, 78, 221, 0.5);
    color: #e0aaff;
}

.meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 2rem;
}

.chip {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    color: var(--muted);
    cursor: pointer;
}

.chip.is-on,
.chip:hover {
    color: var(--ink);
    border-color: var(--orange);
}

.site-footer {
    padding: 3rem 6vw;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

.editor-quiet {
    margin-left: 1rem;
    color: rgba(168, 155, 179, 0.35);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.editor-quiet:hover {
    color: rgba(168, 155, 179, 0.7);
}

.notice {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(157, 78, 221, 0.1);
}

.notice.error { border-color: rgba(255, 80, 80, 0.4); background: rgba(80, 10, 10, 0.35); }
.notice.ok { border-color: rgba(80, 200, 120, 0.35); background: rgba(20, 60, 30, 0.35); }

@media (max-width: 720px) {
    .site-header { padding-inline: 1rem; }
    .nav { gap: 0.7rem; }
    .hero, .section { padding-top: 22vh; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bg-layer, .reveal { animation: none; }
    .reveal { opacity: 1; transform: none; }
}
