@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Bitter";
    src: url("../fonts/bitter-latin-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Pixelify Sans";
    src: url("../fonts/pixelify-sans-latin-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --bg: #0b1009;
    --bg-deep: #070a06;
    --surface: #151d13;
    --surface-soft: #1c2719;
    --surface-raised: #222e1e;
    --paper: #f2e5b9;
    --paper-light: #fff5cf;
    --paper-deep: #cda96e;
    --ink: #211a10;
    --text: #f7f5e9;
    --muted: #aeb7a7;
    --muted-dark: #665b47;
    --gold: #e3bb49;
    --gold-light: #ffdf78;
    --orange: #d7793c;
    --green: #68d99b;
    --green-deep: #275d43;
    --danger: #dc6d63;
    --line: rgba(236, 216, 147, 0.16);
    --line-strong: rgba(236, 216, 147, 0.32);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
    --shadow-small: 0 14px 34px rgba(0, 0, 0, 0.28);
    --radius: 22px;
    --radius-small: 14px;
    --shell: 1280px;
    --font-ui: "Manrope", "Segoe UI", Arial, sans-serif;
    --font-story: "Bitter", Georgia, serif;
    --font-display: "Pixelify Sans", "Arial Black", sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    color-scheme: dark;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--bg-deep);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        linear-gradient(rgba(8, 12, 7, 0.78), rgba(8, 12, 7, 0.88)),
        url("../img/moss-stone.webp") center top / 900px auto;
    font-family: var(--font-ui);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

[hidden] {
    display: none !important;
}

.page-shell {
    width: min(var(--shell), calc(100% - 48px));
    margin-inline: auto;
}

.page-main {
    min-height: 100vh;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--paper-light);
    border: 2px solid var(--ink);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.eyebrow {
    display: flex;
    margin: 0 0 10px;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 32px;
    height: 1px;
    background: currentColor;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        filter 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
}

.button--primary {
    color: #152014;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
        var(--green);
    border-color: rgba(206, 255, 227, 0.5);
    box-shadow: 0 10px 26px rgba(38, 137, 88, 0.26);
}

.button--secondary {
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%),
        rgba(28, 39, 25, 0.92);
    border-color: var(--line-strong);
}

.button--quiet {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.1);
}

.button--small {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.button--wide {
    width: 100%;
}

.text-link {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-weight: 800;
    text-decoration: none;
}

.text-link span {
    transition: transform 150ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* Header */

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(240, 216, 143, 0.12);
    background: rgba(9, 14, 8, 0.79);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    width: min(var(--shell), calc(100% - 36px));
    min-height: 78px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
}

.site-brand__mark,
.auth-panel__mark {
    position: relative;
    display: grid;
    width: 46px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    color: #fff8d8;
    background:
        linear-gradient(135deg, rgba(227, 187, 73, 0.34), transparent 50%),
        url("../img/lava-texture.jpg") center / cover;
    border: 1px solid rgba(255, 229, 143, 0.5);
    border-radius: 12px;
    box-shadow:
        inset 0 0 0 3px rgba(0, 0, 0, 0.22),
        0 8px 20px rgba(0, 0, 0, 0.3);
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.site-brand__copy,
.account-chip__copy {
    display: grid;
    min-width: 0;
}

.site-brand__copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.05;
}

.site-brand__copy small,
.account-chip__copy small {
    color: var(--muted);
    font-size: 0.68rem;
}

.primary-navigation {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.primary-navigation__links,
.primary-navigation__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-navigation__actions {
    gap: 10px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    color: #dfe5da;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff9df;
    background: rgba(255, 255, 255, 0.055);
}

.nav-link.is-active::after {
    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;
    height: 2px;
    content: "";
    background: var(--gold);
    border-radius: 2px;
}

.server-quick {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    cursor: pointer;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: left;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.server-quick:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-strong);
}

.server-quick > span:last-child {
    display: grid;
}

.server-quick strong {
    max-width: 142px;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-quick small {
    color: var(--muted);
    font-size: 0.62rem;
    white-space: nowrap;
}

.status-dot {
    display: block;
    width: 9px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    background: #8c9388;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(140, 147, 136, 0.12);
}

.is-online .status-dot {
    background: #62e29a;
    box-shadow: 0 0 0 4px rgba(98, 226, 154, 0.12), 0 0 12px rgba(98, 226, 154, 0.55);
}

.account-chip {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 5px 9px 5px 6px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.account-chip:hover,
.account-chip.is-active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.09);
}

.account-chip__avatar {
    display: grid;
    width: 36px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    color: #2c2417;
    background: linear-gradient(145deg, #ffe2a7, #d88956);
    border: 2px solid #f7d98c;
    border-radius: 10px;
    font-weight: 900;
}

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

.account-chip__copy strong {
    max-width: 112px;
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-button {
    display: none;
}

/* Footer */

.site-footer {
    position: relative;
    z-index: 2;
    padding: 52px 0 34px;
    background:
        linear-gradient(rgba(7, 10, 6, 0.95), rgba(7, 10, 6, 0.98)),
        url("../img/moss-stone.webp") center / 760px auto;
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: start;
    gap: 24px;
}

.site-footer__brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.site-footer p {
    max-width: 540px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.site-footer nav a {
    color: #e1e6dd;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer nav a:hover {
    color: var(--gold-light);
}

.site-footer__inner > small {
    grid-column: 1 / -1;
    padding-top: 24px;
    color: #788173;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
}

/* Home */

.home-hero {
    position: relative;
    min-height: max(780px, 100svh);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(6, 10, 5, 0.97) 0%, rgba(6, 10, 5, 0.88) 34%, rgba(6, 10, 5, 0.42) 66%, rgba(6, 10, 5, 0.16) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(7, 11, 6, 0.82) 96%),
        url("../img/jungle.webp") 58% center / cover;
    border-bottom: 1px solid rgba(236, 216, 147, 0.11);
}

.home-hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 130px;
    content: "";
    pointer-events: none;
    background: linear-gradient(transparent, var(--bg) 92%);
}

.home-hero__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 77% 30%, rgba(239, 191, 73, 0.14), transparent 24%),
        radial-gradient(circle at 60% 78%, rgba(75, 202, 128, 0.13), transparent 28%),
        linear-gradient(115deg, transparent 48%, rgba(126, 198, 95, 0.035) 48.2%, transparent 48.6%);
}

.home-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: max(780px, 100svh);
    padding-top: 126px;
    padding-bottom: 72px;
    grid-template-columns: minmax(0, 0.96fr) minmax(500px, 1.04fr);
    align-items: center;
    gap: 64px;
}

.home-hero__copy {
    position: relative;
    z-index: 4;
    max-width: 640px;
}

.home-hero__eyebrow {
    display: inline-flex;
    margin: 0 0 22px;
    align-items: center;
    overflow: hidden;
    color: var(--text);
    background: rgba(16, 23, 14, 0.72);
    border: 1px solid rgba(236, 216, 147, 0.18);
    border-radius: 999px;
    box-shadow: var(--shadow-small);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-hero__eyebrow span,
.home-hero__eyebrow strong {
    padding: 8px 12px;
}

.home-hero__eyebrow span {
    color: #172013;
    background: var(--gold);
    font-weight: 900;
}

.home-hero__eyebrow strong {
    font-weight: 800;
}

.hero-brand {
    margin: 0;
    line-height: 0.78;
    text-transform: uppercase;
}

.hero-brand span {
    display: block;
    width: max-content;
    max-width: 100%;
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: clamp(5.4rem, 8.3vw, 8.7rem);
    font-weight: 950;
    letter-spacing: -0.025em;
    text-shadow:
        0 7px 0 rgba(0, 0, 0, 0.22),
        0 18px 42px rgba(0, 0, 0, 0.42);
}

.hero-brand__savage {
    color: #fff4cf;
}

.hero-brand__wilds {
    margin-top: 0.22em;
    color: #79dfa5;
    background: linear-gradient(180deg, #a7efbd 4%, #5dc789 52%, #2e7b54 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero__tagline {
    max-width: 610px;
    margin: 34px 0 0;
    color: #fff7dc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.25vw, 2.1rem);
    font-weight: 700;
    line-height: 1.18;
}

.home-hero__lead {
    max-width: 570px;
    margin: 18px 0 0;
    color: #bdc8b9;
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.65;
}

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

.server-join-button {
    min-width: 224px;
    min-height: 62px;
    justify-content: flex-start;
    text-align: left;
}

.server-join-button > span:last-child {
    display: grid;
}

.server-join-button small {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.server-join-button strong {
    margin-top: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1rem;
}

.hero-server-strip {
    display: grid;
    max-width: 590px;
    margin-top: 30px;
    padding: 12px 6px;
    grid-template-columns: 0.9fr 0.7fr 1.4fr;
    background: rgba(12, 18, 10, 0.7);
    border: 1px solid rgba(236, 216, 147, 0.16);
    border-radius: 15px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(14px);
}

.hero-server-strip > div {
    display: grid;
    min-width: 0;
    padding: 2px 14px;
    gap: 4px;
}

.hero-server-strip > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-server-strip small {
    color: #84917f;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-server-strip strong {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    color: #edf3e9;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-server-strip .status-dot {
    width: 8px;
}

.home-hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 680px;
}

.hero-scene {
    position: absolute;
    inset: 3% 0 2% 0;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.025), transparent 44%),
        linear-gradient(rgba(12, 18, 10, 0.34), rgba(8, 12, 7, 0.82)),
        url("../img/moss-stone.webp") center / cover;
    border: 1px solid rgba(236, 216, 147, 0.25);
    border-radius: 32px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 35px 90px rgba(0, 0, 0, 0.48);
}

.hero-scene::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 58%, rgba(5, 8, 4, 0.45)),
        linear-gradient(180deg, transparent 58%, rgba(5, 8, 4, 0.72));
}

.hero-scene__glow {
    position: absolute;
    z-index: 1;
    top: 7%;
    left: 9%;
    width: min(34vw, 430px);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 221, 122, 0.34) 0 24%, rgba(255, 192, 69, 0.12) 43%, transparent 68%);
    border-radius: 50%;
    filter: blur(2px);
}

.hero-scene__label {
    position: absolute;
    z-index: 4;
    top: 24px;
    left: 24px;
    padding: 8px 11px;
    color: #fff1be;
    background: rgba(8, 12, 7, 0.7);
    border: 1px solid rgba(255, 223, 120, 0.2);
    border-radius: 9px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-character {
    position: absolute;
    z-index: 2;
    right: -720px;
    bottom: -66px;
    width: 1320px;
    height: auto;
    max-width: none;
    filter:
        drop-shadow(0 28px 30px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 34px rgba(95, 207, 137, 0.08));
    pointer-events: none;
    user-select: none;
}

.hero-scene__caption {
    position: absolute;
    z-index: 4;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    min-height: 76px;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(9, 14, 8, 0.78);
    border: 1px solid rgba(236, 216, 147, 0.18);
    border-radius: 15px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(16px);
}

.hero-scene__caption > div {
    display: grid;
}

.hero-scene__caption small {
    color: var(--gold-light);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scene__caption strong {
    margin-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.hero-scene__caption > span {
    color: #aeb8aa;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-section {
    padding-top: 104px;
    padding-bottom: 104px;
}

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

.section-heading h2,
.catalog-heading h2,
.journey-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.98;
}

.section-heading > p,
.catalog-heading > p {
    max-width: 510px;
    margin: 0;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;
    min-height: 310px;
    padding: 30px;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.055), transparent 42%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
}

.feature-card::after {
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 220px;
    aspect-ratio: 1;
    content: "";
    background: radial-gradient(circle, rgba(104, 217, 155, 0.14), transparent 67%);
}

.feature-card__index {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(255, 255, 255, 0.14);
    font-family: Consolas, monospace;
    font-size: 2rem;
    font-weight: 800;
}

.feature-card__icon {
    display: grid;
    width: 58px;
    aspect-ratio: 1;
    place-items: center;
    color: var(--gold-light);
    background: rgba(227, 187, 73, 0.09);
    border: 1px solid rgba(227, 187, 73, 0.25);
    border-radius: 16px;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin: 56px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.home-portal-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 50%, rgba(78, 178, 119, 0.13), transparent 28%),
        rgba(6, 10, 6, 0.62);
    border-block: 1px solid var(--line);
}

