@import url('https:/fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #111522;
    --night: #17162b;
    --plum: #30214f;
    --violet: #7958d6;
    --lilac: #bda8ff;
    --mint: #9df0d2;
    --cream: #fffaf0;
    --muted: #b7b5c9;
    --line: rgba(255, 255, 255, 0.13);
    --shadow: 0 24px 70px rgba(4, 3, 18, 0.42);
}

/* =========================
   GLOBAL STYLES
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 21, 34, 0.82);
    backdrop-filter: blur(18px);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font: 700 1.03rem Cinzel, serif;
    letter-spacing: 0.07em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px 4px 12px 4px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--mint), var(--violet));
    color: var(--night);
    box-shadow: 0 0 22px rgba(157, 240, 210, 0.35);
}

.nav-links {
    display: flex;
    gap: 21px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 0.83rem;
    color: var(--muted);
    transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--mint);
}

/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 19px;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--night);
    background: var(--mint);
    transition: transform 0.25s, box-shadow 0.25s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 25px rgba(157, 240, 210, 0.2);
}

.button.alt {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--line);
}

/* =========================
   HERO SECTION
========================= */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(
            circle at 78% 30%,
            rgba(121, 88, 214, 0.32),
            transparent 29%
        ),
        radial-gradient(
            circle at 20% 0%,
            rgba(157, 240, 210, 0.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #17162d 0%,
            #21193b 55%,
            #111522 100%
        );
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero:before {
    width: 480px;
    height: 480px;
    right: -170px;
    top: 70px;
    border: 1px solid rgba(189, 168, 255, 0.25);
    box-shadow:
        0 0 0 32px rgba(189, 168, 255, 0.04),
        0 0 0 75px rgba(189, 168, 255, 0.025);
}

.hero:after {
    width: 18px;
    height: 18px;
    left: 67%;
    top: 24%;
    background: var(--mint);
    box-shadow:
        -260px 160px 0 4px var(--lilac),
        130px 245px 0 2px var(--mint),
        -440px 45px 0 1px var(--cream);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    padding: 92px 0;
}

.eyebrow {
    color: var(--mint);
    font-size: 0.74rem;
    letter-spacing: 0.21em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero h1 {
    font: 600 clamp(3rem, 7vw, 6.6rem) / 0.98 Cinzel, serif;
    letter-spacing: -0.045em;
    margin: 21px 0;
    color: var(--cream);
}

.hero h1 span {
    color: var(--lilac);
}

.hero p {
    max-width: 590px;
    color: var(--muted);
    font-size: 1.04rem;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 92px 0;
}

.section.dark {
    background: #141325;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 30px;
}

.section-heading h2,
.page-title h1 {
    font: 600 clamp(2rem, 4vw, 3.4rem) / 1.08 Cinzel, serif;
    margin: 10px 0;
}

.section-heading p {
    max-width: 480px;
    color: var(--muted);
    margin: 0;
}

/* =========================
   FEATURES
========================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.feature,
.panel {
    background: linear-gradient(
        145deg,
        rgba(48, 33, 79, 0.8),
        rgba(23, 22, 45, 0.88)
    );
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 27px;
    box-shadow: var(--shadow);
}

.feature:nth-child(2) {
    transform: translateY(18px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(157, 240, 210, 0.13);
    color: var(--mint);
    font-size: 1.25rem;
}

.feature h3 {
    margin: 18px 0 7px;
    font: 600 1.2rem Cinzel, serif;
}

.feature p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}

/* =========================
   GAMES
========================= */

.games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
}

.game-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #1c1933;
    transition: 0.3s;
}

