/* ==========================================================================
   Projectellus Studio — main stylesheet
   1. Tokens  2. Base  3. Layout  4. Header  5. Buttons & chips
   6. Hero  7. Sections  8. Games  9. Feature & contact  10. Page hero
   11. Game page  12. Prose & policy  13. Footer  14. 404  15. Motion
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
    color-scheme: light;

    --forest-950: #0a140f;
    --forest-900: #0f1e16;
    --forest-800: #152a1f;
    --forest-700: #1e3a2b;
    --forest-600: #2b4f3b;
    --amber-300: #f0c27a;
    --amber-400: #e3a54e;
    --amber-500: #d08a32;
    --copper-600: #a85a2a;
    --copper-700: #8a4520;
    --cream-50: #fbf8f1;
    --cream-100: #f5efe2;
    --cream-200: #ebe2cf;

    --bg: #f5efe2;
    --bg-alt: #ede5d3;
    --surface: #fbf8f1;
    --text: #1d231c;
    --text-muted: #51584d;
    --heading: #13261b;
    --border: rgba(30, 58, 43, 0.14);
    --border-strong: rgba(30, 58, 43, 0.32);
    --link: #8a4520;
    --eyebrow: #8a4520;
    --focus: #a85a2a;
    --icon-bg: #1e3a2b;
    --icon-fg: #f0c27a;
    --todo-bg: #fde6a8;
    --todo-fg: #5a3300;

    --status-available-bg: #dcebd8;
    --status-available-fg: #1f5a31;
    --status-dev-bg: #f6e1bd;
    --status-dev-fg: #75400f;
    --status-soon-bg: #e6e0d2;
    --status-soon-fg: #474c42;

    --hero-bg:
        radial-gradient(ellipse 70% 55% at 72% 14%, rgba(227, 165, 78, 0.2), transparent 70%),
        linear-gradient(180deg, #08110c 0%, #0f2117 52%, #17331f 100%);

    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(16, 32, 22, 0.06), 0 2px 8px rgba(16, 32, 22, 0.05);
    --shadow: 0 18px 40px -18px rgba(16, 32, 22, 0.35);
    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 70px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0c1611;
        --bg-alt: #111f17;
        --surface: #14241b;
        --text: #e9e2d2;
        --text-muted: #b2ac9c;
        --heading: #f5efe2;
        --border: rgba(236, 228, 211, 0.1);
        --border-strong: rgba(236, 228, 211, 0.28);
        --link: #f0c27a;
        --eyebrow: #f0c27a;
        --focus: #f0c27a;
        --icon-bg: #203d2d;
        --todo-bg: rgba(240, 194, 122, 0.2);
        --todo-fg: #f6d9a4;
        --status-available-bg: rgba(120, 196, 130, 0.16);
        --status-available-fg: #a6dcae;
        --status-dev-bg: rgba(227, 165, 78, 0.16);
        --status-dev-fg: #f0c27a;
        --status-soon-bg: rgba(236, 228, 211, 0.1);
        --status-soon-fg: #d8d0bf;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1611;
    --bg-alt: #111f17;
    --surface: #14241b;
    --text: #e9e2d2;
    --text-muted: #b2ac9c;
    --heading: #f5efe2;
    --border: rgba(236, 228, 211, 0.1);
    --border-strong: rgba(236, 228, 211, 0.28);
    --link: #f0c27a;
    --eyebrow: #f0c27a;
    --focus: #f0c27a;
    --icon-bg: #203d2d;
    --todo-bg: rgba(240, 194, 122, 0.2);
    --todo-fg: #f6d9a4;
    --status-available-bg: rgba(120, 196, 130, 0.16);
    --status-available-fg: #a6dcae;
    --status-dev-bg: rgba(227, 165, 78, 0.16);
    --status-dev-fg: #f0c27a;
    --status-soon-bg: rgba(236, 228, 211, 0.1);
    --status-soon-fg: #d8d0bf;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    color: var(--heading);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); }

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--amber-300);
    color: var(--forest-950);
}

ul[role="list"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.icon {
    display: inline-block;
    flex: none;
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--amber-300);
    color: var(--forest-950);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: none;
}

main:focus {
    outline: none;
}

/* 3. Layout --------------------------------------------------------------- */
.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 46rem;
}