.home-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
}

.portal-card {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: #07100d;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.portal-card img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    transition: transform 600ms ease;
}

.portal-card:hover img {
    transform: scale(1.035);
}

.portal-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 42%, rgba(4, 9, 7, 0.9));
}

.portal-card__overlay {
    position: absolute;
    z-index: 1;
    right: 28px;
    bottom: 25px;
    left: 28px;
    display: grid;
}

.portal-card__overlay span {
    color: var(--green);
    font-family: Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-card__overlay strong {
    margin-top: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.journey-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.journey-steps {
    display: grid;
    margin: 34px 0;
    padding: 0;
    gap: 22px;
    list-style: none;
}

.journey-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 16px;
}

.journey-steps li > span {
    display: grid;
    width: 44px;
    aspect-ratio: 1;
    place-items: center;
    color: var(--ink);
    background: var(--gold);
    border-radius: 12px;
    font-family: Consolas, monospace;
    font-weight: 900;
}

.journey-steps strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.journey-steps p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-product-card {
    position: relative;
    display: grid;
    min-height: 410px;
    padding: 18px;
    overflow: hidden;
    color: var(--text);
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--product-accent) 28%, transparent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease;
}

.home-product-card:hover {
    border-color: color-mix(in srgb, var(--product-accent) 65%, transparent);
    transform: translateY(-6px);
}

.home-product-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 15px;
}

.home-product-card > span {
    width: max-content;
    margin-top: 16px;
    color: var(--product-accent);
    font-family: Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-product-card h3 {
    margin: 4px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.home-product-card strong {
    margin-top: 8px;
    color: var(--green);
}

/* Shared page hero */

.page-hero {
    position: relative;
    padding: 160px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 30%, rgba(227, 187, 73, 0.12), transparent 24%),
        linear-gradient(rgba(10, 16, 9, 0.72), rgba(10, 16, 9, 0.9)),
        url("../img/moss-stone.webp") center / cover;
    border-bottom: 1px solid var(--line);
}

.page-hero--legal {
    padding-top: 132px;
    padding-bottom: 50px;
}

.page-hero--legal h1 {
    max-width: 960px;
    font-size: clamp(3.2rem, 5.4vw, 5.35rem);
}

.page-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.page-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.3rem, 7vw, 6.7rem);
    line-height: 0.92;
}

.page-hero__inner > div:first-child > p:last-child {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.page-hero__seal {
    display: grid;
    width: 118px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    place-content: center;
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(87, 52, 20, 0.08)),
        url("../img/parchment-texture.jpg") center / cover;
    border: 7px double #8d613a;
    border-radius: 50%;
    box-shadow: var(--shadow-small);
    text-align: center;
    transform: rotate(5deg);
}

.page-hero__seal span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.page-hero__seal small {
    margin-top: 4px;
    font-family: Consolas, monospace;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Legal */

.legal-layout {
    display: grid;
    padding-top: 48px;
    padding-bottom: 110px;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.legal-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 16px;
}

.legal-sidebar__intro,
.legal-support-card {
    padding: 22px;
    background: rgba(20, 29, 18, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-small);
}

.legal-sidebar__intro strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    line-height: 1.35;
}

.legal-tabs {
    display: grid;
    gap: 8px;
}

.legal-tabs a {
    display: grid;
    min-height: 64px;
    padding: 10px 14px;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    color: #e8ece5;
    background: rgba(20, 29, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.legal-tabs a:hover {
    border-color: var(--line-strong);
    transform: translateX(4px);
}

.legal-tabs a.is-active {
    color: #fff7d4;
    background:
        linear-gradient(90deg, rgba(227, 187, 73, 0.16), transparent),
        var(--surface-soft);
    border-color: rgba(227, 187, 73, 0.44);
}

.legal-tabs a span {
    color: var(--gold);
    font-family: Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 800;
}

.legal-tabs a strong {
    font-size: 0.86rem;
}

.legal-support-card > span {
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-support-card p {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 0.78rem;
}

.legal-support-card a {
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-support-card > small {
    color: #899485;
    font-size: 0.7rem;
}

.legal-document {
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 250, 222, 0.78), rgba(255, 246, 204, 0.84)),
        url("../img/parchment-texture.jpg") center / 720px auto;
    border: 1px solid rgba(255, 228, 153, 0.54);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.legal-document__header {
    padding: clamp(34px, 5vw, 66px);
    border-bottom: 1px solid rgba(80, 54, 28, 0.18);
}

.legal-document__header .eyebrow {
    color: #88612d;
}

.legal-document__header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
}

.legal-document__header > p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted-dark);
    font-size: 1.02rem;
}

.legal-document__sections {
    padding: 0 clamp(34px, 5vw, 66px);
}

.legal-section {
    display: grid;
    padding: clamp(30px, 4vw, 48px) 0;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    border-bottom: 1px solid rgba(80, 54, 28, 0.18);
}

.legal-section:last-child {
    border-bottom: 0;
}

.legal-section__number {
    display: grid;
    width: 48px;
    aspect-ratio: 1;
    place-items: center;
    color: #fff4c4;
    background: #6f5030;
    border-radius: 12px;
    font-family: Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 900;
}

.legal-section h3 {
    margin: 2px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.legal-section p {
    max-width: 78ch;
    margin: 0 0 14px;
    color: #463c2e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* Store */

.store-main {
    background:
        radial-gradient(circle at 75% 360px, rgba(104, 217, 155, 0.09), transparent 320px),
        rgba(7, 11, 6, 0.28);
}

.store-hero {
    position: relative;
    padding: 150px 0 72px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 13, 7, 0.94), rgba(8, 13, 7, 0.67) 54%, rgba(8, 13, 7, 0.38)),
        url("../img/moss-stone.webp") center / cover;
    border-bottom: 1px solid var(--line);
}

.store-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    align-items: center;
    gap: 48px;
}

.store-hero__copy h1 {
    max-width: 680px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.7rem, 6vw, 6.4rem);
    line-height: 0.93;
}

.store-hero__copy > p:not(.eyebrow) {
    max-width: 650px;
    margin: 24px 0 0;
    color: #c2cbc0;
    font-size: 1.04rem;
}

.store-hero__facts {
    display: flex;
    margin: 27px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.store-hero__facts span {
    padding: 8px 11px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    font-size: 0.72rem;
}

.store-hero__facts strong {
    color: var(--text);
}

.store-hero__visual {
    position: relative;
    height: 460px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 214, 120, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(31, 43, 27, 0.72), rgba(7, 10, 6, 0.92));
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.store-hero__stand {
    position: absolute;
    right: 4%;
    bottom: -23%;
    width: 82%;
    max-width: none;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.35));
}

.store-hero__item {
    position: absolute;
    z-index: 2;
    width: 118px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: var(--shadow-small);
    transform: rotate(-7deg);
}

.store-hero__item--rank {
    top: 62px;
    left: 38px;
}

.store-hero__item--key {
    right: 35px;
    bottom: 54px;
    transform: rotate(7deg);
}

.store-hero__sign {
    position: absolute;
    z-index: 3;
    top: 36px;
    right: 34px;
    display: grid;
    padding: 12px 16px;
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 255, 255, 0.07), rgba(73, 45, 19, 0.08)),
        url("../img/parchment-texture.jpg") center / cover;
    border: 3px solid #754a2d;
    border-radius: 7px;
    box-shadow: 4px 5px 0 #372318;
    transform: rotate(2deg);
}

.store-hero__sign small {
    font-family: Consolas, monospace;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.store-hero__sign strong {
    font-family: Georgia, "Times New Roman", serif;
}

.store-content {
    padding-top: 48px;
    padding-bottom: 120px;
}

.store-toolbar {
    position: sticky;
    z-index: 20;
    top: 92px;
    display: grid;
    padding: 14px;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: stretch;
    gap: 12px;
    background: rgba(13, 19, 11, 0.89);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
}

.store-search {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.store-search > span {
    position: relative;
    width: 17px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    border: 2px solid #a8b1a5;
    border-radius: 50%;
}

.store-search > span::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    content: "";
    background: #a8b1a5;
    transform: rotate(45deg);
}

.store-search input {
    width: 100%;
    min-height: 44px;
    min-width: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
}

.store-search input::placeholder {
    color: #7e897a;
}

.store-toolbar__controls {
    display: flex;
    gap: 10px;
}

.store-toolbar__controls label {
    display: grid;
    min-width: 124px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.store-toolbar__controls label > span {
    color: #879183;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.store-toolbar__controls select {
    min-height: 40px;
    min-width: 0;
    padding: 6px 22px 6px 0;
    cursor: pointer;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 0.78rem;
    font-weight: 750;
}

.store-toolbar__controls option {
    color: var(--text);
    background: var(--surface);
}

.store-categories {
    display: flex;
    margin: 18px 0 50px;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
}

.store-categories::-webkit-scrollbar {
    display: none;
}

.store-categories button {
    min-height: 42px;
    padding: 8px 16px;
    cursor: pointer;
    color: #bdc6b9;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.store-categories button:hover,
.store-categories button.is-active {
    color: #142015;
    background: var(--gold);
    border-color: var(--gold-light);
}

.featured-products {
    margin-bottom: 76px;
}

.catalog-products {
    min-height: 450px;
}

.catalog-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.catalog-heading > p {
    font-size: 0.86rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--product-accent) 7%, transparent), transparent 38%),
        var(--surface);
    border: 1px solid color-mix(in srgb, var(--product-accent) 22%, rgba(255, 255, 255, 0.06));
    border-radius: 18px;
    box-shadow: var(--shadow-small);
    transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
    border-color: color-mix(in srgb, var(--product-accent) 55%, transparent);
    transform: translateY(-5px);
}

.product-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.12 / 1;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #0b0f0b;
    border: 0;
}

.product-card__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, transparent 56%, rgba(4, 7, 4, 0.84)),
        radial-gradient(circle at 50% 25%, transparent 0 25%, rgba(0, 0, 0, 0.14) 100%);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.045);
}