.game-card:hover {
    transform: translateY(-7px);
    border-color: rgba(157, 240, 210, 0.6);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.game-art {
    height: 205px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 22px;
    background: linear-gradient(135deg, #392166, #181b38);
}

.game-art:before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -30px;
    top: -40px;
    border: 1px solid rgba(189, 168, 255, 0.45);
    border-radius: 50%;
    box-shadow:
        0 0 0 18px rgba(189, 168, 255, 0.08),
        0 0 0 42px rgba(189, 168, 255, 0.06);
}

.game-art:after {
    content: "✦";
    position: absolute;
    right: 45px;
    top: 49px;
    color: var(--mint);
    font-size: 2.3rem;
}

.game-art.lawn {
    background: linear-gradient(135deg, #184b50, #1d253a);
}

.game-art.lawn:after {
    content: "☘";
}

.game-art.react {
    background: linear-gradient(135deg, #4c2059, #17162d);
}

.game-art.react:after {
    content: "◉";
}

.game-art h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font: 600 1.5rem Cinzel, serif;
    max-width: 220px;
}

.game-info {
    padding: 21px;
}

.game-info p {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 17px;
}

.tiny-link {
    color: var(--mint);
    font-weight: 800;
    font-size: 0.8rem;
}

/* =========================
   SPLIT SECTION
========================= */

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.split h2 {
    font: 600 clamp(2rem, 4vw, 3.1rem) / 1.1 Cinzel, serif;
    margin: 11px 0 17px;
}

.split p {
    color: var(--muted);
}

.sigil {
    min-height: 310px;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(157, 240, 210, 0.27),
            transparent 15%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(121, 88, 214, 0.36),
            transparent 36%
        ),
        #21193b;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sigil span {
    width: 130px;
    height: 130px;
    border: 1px solid var(--mint);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 700 3.8rem Cinzel, serif;
    color: var(--mint);
    box-shadow:
        0 0 0 18px rgba(157, 240, 210, 0.06),
        0 0 55px rgba(157, 240, 210, 0.25);
}

/* =========================
   NOTICE
========================= */

.notice {
    border-left: 3px solid var(--mint);
    background: rgba(157, 240, 210, 0.07);
    padding: 22px 25px;
    color: var(--muted);
    border-radius: 0 16px 16px 0;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    padding: 34px 0;
    background: #0d0e18;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-grid p {
    color: var(--muted);
    max-width: 480px;
    margin: 10px 0 0;
    font-size: 0.84rem;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.8rem;
}

.copyright {
    border-top: 1px solid var(--line);
    margin-top: 25px;
    padding-top: 18px;
    color: #77758a;
    font-size: 0.73rem;
    align-items: center;
}

/* =========================
   INNER PAGE HERO
========================= */

.page-hero {
    padding: 86px 0 76px;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(121, 88, 214, 0.24),
            transparent 30%
        ),
        #17162d;
}

.page-title {
    max-width: 770px;
}

.page-title p {
    color: var(--muted);
    max-width: 650px;
}

/* =========================
   CONTENT
========================= */

.content {
    padding: 72px 0;
}

.prose {
    max-width: 820px;
}

.prose h2 {
    font: 600 1.55rem Cinzel, serif;
    margin: 36px 0 10px;
    color: var(--lilac);
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose ul {
    padding-left: 22px;
}

/* =========================
   CONTACT
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.contact-list {
    display: grid;
    gap: 15px;
}

.contact-item {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #1b1830;
}

.contact-item strong {
    display: block;
    color: var(--mint);
    margin-bottom: 4px;
}

.contact-item span {
    font-size: 0.88rem;
    color: var(--muted);
}

/* =========================
   FORMS
========================= */

form {
    display: grid;
    gap: 15px;
}

label {
    font-size: 0.78rem;
    color: var(--lilac);
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #111220;
    color: var(--cream);
    padding: 13px 14px;
    font: inherit;
    margin-top: 6px;
}

textarea {
    min-height: 145px;
    resize: vertical;
}

/* =========================
   GAME PAGE
========================= */

.game-page {
    padding: 65px 0 90px;
    background: #111220;
    min-height: calc(100vh - 78px);
}

.game-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 25px;
}

.game-top h1 {
    font: 600 clamp(2rem, 4vw, 3.4rem) / 1.1 Cinzel, serif;
    margin: 10px 0;
}

.game-top p {
    color: var(--muted);
    margin: 0;
}

.frame-shell {
    height: min(690px, 72vh);
    min-height: 470px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #090a11;
    box-shadow: var(--shadow);
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 13px;
    background: #05060b;
}

.game-note {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 15px;
}

/* =========================
   RESPONSIVE - TABLET
========================= */

@media (max-width: 800px) {
    .nav {
        align-items: flex-start;
        padding: 17px 0;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 12px;
    }

    .hero {
        min-height: 590px;
    }

    .features,
    .games,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature:nth-child(2) {
        transform: none;
    }

    .split {
        gap: 30px;
    }

    .sigil {
        min-height: 240px;
    }

    .section {
        padding: 67px 0;
    }

    .section-heading,
    .game-top {
        display: block;
    }

    .section-heading p {
        margin-top: 14px;
    }

    .game-top .button {
        margin-top: 18px;
    }

    .frame-shell {
        height: 65vh;
        min-height: 390px;
    }
}

/* =========================
   RESPONSIVE - MOBILE
========================= */

@media (max-width: 480px) {
    .shell {
        width: min(100% - 28px, 1160px);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        padding: 70px 0;
    }

    .button {
        padding: 11px 15px;
    }

    .game-art {
        height: 180px;
    }
}