.section {
    padding-block: clamp(4rem, 3rem + 5vw, 7rem);
}

.section--tight {
    padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section--alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

.section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    max-width: none;
}

.section-head--split h2 {
    margin-bottom: 0;
}

.section-head__lead {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.9rem;
    color: var(--eyebrow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.eyebrow--light {
    color: var(--amber-300);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    text-decoration: none;
}

.link-arrow .icon {
    transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
    transform: translateX(3px);
}

.link-arrow--back .icon {
    transform: rotate(180deg);
}

.link-arrow--back:hover .icon {
    transform: rotate(180deg) translateX(3px);
}

/* 4. Header --------------------------------------------------------------- */
.site-header {
    --focus: var(--amber-300);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 24, 17, 0.94);
    color: var(--cream-100);
    border-bottom: 1px solid rgba(245, 239, 226, 0.08);
}

@supports (backdrop-filter: blur(1px)) {
    .site-header {
        background: rgba(12, 24, 17, 0.82);
        backdrop-filter: saturate(140%) blur(12px);
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
    color: inherit;
    text-decoration: none;
}

.brand__mark {
    width: auto;
    height: 46px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.brand__name {
    color: #f8f2e6;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand__sub {
    margin-top: 0.3rem;
    padding-left: 0.45em;
    color: var(--amber-300);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    text-transform: uppercase;
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    position: relative;
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    color: rgba(245, 239, 226, 0.82);
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.site-nav__link:hover {
    color: #fff;
    background: rgba(245, 239, 226, 0.06);
}

.site-nav__link[aria-current="page"] {
    color: #fff;
}

.site-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--amber-400);
}

.site-header__tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.icon-button:hover {
    background: rgba(245, 239, 226, 0.08);
    border-color: rgba(245, 239, 226, 0.14);
}

.icon-button .icon {
    width: 22px;
    height: 22px;
}

.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle__sun { display: inline-block; }
    :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

.no-js .theme-toggle,
.nav-toggle {
    display: none;
}

.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }

@media (min-width: 761px) {
    .site-nav {
        margin-right: 0.5rem;
    }
}

@media (max-width: 760px) {
    .js .nav-toggle {
        display: inline-grid;
    }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 0.75rem var(--gutter) 1.25rem;
        background: var(--forest-900);
        border-bottom: 1px solid rgba(245, 239, 226, 0.1);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
    }

    .js .site-nav.is-open {
        display: block;
        animation: nav-in 0.22s var(--ease);
    }

    .js .site-nav__list {
        flex-direction: column;
    }

    .js .site-nav__link {
        padding: 0.85rem 0.75rem;
        font-size: 1.1rem;
    }

    .js .site-nav__link[aria-current="page"]::after {
        left: 0.75rem;
        right: auto;
        width: 1.5rem;
        bottom: 0.45rem;
    }

    .no-js .site-header__inner {
        flex-wrap: wrap;
        padding-block: 0.5rem;
    }

    .no-js .site-nav {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .brand { gap: 0.55rem; }
    .brand__name { font-size: 1.3rem; }
    .brand__mark { height: 40px; }
}

@keyframes nav-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* 5. Buttons & chips ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn .icon {
    width: 1.15em;
    height: 1.15em;
}

.btn--primary {
    background: var(--amber-400);
    color: var(--forest-950);
    box-shadow: 0 8px 22px -10px rgba(208, 138, 50, 0.8);
}

.btn--primary:hover {
    background: var(--amber-300);
    box-shadow: 0 12px 28px -10px rgba(208, 138, 50, 0.9);
}

.btn--ghost {
    border-color: rgba(245, 239, 226, 0.4);
    color: var(--cream-100);
}

.btn--ghost:hover {
    border-color: var(--cream-100);
    background: rgba(245, 239, 226, 0.08);
}

.btn--outline {
    border-color: var(--border-strong);
    color: var(--heading);
}

.btn--outline:hover {
    border-color: var(--heading);
    background: var(--surface);
}

.btn--large {
    min-height: 54px;
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
}

.btn--small {
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
}

.btn--block {
    width: 100%;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.status--available { background: var(--status-available-bg); color: var(--status-available-fg); }
.status--in-development { background: var(--status-dev-bg); color: var(--status-dev-fg); }
.status--coming-soon { background: var(--status-soon-bg); color: var(--status-soon-fg); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.chip--light {
    border-color: rgba(245, 239, 226, 0.35);
    color: rgba(245, 239, 226, 0.88);
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
    --focus: var(--amber-300);
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: min(92vh, 860px);
    padding-block: clamp(4.5rem, 10vh, 7.5rem) clamp(9rem, 20vw, 15rem);
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--cream-100);
}

@supports (min-height: 1svh) {
    .hero { min-height: min(92svh, 860px); }
}

.hero::before,
.page-hero::before,
.coming-soon__art::before,
.not-found::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.07;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__glow {
    position: absolute;
    top: 9%;
    right: 9%;
    z-index: -2;
    width: clamp(220px, 34vw, 480px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 194, 122, 0.5) 0%, rgba(208, 138, 50, 0.16) 42%, transparent 70%);
    animation: glow 9s ease-in-out infinite alternate;
}

.forest {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: -1;
    width: 100%;
    height: clamp(170px, 28vw, 380px);
    max-width: none;
    pointer-events: none;
}

.forest__far { fill: #1b3727; opacity: 0.8; }
.forest__mid { fill: #12291c; }
.forest__near { fill: #07100b; }

.hero__spores span {
    position: absolute;
    bottom: 18%;
    z-index: -1;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--amber-300);
    box-shadow: 0 0 10px 2px rgba(240, 194, 122, 0.55);
    opacity: 0;
    animation: spore 14s linear infinite;
}

.hero__spores span:nth-child(1)  { left: 8%;  animation-delay: 0s; }
.hero__spores span:nth-child(2)  { left: 17%; animation-delay: 5s;  animation-duration: 17s; }
.hero__spores span:nth-child(3)  { left: 26%; animation-delay: 2s;  width: 3px; height: 3px; }
.hero__spores span:nth-child(4)  { left: 35%; animation-delay: 8s;  animation-duration: 19s; }
.hero__spores span:nth-child(5)  { left: 44%; animation-delay: 11s; width: 3px; height: 3px; }
.hero__spores span:nth-child(6)  { left: 53%; animation-delay: 3.5s; animation-duration: 16s; }
.hero__spores span:nth-child(7)  { left: 61%; animation-delay: 9.5s; }
.hero__spores span:nth-child(8)  { left: 69%; animation-delay: 1s;  animation-duration: 18s; width: 3px; height: 3px; }
.hero__spores span:nth-child(9)  { left: 77%; animation-delay: 6.5s; }
.hero__spores span:nth-child(10) { left: 85%; animation-delay: 12s; animation-duration: 15s; }
.hero__spores span:nth-child(11) { left: 92%; animation-delay: 4s;  width: 3px; height: 3px; }
.hero__spores span:nth-child(12) { left: 40%; animation-delay: 13.5s; animation-duration: 20s; }

.hero__content {
    position: relative;
    max-width: 62rem;
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    margin: 0;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(240, 194, 122, 0.3);
    border-radius: 999px;
    background: rgba(8, 17, 12, 0.4);
    color: var(--amber-300);
    font-size: clamp(0.68rem, 0.62rem + 0.25vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero__mark {
    width: auto;
    height: clamp(120px, 6rem + 9vw, 230px);
    margin: 1.75rem auto 0;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 40px rgba(240, 194, 122, 0.18));
}

.hero__title {
    margin: 1.1rem 0 0;
    color: #f8f2e6;
    font-size: clamp(2.8rem, 1rem + 9vw, 8.25rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 0.95;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.hero__title-main {
    display: block;
}

.hero__title-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.1rem;
    padding-left: 0.6em;
    color: var(--amber-300);
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 0.7rem + 0.6vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    text-shadow: none;
}

.hero__title-sub::before,
.hero__title-sub::after {
    content: "";
    width: clamp(2rem, 8vw, 5rem);
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.hero__tagline {
    margin: 1.9rem 0 0.5rem;
    color: var(--cream-100);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
    font-style: italic;
}

.hero__lead {
    max-width: 36rem;
    margin-inline: auto;
    color: rgba(245, 239, 226, 0.8);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

/* 7. Sections: pillars ---------------------------------------------------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
}

.pillar {
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.pillar p {
    margin: 0;
    color: var(--text-muted);
}

.pillar__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.15rem;
    border-radius: 16px;
    background: var(--icon-bg);
    color: var(--icon-fg);
}

.pillar__icon .icon {
    width: 26px;
    height: 26px;
}

.pillar__title {
    font-size: 1.35rem;
}

/* 8. Games ---------------------------------------------------------------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.game-card__media {
    display: block;
    text-decoration: none;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--forest-800);
}

.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.game-card:hover .game-card__media img {
    transform: scale(1.04);
}

.game-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem 1.5rem 1.6rem;
}

.game-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.game-card__title {
    margin: 0.2rem 0 0;
    font-size: 1.5rem;
}

.game-card__title a {
    color: inherit;
    text-decoration: none;
}

.game-card__title a:hover {
    text-decoration: underline;
}

.game-card__summary {
    margin: 0;
    color: var(--text-muted);
}

.game-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.6rem;
}

.cover-placeholder {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    overflow: hidden;
    background: var(--hero-bg);
}

.cover-placeholder .forest {
    height: 60%;
}

.cover-placeholder__title {
    padding: 1rem 1.5rem 3rem;
    color: #f8f2e6;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem);
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.catalogue-footnote {
    margin: 2.5rem 0 0;
    text-align: center;
}

/* Coming soon */
.coming-soon {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

@media (min-width: 820px) {
    .coming-soon {
        grid-template-columns: 1.05fr 1fr;
    }
}

.coming-soon__art {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 2rem 1rem 0;
    overflow: hidden;
    background: var(--hero-bg);
}

.coming-soon__art .forest {
    height: 45%;
}

.coming-soon__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -2;
    width: min(80%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 194, 122, 0.42) 0%, rgba(208, 138, 50, 0.12) 45%, transparent 70%);
    transform: translate(-50%, -62%);
}

.coming-soon__number {
    margin-bottom: 18%;
    color: transparent;
    font-family: var(--font-display);
    font-size: clamp(6rem, 4rem + 9vw, 11rem);
    font-weight: 600;
    line-height: 1;
    -webkit-text-stroke: 1.5px rgba(240, 194, 122, 0.85);
    text-shadow: 0 0 40px rgba(240, 194, 122, 0.25);
}

.coming-soon__label {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(240, 194, 122, 0.35);
    border-radius: 999px;
    background: rgba(8, 17, 12, 0.5);
    color: var(--amber-300);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.coming-soon__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
}

.coming-soon__title {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
}

.coming-soon__note {
    color: var(--text-muted);
}

.coming-soon__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* 9. Feature & contact ---------------------------------------------------- */
.feature {
    display: grid;
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

@media (min-width: 880px) {
    .feature {
        grid-template-columns: 1fr 1.05fr;
    }

    .feature--reverse {
        grid-template-columns: 1.1fr 1fr;
    }
}

.feature__art {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    background: var(--hero-bg);
    box-shadow: var(--shadow);
}

.feature__body > p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 1.08rem;
}

.feature__body .btn {
    margin-top: 0.5rem;
}

.brand-art {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
}

.brand-art__glow {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: -2;
    width: 85%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 194, 122, 0.38) 0%, rgba(208, 138, 50, 0.1) 45%, transparent 70%);
    transform: translate(-50%, -50%);
}

.brand-art .forest {
    height: 42%;
}

.brand-art__mark {
    width: 62%;
    height: auto;
    margin-top: -6%;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
}

.logo-card {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fefbf2;
    box-shadow: var(--shadow);
}

.logo-card img {
    width: 100%;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
    padding: 1.25rem 0;
    border-block: 1px solid var(--border);
}

.facts dt {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.facts dd {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-band {
    --focus: var(--amber-300);
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(2rem, 1.2rem + 3.5vw, 3.75rem);
    border-radius: var(--radius-lg);
    background: var(--hero-bg);
    color: rgba(245, 239, 226, 0.82);
}

.contact-band::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 194, 122, 0.22), transparent 70%);
}

@media (min-width: 900px) {
    .contact-band {
        grid-template-columns: 1.3fr 1fr;
    }
}

.contact-band h2 {
    color: #f8f2e6;
    font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
}

.contact-band__text p:last-child {
    margin: 0;
}

.contact-band__action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 900px) {
    .contact-band__action {
        align-items: flex-end;
    }
}

.contact-band__email {
    color: var(--amber-300);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-band__action .btn--primary,
.contact-band__action .btn--ghost {
    min-width: 12rem;
}

/* Contact page */
.contact-layout {
    display: grid;
    align-items: start;
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr 1.1fr;
    }
}

.contact-card {
    padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-card__icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: var(--icon-bg);
    color: var(--icon-fg);
}

.contact-card__icon .icon {
    width: 28px;
    height: 28px;
}

.contact-card__title {
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

.contact-card__label {
    margin: 1.25rem 0 0.2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card__email {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.8rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.contact-card__note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

[data-copy] .copied-icon { display: none; }
[data-copy].is-copied .copied-icon { display: inline-block; }
[data-copy].is-copied .copy-icon { display: none; }

.contact-topics {
    display: grid;
    gap: 1rem;
}

.topic {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.topic__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--icon-bg);
    color: var(--icon-fg);
}

.topic__title {
    margin-bottom: 0.35rem;
    font-size: 1.3rem;
}

.topic p,
.topic ul {
    color: var(--text-muted);
}

.topic p:last-child,
.topic ul:last-child {
    margin-bottom: 0;
}

.topic ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* 10. Page hero ----------------------------------------------------------- */
.page-hero {
    --focus: var(--amber-300);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(6.5rem, 5rem + 7vw, 10rem);
    background: var(--hero-bg);
    color: rgba(245, 239, 226, 0.82);
}

.page-hero .forest {
    height: clamp(90px, 13vw, 170px);
}

.page-hero__title {
    max-width: 22ch;
    color: #f8f2e6;
    font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.1rem);
}

.page-hero__lead {
    max-width: 42rem;
    margin: 0;
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 0.4rem;
    opacity: 0.45;
}

.breadcrumbs a {
    color: var(--amber-300);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs [aria-current] {
    color: rgba(245, 239, 226, 0.7);
}

/* 11. Game page ----------------------------------------------------------- */
.section--game {
    padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.game-layout {
    display: grid;
    align-items: start;
    gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

@media (min-width: 960px) {
    .game-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .game-layout__side {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

.game-cover {
    position: relative;
    z-index: 1;
    margin-top: clamp(-5.5rem, -3rem - 4vw, -3.5rem);
    margin-bottom: 2.5rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: var(--forest-800);
    box-shadow: var(--shadow);
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 0.75rem;
}

.feature-list .icon {
    margin-top: 0.15em;
    color: var(--eyebrow);
}

.gallery-title {
    margin-top: 3rem;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.gallery {
    display: grid;
    grid-auto-columns: minmax(200px, 32%);
    grid-auto-flow: column;
    gap: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}

.gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    scroll-snap-align: start;
}

.gallery__item img {
    width: 100%;
}

.info-card {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.info-card__title {
    font-size: 1.35rem;
}

.info-card__list {
    margin: 0 0 1.5rem;
}

.info-card__list > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.info-card__list dt {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.info-card__list dd {
    margin: 0;
    color: var(--heading);
    font-weight: 600;
    text-align: right;
}

.info-card__note {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 0.94rem;
}

.play-badge {
    display: block;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.play-badge__img {
    width: 200px;
    height: auto;
}

.info-card__links {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-card__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0;
    font-weight: 600;
    text-decoration: none;
}

.info-card__links a:hover {
    text-decoration: underline;
}

.more-games {
    display: flex;
    justify-content: center;
}

/* 12. Prose & policy ------------------------------------------------------ */
.prose {
    max-width: 46rem;
}

.prose h2 {
    margin-top: 2.6rem;
    font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem);
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.prose h3 {
    margin-top: 1.75rem;
    font-size: 1.25rem;
}

.prose > h2:first-child,
.feature__body.prose h2 {
    margin-top: 0;
}

.feature__body.prose h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}

.prose ul,
.prose ol {
    padding-left: 1.3rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose li::marker {
    color: var(--eyebrow);
}

.policy {
    display: grid;
    align-items: start;
    gap: 2.5rem;
}

@media (min-width: 980px) {
    .policy:not(.policy--single) {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 4rem;
    }

    .policy__toc {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

.policy--single .policy__body {
    margin-inline: auto;
}

.policy__toc {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.policy__toc-title {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.policy__toc ol {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding-left: 1.3rem;
    font-size: 0.95rem;
}

.policy__toc a {
    display: block;
    padding: 0.2rem 0;
    color: var(--text);
    text-decoration: none;
}

.policy__toc a:hover {
    color: var(--link);
    text-decoration: underline;
}

.policy__updated {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.notice {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--amber-500);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

mark.todo {
    padding: 0.05em 0.35em;
    border-radius: 4px;
    background: var(--todo-bg);
    color: var(--todo-fg);
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* 13. Footer -------------------------------------------------------------- */
.site-footer {
    --focus: var(--amber-300);
    background: var(--forest-950);
    color: rgba(245, 239, 226, 0.72);
    font-size: 0.97rem;
}

.site-footer a {
    color: rgba(245, 239, 226, 0.88);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--amber-300);
    text-decoration: underline;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 2.5rem 2rem;
    padding-block: clamp(3rem, 2.5rem + 3vw, 4.5rem) 2.5rem;
}

@media (min-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    }
}

.site-footer .brand {
    color: var(--cream-100);
}

.site-footer__tagline {
    margin: 1.1rem 0 0;
    max-width: 22rem;
}

.site-footer__heading {
    margin-bottom: 1rem;
    color: var(--amber-300);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__col ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__email {
    overflow-wrap: anywhere;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.5rem 2rem;
    border-top: 1px solid rgba(245, 239, 226, 0.1);
    font-size: 0.88rem;
}

.site-footer__bottom p {
    margin: 0;
}

/* 14. 404 ----------------------------------------------------------------- */
.not-found {
    --focus: var(--amber-300);
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: min(80vh, 760px);
    padding-block: 5rem clamp(10rem, 18vw, 15rem);
    overflow: hidden;
    background: var(--hero-bg);
    color: rgba(245, 239, 226, 0.8);
    text-align: center;
}

.not-found__code {
    margin: 0;
    color: var(--amber-300);
    font-family: var(--font-display);
    font-size: clamp(5rem, 3rem + 10vw, 10rem);
    font-weight: 600;
    line-height: 1;
    opacity: 0.9;
}

.not-found__title {
    margin-inline: auto;
    max-width: 20ch;
    color: #f8f2e6;
    font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
}

.not-found__lead {
    max-width: 34rem;
    margin-inline: auto;
}

/* 15. Motion -------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@keyframes spore {
    0% { opacity: 0; transform: translate(0, 0); }
    12% { opacity: 0.9; }
    70% { opacity: 0.5; }
    100% { opacity: 0; transform: translate(30px, -55vh); }
}

@keyframes glow {
    from { opacity: 0.75; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__spores {
        display: none;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .game-card:hover {
        transform: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .forest,
    .hero__spores,
    .policy__toc {
        display: none;
    }

    .page-hero {
        padding: 0;
        background: none;
        color: #000;
    }

    .page-hero__title {
        color: #000;
    }
}