.product-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    color: #10170f;
    background: var(--product-accent);
    border-radius: 7px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-card__quick-view {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 11px;
    padding: 6px 9px;
    color: #f5f6f3;
    background: rgba(9, 13, 8, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    font-size: 0.63rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.product-card:hover .product-card__quick-view,
.product-card__media:focus-visible .product-card__quick-view {
    opacity: 1;
    transform: translateY(0);
}

.product-card__body {
    display: flex;
    min-height: 238px;
    padding: 17px;
    flex: 1;
    flex-direction: column;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--product-accent);
    font-family: Consolas, monospace;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card__meta span:last-child {
    color: #879283;
}

.product-card h3 {
    margin: 10px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.23rem;
    line-height: 1.12;
}

.product-card__body > p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card__footer {
    display: flex;
    margin-top: auto;
    padding-top: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card__footer > strong {
    color: var(--green);
    font-size: 1.05rem;
}

.product-card__footer > div {
    display: flex;
    gap: 6px;
}

/* Support, contact and company-information pages */
.support-layout,
.about-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
    padding-top: 54px;
    padding-bottom: 84px;
}

.support-layout > *,
.support-form__grid > *,
.support-form label,
.support-form input,
.support-form select,
.support-form textarea {
    min-width: 0;
}

.support-details,
.support-form-card,
.about-card {
    padding: clamp(24px, 3vw, 38px);
    background: linear-gradient(145deg, rgba(25, 35, 23, 0.97), rgba(13, 20, 12, 0.98));
    border: 1px solid rgba(185, 199, 173, 0.16);
    border-radius: 18px 5px 18px 5px;
    box-shadow: var(--shadow-soft);
}

.support-details h2,
.support-form-card h2,
.about-card h2 {
    margin: 5px 0 20px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.support-details dl,
.support-details dl div {
    display: grid;
    gap: 5px;
}

.support-details dl {
    gap: 18px;
    margin: 0;
}

.support-details dt {
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.support-details dd {
    margin: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.support-details a,
.about-card a {
    color: var(--gold-light);
}

.support-details__note {
    margin: 28px 0 0;
    padding-top: 20px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.65;
}

.support-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.support-form select,
.support-form textarea {
    width: 100%;
    padding: 11px 13px;
    color: var(--text);
    background: #0c120b;
    border: 1px solid rgba(177, 194, 166, 0.19);
    border-radius: 9px 3px 9px 3px;
    font: inherit;
}

.support-form select {
    min-height: 50px;
}

.support-form textarea {
    resize: vertical;
    line-height: 1.55;
}

.support-form select:focus,
.support-form textarea:focus {
    border-color: var(--gold);
    outline: 2px solid rgba(227, 187, 73, 0.15);
}

.support-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

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

.about-card--wide {
    grid-column: 1 / -1;
}

.about-card p,
.about-card address {
    color: var(--muted);
    font-style: normal;
    line-height: 1.75;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.auth-layout--compact .auth-art__copy {
    max-width: 430px;
}

@media (max-width: 820px) {
    .support-layout,
    .about-grid {
        grid-template-columns: 1fr;
        padding-top: 30px;
        padding-bottom: 58px;
    }

    .about-card--wide {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .support-form__grid {
        grid-template-columns: 1fr;
    }

    .checkout-settlement > div {
        gap: 10px;
    }
}

.coin-configurator {
    display: grid;
    margin-top: 15px;
    padding: 12px;
    gap: 8px;
    background: rgba(240, 207, 98, 0.055);
    border: 1px solid rgba(240, 207, 98, 0.18);
    border-radius: 12px 4px 12px 4px;
}

.coin-configurator[hidden] {
    display: none;
}

.coin-configurator__heading,
.coin-configurator__scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.coin-configurator__heading label,
.coin-configurator__heading output {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 850;
}

.coin-configurator__heading output {
    color: var(--gold-light);
}

.coin-configurator input[type="range"],
.cart-coin-control input[type="range"] {
    width: 100%;
    height: 40px;
    cursor: pointer;
    accent-color: var(--gold);
}

.coin-configurator input[type="range"]:focus-visible,
.cart-coin-control input[type="range"]:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.coin-configurator__scale {
    color: #818d7e;
    font-family: var(--font-mono);
    font-size: 0.58rem;
}

.coin-configurator > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.64rem;
    line-height: 1.4;
}

.coin-configurator > p.is-active {
    color: #bce7ce;
}

.coin-configurator--dialog {
    margin-top: 26px;
    padding: 16px;
}

.store-empty-state {
    display: grid;
    min-height: 300px;
    place-content: center;
    justify-items: center;
    padding: 30px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
}

.store-empty-state strong {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
}

.store-empty-state p {
    margin: 8px 0 18px;
}

.cart-dock {
    position: fixed;
    z-index: 70;
    right: 24px;
    bottom: 24px;
    display: grid;
    min-width: 260px;
    min-height: 66px;
    padding: 9px 14px;
    cursor: pointer;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    color: var(--text);
    background:
        linear-gradient(140deg, rgba(104, 217, 155, 0.13), transparent 50%),
        rgba(13, 20, 12, 0.94);
    border: 1px solid rgba(104, 217, 155, 0.3);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(15px);
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease;
}

.cart-dock:hover {
    border-color: rgba(104, 217, 155, 0.6);
    transform: translateY(-3px);
}

.cart-dock__icon {
    display: grid;
    width: 38px;
    aspect-ratio: 1;
    place-items: center;
    color: var(--ink);
    background: var(--gold);
    border-radius: 10px;
}

.cart-dock > span:nth-child(2) {
    display: grid;
}

.cart-dock small {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-dock strong {
    font-size: 0.8rem;
}

.cart-dock > span:last-child {
    color: var(--green);
    font-size: 0.92rem;
    font-weight: 900;
}

/* Dialogs */

.app-dialog {
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
}

.app-dialog::backdrop {
    background: rgba(3, 6, 3, 0.78);
    backdrop-filter: blur(8px);
}

.app-dialog__surface {
    position: relative;
    max-height: calc(100svh - 40px);
    overflow: auto;
    background:
        radial-gradient(circle at 10% 0%, rgba(104, 217, 155, 0.1), transparent 32%),
        var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
}

.dialog-close {
    display: grid;
    width: 42px;
    aspect-ratio: 1;
    cursor: pointer;
    place-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    line-height: 1;
}

.product-dialog__surface {
    display: grid;
    width: min(920px, calc(100vw - 40px));
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr);
}

.product-dialog__surface > .dialog-close,
.checkout-dialog__surface > .dialog-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
}

.product-dialog__media {
    display: grid;
    min-height: 560px;
    place-items: center;
    padding: 26px;
    background:
        radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--product-accent) 18%, transparent), transparent 38%),
        #090d09;
    border-radius: 21px 0 0 21px;
}

.product-dialog__media img {
    width: 100%;
    max-height: 570px;
    object-fit: contain;
    border-radius: 16px;
}

.product-dialog__copy {
    display: flex;
    padding: 64px 42px 42px;
    flex-direction: column;
    justify-content: center;
}

.product-dialog__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-dialog__meta span {
    padding: 6px 9px;
    color: var(--product-accent);
    background: color-mix(in srgb, var(--product-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-accent) 24%, transparent);
    border-radius: 8px;
    font-family: Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-dialog h2,
.cart-dialog h2,
.checkout-dialog h2 {
    margin: 16px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.95;
}

.product-dialog__copy > p {
    margin: 22px 0 0;
    color: var(--muted);
}

.product-dialog ul {
    display: grid;
    margin: 25px 0 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.product-dialog li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d9e0d5;
    font-size: 0.86rem;
}

.product-dialog li::before {
    display: grid;
    width: 20px;
    aspect-ratio: 1;
    place-items: center;
    color: #152014;
    background: var(--product-accent);
    border-radius: 6px;
    content: "✓";
    font-size: 0.65rem;
    font-weight: 900;
}

.product-dialog__buy {
    display: flex;
    margin-top: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.product-dialog__buy > strong {
    color: var(--green);
    font-size: 1.55rem;
}

.cart-dialog__surface {
    width: min(1000px, calc(100vw - 40px));
}

.cart-dialog__header {
    display: flex;
    padding: 26px 28px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.cart-dialog__header h2 {
    margin-top: 0;
    font-size: 2.8rem;
}

.cart-dialog__body {
    display: grid;
    min-height: 340px;
    grid-template-columns: minmax(0, 1fr) 310px;
}

.cart-list {
    display: grid;
    align-content: start;
    padding: 24px;
    gap: 12px;
}

.cart-empty {
    display: grid;
    min-height: 300px;
    place-content: center;
    justify-items: center;
    padding: 20px;
    color: var(--muted);
    text-align: center;
}

.cart-empty strong {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
}

.cart-empty p {
    margin: 8px 0 0;
}

.cart-item {
    display: grid;
    padding: 10px;
    grid-template-columns: 76px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.cart-item > img {
    width: 76px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item__copy {
    display: grid;
    min-width: 0;
}

.cart-item__copy span {
    color: var(--gold);
    font-family: Consolas, monospace;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-item__copy strong {
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__copy small {
    color: var(--muted);
    font-size: 0.67rem;
}

.cart-item__quantity {
    display: grid;
    grid-template-columns: 30px 34px 30px;
    align-items: center;
}

.cart-item__quantity button {
    display: grid;
    width: 30px;
    aspect-ratio: 1;
    cursor: pointer;
    place-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.cart-item__quantity span {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.cart-item__total {
    color: var(--green);
    font-size: 0.84rem;
}

.cart-item__remove {
    grid-column: 2 / -1;
    width: max-content;
    padding: 0;
    cursor: pointer;
    color: #d98a82;
    background: transparent;
    border: 0;
    font-size: 0.66rem;
    font-weight: 800;
}

.cart-summary {
    display: grid;
    padding: 26px;
    align-content: start;
    gap: 12px;
    background: rgba(7, 11, 6, 0.46);
    border-left: 1px solid var(--line);
}

.cart-summary > div {
    display: flex;
    padding: 12px 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-summary span {
    color: var(--muted);
    font-size: 0.76rem;
}

.cart-summary strong {
    color: var(--text);
}

.cart-summary [data-cart-summary-total] {
    color: var(--green);
    font-size: 1.25rem;
}

.cart-payment-state {
    margin: 8px 0 4px;
    padding: 12px;
    color: #e5b8b4;
    background: rgba(151, 61, 52, 0.12);
    border: 1px solid rgba(220, 109, 99, 0.22);
    border-radius: 10px;
    font-size: 0.7rem;
}

.cart-payment-state.is-ready {
    color: #bce7ce;
    background: rgba(59, 139, 91, 0.13);
    border-color: rgba(104, 217, 155, 0.22);
}

.checkout-dialog__surface {
    display: grid;
    width: min(760px, calc(100vw - 40px));
    padding: 42px;
    gap: 16px;
}

.cart-coin-control {
    display: grid;
    width: 150px;
    gap: 2px;
}

.cart-coin-control span {
    color: var(--gold-light);
    font-size: 0.66rem;
    font-weight: 800;
    text-align: center;
}

.checkout-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-payment-methods legend {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    padding: 0;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

.checkout-payment-option {
    position: relative;
    min-width: 0;
    min-height: 94px;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px !important;
    padding: 15px;
    cursor: pointer;
    overflow: hidden;
    color: var(--text);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.055), transparent 52%),
        rgba(9, 15, 9, 0.72);
    border: 1px solid rgba(236, 216, 147, 0.18);
    border-radius: 14px 4px 14px 4px;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.checkout-payment-option:hover {
    transform: translateY(-1px);
    border-color: rgba(236, 216, 147, 0.34);
}

.checkout-payment-option:has(input:checked) {
    border-color: rgba(104, 217, 155, 0.68);
    background:
        linear-gradient(140deg, rgba(104, 217, 155, 0.15), transparent 58%),
        rgba(13, 28, 18, 0.9);
    box-shadow: inset 0 0 0 1px rgba(104, 217, 155, 0.12), 0 10px 26px rgba(0, 0, 0, 0.18);
}

.checkout-payment-option:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.48;
    filter: grayscale(0.65);
}

.checkout-payment-option:has(input:disabled):hover {
    transform: none;
}

.checkout-payment-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.checkout-payment-option__icon {
    width: 46px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px 3px 8px 3px;
}

.checkout-payment-option__icon--card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #456887, #1b344a);
    border: 1px solid rgba(180, 218, 247, 0.4);
    box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.1);
}

.checkout-payment-option__icon--card::before {
    content: "";
    position: absolute;
    inset: 10px 0 auto;
    height: 6px;
    background: rgba(4, 11, 18, 0.75);
}

.checkout-payment-option__icon--card i {
    position: absolute;
    left: 8px;
    bottom: 7px;
    width: 12px;
    height: 5px;
    border-radius: 1px;
    background: var(--gold-light);
}

.checkout-payment-option__icon--mia {
    color: #06372c;
    background: #64e9c4;
    border: 1px solid #a4ffe5;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.06em;
    box-shadow: inset 0 -6px 0 rgba(14, 115, 87, 0.14);
}

.checkout-payment-option__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.checkout-payment-option__copy strong {
    color: var(--text);
    font-family: var(--font-story);
    font-size: 0.92rem;
}

.checkout-payment-option__copy small {
    color: var(--muted);
    font-size: 0.65rem;
    line-height: 1.35;
}

.checkout-payment-option__check {
    width: 18px;
    height: 18px;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(9, 15, 9, 0.9);
}

.checkout-payment-option input:checked ~ .checkout-payment-option__check {
    background: var(--green);
    border-color: var(--green);
}

.checkout-payment-option:focus-within {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
}

.checkout-payment-hint {
    margin: -4px 1px 0 !important;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.checkout-fields-grid--card {
    padding-top: 2px;
}

.checkout-fields-grid__wide {
    grid-column: 1 / -1;
}

.checkout-promo {
    display: grid;
    padding: 14px;
    grid-template-columns: minmax(160px, 0.72fr) minmax(260px, 1fr);
    align-items: center;
    gap: 16px;
    background: rgba(240, 207, 98, 0.045);
    border: 1px dashed rgba(240, 207, 98, 0.25);
    border-radius: 14px 4px 14px 4px;
}

.checkout-promo > div:first-child {
    display: grid;
    gap: 3px;
}

.checkout-promo strong {
    color: var(--gold-light);
    font-size: 0.78rem;
}

.checkout-promo small {
    color: var(--muted);
    font-size: 0.65rem;
}

.checkout-promo__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.checkout-promo__field input:disabled,
.checkout-promo__field button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkout-promo__message {
    grid-column: 1 / -1;
    min-height: 1.1em;
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.checkout-promo__message.is-success {
    color: var(--green-light, #78d69a);
}

.checkout-promo__message.is-error {
    color: #f2a18f;
}

.checkout-settlement {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(104, 217, 155, 0.055);
    border: 1px solid rgba(104, 217, 155, 0.22);
    border-radius: 4px 14px 4px 14px;
}

.checkout-settlement > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 0.76rem;
}

.checkout-settlement > div strong {
    color: var(--text);
}

.checkout-settlement__total {
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-settlement__total strong {
    color: var(--gold-light) !important;
    font-size: 1rem;
}

.checkout-settlement p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.55;
}

.checkout-dialog label > small {
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.45;
}

.checkout-dialog h2 {
    margin: 0;
    font-size: 2.8rem;
}

.checkout-dialog__surface > p:not(.eyebrow):not(.form-message) {
    margin: 0 0 8px;
    color: var(--muted);
}

.checkout-dialog label,
.auth-form label {
    display: grid;
    gap: 7px;
}

.checkout-dialog label > span,
.auth-form label > span {
    font-size: 0.76rem;
    font-weight: 800;
}

.checkout-dialog input,
.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: 0;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.checkout-dialog input:focus,
.auth-form input:focus {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(104, 217, 155, 0.58);
}

.check-row {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
}

.check-row input {
    width: 18px;
    min-height: 0;
    aspect-ratio: 1;
    margin-top: 3px;
    accent-color: var(--green);
}

.check-row a {
    color: var(--gold-light);
}

.form-message {
    min-height: 1.35em;
    margin: 0;
    color: #e5a29b;
    font-size: 0.76rem;
    font-weight: 750;
}

.form-message.is-success {
    color: #9ce1bb;
}

/* Profile */

.profile-guest {
    position: relative;
    min-height: 760px;
    padding: 142px 0 76px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 13, 7, 0.95), rgba(8, 13, 7, 0.66) 50%, rgba(8, 13, 7, 0.2)),
        url("../img/jungle.webp") center / cover;
}

.profile-guest::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 120px;
    content: "";
    background: linear-gradient(transparent, var(--bg));
}

.profile-guest__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    align-items: center;
    gap: 70px;
}

.profile-guest__copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.7rem, 6.5vw, 6.5rem);
    line-height: 0.94;
}

.profile-guest__copy > p:not(.eyebrow) {
    max-width: 620px;
    margin: 24px 0 0;
    color: #cad2c7;
    font-size: 1.04rem;
}

.profile-benefits {
    display: grid;
    margin: 32px 0 0;
    padding: 0;
    gap: 15px;
    list-style: none;
}

.profile-benefits li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
}

.profile-benefits li > span {
    display: grid;
    width: 32px;
    aspect-ratio: 1;
    place-items: center;
    color: #142015;
    background: var(--green);
    border-radius: 9px;
    font-weight: 900;
}

.profile-benefits li > div {
    display: grid;
}

.profile-benefits strong {
    font-size: 0.86rem;
}

.profile-benefits small {
    color: var(--muted);
    font-size: 0.72rem;
}

.profile-guest__visual {
    perspective: 1200px;
}

.inventory-preview {
    padding: 18px;
    background: #b9b9b9;
    border: 8px solid;
    border-color: #f1f1f1 #555 #555 #f1f1f1;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(2deg);
}

.inventory-preview__header {
    display: grid;
    margin-bottom: 12px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: #303030;
    font-family: Georgia, "Times New Roman", serif;
}

.inventory-preview__header span {
    height: 2px;
    background: #777;
}

.inventory-preview__body {
    display: grid;
    height: 380px;
    grid-template-columns: 70px 1fr 70px;
}

.inventory-preview__slots {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
}

.inventory-preview__slots--right {
    grid-template-rows: repeat(2, 1fr);
    align-content: end;
}

.inventory-preview__slots i,
.inventory-preview__grid i {
    background: #8f8f8f;
    border: 4px solid;
    border-color: #4a4a4a #ededed #ededed #4a4a4a;
}

.inventory-preview__character {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(45deg, #e8e8e8 25%, transparent 25%) 0 0 / 34px 34px,
        linear-gradient(-45deg, #e8e8e8 25%, transparent 25%) 0 17px / 34px 34px,
        linear-gradient(45deg, transparent 75%, #e8e8e8 75%) 17px -17px / 34px 34px,
        linear-gradient(-45deg, transparent 75%, #e8e8e8 75%) -17px 0 / 34px 34px,
        #f7f7f7;
    border: 4px solid;
    border-color: #4a4a4a #ededed #ededed #4a4a4a;
}

.inventory-preview__character img {
    position: absolute;
    right: -17%;
    bottom: -9%;
    width: 125%;
    max-width: none;
}

.inventory-preview__grid {
    display: grid;
    margin-top: 12px;
    grid-template-columns: repeat(9, 1fr);
}

.inventory-preview__grid i {
    aspect-ratio: 1;
}

.profile-feature-grid {
    position: relative;
    z-index: 3;
    display: grid;
    padding-top: 40px;
    padding-bottom: 110px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.profile-feature-grid article {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-small);
}

.profile-feature-grid article > span {
    color: var(--gold);
    font-family: Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 900;
}

.profile-feature-grid h2 {
    margin: 24px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

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

.profile-header {
    padding: 150px 0 52px;
    background:
        radial-gradient(circle at 85% 20%, rgba(104, 217, 155, 0.1), transparent 25%),
        linear-gradient(rgba(9, 14, 8, 0.74), rgba(9, 14, 8, 0.92)),
        url("../img/moss-stone.webp") center / cover;
    border-bottom: 1px solid var(--line);
}

.profile-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-identity__avatar {
    display: grid;
    width: 88px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    color: var(--ink);
    background: linear-gradient(145deg, #ffe3a9, #d88956);
    border: 4px solid #f7d98c;
    border-radius: 22px;
    box-shadow: var(--shadow-small);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    font-weight: 900;
}

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

.profile-identity h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.profile-identity > div > p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
}

.profile-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-header__actions form {
    margin: 0;
}

.profile-stats-grid {
    display: grid;
    padding-top: 38px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-stats-grid article {
    display: grid;
    min-height: 150px;
    padding: 24px;
    align-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.profile-stats-grid span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-stats-grid strong {
    margin-top: 7px;
    overflow: hidden;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1;
    text-overflow: ellipsis;
}

.profile-stats-grid small {
    margin-top: 8px;
    color: #7f8a7b;
}

.profile-dashboard {
    display: grid;
    padding-top: 18px;
    padding-bottom: 110px;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    align-items: start;
    gap: 18px;
}

.dashboard-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-small);
}

.dashboard-card > header {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.dashboard-card--perks,
.dashboard-card--orders {
    grid-column: 1;
}

.account-card {
    position: sticky;
    top: 104px;
    grid-column: 2;
    grid-row: 1 / span 2;
    overflow: hidden;
}

.dashboard-empty {
    display: grid;
    min-height: 300px;
    place-content: center;
    justify-items: center;
    padding: 30px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    text-align: center;
}

.dashboard-empty > span {
    color: var(--gold);
    font-size: 2rem;
}

.dashboard-empty strong {
    margin-top: 8px;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.dashboard-empty p {
    max-width: 420px;
    margin: 8px 0 18px;
}

.dashboard-empty--compact {
    min-height: 190px;
}

.perk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.perk-card {
    display: grid;
    padding: 10px;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 13px;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--product-accent) 8%, transparent), transparent),
        rgba(255, 255, 255, 0.03);
    border: 1px solid color-mix(in srgb, var(--product-accent) 22%, rgba(255, 255, 255, 0.06));
    border-radius: 14px;
}

.perk-card img {
    width: 84px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

.perk-card > div {
    display: grid;
}

.perk-card span {
    width: max-content;
    margin-top: 5px;
    padding: 4px 7px;
    color: #112016;
    background: var(--green);
    border-radius: 6px;
    font-size: 0.56rem;
    font-weight: 900;
    text-transform: uppercase;
}

.perk-card small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.65rem;
}

.profile-order-list {
    display: grid;
    gap: 10px;
}

.profile-order-list article {
    display: flex;
    padding: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
}

.profile-order-list article > div {
    display: grid;
}

.profile-order-list article > div:last-child {
    justify-items: end;
    text-align: right;
}

.profile-order-list span {
    margin-top: 3px;
    color: var(--gold);
    font-size: 0.65rem;
    text-transform: capitalize;
}

.profile-order-list small {
    color: var(--muted);
    font-size: 0.65rem;
}

.account-card__art {
    position: relative;
    height: 320px;
    margin: -28px -28px 26px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 12, 6, 0.15), rgba(7, 12, 6, 0.7)),
        url("../img/jungle.webp") center / cover;
}

.account-card__art img {
    position: absolute;
    right: -54%;
    bottom: -10%;
    width: 165%;
    max-width: none;
}

.account-card dl {
    display: grid;
    margin: 20px 0 0;
    gap: 0;
}

.account-card dl div {
    display: flex;
    padding: 12px 0;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-card dt {
    color: var(--muted);
    font-size: 0.75rem;
}

.account-card dd {
    max-width: 60%;
    margin: 0;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
}

.profile-flash-stack {
    display: grid;
    padding-top: 24px;
    gap: 10px;
}

.profile-flash {
    margin: 0;
    padding: 13px 16px;
    color: #dce4d9;
    background: rgba(21, 29, 19, 0.96);
    border: 1px solid var(--line);
    border-radius: 12px 4px 12px 4px;
    box-shadow: var(--shadow-small);
    font-size: 0.8rem;
    font-weight: 750;
}

.profile-flash--success {
    color: #b8edce;
    border-color: rgba(104, 217, 155, 0.42);
}

.profile-flash--warning {
    color: #ffe4a0;
    border-color: rgba(227, 187, 73, 0.46);
}

.profile-flash--error {
    color: #f3b0aa;
    border-color: rgba(220, 109, 99, 0.46);
}

.profile-verification {
    display: flex;
    margin-top: 24px;
    padding: 24px 26px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(105deg, rgba(227, 187, 73, 0.11), transparent 55%),
        var(--surface);
    border: 1px solid rgba(227, 187, 73, 0.4);
    border-radius: 20px 5px 18px 5px;
    box-shadow: var(--shadow-small);
}

.profile-verification h2 {
    margin: 2px 0 7px;
    font-family: var(--font-story);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.profile-verification p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.profile-verification strong {
    color: var(--text);
}

.profile-verification form {
    margin: 0;
    flex: 0 0 auto;
}

.email-status {
    display: inline-flex;
    min-height: 24px;
    padding: 3px 8px;
    align-items: center;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
}

.email-status.is-verified {
    color: #a8e8c3;
    background: rgba(104, 217, 155, 0.1);
    border-color: rgba(104, 217, 155, 0.34);
}

.email-status.is-unverified {
    color: #ffe291;
    background: rgba(227, 187, 73, 0.1);
    border-color: rgba(227, 187, 73, 0.38);
}

/* Auth */

.auth-main {
    min-height: 100svh;
    padding: 126px 0 70px;
    background:
        linear-gradient(90deg, rgba(7, 11, 6, 0.76), rgba(7, 11, 6, 0.55)),
        url("../img/jungle.webp") center / cover fixed;
}

.auth-layout {
    display: grid;
    min-height: 690px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
    background: rgba(11, 17, 10, 0.88);
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.54);
}

.auth-art {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 13, 7, 0.93), rgba(8, 13, 7, 0.48) 65%, rgba(8, 13, 7, 0.1)),
        url("../img/jungle.webp") center / cover;
}

.auth-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 75% 35%, rgba(255, 210, 103, 0.16), transparent 24%);
}

.auth-art__copy {
    position: relative;
    z-index: 3;
    width: min(70%, 520px);
    padding: 72px 0 50px 52px;
}

.auth-art h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    line-height: 0.94;
}

.auth-art__copy > p:not(.eyebrow) {
    margin: 22px 0 0;
    color: #c8d0c5;
}

.auth-art ul {
    display: grid;
    margin: 30px 0 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.auth-art li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e1e7df;
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-art li span {
    color: var(--green);
}

.auth-art > img {
    position: absolute;
    z-index: 2;
    right: -38%;
    bottom: -9%;
    width: 130%;
    max-width: none;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.42));
}

.auth-panel {
    display: flex;
    padding: clamp(36px, 5vw, 64px);
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 248, 217, 0.88), rgba(245, 226, 173, 0.92)),
        url("../img/parchment-texture.jpg") center / 720px auto;
    flex-direction: column;
    justify-content: center;
}

