:root {
    --bg: #f3efe7;
    --bg-soft: #efe7da;
    --panel: rgba(255, 250, 242, 0.8);
    --panel-strong: rgba(28, 27, 25, 0.92);
    --ink: #171513;
    --muted: #5f574d;
    --line: rgba(23, 21, 19, 0.12);
    --accent: #c8553d;
    --accent-strong: #9f3d2b;
    --forest: #26453c;
    --gold: #c89d56;
    --shadow-lg: 0 30px 80px rgba(26, 22, 17, 0.16);
    --shadow-md: 0 16px 40px rgba(26, 22, 17, 0.12);
    --radius-xl: 28px;
    --radius-md: 16px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(200, 157, 86, 0.18), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(200, 85, 61, 0.18), transparent 24%),
        linear-gradient(180deg, #f8f3eb 0%, var(--bg) 36%, #efe7da 100%);
    min-height: 100vh;
}

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

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

p {
    margin: 0;
}

.shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(20px);
    background: rgba(243, 239, 231, 0.82);
    border-bottom: 1px solid rgba(23, 21, 19, 0.08);
}

.site-header__inner,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brand__mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(200, 85, 61, 0.2), rgba(38, 69, 60, 0.16));
    border: 1px solid rgba(23, 21, 19, 0.08);
    box-shadow: var(--shadow-md);
    padding: 0.7rem;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand__text span {
    font-size: clamp(1.05rem, 1rem + 0.6vw, 1.45rem);
}

.brand__text small {
    font-family: "Manrope", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.site-nav__link {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-current {
    background: rgba(23, 21, 19, 0.08);
    color: var(--ink);
    transform: translateY(-1px);
}

.page {
    padding: 2rem 0 4rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 5vw, 5rem);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 249, 241, 0.88), rgba(238, 230, 216, 0.82)),
        linear-gradient(160deg, rgba(200, 157, 86, 0.12), transparent 50%);
    border: 1px solid rgba(23, 21, 19, 0.08);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.9;
    z-index: -1;
}

.hero::before {
    width: 360px;
    height: 360px;
    top: -90px;
    right: -100px;
    background: radial-gradient(circle, rgba(200, 85, 61, 0.22), transparent 70%);
}

.hero::after {
    width: 260px;
    height: 260px;
    bottom: -50px;
    left: -40px;
    background: radial-gradient(circle, rgba(38, 69, 60, 0.2), transparent 70%);
}

.hero__grid,
.split-grid,
.metrics,
.games-grid,
.pillars,
.legal-grid,
.not-found {
    display: grid;
    gap: 1.5rem;
}

.hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    align-items: end;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(23, 21, 19, 0.06);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-title,
.not-found__code {
    margin: 0;
    font-family: "Syne", sans-serif;
    letter-spacing: -0.05em;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: 0.92;
    max-width: 11ch;
    margin-top: 1rem;
}

.hero__lede,
.section-copy,
.card p,
.legal-card p,
.legal-card li,
.not-found__copy {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

.hero__lede {
    max-width: 56ch;
    margin-top: 1.4rem;
    font-size: 1.1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.button,
.button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button {
    color: #fffaf4;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 18px 35px rgba(159, 61, 43, 0.25);
}

.button--ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(23, 21, 19, 0.1);
}

.button:hover,
.button--ghost:hover,
.button:focus-visible,
.button--ghost:focus-visible {
    transform: translateY(-2px);
}

.hero-card,
.card,
.metric,
.legal-card,
.not-found__panel {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(23, 21, 19, 0.08);
    box-shadow: var(--shadow-md);
}

.hero-card {
    padding: 1.6rem;
    background: var(--panel-strong);
    color: #f8f2ea;
    transform: rotate(2deg);
    animation: drift-in 700ms ease both;
}

.hero-card__label,
.section-kicker,
.metric__label,
.game-card__status,
.site-footer__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-card__title,
.card h3,
.legal-card h2,
.not-found__title {
    margin: 0;
    font-family: "Syne", sans-serif;
    letter-spacing: -0.04em;
}

.hero-card__title {
    margin-top: 0.7rem;
    font-size: 1.6rem;
}

.hero-card__text {
    margin-top: 0.9rem;
    color: rgba(248, 242, 234, 0.76);
    line-height: 1.65;
}

.hero-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 242, 234, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
}

.section {
    padding: 4rem 0 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    max-width: 56rem;
}

.section-kicker {
    color: var(--accent-strong);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 0.95;
}

.split-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
}