.auth-panel__heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-panel__mark {
    width: 52px;
    color: #fff7d4;
    border-radius: 14px;
}

.auth-panel .eyebrow {
    color: #89612c;
}

.auth-panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 1;
}

.auth-panel__intro {
    margin: 24px 0 0;
    color: #655b48;
}

.auth-form {
    display: grid;
    margin-top: 27px;
    gap: 16px;
}

.auth-form label > span {
    color: #3b3123;
}

.auth-form label > small {
    color: #786c56;
    font-size: 0.65rem;
}

.auth-form input {
    color: var(--ink);
    background: rgba(255, 252, 233, 0.7);
    border-color: rgba(84, 63, 34, 0.28);
}

.auth-form input:focus {
    background: rgba(255, 253, 239, 0.94);
    border-color: #6b8f66;
}

.auth-panel .form-message {
    margin-top: 18px;
    padding: 11px 13px;
    color: #7b2d27;
    background: rgba(157, 65, 57, 0.09);
    border: 1px solid rgba(157, 65, 57, 0.2);
    border-radius: 9px;
}

.auth-switch {
    margin: 20px 0 0;
    color: #594c39;
    text-align: center;
}

.auth-switch a,
.auth-legal a {
    color: #355f43;
    font-weight: 900;
}

.auth-legal {
    margin: 14px 0 0;
    color: #786c56;
    font-size: 0.7rem;
    text-align: center;
}

/* Email verification */

.verification-main {
    display: grid;
    min-height: 780px;
    padding: 150px 0 90px;
    place-items: center;
    background:
        radial-gradient(circle at 50% 22%, rgba(104, 217, 155, 0.1), transparent 30%),
        linear-gradient(rgba(8, 12, 7, 0.78), rgba(8, 12, 7, 0.92));
}

.verification-card {
    display: grid;
    max-width: 660px;
    padding: clamp(34px, 6vw, 62px);
    justify-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 28px 7px 24px 7px;
    box-shadow: var(--shadow);
    text-align: center;
}

.verification-card__mark {
    display: grid;
    width: 72px;
    margin-bottom: 22px;
    aspect-ratio: 1;
    place-items: center;
    color: #ffddd9;
    background: rgba(220, 109, 99, 0.12);
    border: 1px solid rgba(220, 109, 99, 0.4);
    border-radius: 20px 5px 18px 5px;
}

.verification-card__mark.is-success {
    color: #b8edce;
    background: rgba(104, 217, 155, 0.11);
    border-color: rgba(104, 217, 155, 0.42);
}

.verification-card__mark svg {
    width: 34px;
    height: 34px;
}

.verification-card h1 {
    margin: 4px 0 16px;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.4rem);
    line-height: 0.95;
}

.verification-card > p:not(.eyebrow) {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
}

.verification-card > small {
    max-width: 430px;
    margin-top: 12px;
    color: #879183;
}

.verification-card .button {
    margin-top: 28px;
}

/* Toast */