.card,
.metric,
.legal-card,
.not-found__panel {
    background: var(--panel);
    backdrop-filter: blur(12px);
}

.card,
.legal-card,
.not-found__panel {
    padding: 1.6rem;
}

.metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
    padding: 1.4rem;
}

.metric strong {
    display: block;
    margin-top: 0.55rem;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    letter-spacing: -0.06em;
}

.metric__label {
    color: var(--muted);
}

.games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
    position: relative;
    overflow: hidden;
}

.game-card::after {
    content: "";
    position: absolute;
    inset: auto -15% -35% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(200, 85, 61, 0.12), transparent 70%);
    pointer-events: none;
}

.game-card__status {
    color: var(--accent-strong);
}

.game-card__release {
    margin-top: 1.1rem;
    font-weight: 800;
    color: var(--forest);
}

.pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillars .card {
    min-height: 100%;
}

.list-clean {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.list-clean li + li {
    margin-top: 0.65rem;
}

.list-clean li::before {
    content: "•";
    color: var(--accent-strong);
    font-weight: 900;
    margin-right: 0.55rem;
}

.callout {
    padding: 1.6rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #22201d, #2e2a26);
    color: #f8f3eb;
    box-shadow: var(--shadow-lg);
}

.callout p {
    color: rgba(248, 243, 235, 0.82);
}

.callout a {
    color: #ffdca2;
    font-weight: 800;
}

.site-footer {
    margin-top: 4rem;
    background: rgba(23, 21, 19, 0.94);
    color: #f3ede3;
}

.site-footer__copy {
    max-width: 42ch;
    margin-top: 0.45rem;
    color: rgba(243, 237, 227, 0.72);
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem 1.3rem;
    color: rgba(243, 237, 227, 0.82);
    font-weight: 700;
}

.site-footer__meta a:hover,
.site-footer__meta a:focus-visible {
    color: #ffffff;
}

.legal-grid {
    grid-template-columns: 1fr;
}

.legal-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
}

.legal-card ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.legal-card li + li {
    margin-top: 0.5rem;
}

.not-found {
    min-height: calc(100vh - 180px);
    place-items: center;
}

.not-found__panel {
    max-width: 720px;
    text-align: center;
}

.not-found__code {
    font-size: clamp(4rem, 16vw, 9rem);
    line-height: 0.9;
}

.not-found__title {
    margin-top: 0.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.not-found__copy {
    margin: 1rem auto 0;
    max-width: 40ch;
}

.lockscreen {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
}

.lockscreen__panel {
    width: min(100%, 720px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 249, 241, 0.92), rgba(238, 230, 216, 0.9)),
        linear-gradient(160deg, rgba(200, 157, 86, 0.12), transparent 50%);
    border: 1px solid rgba(23, 21, 19, 0.08);
    box-shadow: var(--shadow-lg);
}

.lockscreen__form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.lockscreen__label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--muted);
}

.lockscreen__input {
    width: 100%;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(23, 21, 19, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font: inherit;
}

.lockscreen__input:focus {
    outline: 2px solid rgba(200, 85, 61, 0.3);
    outline-offset: 2px;
}

.lockscreen__hint,
.lockscreen__error {
    margin-top: 1rem;
    color: var(--muted);
}

.lockscreen__hint a {
    color: var(--accent-strong);
    font-weight: 800;
}

.lockscreen__error {
    color: var(--accent-strong);
    font-weight: 800;
}

.stack-lg > * + * {
    margin-top: 1.2rem;
}

.fade-up {
    opacity: 0;
    animation: fade-up 700ms ease forwards;
}

.fade-up--delay-1 {
    animation-delay: 120ms;
}

.fade-up--delay-2 {
    animation-delay: 220ms;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift-in {
    from {
        opacity: 0;
        transform: translateY(24px) rotate(4deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(2deg);
    }
}

@media (max-width: 960px) {
    .hero__grid,
    .split-grid,
    .metrics,
    .games-grid,
    .pillars {
        grid-template-columns: 1fr;
    }

    .site-header__inner,
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav,
    .site-footer__meta {
        justify-content: flex-start;
    }

    .hero-card {
        transform: none;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }

    .page {
        padding-top: 1.2rem;
    }

    .hero,
    .card,
    .legal-card,
    .not-found__panel {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand__text small {
        font-size: 0.72rem;
    }

    .site-nav__link,
    .button,
    .button--ghost {
        width: 100%;
    }

    .hero__actions,
    .site-nav {
        width: 100%;
    }
}