.toast-region {
    position: fixed;
    z-index: 300;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: min(360px, calc(100vw - 36px));
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 13px 15px;
    color: var(--text);
    background: rgba(17, 25, 15, 0.97);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    font-size: 0.8rem;
    font-weight: 750;
    animation: toast-in 180ms ease both;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast--success {
    border-color: rgba(104, 217, 155, 0.42);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Responsive */

@media (max-width: 1180px) {
    .site-header__inner {
        gap: 14px;
    }

    .primary-navigation {
        gap: 10px;
    }

    .server-quick {
        display: none;
    }

    .home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(450px, 0.92fr);
        gap: 34px;
    }

    .home-character {
        right: -680px;
        width: 1240px;
    }

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

    .store-hero__grid,
    .profile-guest__grid {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
        gap: 34px;
    }
}

@media (min-width: 941px) and (max-height: 840px) {
    .home-hero,
    .home-hero__grid {
        min-height: 100svh;
    }

    .home-hero__grid {
        padding-top: 104px;
        padding-bottom: 28px;
    }

    .home-hero__eyebrow {
        margin-bottom: 16px;
    }

    .hero-brand span {
        font-size: clamp(5rem, 7.4vw, 7.15rem);
    }

    .home-hero__tagline {
        margin-top: 24px;
        font-size: clamp(1.4rem, 1.9vw, 1.75rem);
    }

    .home-hero__lead {
        margin-top: 12px;
    }

    .hero-actions,
    .hero-server-strip {
        margin-top: 20px;
    }

    .home-hero__visual {
        min-height: 590px;
    }

    .hero-scene {
        inset-block: 0;
    }
}

@media (max-width: 940px) {
    .page-shell {
        width: min(var(--shell), calc(100% - 32px));
    }

    .site-header__inner {
        width: calc(100% - 24px);
        min-height: 70px;
    }

    .site-brand__copy small {
        display: none;
    }

    .mobile-menu-button {
        position: relative;
        z-index: 102;
        display: grid;
        width: 44px;
        aspect-ratio: 1;
        place-content: center;
        gap: 5px;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--line-strong);
        border-radius: 11px;
    }

    .mobile-menu-button span:not(.sr-only) {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 150ms ease, opacity 150ms ease;
    }

    .site-header.is-open .mobile-menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-open .mobile-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-open .mobile-menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .primary-navigation {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: flex;
        padding: 100px 20px 30px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 28px;
        background:
            linear-gradient(rgba(8, 13, 7, 0.96), rgba(8, 13, 7, 0.98)),
            url("../img/moss-stone.webp") center / cover;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        visibility: hidden;
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .site-header.is-open .primary-navigation {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .primary-navigation__links {
        display: grid;
        gap: 8px;
    }

    .nav-link {
        min-height: 58px;
        padding: 0 18px;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(255, 255, 255, 0.07);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.35rem;
    }

    .nav-link.is-active::after {
        top: 12px;
        right: auto;
        bottom: 12px;
        left: 6px;
        width: 3px;
        height: auto;
    }

    .primary-navigation__actions {
        display: grid;
        margin-top: auto;
    }

    .server-quick {
        display: flex;
        min-height: 62px;
    }

    .account-chip {
        min-height: 62px;
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .account-chip__copy strong {
        max-width: none;
        font-size: 0.86rem;
    }

    .home-hero {
        min-height: auto;
        background-position: 62% center;
    }

    .home-hero__grid {
        min-height: auto;
        padding-top: 118px;
        padding-bottom: 64px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-hero__copy {
        max-width: 720px;
    }

    .hero-brand span {
        font-size: clamp(5.2rem, 14vw, 7.5rem);
    }

    .home-hero__visual {
        min-height: 500px;
    }

    .hero-scene {
        inset: 0;
        width: min(100%, 720px);
        margin-inline: auto;
    }

    .hero-scene__glow {
        width: 390px;
    }

    .home-character {
        right: -500px;
        bottom: -90px;
        width: 1220px;
    }

    .feature-grid,
    .home-product-grid,
    .profile-feature-grid,
    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card:last-child,
    .profile-feature-grid article:last-child,
    .profile-stats-grid article:last-child {
        grid-column: 1 / -1;
    }

    .home-portal-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        min-height: 400px;
    }

    .portal-card img {
        min-height: 400px;
    }

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

    .legal-sidebar {
        position: static;
    }

    .legal-sidebar__intro,
    .legal-support-card {
        display: none;
    }

    .legal-tabs {
        display: flex;
        padding-bottom: 4px;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }

    .legal-tabs::-webkit-scrollbar {
        display: none;
    }

    .legal-tabs a {
        min-width: 170px;
        flex: 0 0 auto;
    }

    .legal-tabs a:hover {
        transform: translateY(-2px);
    }

    .store-hero__grid,
    .profile-guest__grid {
        grid-template-columns: 1fr;
    }

    .store-hero__visual {
        height: 420px;
    }

    .store-toolbar {
        position: relative;
        top: 0;
        grid-template-columns: 1fr;
    }

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

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

    .profile-guest__copy {
        max-width: 720px;
    }

    .profile-guest__visual {
        width: min(100%, 660px);
        margin-inline: auto;
    }

    .profile-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-card--perks,
    .dashboard-card--orders,
    .account-card {
        position: static;
        grid-column: 1;
        grid-row: auto;
    }

    .account-card {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }

    .account-card__art {
        height: 280px;
        margin: -28px 0 -28px -28px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-art {
        min-height: 420px;
    }

    .auth-art__copy {
        padding-top: 56px;
    }

    .auth-art > img {
        right: -15%;
        width: 90%;
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: min(var(--shell), calc(100% - 24px));
    }

    .site-brand__mark {
        width: 42px;
    }

    .site-brand__copy strong {
        font-size: 0.94rem;
    }

    .home-hero__grid {
        padding-top: 104px;
        padding-bottom: 48px;
    }

    .home-hero__eyebrow {
        margin-bottom: 18px;
    }

    .home-hero__lead {
        margin-top: 15px;
        font-size: 0.98rem;
    }

    .home-hero__tagline {
        margin-top: 28px;
        font-size: clamp(1.25rem, 6.2vw, 1.65rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-server-strip {
        grid-template-columns: 0.9fr 0.7fr 1.2fr;
    }

    .hero-server-strip > div {
        padding-inline: 10px;
    }

    .home-hero__visual {
        min-height: 430px;
    }

    .home-character {
        right: -330px;
        bottom: -50px;
        width: 970px;
    }

    .hero-scene {
        border-radius: 24px;
    }

    .hero-scene__label {
        top: 14px;
        left: 14px;
    }

    .hero-scene__caption {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-height: 66px;
        padding: 11px 12px;
    }

    .hero-scene__caption > span {
        display: none;
    }

    .home-section,
    .home-portal-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .section-heading,
    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading h2,
    .journey-copy h2 {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
    }

    .feature-grid,
    .home-product-grid,
    .profile-feature-grid,
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:last-child,
    .profile-feature-grid article:last-child,
    .profile-stats-grid article:last-child {
        grid-column: auto;
    }

    .feature-card {
        min-height: 260px;
    }

    .portal-card,
    .portal-card img {
        min-height: 320px;
    }

    .home-product-card {
        min-height: 0;
    }

    .page-hero {
        padding-top: 124px;
        padding-bottom: 48px;
    }

    .page-hero--legal {
        padding-top: 104px;
        padding-bottom: 32px;
    }

    .page-hero__inner {
        align-items: flex-start;
    }

    .page-hero__seal {
        display: none;
    }

    .page-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.3rem);
    }

    .page-hero--legal h1 {
        font-size: clamp(2.65rem, 12vw, 3.7rem);
    }

    .page-hero--legal .page-hero__inner > div:first-child > p:last-child {
        margin-top: 14px;
        font-size: 0.9rem;
    }

    .legal-layout {
        width: 100%;
        padding-top: 12px;
        gap: 12px;
    }

    .legal-tabs {
        width: calc(100% - 24px);
        margin-inline: auto;
    }

    .legal-tabs a {
        min-width: 148px;
        min-height: 54px;
    }

    .legal-document {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .legal-document__header {
        padding: 30px 24px;
    }

    .legal-document__header h2 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .legal-document__sections {
        padding: 0 24px;
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .legal-section__number {
        width: 40px;
    }

    .legal-section p {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .store-hero {
        padding-top: 124px;
        padding-bottom: 52px;
    }

    .store-hero__copy h1 {
        font-size: clamp(3rem, 14vw, 4.6rem);
    }

    .store-hero__visual {
        height: 330px;
    }

    .store-hero__stand {
        right: -3%;
        bottom: -23%;
        width: 96%;
    }

    .store-hero__item {
        width: 82px;
    }

    .store-hero__item--rank {
        top: 55px;
        left: 20px;
    }

    .store-hero__item--key {
        right: 18px;
        bottom: 36px;
    }

    .store-hero__sign {
        top: 20px;
        right: 18px;
    }

    .store-content {
        width: 100%;
        padding-top: 18px;
    }

    .store-toolbar {
        padding: 10px 12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .store-toolbar__controls {
        display: flex;
        padding-bottom: 3px;
        overflow-x: auto;
    }

    .store-toolbar__controls label {
        min-width: 132px;
        flex: 0 0 auto;
    }

    .store-categories {
        margin: 12px 12px 42px;
    }

    .featured-products,
    .catalog-products {
        padding-inline: 12px;
    }

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

    .featured-products .product-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .featured-products .product-grid::-webkit-scrollbar {
        display: none;
    }

    .featured-products .product-card {
        flex: 0 0 min(360px, calc(100vw - 42px));
        scroll-snap-align: start;
    }

    .product-card {
        display: grid;
        grid-template-columns: 136px minmax(0, 1fr);
    }

    .product-card__media {
        height: 100%;
        min-height: 238px;
        aspect-ratio: auto;
        border-radius: 17px 0 0 17px;
    }

    .product-card__body {
        min-height: 238px;
        padding: 15px;
    }

    .product-card__body > p {
        -webkit-line-clamp: 2;
    }

    .product-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-card__footer > div {
        width: 100%;
    }

    .product-card__footer .button {
        flex: 1;
    }

    .cart-dock {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-width: 0;
    }

    .app-dialog {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
    }

    .app-dialog__surface {
        width: 100%;
        max-height: 100svh;
        min-height: 100svh;
        border: 0;
        border-radius: 0;
    }

    .product-dialog__surface {
        display: block;
    }

    .product-dialog__media {
        min-height: 42svh;
        padding: 56px 18px 18px;
        border-radius: 0;
    }

    .product-dialog__media img {
        max-height: 40svh;
    }

    .product-dialog__copy {
        padding: 30px 22px 44px;
    }

    .product-dialog__buy {
        align-items: stretch;
        flex-direction: column;
    }

    .product-dialog__buy .button {
        width: 100%;
    }

    .cart-dialog__body {
        display: block;
        min-height: 0;
    }

    .cart-dialog__header {
        padding: 18px;
    }

    .cart-list {
        padding: 14px;
    }

    .cart-summary {
        padding: 20px 14px 110px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
    }

    .cart-item > img {
        width: 64px;
    }

    .cart-item__quantity {
        grid-column: 2;
        justify-self: start;
    }

    .cart-item__total {
        grid-column: 3;
        grid-row: 1;
    }

    .cart-item__remove {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }

    .checkout-dialog__surface {
        padding: 72px 20px 34px;
    }

    .profile-guest {
        padding-top: 118px;
    }

    .profile-guest__copy h1 {
        font-size: clamp(3rem, 14vw, 4.7rem);
    }

    .inventory-preview {
        padding: 10px;
        border-width: 5px;
        transform: none;
    }

    .inventory-preview__body {
        height: 300px;
        grid-template-columns: 48px 1fr 48px;
    }

    .inventory-preview__slots i,
    .inventory-preview__grid i,
    .inventory-preview__character {
        border-width: 3px;
    }

    .profile-feature-grid {
        padding-top: 16px;
        padding-bottom: 72px;
    }

    .profile-header {
        padding-top: 122px;
    }

    .profile-identity {
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
    }

    .profile-identity__avatar {
        width: 60px;
        flex: 0 0 60px;
        border-radius: 15px;
        font-size: 1.75rem;
    }

    .profile-identity > div {
        min-width: 0;
    }

    .profile-identity h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: clamp(1.75rem, 7.7vw, 2.1rem);
        line-height: 1;
    }

    .profile-header__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .profile-header__actions .button,
    .profile-header__actions form {
        width: 100%;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-card > header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .profile-order-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-order-list article > div:last-child {
        justify-items: start;
        text-align: left;
    }

    .account-card {
        display: block;
    }

    .account-card__art {
        height: 260px;
        margin: -20px -20px 22px;
    }

    .auth-main {
        padding: 94px 0 24px;
    }

    .auth-layout {
        width: calc(100% - 20px);
        min-height: 0;
        border-radius: 20px;
    }

    .auth-art {
        min-height: 330px;
    }

    .auth-art__copy {
        width: 75%;
        padding: 38px 0 30px 26px;
    }

    .auth-art h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .auth-art__copy > p:not(.eyebrow),
    .auth-art ul {
        display: none;
    }

    .auth-art > img {
        right: -30%;
        bottom: -16%;
        width: 115%;
    }

    .auth-panel {
        padding: 32px 20px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

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

    .site-footer__inner > small {
        grid-column: 1;
    }
}

.legal-operator-card {
    display: grid;
    max-width: 660px;
    margin-top: 28px;
    padding: 18px 20px;
    color: #493a26;
    background: rgba(115, 78, 38, 0.08);
    border: 1px solid rgba(93, 61, 30, 0.2);
    border-radius: 14px 4px 14px 4px;
}

.legal-operator-card > span {
    color: #7c572c;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-operator-card strong {
    margin-top: 4px;
    font-family: var(--font-story);
    font-size: 1rem;
}

.legal-operator-card p,
.legal-operator-card address {
    margin: 4px 0 0;
    color: #675742;
    font-size: 0.75rem;
    font-style: normal;
    line-height: 1.55;
}

@media (max-width: 430px) {
    .hero-brand span {
        font-size: clamp(4.25rem, 21vw, 5.25rem);
    }

    .home-hero__visual {
        min-height: 390px;
    }

    .home-character {
        right: -475px;
        bottom: -38px;
        width: 885px;
    }

    .hero-server-strip {
        padding: 9px 4px;
    }

    .hero-server-strip > div {
        padding-inline: 8px;
    }

    .hero-server-strip strong {
        font-size: 0.68rem;
    }

    .hero-server-strip small {
        font-size: 0.5rem;
    }

    .product-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .product-card__media,
    .product-card__body {
        min-height: 250px;
    }

    .product-card__body {
        padding: 13px;
    }

    .product-card h3 {
        font-size: 1.05rem;
    }

    .product-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .product-card__footer > div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-card__footer .button--quiet {
        display: none;
    }

    .cart-dock {
        grid-template-columns: 34px 1fr auto;
    }

    .cart-dock__icon {
        width: 34px;
    }

    .profile-benefits small {
        display: none;
    }

    .inventory-preview__body {
        height: 260px;
    }
}

/* Motion system */

@view-transition {
    navigation: auto;
}

.site-header {
    transition:
        background-color 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease;
    view-transition-name: savage-header;
}

.site-header__inner {
    transition: min-height 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled {
    background: rgba(7, 11, 6, 0.93);
    border-bottom-color: rgba(240, 216, 143, 0.2);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.3);
}

.site-header.is-scrolled .site-header__inner {
    min-height: 68px;
}

.site-scroll-progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--green), var(--gold-light) 68%, var(--orange));
    box-shadow: 0 0 14px rgba(104, 217, 155, 0.48);
    transform: scaleX(var(--page-progress, 0));
    transform-origin: left center;
    transition: transform 80ms linear;
}

.site-brand__mark {
    transition:
        transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 340ms ease;
}

.site-brand:hover .site-brand__mark {
    box-shadow:
        inset 0 0 0 3px rgba(0, 0, 0, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.34),
        0 0 22px rgba(227, 187, 73, 0.16);
    transform: translateY(-2px) rotate(-3deg);
}

.nav-link:not(.is-active)::after {
    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--green), var(--gold));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:not(.is-active):hover::after {
    transform: scaleX(1);
}

.button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.button::after {
    position: absolute;
    z-index: 2;
    top: -55%;
    bottom: -55%;
    left: -38%;
    width: 24%;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    opacity: 0;
    transform: skewX(-18deg) translateX(-120%);
    transition:
        opacity 180ms ease,
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button:hover::after {
    opacity: 0.72;
    transform: skewX(-18deg) translateX(620%);
}

.button:active {
    transform: translateY(1px) scale(0.985);
}

.button-ripple {
    position: absolute;
    z-index: 1;
    width: 14px;
    aspect-ratio: 1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    animation: button-ripple 560ms ease-out;
}

.is-online .status-dot {
    animation: status-pulse 2.4s ease-in-out infinite;
}

.home-hero__ambient {
    transform: translate3d(0, var(--hero-scroll-shift, 0), 0);
    transition: transform 120ms linear;
}

.home-hero__ambient::before {
    position: absolute;
    inset: -32%;
    content: "";
    background:
        radial-gradient(ellipse at center, rgba(255, 224, 132, 0.1), transparent 38%),
        conic-gradient(from 110deg at 58% 42%, transparent 0 38%, rgba(104, 217, 155, 0.06) 43%, transparent 48% 100%);
    opacity: 0.72;
    transform: rotate(-5deg) translate3d(-2%, -1%, 0);
    animation: hero-light-sweep 14s ease-in-out infinite alternate;
}

.hero-mote {
    position: absolute;
    z-index: 1;
    top: var(--mote-y);
    left: var(--mote-x);
    width: 4px;
    height: 4px;
    background: #ffd96e;
    box-shadow:
        5px 0 rgba(255, 217, 110, 0.34),
        0 5px rgba(255, 217, 110, 0.2),
        0 0 14px rgba(255, 210, 88, 0.72);
    opacity: 0;
    image-rendering: pixelated;
    animation: hero-mote-drift var(--mote-duration) linear var(--mote-delay) infinite;
}

.hero-mote--green {
    background: #75e4a6;
    box-shadow:
        5px 0 rgba(117, 228, 166, 0.32),
        0 5px rgba(117, 228, 166, 0.18),
        0 0 14px rgba(87, 218, 145, 0.72);
}

.hero-scene {
    transform:
        perspective(1200px)
        translate3d(
            var(--scene-x, 0),
            calc(var(--scene-y, 0px) + var(--scene-scroll-y, 0px)),
            0
        )
        rotateX(var(--scene-rx, 0deg))
        rotateY(var(--scene-ry, 0deg));
    transform-style: preserve-3d;
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.hero-scene.is-interacting {
    border-color: rgba(255, 225, 137, 0.38);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 42px 100px rgba(0, 0, 0, 0.54),
        0 0 48px rgba(104, 217, 155, 0.06);
    transition-duration: 90ms;
}

.hero-scene__label,
.hero-scene__caption {
    transform: translateZ(28px);
}

.hero-scene__glow {
    transform: translate3d(var(--glow-x, 0), var(--glow-y, 0), 0);
    animation: hero-glow-breathe 5.8s ease-in-out infinite;
    transition: transform 180ms ease-out;
}

.home-character {
    transform: translate3d(var(--character-x, 0), var(--character-y, 0), 36px);
    transition: transform 180ms ease-out;
}

.motion-reveal {
    --reveal-x: 0px;
    --reveal-y: 28px;
    opacity: 0;
    filter: blur(7px);
    translate: var(--reveal-x) var(--reveal-y);
    transition:
        opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
        translate 760ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 620ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-reveal[data-reveal-direction="left"] {
    --reveal-x: -28px;
    --reveal-y: 0px;
}

.motion-reveal[data-reveal-direction="right"] {
    --reveal-x: 28px;
    --reveal-y: 0px;
}

.motion-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    translate: 0 0;
}

.motion-tilt {
    --tilt-lift: 0px;
    --tilt-rx: 0deg;
    --tilt-ry: 0deg;
    position: relative;
    transform:
        perspective(1000px)
        translateY(var(--tilt-lift))
        rotateX(var(--tilt-rx))
        rotateY(var(--tilt-ry));
    transform-style: preserve-3d;
    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.motion-tilt:hover {
    --tilt-lift: -5px;
}

.motion-tilt.is-tilting {
    transition-duration: 80ms;
}

.inventory-preview.motion-tilt {
    transform:
        perspective(1200px)
        translateY(var(--tilt-lift))
        rotateX(calc(2deg + var(--tilt-rx)))
        rotateY(calc(-5deg + var(--tilt-ry)));
}

.motion-shine {
    position: absolute;
    z-index: 5;
    inset: -1px;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255, 245, 204, 0.16),
        transparent 34%
    );
    border-radius: inherit;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 220ms ease;
}

.motion-tilt:hover > .motion-shine,
.motion-tilt.is-tilting > .motion-shine {
    opacity: 1;
}

.feature-card {
    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.feature-card:hover {
    border-color: rgba(236, 216, 147, 0.3);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
}

.feature-card::after {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}

.feature-card:hover::after {
    opacity: 1;
    transform: translate3d(-34px, -28px, 0) scale(1.18);
}

.feature-card__icon {
    transition:
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 220ms ease,
        box-shadow 220ms ease;
}

.feature-card:hover .feature-card__icon {
    background: rgba(227, 187, 73, 0.15);
    box-shadow: 0 0 28px rgba(227, 187, 73, 0.12);
    transform: translateY(-3px) rotate(-4deg) scale(1.06);
}

.portal-card::before {
    position: absolute;
    z-index: 1;
    inset: -30%;
    content: "";
    pointer-events: none;
    background: conic-gradient(
        from 20deg at 50% 50%,
        transparent 0 28%,
        rgba(104, 217, 155, 0.2) 37%,
        rgba(255, 218, 111, 0.12) 42%,
        transparent 50% 100%
    );
    opacity: 0.44;
    transform: rotate(0deg) scale(0.9);
    transition: opacity 400ms ease;
    animation: portal-aura 18s linear infinite;
    mix-blend-mode: screen;
}

.portal-card::after {
    z-index: 2;
}

.portal-card__overlay {
    z-index: 3;
}

.portal-card:hover::before {
    opacity: 0.78;
}

.journey-steps li > span {
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 220ms ease;
}

.journey-steps li:hover > span {
    box-shadow: 0 10px 24px rgba(227, 187, 73, 0.2);
    transform: translateY(-3px) rotate(-4deg);
}

.page-hero__seal {
    animation: seal-breathe 5.4s ease-in-out infinite;
}

.store-hero__item--rank {
    animation: store-rank-float 5.8s ease-in-out infinite;
}

.store-hero__item--key {
    animation: store-key-float 6.6s ease-in-out -1.8s infinite;
}

.store-hero__sign {
    transform-origin: 88% 0;
    animation: store-sign-sway 5.2s ease-in-out infinite;
}

.inventory-preview__character img {
    animation: inventory-character-idle 5.5s ease-in-out infinite;
}

.account-card__art img {
    animation: account-character-idle 7s ease-in-out infinite;
}

.auth-art > img {
    animation: auth-character-idle 7.4s ease-in-out infinite;
}

.app-dialog[open]::backdrop {
    animation: dialog-backdrop-in 260ms ease both;
}

.app-dialog[open] .app-dialog__surface {
    transform-origin: 50% 35%;
    animation: dialog-surface-in 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cart-dock.is-bumped {
    animation: cart-bump 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
    animation: page-fade-out 170ms ease both;
}

::view-transition-new(root) {
    animation: page-fade-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-group(savage-header) {
    animation-duration: 280ms;
}

@keyframes hero-light-sweep {
    to {
        opacity: 0.96;
        transform: rotate(8deg) translate3d(3%, 2%, 0) scale(1.04);
    }
}

@keyframes hero-mote-drift {
    0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(0.65) rotate(0deg);
    }

    16%,
    76% {
        opacity: 0.72;
    }

    45% {
        transform: translate3d(11px, -24px, 0) scale(1) rotate(45deg);
    }

    100% {
        opacity: 0;
        transform: translate3d(-8px, calc(0px - var(--mote-drift)), 0) scale(0.8) rotate(90deg);
    }
}

@keyframes button-ripple {
    18% {
        opacity: 0.46;
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(16);
    }
}

@keyframes status-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(98, 226, 154, 0.12), 0 0 10px rgba(98, 226, 154, 0.42);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(98, 226, 154, 0.04), 0 0 18px rgba(98, 226, 154, 0.72);
    }
}

@keyframes hero-glow-breathe {
    0%,
    100% {
        opacity: 0.76;
        filter: blur(2px);
    }

    50% {
        opacity: 1;
        filter: blur(5px);
    }
}

@keyframes portal-aura {
    to {
        transform: rotate(360deg) scale(0.96);
    }
}

@keyframes seal-breathe {
    0%,
    100% {
        box-shadow: var(--shadow-small);
        transform: rotate(5deg) translateY(0);
    }

    50% {
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 22px rgba(227, 187, 73, 0.1);
        transform: rotate(3deg) translateY(-5px);
    }
}

@keyframes store-rank-float {
    0%,
    100% {
        transform: translateY(0) rotate(-7deg);
    }

    50% {
        transform: translateY(-12px) rotate(-3deg);
    }
}

@keyframes store-key-float {
    0%,
    100% {
        transform: translateY(0) rotate(7deg);
    }

    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@keyframes store-sign-sway {
    0%,
    100% {
        transform: rotate(2deg);
    }

    50% {
        transform: rotate(-1.5deg);
    }
}

@keyframes inventory-character-idle {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.012);
    }
}

@keyframes account-character-idle {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-8px, -5px, 0) scale(1.012);
    }
}

@keyframes auth-character-idle {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-10px, -6px, 0) scale(1.01);
    }
}

@keyframes dialog-backdrop-in {
    from {
        opacity: 0;
    }
}

@keyframes dialog-surface-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.965);
    }
}

@keyframes cart-bump {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    42% {
        transform: translateY(-8px) scale(1.035);
    }
}

@keyframes page-fade-out {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .has-js .home-page .home-hero__eyebrow {
        animation: hero-copy-enter 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .has-js .home-page .hero-brand__savage {
        animation: hero-title-enter 820ms 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .has-js .home-page .hero-brand__wilds {
        animation: hero-title-enter 820ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .has-js .home-page .home-hero__tagline {
        animation: hero-copy-enter 680ms 390ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .has-js .home-page .home-hero__lead {
        animation: hero-copy-enter 680ms 470ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .has-js .home-page .hero-actions {
        animation: hero-copy-enter 680ms 550ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .has-js .home-page .hero-server-strip {
        animation: hero-copy-enter 680ms 630ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .has-js .home-page .home-hero__visual {
        animation: hero-visual-enter 1000ms 250ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }
}

@keyframes hero-copy-enter {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
}

@keyframes hero-title-enter {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-26px);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

@keyframes hero-visual-enter {
    from {
        opacity: 0;
        transform: translate3d(44px, 18px, 0) scale(0.96);
    }
}

@media (hover: hover) and (pointer: fine) {
    .server-quick,
    .account-chip,
    .store-categories button,
    .dialog-close {
        transition:
            transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
            color 160ms ease,
            background-color 160ms ease,
            border-color 160ms ease;
    }

    .server-quick:hover,
    .account-chip:hover,
    .dialog-close:hover {
        transform: translateY(-2px);
    }

    .store-categories button:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 1180px) {
    .motion-reveal[data-reveal-direction="left"],
    .motion-reveal[data-reveal-direction="right"] {
        --reveal-x: 0px;
        --reveal-y: 24px;
    }
}

@media (max-width: 680px) {
    .site-header.is-scrolled .site-header__inner {
        min-height: 64px;
    }

    .hero-mote:nth-child(even) {
        display: none;
    }

    .home-hero__ambient::before {
        opacity: 0.45;
    }

    .portal-card::before {
        opacity: 0.3;
    }

    .app-dialog[open] .app-dialog__surface {
        transform-origin: 50% 100%;
        animation-name: dialog-mobile-in;
    }
}

@keyframes dialog-mobile-in {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .motion-reveal {
        opacity: 1 !important;
        filter: none !important;
        translate: 0 0 !important;
    }

    .hero-scene,
    .home-character,
    .hero-scene__glow,
    .home-hero__ambient,
    .motion-tilt,
    .inventory-preview.motion-tilt {
        transform: none !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root),
    ::view-transition-group(savage-header) {
        animation: none !important;
    }
}

/* 2026 interface refinement */

.eyebrow,
.home-hero__eyebrow,
.server-join-button strong,
.hero-scene__label,
.hero-scene__caption > span,
.product-card__meta,
.product-dialog__meta span,
.cart-item__copy span,
.legal-tabs a span,
.legal-section__number,
.page-hero__seal small,
.store-hero__sign small,
.feature-card__index,
.journey-steps li > span,
.home-product-card > span,
.profile-feature-grid article > span {
    font-family: var(--font-ui);
}

.site-brand__mark,
.site-brand__copy strong,
.hero-brand span,
.page-hero h1,
.store-hero__copy h1,
.profile-guest__copy h1,
.profile-identity h1,
.auth-art h1 {
    font-family: var(--font-display);
}

.home-hero__tagline,
.section-heading h2,
.catalog-heading h2,
.journey-copy h2,
.feature-card h3,
.portal-card__overlay strong,
.journey-steps strong,
.home-product-card h3,
.page-hero__seal span,
.legal-sidebar__intro strong,
.legal-document__header h2,
.legal-section h3,
.legal-section p,
.store-hero__sign strong,
.product-card h3,
.store-empty-state strong,
.product-dialog h2,
.cart-dialog h2,
.checkout-dialog h2,
.cart-empty strong,
.cart-item__copy strong,
.profile-feature-grid h2,
.profile-stats-grid strong,
.dashboard-card h2,
.dashboard-empty strong,
.auth-panel h2,
.inventory-preview__header {
    font-family: var(--font-story);
}

.server-quick strong,
.server-join-button strong {
    font-family: var(--font-mono);
}

.hero-brand span {
    font-weight: 700;
    letter-spacing: -0.045em;
}

.page-hero h1,
.store-hero__copy h1,
.profile-guest__copy h1,
.auth-art h1 {
    letter-spacing: -0.035em;
}

.section-heading h2,
.catalog-heading h2,
.journey-copy h2,
.legal-document__header h2 {
    letter-spacing: -0.025em;
}

.site-header,
.hero-server-strip,
.hero-scene__caption,
.store-toolbar,
.cart-dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header {
    background: rgba(9, 14, 8, 0.94);
}

.auth-main {
    background-attachment: scroll;
}

.button {
    border-radius: 5px 14px 5px 14px;
}

.button--small {
    border-radius: 4px 11px 4px 11px;
}

.hero-server-strip,
.hero-scene__caption,
.store-toolbar,
.cart-dock {
    background-color: rgba(12, 18, 10, 0.96);
}

.hero-scene,
.store-hero__visual {
    border-radius: 34px 8px 30px 10px;
}

.feature-card,
.home-product-card,
.product-card,
.profile-feature-grid article,
.profile-stats-grid article,
.dashboard-card,
.legal-sidebar__intro,
.legal-support-card {
    border-radius: 24px 7px 21px 7px;
}

.feature-card {
    min-height: 292px;
    box-shadow:
        inset 4px 0 color-mix(in srgb, var(--gold) 44%, transparent),
        var(--shadow-small);
}

.feature-card:nth-child(2) {
    border-radius: 7px 24px 7px 21px;
    box-shadow:
        inset 0 4px color-mix(in srgb, var(--green) 38%, transparent),
        var(--shadow-small);
}

.feature-card:nth-child(3) {
    border-radius: 20px 6px 26px 10px;
    box-shadow:
        inset -4px 0 color-mix(in srgb, var(--orange) 40%, transparent),
        var(--shadow-small);
}

.feature-card__icon,
.journey-steps li > span {
    border-radius: 0;
    clip-path: polygon(24% 0, 76% 0, 100% 24%, 100% 76%, 76% 100%, 24% 100%, 0 76%, 0 24%);
}

.home-product-card {
    padding: 14px 14px 20px;
    box-shadow:
        inset 4px 0 color-mix(in srgb, var(--product-accent) 42%, transparent),
        var(--shadow-small);
}

.home-product-card img {
    border-radius: 20px 4px 16px 4px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.product-card {
    position: relative;
    border-radius: 5px 23px 7px 19px;
    box-shadow:
        inset 4px 0 color-mix(in srgb, var(--product-accent) 44%, transparent),
        0 13px 30px rgba(0, 0, 0, 0.24);
}

.product-card::before {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: -1px;
    width: 18px;
    height: 4px;
    content: "";
    pointer-events: none;
    background: var(--product-accent);
    box-shadow: 0 8px color-mix(in srgb, var(--product-accent) 52%, transparent);
}

.product-card__media {
    border-radius: 3px 22px 0 0;
}

.product-card__body {
    position: relative;
}

.product-card__body::before {
    width: 42px;
    height: 2px;
    margin-bottom: 12px;
    content: "";
    background: color-mix(in srgb, var(--product-accent) 68%, transparent);
}

.store-toolbar {
    border-radius: 20px 5px 18px 5px;
}

.store-search,
.store-toolbar__controls label {
    border-radius: 12px 4px 12px 4px;
}

.store-categories button {
    border-radius: 5px 13px 5px 13px;
}

.legal-tabs a {
    border-radius: 13px 4px 13px 4px;
}

.legal-document {
    border-radius: 30px 6px 26px 6px;
}

.legal-section__number {
    border-radius: 0;
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.motion-reveal {
    filter: none;
    transition:
        opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
        translate 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-reveal.is-visible {
    filter: none;
}

.motion-shine {
    background: radial-gradient(
        circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255, 245, 204, 0.11),
        transparent 38%
    );
    mix-blend-mode: normal;
}

.portal-card::before {
    inset: 10%;
    background:
        radial-gradient(circle at 50% 44%, rgba(104, 217, 155, 0.2), transparent 47%),
        linear-gradient(115deg, transparent 30%, rgba(255, 219, 115, 0.08), transparent 68%);
    opacity: 0.5;
    transform: none;
    animation: none;
    mix-blend-mode: normal;
}

.portal-card:hover::before {
    opacity: 0.68;
}

.hero-scene__glow {
    filter: none;
}

.home-character {
    filter: none;
}

.hero-mote:nth-child(n + 6) {
    display: none;
}

.app-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    width: max-content;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100svh - 24px);
    margin: 0;
    overflow: visible;
    transform: translate(-50%, -50%);
}

.app-dialog::backdrop {
    background: rgba(2, 5, 2, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.app-dialog__surface {
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    min-height: 0;
    border-radius: 26px 7px 23px 7px;
}

.product-dialog__surface {
    width: min(920px, calc(100vw - 24px));
}

.cart-dialog__surface {
    width: min(1000px, calc(100vw - 24px));
}

.checkout-dialog__surface {
    width: min(760px, calc(100vw - 24px));
}

.dialog-close {
    border-radius: 4px 12px 4px 12px;
}

.home-section,
.home-portal-section,
.store-content,
.profile-feature-grid,
.profile-dashboard,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
}

.page-inactive .hero-mote,
.page-inactive .hero-scene__glow,
.page-inactive .page-hero__seal,
.page-inactive .store-hero__item,
.page-inactive .store-hero__sign,
.page-inactive .inventory-preview__character img,
.page-inactive .account-card__art img,
.page-inactive .auth-art > img {
    animation-play-state: paused !important;
}

.save-data .hero-mote,
.save-data .home-hero__ambient::before,
.save-data .portal-card::before {
    display: none;
}

.save-data .motion-reveal {
    opacity: 1;
    translate: 0 0;
}

.save-data .page-hero__seal,
.save-data .store-hero__item,
.save-data .store-hero__sign,
.save-data .inventory-preview__character img,
.save-data .account-card__art img,
.save-data .auth-art > img {
    animation: none;
}

@keyframes hero-glow-breathe {
    0%,
    100% {
        opacity: 0.72;
    }

    50% {
        opacity: 0.96;
    }
}

@media (min-width: 941px) {
    .feature-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: stretch;
    }

    .feature-card:nth-child(1) {
        grid-column: span 5;
    }

    .feature-card:nth-child(2) {
        grid-column: span 3;
        min-height: 340px;
    }

    .feature-card:nth-child(3) {
        grid-column: span 4;
        margin-top: 28px;
    }
}

@media (max-width: 680px) {
    .app-dialog {
        inset: 50% auto auto 50%;
        width: max-content;
        max-width: calc(100vw - 16px);
        height: auto;
        max-height: calc(100svh - 16px);
        margin: 0;
    }

    .app-dialog__surface,
    .product-dialog__surface,
    .cart-dialog__surface,
    .checkout-dialog__surface {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100svh - 16px);
        min-height: 0;
        border: 1px solid var(--line-strong);
        border-radius: 20px 5px 18px 5px;
    }

    .product-dialog__surface {
        display: block;
    }

    .product-dialog__media {
        height: min(32svh, 270px);
        min-height: 210px;
        padding: 46px 16px 14px;
        border-radius: 19px 4px 0 0;
    }

    .product-dialog__media img {
        max-height: 100%;
    }

    .product-dialog__copy {
        padding: 24px 18px 26px;
    }

    .product-dialog h2,
    .cart-dialog h2,
    .checkout-dialog h2 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .cart-dialog__header {
        position: sticky;
        z-index: 3;
        top: 0;
        padding: 16px;
        background: rgba(20, 29, 18, 0.98);
    }

    .cart-list {
        padding: 12px;
    }

    .cart-summary {
        padding: 18px 12px 24px;
    }

    .checkout-dialog__surface {
        padding: 64px 18px 24px;
    }

    .checkout-fields-grid {
        grid-template-columns: 1fr;
    }

    .checkout-payment-methods {
        grid-template-columns: 1fr;
    }

    .checkout-fields-grid__wide {
        grid-column: auto;
    }

    .cart-item--coin .cart-coin-control {
        width: 100%;
        grid-column: 2 / -1;
    }

    .cart-item--coin .cart-item__total {
        grid-column: 3;
        grid-row: 1;
    }

    .cart-item--coin .cart-item__remove {
        grid-column: 3;
        grid-row: 2;
    }

    .checkout-promo {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-card {
        border-radius: 4px 18px 5px 15px;
    }

    .product-card__media {
        border-radius: 3px 0 0 14px;
    }

    .hero-mote:nth-child(n + 4) {
        display: none;
    }

    .legal-document {
        border-radius: 0;
    }
}

.site-footer {
    padding: 66px 0 30px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(270px, 1.3fr) minmax(230px, 0.9fr) minmax(150px, 0.6fr) minmax(220px, 0.85fr);
    align-items: start;
    gap: 34px;
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.035em;
}

.site-footer__lead > p:first-of-type {
    max-width: 420px;
    margin-top: 12px;
    color: #c2cbc0;
    font-size: 0.86rem;
}

.site-footer .site-footer__disclaimer {
    max-width: 430px;
    margin-top: 18px;
    color: #788273;
    font-size: 0.72rem;
}

.site-footer__company,
.site-footer__links,
.site-footer__payments {
    display: grid;
    align-content: start;
    gap: 8px;
}

.site-footer__company > span,
.site-footer__links > span,
.site-footer__payments > span {
    color: var(--gold-light);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.site-footer__company strong {
    margin-top: 4px;
    font-family: var(--font-story);
    font-size: 1.02rem;
}

.site-footer__company p,
.site-footer__company address,
.site-footer__payments p {
    max-width: none;
    margin: 0;
    color: #929c8d;
    font-size: 0.72rem;
    line-height: 1.6;
}

.site-footer__company address {
    font-style: normal;
}

.site-footer__links nav {
    display: grid;
    justify-content: stretch;
    gap: 5px;
}

.site-footer__links nav a {
    width: max-content;
    color: #d9dfd6;
    font-size: 0.76rem;
}

.payment-marks {
    display: flex;
    margin-top: 5px;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-mark {
    display: inline-flex;
    min-height: 34px;
    padding: 6px 10px;
    align-items: center;
    gap: 7px;
    color: #10160f;
    background: #f3f1e8;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 4px 10px 4px 10px;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.payment-mark--visa {
    color: #183b8f;
    font-size: 0.76rem;
    font-style: italic;
    letter-spacing: -0.05em;
}

.payment-mark--mia {
    color: #07372c;
    background: #64e9c4;
    border-color: rgba(164, 255, 229, 0.68);
    font-family: var(--font-display);
    font-size: 0.72rem;
}

.payment-mark--mastercard i {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 18px;
}

.payment-mark--mastercard i::before,
.payment-mark--mastercard i::after {
    position: absolute;
    top: 1px;
    width: 16px;
    aspect-ratio: 1;
    content: "";
    border-radius: 50%;
}

.payment-mark--mastercard i::before {
    left: 0;
    background: #e43d30;
}

.payment-mark--mastercard i::after {
    right: 0;
    background: rgba(238, 153, 30, 0.92);
}

.site-footer__bottom {
    display: flex;
    grid-column: 1 / -1;
    padding-top: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #70796c;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer__bottom small {
    font-size: 0.68rem;
}

@media (max-width: 1040px) {
    .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-footer {
        padding-top: 48px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__bottom {
        grid-column: 1;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .profile-verification {
        padding: 20px;
        align-items: stretch;
        flex-direction: column;
    }

    .profile-verification form,
    .profile-verification .button {
        width: 100%;
    }

    .verification-main {
        min-height: 680px;
        padding: 112px 0 60px;
    }

    .verification-card {
        width: calc(100% - 20px);
        padding: 34px 20px;
    }
}
