@layer reset, tokens, base, layout, components, features, utilities, responsive;

@font-face {
    font-family: "Evo Antiqua";
    src: url("./fonts/cinzel-fallback.ttf") format("truetype");
    font-display: swap;
}

/* Hall of Heroes */
@layer features {
.heroes-view {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.75rem);
}

.heroes-intro {
    max-width: 52rem;
}

.heroes-intro h2,
.hero-category__header h3,
.hero-card h4 {
    font-family: var(--font-display);
}

.heroes-intro h2 {
    margin: 0.15rem 0 0.7rem;
    font-size: clamp(2rem, 5vw, 3.7rem);
}

.heroes-freshness {
    margin: 0.8rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.heroes-freshness--stale,
.heroes-unavailable {
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--gold-400);
    background: rgb(218 169 73 / 10%);
    color: var(--gold-200);
}

.heroes-categories {
    display: grid;
    gap: clamp(1.4rem, 3vw, 2.4rem);
}

.hero-category {
    overflow: hidden;
    padding: clamp(1rem, 2.8vw, 1.75rem);
    border: 1px solid rgb(57 177 224 / 28%);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 0%, rgb(48 173 224 / 10%), transparent 35%),
        rgb(5 20 34 / 82%);
}

.hero-category__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.7fr);
    gap: 0.2rem 2rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.hero-category__header h3 {
    grid-column: 1;
}

.hero-category__header h3 {
    margin: 0;
    padding-left: 0.8rem;
    border-left: 3px solid var(--gold-400);
    color: var(--gold-200);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 700;
    background: linear-gradient(100deg, #fff0ad 0%, #e7bd58 45%, #b97a20 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-category__header blockquote {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    color: var(--gold-200);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-style: italic;
    text-align: right;
}

.hero-category__header > p:last-child {
    grid-column: 1 / -1;
    margin: 0.55rem 0 0;
    color: var(--text-muted);
}

.hero-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-card {
    min-width: 0;
}

.hero-card article,
.hero-card__empty {
    position: relative;
    min-height: 15rem;
    overflow: hidden;
    border: 1px solid rgb(85 177 216 / 28%);
    border-radius: var(--radius-md);
    background: rgb(2 13 24 / 92%);
}

.hero-card article {
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    background-image:
        linear-gradient(0deg, rgb(2 11 20 / 96%) 0%, rgb(2 11 20 / 58%) 48%, rgb(2 11 20 / 10%) 100%),
        var(--hero-portrait);
    background-position: center, center 18%;
    background-size: cover;
}

.hero-card--first article {
    border-color: rgb(226 185 88 / 62%);
    box-shadow: inset 0 0 0 1px rgb(226 185 88 / 12%);
}

.hero-card__rank {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.32rem 0.58rem;
    border: 1px solid rgb(224 185 88 / 52%);
    border-radius: 0.2rem;
    background: rgb(3 15 26 / 86%);
    color: var(--gold-200);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card__identity {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4.5rem 1rem 1rem;
}

.hero-card h4 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.hero-card h4 a {
    color: var(--text-bright);
}

.hero-card__metric {
    margin: 0.6rem 0 0;
    color: var(--gold-200);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
}

.hero-card__guild {
    display: block;
    overflow: hidden;
    margin-top: 0.2rem;
    color: var(--gold-200);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-card__tokens {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.hero-card__empty {
    display: grid;
    place-content: center;
    padding: 1rem;
    color: var(--text-muted);
    text-align: center;
}

.hero-card__empty span {
    color: rgb(112 170 197 / 48%);
    font-family: var(--font-display);
    font-size: 3rem;
}

@media (max-width: 850px) {
    .hero-category__header {
        grid-template-columns: 1fr;
    }

    .hero-category__header blockquote,
    .hero-category__header > p:last-child {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }

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

    .hero-card article,
    .hero-card__empty {
        min-height: 18rem;
    }
}
}

@layer components {
    .analytics-consent {
        position: fixed;
        z-index: 90;
        right: clamp(1rem, 3vw, 2rem);
        bottom: clamp(1rem, 3vw, 2rem);
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
        width: min(900px, calc(100vw - 2rem));
        max-height: calc(100dvh - 2rem);
        box-sizing: border-box;
        gap: clamp(1rem, 3vw, 2rem);
        align-items: center;
        padding: clamp(1rem, 2.5vw, 1.5rem);
        overflow-y: auto;
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-md);
        background: rgb(3 15 27 / 96%);
        box-shadow: 0 20px 60px rgb(0 0 0 / 48%);
    }

    .analytics-consent > div:first-child {
        min-width: 0;
    }

    .analytics-consent p {
        margin: 0.35rem 0;
    }

    .analytics-consent__controls {
        display: grid;
        gap: var(--space-2);
    }

    .analytics-consent form {
        display: grid;
        gap: var(--space-2);
        margin: 0;
    }

    .analytics-consent .button {
        width: 100%;
        white-space: nowrap;
    }

    .privacy-settings {
        display: grid;
        max-width: 960px;
        margin-inline: auto;
        gap: var(--space-5);
    }

    .privacy-settings__hero {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-4);
        align-items: center;
        padding: clamp(1.25rem, 3vw, 2rem);
        border: 1px solid rgb(67 193 241 / 32%);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(circle at 8% 15%, rgb(43 183 238 / 14%), transparent 34%),
            linear-gradient(135deg, rgb(8 35 53 / 94%), rgb(3 19 32 / 92%));
    }

    .privacy-settings__hero-icon,
    .privacy-settings__state-icon,
    .privacy-settings__choice-icon {
        display: grid;
        place-items: center;
        border: 1px solid rgb(72 204 250 / 42%);
        border-radius: 50%;
        color: #55d8ff;
        background: rgb(2 19 31 / 78%);
    }

    .privacy-settings__hero-icon {
        width: 4.5rem;
        aspect-ratio: 1;
    }

    .privacy-settings__hero-icon svg {
        width: 2rem;
        height: 2rem;
    }

    .privacy-settings__hero small,
    .privacy-settings__state small {
        display: block;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .privacy-settings__hero h2 {
        margin: 0.2rem 0 0.35rem;
    }

    .privacy-settings__hero p,
    .privacy-settings__explanation p {
        margin: 0;
        color: var(--text-soft);
    }

    .privacy-settings__state {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-3);
        align-items: center;
        padding: var(--space-4) var(--space-5);
        border: 1px solid rgb(69 185 230 / 26%);
        border-radius: var(--radius-md);
        background: rgb(3 18 30 / 76%);
    }

    .privacy-settings__state-icon,
    .privacy-settings__choice-icon {
        width: 2.75rem;
        aspect-ratio: 1;
    }

    .privacy-settings__state-icon svg,
    .privacy-settings__choice-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .privacy-settings__state strong {
        display: block;
        margin-top: 0.2rem;
        color: #eaf7fd;
        font-size: 1.08rem;
    }

    .privacy-settings__state--granted {
        border-color: rgb(67 217 169 / 38%);
    }

    .privacy-settings__state--granted .privacy-settings__state-icon,
    .privacy-settings__state--granted strong {
        color: #75e4be;
    }

    .privacy-settings__state--denied .privacy-settings__state-icon,
    .privacy-settings__state--denied strong {
        color: #e8ca78;
    }

    .privacy-settings__explanation {
        padding: var(--space-5);
        border-left: 3px solid #32bce9;
        background: linear-gradient(90deg, rgb(22 107 142 / 13%), transparent);
    }

    .privacy-settings__explanation h3 {
        margin: 0 0 var(--space-2);
        font-size: 1.15rem;
    }

    .privacy-settings__explanation a {
        display: inline-block;
        margin-top: var(--space-3);
    }

    .privacy-settings__choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .privacy-settings__choice {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-3);
        align-items: center;
        margin: 0;
        padding: var(--space-5);
        border: 1px solid rgb(66 181 225 / 24%);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(5 29 45 / 88%), rgb(2 16 27 / 92%));
    }

    .privacy-settings__choice > span:nth-of-type(2) {
        min-width: 0;
    }

    .privacy-settings__choice strong,
    .privacy-settings__choice small {
        display: block;
    }

    .privacy-settings__choice strong {
        color: #edf8fd;
    }

    .privacy-settings__choice small {
        margin-top: 0.25rem;
        color: var(--text-muted);
        line-height: 1.45;
    }

    .privacy-settings__choice .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .privacy-settings__choice--allow {
        border-color: rgb(63 205 239 / 36%);
        box-shadow: inset 0 1px rgb(126 226 255 / 6%);
    }

    @media (max-width: 760px) {
        .analytics-consent {
            right: 0.5rem;
            bottom: 0.5rem;
            grid-template-columns: minmax(0, 1fr);
            width: calc(100vw - 1rem);
            max-height: calc(100dvh - 1rem);
            align-items: stretch;
            gap: var(--space-3);
            padding: var(--space-3);
        }

        .privacy-settings__hero {
            grid-template-columns: minmax(0, 1fr);
            align-items: start;
        }

        .privacy-settings__hero-icon {
            width: 3.75rem;
        }

        .privacy-settings__choices {
            grid-template-columns: minmax(0, 1fr);
        }

        .privacy-settings__state,
        .privacy-settings__choice,
        .privacy-settings__explanation {
            padding: var(--space-4);
        }
    }
}

@layer features {
/* Mentorship */
.mentorship-dashboard { display:grid; gap:1.5rem; }
.mentorship-hero,.mentorship-panel,.mentorship-empty { border:1px solid rgba(68,190,242,.28); border-radius:24px; background:linear-gradient(145deg,rgba(8,34,51,.94),rgba(3,18,30,.92)); padding:clamp(1.2rem,3vw,2rem); }
.mentorship-hero h2,.mentorship-panel h3 { margin:.15rem 0 .65rem; }
.mentorship-hero__invite { margin:.9rem 0 0; text-align:right; }
.mentorship-guide { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:1rem; align-items:center; margin-top:1.5rem; padding:1rem 1.15rem; border:1px solid rgba(52,192,247,.32); border-radius:16px; color:#d8edf8; background:linear-gradient(120deg,rgba(5,30,47,.94),rgba(8,48,68,.8)); text-decoration:none; transition:border-color 180ms ease,box-shadow 180ms ease,transform 180ms ease; }
.mentorship-guide:hover { border-color:rgba(83,214,255,.7); box-shadow:0 12px 32px rgba(0,0,0,.2),0 0 24px rgba(45,187,241,.1); transform:translateY(-2px); }
.mentorship-guide:focus-visible { outline:3px solid #77ddff; outline-offset:3px; }
.mentorship-guide__icon { display:grid; place-items:center; width:3rem; aspect-ratio:1; border:1px solid rgba(73,207,255,.45); border-radius:50%; color:#50d5ff; background:rgba(3,20,32,.72); }
.mentorship-guide strong,.mentorship-guide small { display:block; }.mentorship-guide strong { color:#f4fbff; font-size:1.05rem; }.mentorship-guide small { margin-top:.25rem; color:#9eb9c9; line-height:1.5; }.mentorship-guide__arrow { color:#56d8ff; font-size:1.4rem; }
.mentorship-summary { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid rgba(66,196,246,.28); border-radius:20px; overflow:hidden; }
.mentorship-summary div { padding:1.15rem; text-align:center; background:rgba(5,28,44,.88); border-right:1px solid rgba(66,196,246,.2); }
.mentorship-summary div:last-child { border:0; }.mentorship-summary small { display:block; color:#88a7bb; text-transform:uppercase; letter-spacing:.08em; }.mentorship-summary strong { font-size:1.8rem; color:#4bd5ff; }
.mentorship-primary-action { margin:0; text-align:right; }.mentorship-panel__heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }.mentorship-score { font:italic 2rem var(--font-display); color:#f0c960; }
.mentorship-character { display:flex; align-items:center; gap:1rem; min-height:88px; padding:1rem; border:1px solid rgba(70,194,241,.25); border-radius:16px; background:rgba(2,18,30,.72); text-decoration:none; }
.mentorship-character__level { display:grid; place-items:center; width:52px; aspect-ratio:1; border:1px solid #d8ae42; border-radius:50%; color:#f1d476; }.mentorship-character > span:last-child { display:grid; gap:.25rem; }.mentorship-character strong { color:#f2f7fb; font:italic 1.5rem var(--font-display); }.mentorship-character small { color:#8daabc; }.mentorship-character__icons { display:flex; gap:.35rem; }.mentorship-character__icons img { border-radius:50%; }
.mentorship-requirements { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin-top:1rem; }.mentorship-requirement { padding:.8rem; border-radius:12px; background:rgba(4,24,38,.78); }.mentorship-requirement > span:first-child { display:flex; justify-content:space-between; gap:.75rem; }.mentorship-requirement small { color:#91abba; }.mentorship-requirement.is-complete strong { color:#71e3bc; }
.mentorship-gauge { display:block; height:6px; margin-top:.65rem; border-radius:999px; overflow:hidden; background:rgba(105,145,169,.25); }.mentorship-gauge i { display:block; width:var(--mentorship-progress); height:100%; background:linear-gradient(90deg,#168fd1,#58ddff); }
.mentorship-student-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }.mentorship-student { padding:1rem; border:1px solid rgba(64,178,225,.22); border-radius:18px; background:rgba(2,17,28,.64); }.mentorship-student__score { display:flex; justify-content:space-between; margin-top:.9rem; }.mentorship-requirements--compact { grid-template-columns:1fr; }.mentorship-requirements--compact .mentorship-requirement { padding:.55rem .7rem; }
.mentorship-separation { margin-top:1rem; border-left:3px solid #d96868; padding:.75rem 1rem; background:rgba(105,22,30,.18); }.mentorship-separation summary { cursor:pointer; color:#ffaaa5; }.mentorship-separation__form { display:grid; gap:.8rem; margin-top:.8rem; }.mentorship-separation__form label { display:flex; gap:.6rem; align-items:flex-start; }
.mentorship-invitations { display:grid; gap:.8rem; }.mentorship-invitation { overflow:hidden; border:1px solid rgba(63,188,236,.25); border-radius:16px; background:rgba(3,20,32,.72); }.mentorship-invitation header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.85rem; align-items:center; padding:1rem 1.1rem; border-bottom:1px solid rgba(63,188,236,.18); background:linear-gradient(100deg,rgba(10,48,68,.78),rgba(3,23,37,.72)); }.mentorship-invitation header strong,.mentorship-invitation header small { display:block; }.mentorship-invitation header small { margin-top:.2rem; color:#91abba; }.mentorship-invitation__icon { display:grid; place-items:center; width:2.35rem; aspect-ratio:1; border:1px solid rgba(73,207,255,.42); border-radius:50%; color:#53d6ff; }.mentorship-invitation__status { padding:.35rem .6rem; border:1px solid rgba(242,202,104,.34); border-radius:999px; color:#f2d27e; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.mentorship-invitation dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; }.mentorship-invitation dl div { padding:.85rem 1.1rem; border-right:1px solid rgba(63,188,236,.14); }.mentorship-invitation dl div:last-child { border:0; }.mentorship-invitation dt { color:#7698ad; font-size:.68rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }.mentorship-invitation dd { margin:.25rem 0 0; color:#d9e9f2; }
.mentorship-reward-track { display:grid; grid-template-columns:minmax(0,1fr); gap:.8rem; }.mentorship-reward { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:1rem; align-items:center; min-height:92px; padding:1rem 1.1rem; overflow:hidden; border:1px solid rgba(97,130,151,.22); border-radius:14px; opacity:.72; background:rgba(3,18,29,.75); }.mentorship-reward.is-unlocked { opacity:1; border-color:rgba(64,201,247,.4); }.mentorship-reward__icon { width:50px; height:51px; object-fit:contain; filter:drop-shadow(0 0 10px rgba(61,205,255,.18)); }.mentorship-reward__content { display:grid; gap:.3rem; min-width:0; }.mentorship-reward__content small { color:#7f9caf; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.mentorship-reward__content strong { color:#edf7fc; }.mentorship-reward__content span { color:#8eabba; }.mentorship-reward__payload { display:flex; flex-wrap:wrap; gap:.45rem; }.mentorship-reward__payload > span { padding:.22rem .5rem; border:1px solid rgba(73,193,235,.22); border-radius:999px; font-size:.78rem; }.mentorship-reward__payload .mentorship-reward__points { border-color:rgba(205,130,255,.35); color:#d993ff; background:rgba(111,34,147,.14); }.mentorship-reward form { display:grid; gap:.35rem; justify-items:end; margin:0; }.mentorship-realm-offline { max-width:14rem; color:#ff9e98; text-align:right; }.mentorship-reward button:disabled,.mentorship-action button:disabled { cursor:not-allowed; filter:saturate(.25); opacity:.55; }.mentorship-reward--gold { opacity:1; border-color:rgba(242,202,104,.45); background:radial-gradient(circle at 90% 0,rgba(255,222,132,.16),transparent 35%),linear-gradient(145deg,rgba(53,38,18,.88),rgba(9,25,36,.95) 68%); box-shadow:inset 0 1px rgba(255,240,190,.1),0 14px 34px rgba(38,25,3,.2); }.mentorship-reward--gold::after { position:absolute; right:-2.5rem; bottom:-3.2rem; width:8rem; aspect-ratio:1; border:1px solid rgba(242,202,104,.14); border-radius:50%; box-shadow:0 0 0 1rem rgba(242,202,104,.025),0 0 0 2rem rgba(242,202,104,.018); content:""; pointer-events:none; }.mentorship-reward--gold .mentorship-reward__content small,.mentorship-reward--gold .mentorship-reward__content span { color:#d9bd76; }.mentorship-reward--gold .mentorship-reward__content .mentorship-reward__points { color:#e5a6ff; }.mentorship-reward--gold .mentorship-reward__icon { filter:drop-shadow(0 0 12px rgba(242,202,104,.3)); }
.referral-receipt__recipients { display:grid; gap:1rem; }.referral-receipt__recipient { display:grid; gap:.55rem; }.referral-receipt__delivery { margin:0; padding:.6rem .85rem; border-left:3px solid #55d9af; color:#a8c7d8; background:rgba(20,100,79,.12); }.referral-receipt--pending .referral-receipt__delivery { border-left-color:#e8bd5c; background:rgba(112,78,16,.16); }.referral-receipt__reward { display:grid; grid-template-columns:auto minmax(0,1fr); gap:1rem; align-items:center; }.referral-receipt__reward > img { filter:drop-shadow(0 0 12px rgba(242,202,104,.22)); }.referral-receipt__reward h3 { margin:.2rem 0; }.referral-receipt__points { color:#db95ff; }.referral-receipt__summary { min-width:680px; table-layout:auto; }.referral-receipt__summary th,.referral-receipt__summary td { text-align:right; }.referral-receipt__summary th:first-child,.referral-receipt__summary td:first-child { text-align:left; }.referral-receipt__summary td { font-size:.82rem; }
.mentorship-history-group + .mentorship-history-group { margin-top:1.2rem; }.mentorship-history-group h4 { margin:.7rem 0 .25rem; color:#80dfff; font:700 .78rem var(--font-ui); letter-spacing:.13em; text-transform:uppercase; }.mentorship-history-list { display:grid; gap:.55rem; }.mentorship-history-list > div { display:grid; grid-template-columns:minmax(160px,1fr) 1fr auto; gap:1rem; align-items:center; padding:.8rem 1rem; border-bottom:1px solid rgba(83,160,194,.18); }.mentorship-history-list time { color:#8da9ba; font-size:.86rem; }.referral-slot-meter { display:grid; gap:.7rem; margin:1rem 0; padding:1rem; border:1px solid rgba(55,190,242,.3); border-radius:14px; }
@media (max-width:760px) { .mentorship-hero__invite { text-align:stretch; }.mentorship-hero__invite .button { width:100%; text-align:center; }.mentorship-summary { grid-template-columns:repeat(2,1fr); }.mentorship-student-grid,.mentorship-reward-track,.mentorship-requirements { grid-template-columns:1fr; }.mentorship-invitation header { grid-template-columns:auto minmax(0,1fr); }.mentorship-invitation__status { grid-column:1/-1; justify-self:start; }.mentorship-invitation dl { grid-template-columns:1fr; }.mentorship-invitation dl div { border-right:0; border-bottom:1px solid rgba(63,188,236,.14); }.mentorship-reward { grid-template-columns:auto minmax(0,1fr); }.mentorship-reward form { grid-column:1/-1; justify-items:stretch; }.mentorship-reward form button { width:100%; }.mentorship-realm-offline { max-width:none; text-align:left; }.mentorship-history-list > div { grid-template-columns:1fr; gap:.3rem; }.mentorship-primary-action { text-align:stretch; }.mentorship-primary-action .button { width:100%; text-align:center; } }

    .sms-donate-link {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: var(--space-4);
        align-items: center;
        margin: var(--space-5) 0;
        padding: var(--space-4);
        border: 1px solid rgb(228 202 136 / 30%);
        border-radius: var(--radius-md);
        background: linear-gradient(120deg, rgb(57 39 13 / 55%), rgb(3 21 34 / 88%));
    }

    .sms-donate-link__icon,
    .sms-service-card__icon {
        display: grid;
        width: 3.4rem;
        aspect-ratio: 1;
        place-items: center;
        border: 1px solid rgb(241 199 88 / 42%);
        border-radius: 50%;
        color: var(--gold-300);
        background: rgb(75 49 8 / 42%);
    }

    .sms-donate-link__icon svg,
    .sms-service-card__icon svg {
        width: 1.7rem;
        height: 1.7rem;
        fill: currentcolor;
    }

    .sms-donate-link strong,
    .sms-donate-link small {
        display: block;
    }

    .sms-donate-link strong {
        color: #ffe398;
        font-family: var(--font-display);
        font-size: 1.2rem;
    }

    .sms-donate-link small {
        margin-top: 0.25rem;
        color: var(--text-muted);
    }

    .sms-donate {
        display: grid;
        gap: var(--space-5);
        margin-top: var(--space-5);
    }

    .sms-donate__heading {
        max-width: 52rem;
    }

    .sms-service-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .sms-service-card {
        display: grid;
        gap: var(--space-4);
        min-width: 0;
        padding: clamp(1.2rem, 3vw, 2rem);
        overflow: hidden;
        border: 1px solid rgb(228 202 136 / 34%);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(circle at 88% 5%, rgb(255 218 116 / 15%), transparent 34%),
            linear-gradient(145deg, rgb(50 35 14 / 72%), rgb(3 20 33 / 96%) 62%);
        box-shadow: inset 0 1px rgb(255 240 190 / 9%), 0 18px 42px rgb(0 0 0 / 20%);
    }

    .sms-service-card > header {
        display: flex;
        gap: var(--space-3);
        align-items: center;
    }

    .sms-service-card > header small {
        color: var(--gold-300);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .sms-service-card h3 {
        margin: 0.2rem 0 0;
        color: #fff0c2;
    }

    .sms-service-card__facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(2 15 26 / 72%);
    }

    .sms-service-card__facts div {
        min-width: 0;
        padding: var(--space-3);
        border-right: 1px solid var(--border);
    }

    .sms-service-card__facts div:last-child {
        border: 0;
    }

    .sms-service-card__facts dt,
    .sms-service-card__message > span {
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .sms-service-card__facts dd {
        margin: 0.3rem 0 0;
        color: var(--ice-50);
        font-size: clamp(1.05rem, 2.5vw, 1.35rem);
        font-weight: 900;
        white-space: nowrap;
    }

    .sms-service-card__facts div:nth-child(2) dd {
        color: var(--gold-300);
    }

    .sms-service-card__message {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--space-2) var(--space-3);
        align-items: center;
    }

    .sms-service-card__message > span {
        grid-column: 1 / -1;
    }

    .sms-service-card__message code {
        display: block;
        min-width: 0;
        padding: 0.85rem 1rem;
        border: 1px solid rgb(52 194 247 / 31%);
        border-radius: var(--radius-sm);
        color: #78ddff;
        background: rgb(1 13 23 / 85%);
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .sms-donate__username-note {
        margin: 0;
        padding: var(--space-4);
        border-left: 3px solid var(--arcane-400);
        color: var(--text-soft);
        background: rgb(12 70 96 / 18%);
    }

    .sms-copy-status {
        min-height: 1.4em;
        margin: calc(var(--space-4) * -1) 0 0;
        color: var(--ice-100);
        text-align: center;
    }

    .sms-donate__guidance {
        display: grid;
        grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
        gap: var(--space-4) var(--space-5);
        padding: clamp(1.2rem, 3vw, 2rem);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-lg);
        background: linear-gradient(145deg, rgb(7 31 49 / 86%), rgb(2 16 28 / 92%));
    }

    .sms-donate__guidance h3 {
        margin: 0.2rem 0 0;
    }

    .sms-donate__guidance ol {
        display: grid;
        gap: var(--space-2);
        margin: 0;
        padding-left: 1.4rem;
    }

    .sms-donate__guidance > p {
        grid-column: 1 / -1;
        margin: 0;
        padding-top: var(--space-3);
        border-top: 1px solid var(--border);
        color: var(--text-muted);
    }

    .sms-donate__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: var(--space-3);
    }

    .paypal-shop,
    .paypal-checkout,
    .paypal-history {
        margin-top: var(--space-5);
    }

    .paypal-packages {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(0.9rem, 2vw, 1.4rem);
        margin: 0;
        padding: 0;
        border: 0;
    }

    .paypal-package {
        position: relative;
        display: grid;
        grid-template-rows: auto 1fr auto;
        gap: var(--space-3);
        min-width: 0;
        min-height: 18rem;
        padding: clamp(1.25rem, 2.5vw, 2rem);
        overflow: hidden;
        border: 1px solid rgb(228 202 136 / 36%);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(circle at 82% 12%, rgb(255 222 132 / 18%), transparent 34%),
            linear-gradient(145deg, rgb(53 38 18 / 92%), rgb(13 27 39 / 96%) 64%);
        box-shadow: inset 0 1px rgb(255 240 190 / 12%), 0 18px 45px rgb(0 0 0 / 24%);
        cursor: pointer;
        isolation: isolate;
        transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    }

    .paypal-package::before,
    .paypal-package::after {
        position: absolute;
        z-index: -1;
        content: "";
    }

    .paypal-package::before {
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(115deg, transparent 25%, rgb(255 231 166 / 8%) 50%, transparent 72%);
        transform: translateX(-70%);
        transition: transform 500ms ease;
    }

    .paypal-package::after {
        right: -3.5rem;
        bottom: -4rem;
        width: 11rem;
        aspect-ratio: 1;
        border: 1px solid rgb(228 202 136 / 15%);
        border-radius: 50%;
        box-shadow: 0 0 0 1.4rem rgb(228 202 136 / 3%), 0 0 0 2.8rem rgb(228 202 136 / 2%);
    }

    .paypal-package:hover {
        border-color: rgb(255 218 116 / 68%);
        transform: translateY(-3px);
    }

    .paypal-package:hover::before {
        transform: translateX(70%);
    }

    .paypal-package:has(input:checked) {
        border-color: #f2ca68;
        box-shadow: inset 0 1px rgb(255 244 203 / 20%), 0 0 0 1px rgb(242 202 104 / 20%),
            0 20px 55px rgb(87 55 7 / 34%), 0 0 38px rgb(242 202 104 / 16%);
    }

    .paypal-package input {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 1.35rem;
        height: 1.35rem;
        accent-color: #e7b941;
    }

    .paypal-package__name {
        padding-right: 2rem;
        color: #f6df9e;
        font-family: var(--font-display);
        font-size: clamp(1.15rem, 2vw, 1.45rem);
        letter-spacing: 0.04em;
    }

    .paypal-package__ornament {
        display: grid;
        width: 4.1rem;
        aspect-ratio: 1;
        place-items: center;
        border: 1px solid rgb(245 208 111 / 42%);
        border-radius: 50%;
        color: #f2c85f;
        background: radial-gradient(circle, rgb(130 83 13 / 70%), rgb(20 27 33 / 80%) 68%);
        box-shadow: inset 0 0 18px rgb(250 207 93 / 18%), 0 0 28px rgb(250 197 72 / 12%);
    }

    .paypal-package__ornament svg {
        width: 2.1rem;
        height: 2.1rem;
        fill: currentcolor;
    }

    .paypal-package__points {
        display: flex;
        align-self: end;
        align-items: baseline;
        gap: 0.55rem;
        color: var(--text-soft);
    }

    .paypal-package__points strong {
        color: #fff4cc;
        font-family: var(--font-display);
        font-size: clamp(2rem, 4vw, 3.1rem);
        font-weight: 500;
        line-height: 1;
    }

    .paypal-package__points span {
        max-width: 7rem;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .paypal-package__price {
        color: #f1c865;
        font-size: 1.35rem;
        font-weight: 800;
    }

    .paypal-package__price small {
        font-size: 0.72em;
        letter-spacing: 0.1em;
    }

    .paypal-package__selection {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        color: #f5d67d;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        opacity: 0;
        text-transform: uppercase;
        transform: translateY(0.3rem);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .paypal-package:has(input:checked) .paypal-package__selection {
        opacity: 1;
        transform: none;
    }

    .paypal-package:focus-within {
        outline: 3px solid rgb(47 190 248 / 55%);
        outline-offset: 3px;
    }

    .paypal-packages:disabled .paypal-package {
        cursor: default;
        filter: saturate(0.65);
        opacity: 0.76;
        transform: none;
    }

    .paypal-checkout {
        position: relative;
        padding: clamp(1.25rem, 3vw, 2rem);
        overflow: hidden;
        border: 1px solid rgb(228 202 136 / 30%);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(circle at 90% 0, rgb(224 174 79 / 13%), transparent 33%),
            rgb(3 15 27 / 74%);
        box-shadow: inset 0 1px rgb(255 255 255 / 5%);
    }

    .paypal-checkout h3 {
        color: var(--gold-300);
    }

    .paypal-checkout paypal-button {
        display: block;
        max-width: 32rem;
        margin-block: var(--space-4);
    }

    .paypal-checkout__status {
        min-height: 1.5em;
        color: var(--ice-100);
    }

    .paypal-checkout__security {
        color: var(--text-muted);
        font-size: 0.88rem;
    }

    .paypal-thank-you {
        display: grid;
        gap: var(--space-5);
        margin-top: var(--space-5);
        padding: clamp(1.25rem, 4vw, 3rem);
        border: 1px solid rgb(228 202 136 / 34%);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(circle at 82% 5%, rgb(229 176 57 / 15%), transparent 32%),
            linear-gradient(150deg, rgb(48 34 15 / 40%), rgb(3 19 33 / 92%) 42%);
        box-shadow: var(--shadow-panel), inset 0 1px rgb(255 244 203 / 9%);
    }

    .paypal-thank-you__gratitude {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-5);
        align-items: center;
        padding-bottom: var(--space-5);
        border-bottom: 1px solid rgb(228 202 136 / 20%);
    }

    .paypal-thank-you__gratitude h2 {
        margin: 0.15rem 0 0.55rem;
        color: #ffe6a1;
        font-size: clamp(2rem, 5vw, 3.8rem);
    }

    .paypal-thank-you__gratitude p:last-child {
        max-width: 48rem;
        margin: 0;
        color: var(--text-soft);
    }

    .paypal-thank-you__seal {
        display: grid;
        width: clamp(5rem, 10vw, 7.5rem);
        aspect-ratio: 1;
        place-items: center;
        border: 1px solid rgb(246 207 105 / 48%);
        border-radius: 50%;
        color: #f5ca5c;
        background: radial-gradient(circle, rgb(131 82 9 / 65%), rgb(8 24 35 / 90%) 67%);
        box-shadow: inset 0 0 28px rgb(255 208 79 / 18%), 0 0 36px rgb(218 157 33 / 15%);
    }

    .paypal-thank-you__seal svg {
        width: 52%;
        height: 52%;
        fill: currentcolor;
    }

    .paypal-thank-you__credit {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        gap: 0.65rem;
        padding: clamp(1.4rem, 4vw, 2.5rem);
        border: 1px solid rgb(240 199 91 / 30%);
        border-radius: var(--radius-md);
        color: var(--text-soft);
        background: linear-gradient(90deg, rgb(95 58 8 / 23%), rgb(10 35 49 / 67%), rgb(95 58 8 / 23%));
        text-align: center;
    }

    .paypal-thank-you__credit strong {
        color: #ffd66c;
        font-family: var(--font-display);
        font-size: clamp(2.8rem, 8vw, 5rem);
        font-weight: 500;
        line-height: 0.9;
    }

    .paypal-thank-you__credit span:last-child {
        color: #f5dda0;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .paypal-thank-you__receipt {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 17 29 / 66%);
    }

    .paypal-thank-you__receipt > div {
        display: grid;
        min-width: 0;
        padding: var(--space-4);
        border-right: 1px solid var(--border);
    }

    .paypal-thank-you__receipt > div:last-child {
        border: 0;
    }

    .paypal-thank-you__receipt svg {
        width: 1.3rem;
        height: 1.3rem;
        margin-bottom: 0.7rem;
        color: #eac65f;
        fill: none;
        stroke: currentcolor;
    }

    .paypal-thank-you__receipt span {
        margin-bottom: 0.35rem;
        color: var(--text-muted);
        font-size: 0.69rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .paypal-thank-you__receipt code,
    .paypal-thank-you__receipt strong,
    .paypal-thank-you__receipt time {
        color: var(--ice-50);
        font-size: 0.84rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .paypal-thank-you__receipt code {
        font-size: 0.76rem;
    }

    .paypal-thank-you__receipt strong {
        color: #f2cf75;
    }

    .paypal-thank-you__note {
        margin: 0;
        color: var(--text-soft);
        text-align: center;
    }

    .paypal-thank-you__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: var(--space-3);
    }

    .button--warm {
        border-color: #e6b744;
        color: #1c1304;
        background: linear-gradient(120deg, #bf7918, #f4d276 65%, #c98a25);
        box-shadow: 0 12px 30px rgb(190 120 17 / 25%);
    }

    .button--warm:hover {
        color: #100a02;
        filter: brightness(1.08);
    }

    .paypal-history__table code {
        color: var(--text-soft);
        overflow-wrap: anywhere;
    }

    .payment-status {
        display: inline-block;
        max-width: 20rem;
    }

    .payment-status--completed {
        color: var(--success, #78d89b);
    }

    .payment-status--declined,
    .payment-status--failed {
        color: var(--danger, #ff8f8f);
    }
}

@layer responsive {
    @media (max-width: 760px) {
        .paypal-thank-you__receipt {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .paypal-thank-you__receipt > div:nth-child(2) {
            border-right: 0;
        }

        .paypal-thank-you__receipt > div:nth-child(-n + 2) {
            border-bottom: 1px solid var(--border);
        }

        .shipment-receipt-scroll {
            overflow-x: auto;
            scrollbar-width: thin;
        }

        .shipment-item {
            grid-template-columns: minmax(0, 1fr);
        }

        .shipment-item__cost,
        .shipment-item__status {
            grid-column: 1;
            justify-self: start;
        }

        .shipment-actions .button {
            flex: 1 1 12rem;
        }
    }

    @media (max-width: 480px) {
        .paypal-thank-you__gratitude {
            grid-template-columns: 1fr;
        }

        .paypal-thank-you__seal {
            width: 5rem;
        }

        .paypal-thank-you__receipt {
            grid-template-columns: 1fr;
        }

        .paypal-thank-you__receipt > div,
        .paypal-thank-you__receipt > div:nth-child(2) {
            border-right: 0;
            border-bottom: 1px solid var(--border);
        }

        .paypal-thank-you__receipt > div:last-child {
            border-bottom: 0;
        }

        .paypal-thank-you__actions {
            display: grid;
        }

        .shipment-gratitude {
            padding-top: 4.2rem;
        }

        .shipment-actions {
            display: grid;
        }

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

    @media (max-width: 980px) {
        .guild-profile-header {
            grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        }
    }

    @media (max-width: 720px) {
        .sms-donate-link {
            grid-template-columns: auto minmax(0, 1fr);
        }

        .sms-donate-link .button {
            grid-column: 1 / -1;
            width: 100%;
            text-align: center;
        }

        .sms-service-grid,
        .sms-donate__guidance {
            grid-template-columns: 1fr;
        }

        .sms-donate__actions {
            display: grid;
        }

        .paypal-packages {
            grid-template-columns: 1fr;
        }

        .paypal-package {
            min-height: 8.5rem;
        }

        .paypal-checkout,
        .paypal-history {
            padding: var(--space-4);
        }
    }

    @media (max-width: 480px) {
        .sms-service-card__facts {
            grid-template-columns: 1fr;
        }

        .sms-service-card__facts div {
            border-right: 0;
            border-bottom: 1px solid var(--border);
        }

        .sms-service-card__message {
            grid-template-columns: 1fr;
        }

        .sms-service-card__message .button {
            width: 100%;
        }
    }
}

@layer features {
    .transaction-center {
        display: grid;
        gap: var(--space-5);
    }

    .transaction-center__header {
        max-width: 760px;
    }

    .transaction-center__header h2 {
        font-size: clamp(2rem, 5vw, 3.7rem);
    }

    .transaction-center__header > p:last-child {
        color: var(--text-muted);
    }

    .transaction-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .transaction-tabs a {
        display: flex;
        min-height: 76px;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-4);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 90% 0%, rgb(53 201 255 / 10%), transparent 42%),
            rgb(3 15 27 / 68%);
        color: var(--text-soft);
        font-weight: 800;
        text-decoration: none;
    }

    .transaction-tabs a:hover,
    .transaction-tabs a[aria-current="page"] {
        border-color: var(--arcane-400);
        background:
            radial-gradient(circle at 90% 0%, rgb(53 201 255 / 20%), transparent 44%),
            rgb(8 30 48 / 88%);
        color: var(--ice-50);
        box-shadow: 0 12px 34px rgb(0 0 0 / 18%), inset 0 0 24px rgb(53 201 255 / 5%);
    }

    .transaction-tabs svg {
        width: 28px;
        height: 28px;
        flex: 0 0 auto;
        color: var(--arcane-400);
    }

    .transaction-tabs a:last-child svg {
        color: var(--gold-300);
    }

    .transaction-filters {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .transaction-filters a {
        min-height: 42px;
        padding: 0.65rem 1rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text-muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-decoration: none;
    }

    .transaction-filters a:hover,
    .transaction-filters a[aria-current="page"] {
        border-color: var(--border-bright);
        background: rgb(31 87 121 / 36%);
        color: var(--ice-100);
    }

    .transaction-ledger {
        min-width: 0;
        padding: var(--space-5);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-lg);
        background:
            linear-gradient(145deg, rgb(8 31 49 / 88%), rgb(2 13 24 / 94%));
    }

    .transaction-ledger__count {
        display: grid;
        min-width: 2.5rem;
        height: 2.5rem;
        place-items: center;
        border: 1px solid var(--border-bright);
        border-radius: 999px;
        color: var(--gold-300);
        font-weight: 900;
    }

    .transaction-table {
        min-width: 760px;
    }

    .transaction-table th,
    .transaction-table td {
        vertical-align: middle;
    }

    .transaction-table tbody {
        font-size: 0.78rem;
    }

    .transaction-table code {
        font-size: 0.72rem;
        overflow-wrap: anywhere;
    }

    .transaction-item {
        display: inline-flex;
        min-width: 0;
        align-items: center;
        font: 400 0.78rem/1.5 var(--font-ui);
        overflow-wrap: anywhere;
    }

    .transaction-table .transaction-item {
        min-width: 220px;
    }

    .transaction-actions,
    .paypal-history-link {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: var(--space-3);
    }

    .transaction-ledger > .pagination {
        margin-top: var(--space-5);
    }
}

@layer responsive {
    @media (max-width: 760px) {
        .transaction-tabs {
            grid-template-columns: minmax(0, 1fr);
        }

        .transaction-tabs a {
            min-height: 58px;
        }

        .transaction-ledger {
            padding: var(--space-3);
        }

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

@layer features {
    .character-restoration {
        display: grid;
        gap: var(--space-5);
        min-width: 0;
    }

    .restoration-warning {
        padding: var(--space-5);
        border: 1px solid rgb(224 174 79 / 42%);
        border-left: 3px solid var(--gold-400);
        border-radius: var(--radius-md);
        background: rgb(128 76 20 / 12%);
        color: #f4d995;
    }

    .restoration-warning p {
        margin: var(--space-2) 0 0;
    }

    .restoration-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
        min-width: 0;
    }

    .restoration-card {
        position: relative;
        min-height: 19rem;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 16 29 / 88%);
    }

    .restoration-card--alliance {
        border-left: 3px solid #55a8f0;
    }

    .restoration-card--horde {
        border-left: 3px solid #cf5b4f;
    }

    .restoration-card--disabled {
        filter: saturate(0.55);
        opacity: 0.7;
    }

    .restoration-card__portrait {
        position: absolute;
        inset: 0 0 0 auto;
        width: min(58%, 18rem);
        height: 100%;
        object-fit: cover;
        object-position: center top;
        opacity: 0.72;
        mask-image: linear-gradient(to right, transparent, black 35%);
    }

    .restoration-card__content {
        position: relative;
        z-index: 1;
        display: grid;
        gap: var(--space-3);
        align-content: center;
        width: min(68%, 26rem);
        min-height: 19rem;
        padding: var(--space-5);
    }

    .restoration-card h3 {
        margin: 0;
    }

    .restoration-card__icons {
        display: flex;
        gap: var(--space-2);
    }

    .restoration-card__state {
        width: fit-content;
        padding: 0.35rem 0.65rem;
        border-radius: 999px;
        background: rgb(218 157 45 / 14%);
        color: #f2d17b;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .restoration-card__state--blocked {
        background: rgb(185 52 52 / 16%);
        color: #ff9f9f;
    }

    .restoration-confirm {
        display: grid;
        gap: var(--space-4);
    }

    .restoration-acknowledgement {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-3);
        align-items: start;
        padding: var(--space-4);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-md);
        background: rgb(2 14 25 / 72%);
    }

    .restoration-acknowledgement input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.15rem;
        accent-color: var(--arcane-400);
    }

    .service-restoration-result {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
        margin: var(--space-3) 0 0;
    }

    .service-restoration-result div {
        padding: 0.45rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(2 13 24 / 56%);
    }

    .service-restoration-result dt {
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .service-restoration-result dd {
        margin: 0.15rem 0 0;
        font-weight: 800;
    }

    .character-services,
    .service-review,
    .service-delivery {
        display: grid;
        gap: var(--space-5);
    }

    .character-services__intro,
    .service-review__intro,
    .service-delivery__gratitude {
        max-width: 54rem;
    }

    .character-services__intro h2,
    .service-review__intro h2,
    .service-delivery__gratitude h2 {
        margin: 0.25rem 0 0.65rem;
    }

    .character-services__context {
        display: grid;
        gap: var(--space-4);
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
    }

    .service-currency {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: var(--space-3);
        align-items: center;
        width: 100%;
        min-width: 0;
        padding: var(--space-4) var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(2 14 25 / 84%);
        color: var(--text);
        text-decoration: none;
    }

    .service-currency > svg {
        width: 2.5rem;
        height: 2.5rem;
        color: var(--arcane-400);
    }

    .service-currency--donate > svg,
    .service-currency--donate strong {
        color: #d899ff;
    }

    .service-currency span {
        display: grid;
        gap: 0.2rem;
    }

    .service-currency small,
    .service-card small,
    .service-review-card small {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .service-currency__balance {
        text-align: right;
    }

    .character-services__form,
    .service-card-grid {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .service-card-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
        margin: 0;
        padding: 0;
        border: 0;
    }

    .service-card {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 11.5rem;
        padding: clamp(1.1rem, 2vw, 1.5rem);
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 88% 8%, rgb(52 201 255 / 12%), transparent 32%),
            rgb(3 16 29 / 82%);
        cursor: pointer;
        transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
    }

    .service-card:hover,
    .service-card--link:hover,
    .service-card:has(input:focus-visible),
    .service-card:has(input:checked) {
        border-color: var(--border-bright);
        box-shadow: var(--shadow-glow);
        transform: translateY(-2px);
    }

    .service-card:has(input:checked)::after {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        color: var(--arcane-400);
        content: "◆";
    }

    .service-card > input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .service-card--disabled {
        filter: saturate(0.55);
        opacity: 0.62;
        cursor: not-allowed;
    }

    .service-card--disabled:hover {
        border-color: var(--border);
        box-shadow: none;
        transform: none;
    }

    .service-card__header {
        display: flex;
        gap: var(--space-3);
        align-items: center;
        min-width: 0;
        padding-bottom: var(--space-3);
        border-bottom: 1px solid var(--border);
    }

    .service-card__header > strong {
        min-width: 0;
        color: var(--ice-200);
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .service-card__icon {
        display: grid;
        flex: 0 0 auto;
        width: 2.4rem;
        height: 2.4rem;
        place-items: center;
        border: 1px solid rgb(87 203 255 / 34%);
        border-radius: 50%;
        background: rgb(4 24 40 / 86%);
        color: var(--arcane-400);
    }

    .service-review-card__icon {
        display: grid;
        width: 3.4rem;
        height: 3.4rem;
        place-items: center;
        border: 1px solid rgb(87 203 255 / 34%);
        border-radius: 50%;
        background: rgb(4 24 40 / 86%);
        color: var(--arcane-400);
    }

    .service-card__icon svg {
        width: 1.15rem;
        height: 1.15rem;
    }

    .service-review-card__icon svg {
        width: 1.65rem;
        height: 1.65rem;
    }

    .service-card__body {
        display: grid;
        gap: var(--space-2);
        align-content: start;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .service-card__body .service-card__name {
        padding-right: 1.25rem;
        color: white;
        font-family: var(--font-display);
        font-size: clamp(1.25rem, 2vw, 1.65rem);
    }

    .service-card__body > span {
        color: var(--muted);
        line-height: 1.65;
    }

    .service-card__description {
        display: none;
    }

    .service-card:has(input:checked) .service-card__description {
        display: block;
    }

    .service-card__footer,
    .service-card__reason,
    .service-card__alternate {
        grid-column: 1 / -1;
    }

    .service-card__footer {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
        align-items: end;
        justify-content: space-between;
        margin-top: auto;
        padding-top: var(--space-3);
        border-top: 1px solid var(--border);
    }

    .service-card__requirement,
    .service-card__reason,
    .service-card__alternate {
        color: var(--muted);
        font-size: 0.84rem;
    }

    .service-card__reason {
        color: #ff9f9f;
    }

    .service-card__alternate {
        color: var(--ice-300);
    }

    .service-card__price {
        font-size: 1rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .service-actions {
        display: flex;
        gap: var(--space-3);
        align-items: center;
        justify-content: flex-end;
        margin-top: var(--space-5);
    }

    .service-actions--split {
        justify-content: space-between;
        width: 100%;
    }

    .feature-content form.service-actions--split,
    .feature-content form.restoration-confirm {
        width: 100%;
        max-width: none;
    }

    .service-review-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-4);
        padding: clamp(1.25rem, 3vw, 2rem);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-md);
        background: radial-gradient(circle at 90% 10%, rgb(50 201 255 / 12%), transparent 34%), rgb(3 16 29 / 82%);
    }

    .service-review-card h3 {
        margin: 0.25rem 0 0.6rem;
    }

    .service-review__totals {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
    }

    .service-review__totals div {
        display: grid;
        gap: 0.35rem;
        padding: var(--space-4);
        text-align: right;
    }

    .service-review__totals div + div {
        border-left: 1px solid var(--border);
    }

    .service-review__totals dt {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .service-review__totals dd {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .service-review__warning {
        padding: var(--space-4);
        border-left: 3px solid var(--gold-400);
        background: rgb(193 144 48 / 10%);
        color: #f4d995;
    }

    .service-confirm {
        border-color: #d79d42;
        background: linear-gradient(135deg, #9a591f, #d19335 58%, #f0cd70);
        color: #140c04;
        box-shadow: 0 10px 30px rgb(210 145 47 / 20%);
    }

    .service-delivery__recipient h3 {
        margin-bottom: var(--space-3);
    }

    .service-delivery__gratitude {
        position: relative;
    }

    .service-delivery__receipt td:nth-child(n + 2),
    .service-delivery__receipt th:nth-child(n + 2) {
        text-align: right;
    }

    .service-delivery__receipt {
        min-width: 0;
        table-layout: auto;
    }

    .service-delivery__reference-column {
        width: 28%;
    }

    .service-delivery__name-column {
        width: 34%;
    }

    .service-delivery__cost-column {
        width: 17%;
    }

    .service-delivery__time-column {
        width: 21%;
    }

    .service-delivery__receipt td:nth-child(2) {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .character-restoration > .notice--error {
        border-color: rgb(255 91 91 / 58%);
        background: rgb(112 20 28 / 42%);
        color: #ffb2b2;
        box-shadow: inset 3px 0 #ff5b5b;
    }

    .service-history-status {
        display: inline-flex;
        padding: 0.28rem 0.55rem;
        border: 1px solid rgb(96 191 255 / 26%);
        border-radius: 999px;
        color: var(--ice-200);
        font-size: 0.72rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .service-history-status--completed {
        border-color: rgb(72 220 167 / 38%);
        background: rgb(8 63 50 / 42%);
        color: #8cf1ca;
    }

    .service-history-status--review_required {
        border-color: rgb(255 199 104 / 38%);
        background: rgb(84 53 18 / 42%);
        color: #ffd089;
    }

    .service-delivery--pending .shipment-status {
        border-color: rgb(255 199 104 / 42%);
        background: rgb(84 53 18 / 56%);
        color: #ffd089;
    }
}

@layer responsive {
    @media (max-width: 760px) {
        .restoration-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .character-services__context,
        .service-card-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .service-card {
            min-height: 0;
        }

        .service-delivery__gratitude .shipment-status {
            position: static;
            width: fit-content;
            max-width: 100%;
            margin: var(--space-2) 0 var(--space-3);
            white-space: normal;
        }

        .service-review__totals {
            grid-template-columns: minmax(0, 1fr);
        }

        .service-review__totals div + div {
            border-top: 1px solid var(--border);
            border-left: 0;
        }

        .service-actions {
            align-items: stretch;
            flex-direction: column-reverse;
        }

        .service-actions .button {
            justify-content: center;
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .service-review-card {
            grid-template-columns: minmax(0, 1fr);
        }

        .service-currency {
            grid-template-columns: auto minmax(0, 1fr);
        }

        .service-currency__balance {
            grid-column: 2;
            padding-top: var(--space-2);
            border-top: 1px solid var(--border);
        }

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

@layer features {
    .ban-directory {
        display: grid;
        gap: clamp(var(--space-5), 3vw, var(--space-7));
        text-align: left;
    }

    .ban-overview {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(150px, 0.24fr);
        gap: clamp(var(--space-5), 4vw, var(--space-8));
        align-items: center;
        overflow: hidden;
        padding: clamp(var(--space-5), 4vw, var(--space-8));
    }

    .ban-overview::before {
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 92% 8%, rgb(232 83 87 / 15%), transparent 30%),
            linear-gradient(115deg, transparent 52%, rgb(222 175 77 / 5%));
        content: "";
        pointer-events: none;
    }

    .ban-directory--account .ban-overview::before {
        background:
            radial-gradient(circle at 92% 8%, rgb(166 93 232 / 16%), transparent 30%),
            linear-gradient(115deg, transparent 52%, rgb(53 201 255 / 5%));
    }

    .ban-overview__copy,
    .ban-overview__count {
        position: relative;
    }

    .ban-overview__copy h2,
    .ban-guidance__heading h3,
    .ban-records__header h3 {
        margin: 0;
    }

    .ban-overview__copy > p:last-of-type {
        max-width: 72ch;
        margin-top: var(--space-3);
        color: var(--text-soft);
    }

    .ban-overview__actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
        margin-top: var(--space-5);
    }

    .ban-overview__count {
        display: grid;
        min-height: 150px;
        place-content: center;
        padding: var(--space-4);
        border: 1px solid rgb(232 83 87 / 35%);
        border-radius: 50%;
        background: radial-gradient(circle, rgb(232 83 87 / 13%), rgb(2 12 22 / 34%) 68%);
        box-shadow: inset 0 0 32px rgb(232 83 87 / 8%), 0 0 36px rgb(232 83 87 / 7%);
        text-align: center;
        aspect-ratio: 1;
    }

    .ban-directory--account .ban-overview__count {
        border-color: rgb(166 93 232 / 35%);
        background: radial-gradient(circle, rgb(166 93 232 / 14%), rgb(2 12 22 / 34%) 68%);
        box-shadow: inset 0 0 32px rgb(166 93 232 / 8%), 0 0 36px rgb(166 93 232 / 7%);
    }

    .ban-overview__count strong {
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: clamp(2.3rem, 5vw, 4rem);
        font-weight: 500;
        line-height: 0.9;
    }

    .ban-overview__count span {
        max-width: 14ch;
        margin: var(--space-2) auto 0;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .ban-guidance {
        display: grid;
        gap: var(--space-4);
    }

    .ban-reason-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .ban-reason-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-3);
        padding: var(--space-4);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            linear-gradient(145deg, rgb(17 51 75 / 44%), transparent 58%),
            rgb(3 14 25 / 76%);
        box-shadow: inset 0 1px rgb(255 255 255 / 3%);
    }

    .ban-reason-card > span {
        display: grid;
        width: 2rem;
        height: 2rem;
        place-items: center;
        border: 1px solid rgb(222 175 77 / 42%);
        border-radius: 50%;
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 1rem;
    }

    .ban-reason-card h4 {
        margin: 0 0 var(--space-2);
        color: var(--ice-50);
        font-family: var(--font-body);
        font-size: 0.95rem;
    }

    .ban-reason-card p {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .ban-protection-note {
        padding: var(--space-4) var(--space-5);
        border: 1px solid rgb(113 210 255 / 28%);
        border-left: 3px solid var(--arcane-400);
        border-radius: var(--radius-md);
        background:
            linear-gradient(90deg, rgb(53 201 255 / 10%), transparent 48%),
            rgb(3 16 28 / 72%);
    }

    .ban-protection-note--temporary {
        border-color: rgb(222 175 77 / 28%);
        border-left-color: var(--gold-300);
        background:
            linear-gradient(90deg, rgb(222 175 77 / 10%), transparent 48%),
            rgb(3 16 28 / 72%);
    }

    .ban-protection-note strong {
        color: var(--ice-50);
    }

    .ban-protection-note p {
        max-width: 88ch;
        margin: var(--space-2) 0 0;
        color: var(--text-soft);
        font-size: 0.88rem;
    }

    .ban-records {
        overflow: hidden;
        padding: clamp(var(--space-4), 3vw, var(--space-6));
    }

    .ban-records__header {
        display: flex;
        gap: var(--space-5);
        align-items: end;
        justify-content: space-between;
        margin-bottom: var(--space-4);
    }

    .ban-records__header > p {
        max-width: 62ch;
        margin: 0;
        color: var(--text-muted);
        font-size: 0.78rem;
        text-align: right;
    }

    .feature-content .ban-table {
        margin: 0;
        border-radius: var(--radius-md);
        background: rgb(1 10 18 / 56%);
    }

    .ban-table th {
        color: var(--ice-200);
        font-size: 0.68rem;
        letter-spacing: 0.09em;
        text-align: left;
        text-transform: uppercase;
    }

    .ban-table th svg {
        display: block;
        width: 1.2rem;
        height: 1.2rem;
        margin-inline: 0;
        color: var(--ice-200);
        filter: drop-shadow(0 0 7px rgb(53 201 255 / 20%));
    }

    .ban-table th:nth-child(1) {
        width: 15%;
    }

    .ban-table th:nth-child(2) {
        width: 28%;
    }

    .ban-table th:nth-child(4) {
        width: 12%;
    }

    .ban-table th:nth-child(5) {
        width: 25%;
    }

    .ban-table td {
        text-align: left;
        vertical-align: middle;
    }

    .ban-identity {
        color: var(--ice-100);
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 0.76rem;
        letter-spacing: 0.02em;
    }

    .ban-reason {
        color: var(--text-soft);
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .ban-enforcer {
        color: var(--ice-200);
        font-size: 0.75rem;
    }

    .ban-strikes {
        display: inline-grid;
        min-width: 2.25rem;
        height: 2.25rem;
        place-items: center;
        border: 1px solid rgb(232 83 87 / 36%);
        border-radius: 50%;
        background: rgb(232 83 87 / 9%);
        color: #ff9b9e;
    }

    .ban-table td:last-child small {
        display: block;
        color: var(--text-muted);
        font-size: 0.69rem;
        line-height: 1.55;
        white-space: nowrap;
    }

    .ban-expiry {
        display: block;
        margin-top: 0.2rem;
        color: var(--arcane-300);
        font-size: 0.74rem;
        font-weight: 750;
        white-space: nowrap;
    }

    .ban-expiry--permanent {
        color: #ff9b9e;
    }
}

@layer responsive {
    @media (max-width: 880px) {
        .ban-reason-grid {
            grid-template-columns: 1fr;
        }

        .ban-reason-card {
            padding: var(--space-3) var(--space-4);
        }
    }

    @media (max-width: 720px) {
        .ban-overview {
            grid-template-columns: minmax(0, 1fr);
        }

        .ban-overview__count {
            width: min(150px, 45vw);
            min-height: 0;
            justify-self: start;
        }

        .ban-records__header {
            display: grid;
            gap: var(--space-3);
        }

        .ban-records__header > p {
            text-align: left;
        }

        .feature-content .ban-table,
        .ban-table tbody,
        .ban-table tr,
        .ban-table td {
            display: block;
            width: 100%;
        }

        .ban-table thead {
            display: none;
        }

        .feature-content .ban-table {
            overflow: visible;
            border: 0;
            background: transparent;
        }

        .ban-table tbody {
            display: grid;
            gap: var(--space-3);
        }

        .ban-table tr {
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: rgb(1 10 18 / 62%);
        }

        .feature-content .ban-table td {
            display: grid;
            grid-template-columns: minmax(7.5rem, 0.42fr) minmax(0, 1fr);
            gap: var(--space-3);
            align-items: center;
            padding: 0.72rem var(--space-3);
            border: 0;
            border-bottom: 1px solid rgb(113 210 255 / 10%);
            text-align: left;
        }

        .feature-content .ban-table td:last-child {
            border-bottom: 0;
        }

        .ban-table td::before {
            color: var(--text-muted);
            content: attr(data-label);
            font-size: 0.64rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .ban-table td:nth-child(4) {
            text-align: left;
        }

        .ban-strikes {
            justify-self: start;
        }
    }

    @media (max-width: 480px) {
        .ban-overview__actions {
            display: grid;
        }

        .ban-overview__actions .button {
            width: 100%;
        }

        .feature-content .ban-table td {
            grid-template-columns: minmax(0, 1fr);
            gap: var(--space-2);
        }
    }
}
@layer features {
    .content-disclosure {
        margin-top: var(--space-4);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 14 25 / 58%);
    }

    .content-disclosure > summary {
        min-height: 48px;
        padding: 0.85rem 1rem;
        color: var(--ice-100);
        font-weight: 750;
        cursor: pointer;
    }

    .content-disclosure[open] > summary {
        border-bottom: 1px solid var(--border);
        color: var(--arcane-400);
    }

    .content-disclosure > .character-grid,
    .content-disclosure > .shop-subcategory-grid,
    .content-disclosure > .data-table-scroll,
    .content-disclosure > .voting-history-list {
        margin: var(--space-4);
    }

    .history-panel {
        min-width: 0;
        padding: var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 15 27 / 62%);
    }

    .history-panel .section-heading {
        align-items: center;
        margin-bottom: var(--space-4);
    }

    .history-panel .section-heading > span,
    .voting-history .section-heading > span {
        display: grid;
        min-width: 2.25rem;
        height: 2.25rem;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--gold-300);
        font-weight: 800;
    }

    .data-table-scroll {
        max-width: 100%;
        overflow-x: auto;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        scrollbar-color: var(--arcane-600) rgb(2 10 18 / 70%);
    }

    .data-table-scroll:focus-visible {
        outline: 2px solid var(--arcane-400);
        outline-offset: 3px;
    }

    .data-table {
        width: 100%;
        min-width: 720px;
        border-collapse: collapse;
    }

    .data-table th,
    .data-table td {
        padding: 0.78rem;
        border-bottom: 1px solid rgb(123 199 242 / 11%);
        text-align: left;
        vertical-align: middle;
    }

    .data-table th {
        color: var(--text-muted);
        font-size: 0.7rem;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .ranking-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .ranking-tabs a {
        min-height: 44px;
        padding: 0.65rem 0.9rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--glass-light);
        color: var(--text-soft);
        text-decoration: none;
    }

    .ranking-tabs a:hover,
    .ranking-tabs a:focus-visible,
    .ranking-tabs a[aria-current="page"] {
        border-color: var(--border-bright);
        color: var(--ice-50);
        box-shadow: var(--shadow-glow);
    }

    .ranking-context {
        margin-block: var(--space-4);
        color: var(--text-muted);
    }

    .pagination--compact {
        justify-content: center;
        margin-top: var(--space-5);
    }

    .voting-dashboard,
    .voting-history {
        display: grid;
        gap: var(--space-5);
    }

    .voting-history {
        margin-top: var(--space-8);
    }

    .voting-summary-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .voting-summary-grid article {
        display: grid;
        align-content: center;
        min-height: 130px;
        padding: var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(18 52 77 / 65%), rgb(3 14 25 / 78%));
    }

    .voting-summary-grid article > span {
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .voting-summary-grid article > strong {
        margin-top: 0.45rem;
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: clamp(1.55rem, 4vw, 2.4rem);
        font-weight: 400;
    }

    .voting-summary-grid progress {
        width: 100%;
        height: 6px;
        margin-top: var(--space-3);
        accent-color: var(--arcane-400);
    }

    .voting-summary-date {
        font-size: clamp(1rem, 2.5vw, 1.45rem) !important;
    }

    .voting-site-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
        gap: var(--space-4);
    }

    .voting-site-card {
        display: flex;
        min-width: 0;
        min-height: 245px;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 15 27 / 70%);
    }

    .voting-site-card.is-available {
        border-color: rgb(80 216 175 / 38%);
        box-shadow: inset 0 1px rgb(255 255 255 / 4%);
    }

    .voting-site-card__logo {
        display: grid;
        min-height: 86px;
        padding: var(--space-3);
        place-items: center;
        border-bottom: 1px solid var(--border);
        background: rgb(255 255 255 / 3%);
    }

    .voting-site-card__logo img {
        width: min(180px, 100%);
        height: 60px;
        object-fit: contain;
    }

    .voting-site-card__content {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        padding: var(--space-4);
    }

    .voting-site-card h3 {
        overflow-wrap: anywhere;
        font-size: 1.15rem;
    }

    .voting-site-card__reward {
        margin-top: 0.4rem;
        color: var(--text-muted);
    }

    .voting-site-card__reward strong,
    .voting-site-card__cooldown {
        color: var(--gold-300);
    }

    .status-pill {
        width: fit-content;
        margin-block: var(--space-4);
        padding: 0.35rem 0.6rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 750;
    }

    .status-pill--available {
        border-color: rgb(80 216 175 / 35%);
        color: var(--success-400);
    }

    .voting-site-card form {
        margin-top: auto;
    }

    .button.voting-site-button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        padding: 0.7rem 1rem;
        border: 1px solid var(--border-bright);
        background: linear-gradient(135deg, var(--arcane-600), var(--arcane-400));
    }

    .voting-history-list {
        display: grid;
        gap: 0.55rem;
        padding: 0;
        list-style: none;
    }

    .voting-history-list li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: var(--space-2);
        padding: 0.8rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(3 15 27 / 62%);
    }

    .voting-history-list time,
    .voting-history-list span {
        color: var(--text-muted);
        font-size: 0.78rem;
    }

    .voting-history-list strong {
        color: var(--gold-300);
    }

    .knowledge-grid,
    .knowledge-categories {
        align-items: start;
    }

    .configuration-grid article dl,
    .arena-record-summary {
        margin: 0;
    }

    .configuration-grid article dt,
    .arena-record-summary dt {
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .configuration-grid article dd {
        margin-top: 0.45rem;
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 1.4rem;
    }

    .configuration-grid article code {
        display: block;
        margin-top: 0.55rem;
        color: var(--text-muted);
        font-size: 0.68rem;
        overflow-wrap: anywhere;
    }

    .community-embed {
        grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
        align-items: center;
        gap: var(--space-6);
    }

    .community-embed__copy {
        max-width: 48ch;
        margin: 0;
    }

    .community-embed__copy p:not(.eyebrow) {
        margin-block: var(--space-3) var(--space-4);
        color: var(--text-muted);
    }

    .guild-rank-name {
        color: var(--gold-300);
        font-weight: 750;
    }

    .guild-rank-fallback {
        color: var(--text-muted);
    }

    .arena-record-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
        width: min(100%, 760px);
        margin: var(--space-4) auto 0;
    }

    .arena-record-summary div {
        padding: var(--space-3);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(2 12 21 / 58%);
    }

    .arena-record-summary dd {
        margin-top: 0.3rem;
        color: var(--ice-100);
        font-weight: 750;
    }

    .profession-card {
        border-color: rgb(123 199 242 / 28%);
        background: linear-gradient(145deg, rgb(12 38 58 / 84%), rgb(2 11 20 / 92%));
        box-shadow: inset 0 1px rgb(255 255 255 / 4%);
    }

    .profession-card__icon {
        border-color: rgb(240 211 134 / 58%);
        background: #071626;
        box-shadow: 0 0 0 2px rgb(2 10 18 / 85%), 0 0 16px rgb(53 201 255 / 16%);
        filter: saturate(1.12) contrast(1.08) brightness(1.08);
    }

    .profession-card__body strong {
        color: var(--ice-50);
    }
}

@layer responsive {
    @media (max-width: 720px) {
        .sidebar-card--community {
            display: none;
        }

        .voting-summary-grid,
        .arena-record-summary,
        .community-embed {
            grid-template-columns: 1fr;
        }

        .community-embed iframe {
            display: none;
        }

        .history-panel {
            padding: var(--space-3);
        }

        .voting-history-list li {
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .voting-history-list span {
            grid-column: 2;
        }
    }
}


@layer features {
    .armory-ranking-heading {
        margin-bottom: var(--space-4);
    }

    .armory-ranking-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-bottom: var(--space-5);
    }

    .armory-ranking-tabs a {
        min-width: 4.5rem;
        padding: 0.65rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--glass-light);
        color: var(--text-soft);
        text-align: center;
    }

    .armory-ranking-tabs a:hover,
    .armory-ranking-tabs a[aria-current="page"] {
        border-color: var(--border-bright);
        color: var(--ice-50);
        box-shadow: var(--shadow-glow);
    }

    .arena-bracket-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
        margin-bottom: var(--space-6);
    }

    .arena-bracket-card {
        position: relative;
        isolation: isolate;
        min-height: 12.5rem;
        overflow: hidden;
        padding: var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            linear-gradient(145deg, rgb(8 34 55 / 88%), rgb(3 14 27 / 96%)),
            radial-gradient(circle at 80% 20%, rgb(53 201 255 / 24%), transparent 48%);
        color: var(--text-soft);
        text-decoration: none;
        transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .arena-bracket-card::after {
        position: absolute;
        z-index: -1;
        right: -0.08em;
        bottom: -0.35em;
        color: rgb(116 217 255 / 9%);
        content: attr(class);
        font: 700 10rem/1 var(--font-display);
    }

    .arena-bracket-card--2::after { content: "2"; }
    .arena-bracket-card--3::after { content: "3"; }
    .arena-bracket-card--5::after { content: "5"; }
    .arena-ranking-mode-card--rating::after { content: "R"; }
    .arena-ranking-mode-card--battles::after { content: "B"; }
    .arena-ranking-mode-card--wins::after { content: "W"; }

    .arena-ranking-mode-card > strong {
        font-size: clamp(1.65rem, 2.7vw, 2.55rem);
    }

    .arena-bracket-card:hover,
    .arena-bracket-card:focus-visible,
    .arena-bracket-card[aria-current="page"] {
        border-color: var(--border-bright);
        box-shadow: var(--shadow-glow);
        transform: translateY(-3px);
    }

    .arena-bracket-card[aria-current="page"] {
        background:
            linear-gradient(145deg, rgb(10 50 77 / 90%), rgb(3 18 34 / 97%)),
            radial-gradient(circle at 80% 20%, rgb(53 201 255 / 35%), transparent 50%);
    }

    .arena-bracket-card__eyebrow {
        display: block;
        color: var(--arcane-300);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .arena-bracket-card > strong {
        display: block;
        margin-block: 0.35rem 0.65rem;
        color: var(--ice-50);
        font: 600 clamp(2rem, 4vw, 3.2rem)/1 var(--font-display);
    }

    .arena-bracket-card > span:last-child {
        display: block;
        max-width: 21rem;
        line-height: 1.55;
    }

    .arena-ranking-list {
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 15 27 / 58%);
    }

    .arena-ranking-list__header,
    .arena-team-row {
        display: grid;
        grid-template-columns: 3rem 3rem minmax(9rem, 1.4fr) minmax(8rem, 1fr) repeat(3, minmax(5rem, 0.65fr));
        align-items: center;
        gap: var(--space-2);
    }

    .arena-ranking-list__header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
        background: rgb(17 54 76 / 72%);
        color: var(--ice-100);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .arena-ranking-list__teams {
        display: grid;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .arena-team-row {
        position: relative;
        min-height: 4.5rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgb(120 202 235 / 13%);
    }

    .arena-team-row:last-child {
        border-bottom: 0;
    }

    .arena-team-row--first,
    .arena-team-row--second,
    .arena-team-row--third {
        min-height: 5.15rem;
    }

    .arena-team-row--first {
        background: linear-gradient(90deg, rgb(195 119 67 / 14%), transparent 58%);
        box-shadow: inset 3px 0 #c67b4a;
    }

    .arena-team-row--second {
        background: linear-gradient(90deg, rgb(218 169 61 / 17%), transparent 66%);
        box-shadow: inset 3px 0 #f3ca68;
    }

    .arena-team-row--third {
        background: linear-gradient(90deg, rgb(193 216 230 / 13%), transparent 62%);
        box-shadow: inset 3px 0 #b9d2df;
    }

    .arena-team-row__rank {
        display: inline-grid;
        width: 2.1rem;
        height: 2.1rem;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--text-muted);
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

    .arena-team-row--first .arena-team-row__rank {
        border-color: #c67b4a;
        color: #f0b88f;
        box-shadow: 0 0 18px rgb(198 123 74 / 24%);
    }

    .arena-team-row--second .arena-team-row__rank {
        border-color: #f3ca68;
        color: #ffe8a4;
        box-shadow: 0 0 18px rgb(243 202 104 / 28%);
    }

    .arena-team-row--third .arena-team-row__rank {
        border-color: #b9d2df;
        color: #e5f5fc;
    }

    .arena-team-row__faction .game-token--icon-only {
        width: 30px;
        min-height: 30px;
        padding: 3px;
    }

    .arena-team-row__name {
        min-width: 0;
        font-family: var(--font-display);
        font-size: 1.05rem;
        overflow-wrap: anywhere;
    }

    .arena-team-row__members {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .arena-team-row__members .game-token--icon-only {
        width: 26px;
        min-height: 26px;
        padding: 3px;
    }

    .arena-player-row__identity,
    .arena-player-row__icons {
        display: flex;
        align-items: center;
    }

    .arena-player-row__identity {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .arena-player-row__icons {
        gap: 0.25rem;
    }

    .arena-player-row__icons .game-token--icon-only {
        width: 25px;
        min-height: 25px;
        padding: 3px;
    }

    .arena-player-row__team {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .arena-team-row__stat {
        display: grid;
        gap: 0.15rem;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .arena-team-row__stat small {
        display: none;
        color: var(--text-muted);
    }

    .arena-team-row__rating strong {
        color: var(--gold-300);
        font-size: 1.05rem;
    }

    @media (max-width: 800px) {
        .arena-bracket-grid {
            grid-template-columns: 1fr;
        }

        .arena-bracket-card {
            min-height: 8.5rem;
            padding: var(--space-4);
        }

        .arena-bracket-card::after {
            font-size: 8rem;
        }

        .arena-ranking-list {
            overflow: visible;
            border: 0;
            background: transparent;
        }

        .arena-ranking-list__header {
            display: none;
        }

        .arena-ranking-list__teams {
            gap: var(--space-3);
        }

        .arena-team-row {
            grid-template-columns: 2.5rem repeat(4, minmax(0, 1fr)) 2.5rem;
            gap: 0.65rem;
            padding: var(--space-4);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background-color: rgb(3 15 27 / 74%);
        }

        .arena-team-row__rank { grid-column: 1; grid-row: 1; }
        .arena-team-row__name { grid-column: 2 / 6; grid-row: 1; }
        .arena-team-row__faction { grid-column: 6; grid-row: 1; }
        .arena-team-row__members { grid-column: 1 / -1; grid-row: 2; }
        .arena-team-row__stat { grid-row: 3; }
        .arena-team-row__stat:nth-last-child(3) { grid-column: 1 / 3; }
        .arena-team-row__stat:nth-last-child(2) { grid-column: 3 / 5; }
        .arena-team-row__stat:nth-last-child(1) { grid-column: 5 / 7; }

        .arena-team-row__stat small {
            display: block;
            font-size: 0.65rem;
            line-height: 1.2;
        }
    }

    .voting-site-button {
        display: inline-flex;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .voting-site-button:focus-visible {
        border-radius: var(--radius-sm);
        outline: 2px solid var(--arcane-400);
        outline-offset: 4px;
    }
}


@layer features {
    .game-token--identity {
        gap: 0.38rem;
        justify-content: flex-start;
        padding-left: 0.35rem;
    }

    .game-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        border: 1px solid rgb(228 202 136 / 38%);
        border-radius: 4px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgb(0 0 0 / 38%);
    }

    .game-token--faction .game-icon,
    .game-icon--faction {
        width: 21px;
        height: 21px;
        border: 0;
        border-radius: 5px;
        box-shadow: 0 0 10px currentColor;
    }

    .game-token--icon-only {
        width: 30px;
        min-height: 30px;
        padding: 5px;
    }

    .game-token--icon-only .game-icon {
        width: 18px;
        height: 18px;
    }

    .player-identity-icons {
        white-space: nowrap;
    }

    .player-identity-icons .game-token--icon-only {
        display: inline-flex;
        width: 26px;
        min-height: 26px;
        padding: 3px;
        vertical-align: middle;
    }

    .player-guild {
        display: block;
        margin-top: 0.2rem;
        font-size: 0.72rem;
    }

    .data-table--ranking {
        min-width: 0;
    }

    @media (max-width: 720px) {
        .data-table--ranking th,
        .data-table--ranking td {
            padding: 0.65rem 0.4rem;
        }

        .data-table--ranking td {
            font-size: 0.82rem;
        }

        .data-table--ranking .player-identity-icons .game-token--icon-only {
            width: 24px;
            min-height: 24px;
            padding: 2px;
        }
    }

    .faction-sigil {
        width: 78px;
        height: 78px;
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .faction-sigil img {
        width: 78px;
        height: 78px;
        border-radius: 18px;
        object-fit: contain;
        filter: drop-shadow(0 0 16px currentColor);
    }

    .character-identity {
        display: flex;
        min-height: 22px;
        align-items: center;
        gap: 0.38rem;
    }

    .armory-identity-hero {
        padding-block: var(--space-4) var(--space-6);
    }

    .game-emblem {
        --emblem-background: #193b66;
        --emblem-border: #d9a441;
        --emblem-color: #f2e8c9;

        display: inline-grid;
        overflow: hidden;
        place-items: center;
        border: 2px solid var(--emblem-border);
        border-radius: 30% 30% 46% 46%;
        background:
            linear-gradient(145deg, rgb(255 255 255 / 13%), transparent 48%),
            var(--emblem-background);
        box-shadow:
            inset 0 0 0 3px rgb(0 0 0 / 25%),
            0 7px 18px rgb(0 0 0 / 28%);
    }

    .game-emblem > img {
        width: 72%;
        height: 72%;
        object-fit: contain;
        opacity: 0.94;
        filter: drop-shadow(0 0 6px var(--emblem-color));
    }

    .game-emblem.is-fallback {
        border-color: var(--border-bright);
        background:
            url("./images/ornaments/frost-seal.webp") center / 86% no-repeat,
            var(--glass-solid);
    }

    .game-emblem.is-fallback > span {
        display: none;
    }

    .game-emblem--compact {
        width: 38px;
        height: 42px;
        flex: 0 0 auto;
        border-width: 1px;
    }

    .game-emblem--hero {
        width: 118px;
        height: 130px;
        margin-bottom: var(--space-3);
        filter: drop-shadow(0 0 24px rgb(53 201 255 / 18%));
    }

    .guild-identity {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
    }

    .guild-list-identity,
    .guild-leader-identity {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .guild-list-identity a,
    .guild-leader-identity a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .guild-leader-identity {
        flex-wrap: wrap;
    }

    .data-table--guilds .game-token--icon-only {
        width: 26px;
        min-height: 26px;
        padding: 3px;
        flex: 0 0 auto;
    }

    .guild-age,
    .guild-member-count {
        white-space: nowrap;
    }

    .guild-age__short {
        display: none;
    }

    .guild-member-count {
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .guild-statistics {
        display: grid;
        gap: var(--space-5);
        margin-block: var(--space-7);
    }

    .guild-profile-header {
        display: grid;
        grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.4fr);
        gap: var(--space-4);
        margin-bottom: var(--space-7);
        align-items: stretch;
    }

    .guild-profile-identity,
    .guild-leader-card {
        position: relative;
        overflow: hidden;
        min-width: 0;
        min-height: 220px;
        padding: var(--space-5);
    }

    .guild-profile-identity {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        align-content: center;
        justify-items: center;
        gap: var(--space-4);
        text-align: center;
    }

    .guild-profile-identity .game-emblem--hero {
        width: 88px;
        height: 98px;
        margin: 0;
        flex: 0 0 auto;
    }

    .guild-profile-identity .eyebrow,
    .guild-leader-card .eyebrow {
        margin: 0 0 0.45rem;
    }

    .guild-profile-identity h2,
    .guild-leader-card h2 {
        margin: 0;
        color: var(--ice-50);
        font-size: clamp(1.7rem, 3.2vw, 2.7rem);
        overflow-wrap: anywhere;
    }

    .guild-profile-identity h2 {
        font-size: clamp(1.45rem, 2vw, 2rem);
    }

    .guild-profile-identity__meta {
        margin: 0.55rem 0;
        color: var(--text-muted);
        font-size: 0.75rem;
    }

    .guild-profile-identity__members {
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 1.05rem;
    }

    .guild-leader-card {
        display: flex;
        align-items: center;
        color: inherit;
        isolation: isolate;
        text-decoration: none;
    }

    .guild-leader-card::before {
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgb(3 12 22 / 86%) 0%,
            rgb(4 18 31 / 55%) 42%,
            rgb(4 18 31 / 12%) 72%,
            transparent 100%
        );
        content: "";
    }

    .guild-profile-header--horde .guild-leader-card::before {
        background: linear-gradient(
            90deg,
            rgb(22 7 10 / 88%) 0%,
            rgb(35 13 18 / 58%) 42%,
            rgb(35 13 18 / 12%) 72%,
            transparent 100%
        );
    }

    .guild-leader-card:hover,
    .guild-leader-card:focus-visible {
        border-color: var(--border-bright);
        box-shadow: var(--shadow-panel), var(--shadow-glow), inset 0 1px rgb(255 255 255 / 5%);
    }

    .guild-leader-card__race-art {
        position: absolute;
        z-index: 0;
        inset: 0 0 0 auto;
        width: 68%;
        height: 100%;
        object-fit: cover;
        object-position: center 27%;
        opacity: 0.88;
        mask-image: linear-gradient(90deg, transparent, #000 20%);
        pointer-events: none;
    }

    .guild-leader-card__content {
        position: relative;
        z-index: 2;
        min-width: 0;
    }

    .guild-leader-card__tokens {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.9rem;
    }

    .guild-leader-card__tokens .game-token {
        min-height: 32px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(2 10 18 / 68%);
        color: var(--text-soft);
    }

    .guild-faction-flag {
        position: relative;
        overflow: hidden;
        grid-column: 1 / -1;
        min-width: 0;
        min-height: 0;
        aspect-ratio: 3 / 1;
        margin: 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--ink-900);
        box-shadow: var(--shadow-panel);
    }

    .guild-faction-flag img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .guild-faction-flag figcaption {
        position: absolute;
        z-index: 1;
        top: 50%;
        left: clamp(1.5rem, 6vw, 5rem);
        max-width: 48%;
        color: #ffe05c;
        font-family: var(--font-display);
        font-size: clamp(2rem, 5vw, 4.5rem);
        font-weight: 800;
        line-height: 0.95;
        letter-spacing: 0.025em;
        text-align: left;
        text-shadow: 0 3px 2px rgb(0 0 0 / 85%), 0 0 22px rgb(255 207 48 / 75%);
        transform: translateY(-50%);
    }

    .guild-profile-header--horde .guild-faction-flag figcaption {
        color: #ff5147;
        text-shadow: 0 3px 2px rgb(0 0 0 / 90%), 0 0 24px rgb(255 45 38 / 82%);
    }

    .arena-team-identity__bracket {
        display: inline-flex;
        margin: 0.55rem 0;
        padding: 0.32rem 0.7rem;
        border: 1px solid var(--border-bright);
        border-radius: 999px;
        background: rgb(53 201 255 / 8%);
        color: var(--arcane-300);
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .arena-team-ranking-action {
        justify-content: center;
        margin-top: var(--space-3);
    }

    .arena-captain-card--empty {
        display: grid;
        min-height: 220px;
        align-content: center;
        padding: var(--space-5);
    }

    .arena-team-overview,
    .arena-roster {
        display: grid;
        gap: var(--space-5);
        margin-block: var(--space-7);
    }

    .arena-team-overview > .section-heading,
    .arena-roster > .section-heading {
        margin-bottom: 0;
    }

    .arena-performance-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

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

    .arena-performance-card__record {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .arena-performance-card__record > span {
        display: grid;
        padding: 0.65rem 0.8rem;
        border: 1px solid rgb(123 199 242 / 14%);
        border-radius: var(--radius-sm);
        background: rgb(2 11 20 / 52%);
    }

    .arena-performance-card__record strong {
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .arena-performance-card__record small,
    .arena-performance-card > p {
        color: var(--text-muted);
    }

    .arena-performance-card__record > span:last-child strong {
        color: #df8c8c;
    }

    .arena-performance-card > p {
        margin: 0.55rem 0 0;
        text-align: right;
    }

    .arena-performance-gauge {
        height: 12px;
        overflow: hidden;
        margin-top: var(--space-3);
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(1 9 17 / 78%);
    }

    .arena-performance-gauge span {
        display: block;
        width: var(--arena-progress);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--arcane-500), var(--gold-300));
        box-shadow: 0 0 18px rgb(53 201 255 / 24%);
    }

    .arena-team-insights {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .arena-class-composition__list {
        display: grid;
        gap: 0.55rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .arena-class-composition__list li,
    .arena-rival {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: 0.55rem 0.7rem;
        border: 1px solid rgb(123 199 242 / 14%);
        border-radius: var(--radius-sm);
        background: rgb(2 11 20 / 48%);
    }

    .arena-class-composition__list li > span {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 0.5rem;
    }

    .arena-class-composition__list .game-token--identity > span {
        display: none;
    }

    .arena-class-composition__list li > strong {
        color: var(--gold-300);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .arena-rival-list {
        display: grid;
        gap: 0.55rem;
    }

    .arena-rival > span {
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .arena-rival > div {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 0.5rem;
    }

    .arena-rival a,
    .arena-rival strong {
        overflow: hidden;
        color: var(--ice-50);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .arena-rival b {
        color: var(--gold-300);
        font-variant-numeric: tabular-nums;
    }

    .arena-rival--current {
        border-color: rgb(240 202 104 / 38%);
        background: rgb(240 202 104 / 8%);
    }

    .arena-rival--empty em {
        color: var(--text-muted);
        font-size: 0.8rem;
        text-align: right;
    }

    .arena-match-history > .section-heading > small {
        max-width: 32rem;
        color: var(--text-muted);
        text-align: right;
    }

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

    .arena-match {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr) auto 4rem;
        align-items: center;
        gap: var(--space-3);
        padding: 0.8rem 1rem;
        border: 1px solid rgb(123 199 242 / 18%);
        border-left: 3px solid #c76464;
        border-radius: var(--radius-sm);
        background: rgb(2 11 20 / 56%);
    }

    .arena-match--win {
        border-left-color: #68c990;
    }

    .arena-match__result {
        color: #df8c8c;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .arena-match--win .arena-match__result {
        color: #82d6a4;
    }

    .arena-match__opponent {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 0.65rem;
    }

    .arena-match__opponent a,
    .arena-match__opponent span {
        overflow: hidden;
        color: var(--ice-50);
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .arena-match time {
        color: var(--text-muted);
        font-size: 0.82rem;
    }

    .arena-match__rating {
        color: #df8c8c;
        font-weight: 800;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .arena-match__rating.is-positive {
        color: #82d6a4;
    }

    .arena-roster > .section-heading > small {
        color: var(--text-muted);
    }

    .arena-roster-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
    }

    .arena-member-card {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        min-width: 0;
        min-height: 230px;
        padding: var(--space-4);
    }

    .arena-member-card::before {
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgb(3 12 22 / 86%) 0%,
            rgb(4 18 31 / 55%) 42%,
            rgb(4 18 31 / 12%) 72%,
            transparent 100%
        );
        content: "";
        pointer-events: none;
    }

    .arena-member-card__race-art {
        position: absolute;
        z-index: 0;
        inset: 0 0 0 auto;
        width: 48%;
        height: 100%;
        object-fit: cover;
        object-position: center 27%;
        opacity: 0.88;
        mask-image: linear-gradient(90deg, transparent, #000 22%);
        pointer-events: none;
    }

    .arena-member-card--captain {
        border-color: rgb(240 202 104 / 48%);
        background: linear-gradient(145deg, rgb(74 56 24 / 30%), rgb(3 14 25 / 90%));
        box-shadow: inset 3px 0 var(--gold-300), var(--shadow-panel);
    }

    .arena-member-card--inactive {
        border-color: rgb(140 157 169 / 24%);
    }

    .arena-member-card--inactive .arena-member-card__race-art {
        filter: grayscale(0.5);
        opacity: 0.68;
    }

    .arena-member-card > header {
        position: relative;
        z-index: 2;
        display: flex;
        max-width: 72%;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--space-3);
    }

    .arena-member-card > .armory-status {
        position: absolute;
        z-index: 3;
        top: var(--space-4);
        right: var(--space-4);
    }

    .arena-member-card > header > div {
        display: flex;
        min-width: 0;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .arena-member-card > header a {
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }

    .arena-captain-badge {
        padding: 0.2rem 0.5rem;
        border: 1px solid rgb(240 202 104 / 40%);
        border-radius: 999px;
        background: rgb(240 202 104 / 10%);
        color: var(--gold-300);
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .arena-inactive-badge {
        padding: 0.2rem 0.5rem;
        border: 1px solid rgb(223 140 140 / 35%);
        border-radius: 999px;
        background: rgb(130 48 48 / 18%);
        color: #e5a5a5;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .arena-member-card__tokens {
        position: relative;
        z-index: 2;
        display: flex;
        max-width: 72%;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-top: var(--space-3);
    }

    .arena-member-card__tokens .game-token {
        min-height: 30px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(2 10 18 / 66%);
    }

    .arena-member-card__stats {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        max-width: 52%;
        margin: var(--space-4) 0 0;
    }

    .arena-member-card__stats div {
        padding: 0.75rem;
        border: 1px solid rgb(123 199 242 / 16%);
        border-radius: var(--radius-sm);
        background: rgb(2 11 20 / 52%);
    }

    .arena-member-card__stats dt {
        color: var(--text-muted);
        font-size: 0.66rem;
        font-weight: 750;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .arena-member-card__stats dd {
        margin: 0.35rem 0 0;
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-variant-numeric: tabular-nums;
    }

    .arena-member-card__stats small {
        color: var(--gold-300);
    }

    .arena-member-card__stats .arena-member-record {
        display: flex;
        align-items: end;
        flex-wrap: wrap;
        gap: 0.55rem;
        font-family: var(--font-ui);
        font-size: 0.68rem;
    }

    .arena-member-record b {
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: 1.1rem;
    }

    .arena-member-record span:last-child {
        color: #df8c8c;
    }

    .guild-statistics .section-heading {
        margin-bottom: 0;
    }

    .guild-statistics .section-heading > small {
        max-width: 24rem;
        color: var(--text-muted);
        text-align: right;
    }

    .guild-kpi-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .guild-kpi,
    .guild-chart-card {
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(15 43 65 / 74%), rgb(3 14 25 / 88%));
        box-shadow: inset 0 1px rgb(255 255 255 / 4%);
    }

    .guild-kpi {
        position: relative;
        overflow: hidden;
        min-height: 112px;
        padding: var(--space-4);
    }

    .guild-kpi::after {
        position: absolute;
        right: -28px;
        bottom: -38px;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: var(--arcane-400);
        content: "";
        filter: blur(44px);
        opacity: 0.18;
    }

    .guild-kpi > span,
    .guild-kpi > small {
        display: block;
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .guild-kpi > span:not(.guild-stat-icon),
    .guild-kpi > small {
        padding-right: 2.6rem;
    }

    .guild-kpi > strong {
        display: block;
        margin-top: 0.45rem;
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: clamp(1.45rem, 3vw, 2.15rem);
        font-variant-numeric: tabular-nums;
    }

    .guild-chart-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
        align-items: start;
    }

    .guild-chart-card--classes {
        grid-column: 1 / -1;
    }

    .guild-chart-card {
        position: relative;
        min-width: 0;
        padding: var(--space-5);
    }

    .guild-chart-card h3 {
        margin: 0 0 var(--space-4);
        padding-right: 2.75rem;
        color: var(--gold-300);
        font-size: 1rem;
    }

    .guild-kpi > .guild-stat-icon,
    .guild-chart-card > .guild-stat-icon {
        position: absolute;
        z-index: 2;
        top: 0.85rem;
        right: 0.85rem;
        display: grid;
        width: 34px;
        min-height: 34px;
        place-items: center;
        border: 1px solid rgb(123 199 242 / 24%);
        border-radius: 10px;
        background: linear-gradient(145deg, rgb(23 67 94 / 72%), rgb(3 16 29 / 90%));
        box-shadow: inset 0 1px rgb(255 255 255 / 7%), 0 0 16px rgb(53 201 255 / 10%);
        color: var(--arcane-300);
    }

    .guild-kpi > .guild-stat-icon svg,
    .guild-chart-card > .guild-stat-icon svg {
        width: 19px;
        height: 19px;
    }

    .guild-donut-layout {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-4);
        align-items: center;
    }

    .guild-chart-card--classes .guild-chart-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guild-donut {
        position: relative;
        display: grid;
        width: 148px;
        aspect-ratio: 1;
        place-content: center;
        border-radius: 50%;
        background: var(--guild-chart);
        box-shadow: 0 0 28px rgb(53 201 255 / 12%);
        text-align: center;
    }

    .guild-donut::after {
        position: absolute;
        inset: 22px;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: var(--ink-850);
        content: "";
    }

    .guild-donut span,
    .guild-donut small {
        position: relative;
        z-index: 1;
        display: block;
    }

    .guild-donut span {
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: 1.8rem;
    }

    .guild-donut small {
        color: var(--text-muted);
        font-size: 0.66rem;
    }

    .guild-chart-legend,
    .guild-bar-list {
        display: grid;
        width: 100%;
        gap: 0.45rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .guild-chart-legend li {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.45rem;
        align-items: center;
        padding-left: 0.5rem;
        border-left: 3px solid var(--legend-color);
        font-size: 0.76rem;
    }

    .guild-chart-legend .game-token--icon-only,
    .guild-bar-list .game-token--icon-only {
        width: 25px;
        min-height: 25px;
        padding: 3px;
    }

    .guild-level-gauge {
        display: flex;
        overflow: hidden;
        height: 18px;
        margin-bottom: var(--space-5);
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(2 10 18 / 72%);
    }

    .guild-level-gauge__segment {
        flex: 0 0 var(--segment-size);
        min-width: 0;
    }

    .guild-level-gauge__segment--1 { background: var(--gold-400); }
    .guild-level-gauge__segment--2 { background: var(--arcane-300); }
    .guild-level-gauge__segment--3 { background: #587da0; }
    .guild-level-gauge__segment--4 { background: #34475c; }

    .guild-bar-list li {
        font-size: 0.76rem;
    }

    .guild-bar-list li > div,
    .guild-bar-list--levels li {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .guild-bar-list li strong {
        margin-left: auto;
        color: var(--ice-100);
        font-variant-numeric: tabular-nums;
    }

    .guild-bar {
        display: block;
        overflow: hidden;
        height: 6px;
        margin-top: 0.3rem;
        border-radius: 999px;
        background: rgb(123 199 242 / 10%);
    }

    .guild-bar > span {
        display: block;
        width: var(--bar-size);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--arcane-500), var(--arcane-200));
        box-shadow: 0 0 10px rgb(53 201 255 / 24%);
    }

    .guild-insight-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
        align-items: start;
    }

    .guild-chart-card--professions {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .guild-chart-card--achievements {
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
    }

    .guild-activity-rings {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-4);
        margin-bottom: var(--space-5);
    }

    .guild-activity-ring {
        position: relative;
        display: grid;
        width: 112px;
        aspect-ratio: 1;
        place-content: center;
        border-radius: 50%;
        background: conic-gradient(var(--arcane-400) 0 var(--activity-size), rgb(123 199 242 / 10%) 0 100%);
        box-shadow: 0 0 24px rgb(53 201 255 / 14%);
        text-align: center;
    }

    .guild-activity-ring--month {
        background: conic-gradient(var(--gold-400) 0 var(--activity-size), rgb(228 202 136 / 10%) 0 100%);
    }

    .guild-activity-ring::after {
        position: absolute;
        inset: 12px;
        border: 1px solid var(--border);
        border-radius: inherit;
        background: var(--ink-850);
        content: "";
    }

    .guild-activity-ring span,
    .guild-activity-ring small {
        position: relative;
        z-index: 1;
        display: block;
    }

    .guild-activity-ring span {
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: 1.45rem;
    }

    .guild-activity-ring small {
        color: var(--text-muted);
        font-size: 0.68rem;
    }

    .guild-chart-card h4 {
        margin: 0 0 var(--space-3);
        color: var(--ice-100);
        font-size: 0.76rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .guild-recent-members,
    .guild-profession-grid,
    .guild-achievement-feed {
        display: grid;
        gap: 0.55rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

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

    .guild-recent-members li {
        display: grid;
        min-width: 0;
        padding: 0.6rem 0.7rem;
        border: 1px solid rgb(123 199 242 / 12%);
        border-radius: var(--radius-sm);
        background: rgb(2 10 18 / 45%);
    }

    .guild-recent-members a {
        overflow: hidden;
        font-size: 0.78rem;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guild-recent-members small {
        color: var(--text-muted);
        font-size: 0.65rem;
    }

    .guild-equipment-score {
        display: flex;
        gap: var(--space-3);
        align-items: baseline;
        margin-bottom: var(--space-3);
    }

    .guild-equipment-score strong {
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-variant-numeric: tabular-nums;
    }

    .guild-equipment-score span {
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .guild-equipment-gauge {
        overflow: hidden;
        height: 12px;
        margin-bottom: var(--space-5);
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(2 10 18 / 72%);
    }

    .guild-equipment-gauge span {
        display: block;
        width: var(--equipment-size);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--arcane-600), var(--gold-300));
        box-shadow: 0 0 16px rgb(228 202 136 / 38%);
    }

    .guild-bar-list--compact {
        gap: 0.7rem;
    }

    .guild-profession-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem var(--space-5);
    }

    .guild-profession-grid li > div {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.45rem;
        align-items: center;
        font-size: 0.76rem;
    }

    .guild-profession-grid .game-token--icon-only {
        width: 25px;
        min-height: 25px;
        padding: 3px;
    }

    .guild-profession-grid strong {
        color: var(--ice-100);
        font-variant-numeric: tabular-nums;
    }

    .guild-achievement-feed {
        counter-reset: guild-achievement;
    }

    .guild-achievement-feed li {
        position: relative;
        display: grid;
        gap: 0.1rem;
        padding: 0.65rem 0.75rem 0.65rem 2.6rem;
        border: 1px solid rgb(228 202 136 / 13%);
        border-radius: var(--radius-sm);
        background: rgb(2 10 18 / 48%);
        counter-increment: guild-achievement;
    }

    .guild-achievement-feed li::before {
        position: absolute;
        top: 50%;
        left: 0.75rem;
        display: grid;
        width: 1.35rem;
        aspect-ratio: 1;
        place-items: center;
        border: 1px solid rgb(228 202 136 / 30%);
        border-radius: 50%;
        color: var(--gold-300);
        content: counter(guild-achievement);
        font-size: 0.65rem;
        transform: translateY(-50%);
    }

    .guild-achievement-feed__achievement {
        color: var(--gold-300);
        font-weight: 750;
    }

    .guild-achievement-feed span,
    .guild-achievement-feed small {
        color: var(--text-muted);
        font-size: 0.7rem;
    }

    .guild-chart-card .empty-state {
        color: var(--text-muted);
        font-size: 0.8rem;
    }
}

@layer responsive {
    @media (max-width: 720px) {
        .game-emblem--hero {
            width: 96px;
            height: 106px;
        }

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

        .guild-profile-header {
            grid-template-columns: minmax(0, 1fr);
        }

        .guild-profile-identity,
        .guild-leader-card {
            min-height: 190px;
        }

        .guild-profile-identity {
            grid-template-columns: auto minmax(0, 1fr);
            justify-items: start;
            text-align: left;
        }

        .guild-faction-flag {
            min-height: 0;
            grid-column: auto;
        }

        .guild-faction-flag img {
            object-position: center;
        }

        .guild-faction-flag figcaption {
            left: 1.1rem;
            max-width: 52%;
            font-size: clamp(1.25rem, 6.5vw, 2rem);
        }

        .guild-chart-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .guild-insight-grid,
        .guild-profession-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .arena-performance-grid,
        .arena-team-insights,
        .arena-roster-grid {
            grid-template-columns: minmax(0, 1fr);
        }

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

        .arena-match-history > .section-heading > small {
            text-align: left;
        }

        .arena-match {
            grid-template-columns: 5.5rem minmax(0, 1fr) 3rem;
        }

        .arena-match time {
            grid-column: 2 / -1;
            grid-row: 2;
        }

        .arena-member-card > header {
            align-items: center;
        }

        .arena-member-card::before {
            background: linear-gradient(90deg, rgb(3 12 22 / 86%), rgb(4 18 31 / 42%));
        }

        .arena-member-card__race-art {
            width: 72%;
            opacity: 0.78;
        }

        .arena-member-card > header,
        .arena-member-card__tokens,
        .arena-member-card__stats {
            max-width: none;
        }

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

        .guild-chart-card--professions {
            grid-column: auto;
            grid-row: auto;
        }

        .guild-chart-card--achievements {
            grid-column: auto;
            grid-row: auto;
        }

        .guild-chart-card--classes {
            grid-column: auto;
        }

        .guild-donut-layout,
        .guild-chart-card--classes .guild-chart-legend {
            grid-template-columns: minmax(0, 1fr);
        }

        .guild-donut-layout {
            justify-items: center;
        }

        .guild-statistics .section-heading > small {
            text-align: left;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .faction-sigil {
            animation: none;
        }
    }
}
@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body,
    h1,
    h2,
    h3,
    h4,
    p,
    ul,
    ol,
    dl,
    dd,
    figure {
        margin: 0;
    }

    img,
    svg,
    video,
    iframe {
        max-width: 100%;
    }

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

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

@layer tokens {
    :root {
        color-scheme: dark;
        --ink-950: #02070e;
        --ink-900: #06101d;
        --ink-850: #091827;
        --ink-800: #0d2032;
        --ice-50: #f4fbff;
        --ice-100: #dcefff;
        --ice-200: #b9ddf5;
        --ice-300: #87c8ef;
        --arcane-400: #35c9ff;
        --arcane-500: #0aa8ec;
        --arcane-600: #087fc4;
        --gold-300: #e4ca88;
        --gold-400: #c6a85d;
        --ember-400: #ff725e;
        --success-400: #65e5b0;
        --danger-400: #ff777c;
        --text: #eaf6ff;
        --text-soft: #a9bdd0;
        --text-muted: #7890a6;
        --border: rgb(123 199 242 / 20%);
        --border-bright: rgb(87 205 255 / 42%);
        --glass: rgb(8 23 39 / 76%);
        --glass-solid: #0a1a2a;
        --glass-light: rgb(23 53 77 / 72%);
        --shadow-panel: 0 24px 70px rgb(0 0 0 / 34%);
        --shadow-glow: 0 0 36px rgb(31 181 246 / 20%);
        --radius-sm: 8px;
        --radius-md: 14px;
        --radius-lg: 22px;
        --radius-xl: 32px;
        --space-1: 0.25rem;
        --space-2: 0.5rem;
        --space-3: 0.75rem;
        --space-4: 1rem;
        --space-5: 1.5rem;
        --space-6: 2rem;
        --space-7: 3rem;
        --space-8: 4.5rem;
        --content: 1240px;
        --header-height: 76px;
        --font-display: "Evo Antiqua", Georgia, serif;
        --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --ease: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }
}

@layer base {
    body {
        min-width: 320px;
        min-height: 100vh;
        overflow-x: hidden;
        background:
            radial-gradient(circle at 50% -20%, rgb(20 102 151 / 30%), transparent 42rem),
            linear-gradient(180deg, var(--ink-900), var(--ink-950) 70%);
        color: var(--text);
        font-family: var(--font-ui);
        font-size: 1rem;
        line-height: 1.65;
        text-rendering: optimizeLegibility;
    }

    body::before {
        position: fixed;
        z-index: -1;
        inset: 0;
        background-image:
            linear-gradient(rgb(255 255 255 / 1.5%) 1px, transparent 1px),
            linear-gradient(90deg, rgb(255 255 255 / 1.5%) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: linear-gradient(to bottom, black, transparent 75%);
        content: "";
        pointer-events: none;
    }

    a {
        color: var(--ice-200);
        text-decoration-color: rgb(53 201 255 / 35%);
        text-underline-offset: 0.2em;
        transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
    }

    a:hover {
        color: var(--arcane-400);
    }

    :focus-visible {
        outline: 3px solid var(--arcane-400);
        outline-offset: 3px;
    }

    h1,
    h2,
    h3,
    h4 {
        color: var(--ice-50);
        font-family: var(--font-display);
        font-weight: 400;
        line-height: 1.12;
        letter-spacing: 0.025em;
        text-wrap: balance;
    }

    h1 {
        font-size: clamp(2.25rem, 5vw, 4.8rem);
    }

    h2 {
        font-size: clamp(1.45rem, 2.7vw, 2.2rem);
    }

    h3 {
        font-size: clamp(1.2rem, 2vw, 1.65rem);
    }

    button {
        color: inherit;
    }

    ::selection {
        background: rgb(53 201 255 / 35%);
        color: white;
    }
}

@layer layout {
    .shell {
        width: min(calc(100% - 2rem), var(--content));
        margin-inline: auto;
    }

    .site-atmosphere {
        position: fixed;
        z-index: -1;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .site-atmosphere::before,
    .site-atmosphere::after {
        position: absolute;
        width: 32rem;
        height: 32rem;
        border-radius: 50%;
        filter: blur(100px);
        opacity: 0.12;
        content: "";
    }

    .site-atmosphere::before {
        top: 20%;
        left: -16rem;
        background: var(--arcane-400);
    }

    .site-atmosphere::after {
        right: -18rem;
        bottom: 10%;
        background: #2059ba;
    }

    .site-header {
        position: sticky;
        z-index: 100;
        top: 0;
        border-bottom: 1px solid var(--border);
        background: rgb(4 13 23 / 88%);
        box-shadow: 0 12px 30px rgb(0 0 0 / 22%);
        backdrop-filter: blur(18px) saturate(130%);
    }

    .header-bar {
        position: relative;
        display: flex;
        min-height: var(--header-height);
        align-items: center;
        justify-content: flex-end;
        gap: var(--space-4);
        padding-left: 174px;
    }

    .header-actions {
        position: relative;
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }

    .site-navigation {
        border-top: 1px solid rgb(255 255 255 / 5%);
    }

    .nav-list {
        display: flex;
        min-height: 48px;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0 0 0 174px;
        list-style: none;
    }

    .site-main {
        padding-block: var(--space-7) var(--space-8);
    }

    .route-static-server-status .page-banner {
        display: none;
    }

    .content-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 290px;
        align-items: start;
        gap: var(--space-6);
    }

    .content-grid--wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-panel {
        min-width: 0;
        padding: clamp(1rem, 3vw, 2.25rem);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background:
            linear-gradient(145deg, rgb(18 44 66 / 76%), rgb(6 19 32 / 88%)),
            var(--glass);
        box-shadow: var(--shadow-panel);
        backdrop-filter: blur(18px);
    }

    .site-sidebar {
        display: grid;
        gap: var(--space-4);
    }

    .site-footer {
        border-top: 1px solid var(--border);
        background: rgb(2 9 16 / 76%);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: var(--space-5) var(--space-7);
        padding-block: var(--space-7);
    }

    .footer-grid > p {
        grid-column: 1 / -1;
        max-width: 72ch;
        color: var(--text-muted);
        font-size: 0.82rem;
    }

    .footer-grid > .footer-version {
        margin-top: calc(var(--space-4) * -1);
        font-size: 0.72rem;
    }

    .footer-version a {
        color: var(--accent);
        text-decoration: none;
    }

    .footer-version a:hover {
        text-decoration: underline;
    }
}

@layer components {
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .anti-spam-honeypot {
        position: absolute;
        left: -10000px;
    }

    .content-center {
        text-align: center;
    }

    .inline-form {
        display: inline;
    }

    .cell-center {
        text-align: center !important;
    }

    .cell-left {
        text-align: left !important;
    }

    .responsive-data-table {
        width: 100%;
    }

    .cart-shell {
        width: min(100%, 68rem);
        margin-inline: auto;
    }

    .cart-header {
        display: grid;
        gap: var(--space-3);
        margin-bottom: var(--space-5);
        text-align: left;
    }

    .cart-header h2 {
        margin-bottom: 0;
    }

    .cart-heading {
        display: block;
    }

    .cart-heading .eyebrow {
        margin-bottom: 0;
    }

    .cart-context {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1px;
        width: 100%;
        margin: var(--space-5) 0 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--border);
        box-shadow: 0 12px 32px rgb(0 0 0 / 24%);
    }

    .cart-empty-state {
        display: grid;
        justify-items: center;
        gap: var(--space-4);
        padding: clamp(1rem, 3vw, 2.5rem) 0;
        text-align: center;
    }

    .cart-empty-state__icon {
        display: grid;
        place-items: center;
        width: 4.5rem;
        height: 4.5rem;
        border: 1px solid var(--border-bright);
        border-radius: 50%;
        background: rgb(31 173 222 / 8%);
        color: var(--arcane-400);
    }

    .cart-empty-state__icon svg {
        width: 2rem;
        height: 2rem;
    }

    .cart-empty-state h2,
    .cart-empty-state__intro {
        margin: 0;
    }

    .cart-empty-state__intro {
        max-width: 52ch;
        color: var(--text);
        line-height: 1.7;
    }

    .cart-empty-state > .button {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .cart-empty-state__links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
        gap: var(--space-3);
        width: min(100%, 46rem);
        margin-top: var(--space-4);
        text-align: left;
    }

    .cart-empty-state__links a {
        display: grid;
        align-content: start;
        gap: var(--space-2);
        padding: var(--space-4);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        text-decoration: none;
    }

    .cart-empty-state__links a:hover,
    .cart-empty-state__links a:focus-visible {
        border-color: var(--arcane-400);
        background: rgb(31 173 222 / 8%);
    }

    .cart-empty-state__links a:hover strong,
    .cart-empty-state__links a:focus-visible strong {
        text-decoration: underline;
    }

    .cart-empty-state__links span {
        color: var(--text);
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .checkout-character-badge__identity small {
        color: var(--text-muted);
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .cart-currency {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 0.85rem;
        justify-content: flex-end;
        padding: 0.8rem 1rem;
        border-top: 1px solid rgb(123 199 242 / 14%);
        background: rgb(3 15 27 / 94%);
        text-align: right;
    }

    .cart-currency__copy {
        display: grid;
        min-width: 0;
        gap: 0.12rem;
    }

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

    .cart-currency__copy strong {
        overflow: hidden;
        font-size: 1.05rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-currency__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: flex-end;
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .cart-currency--vote .cart-currency__meta b {
        color: var(--arcane-400);
    }

    .cart-currency--donate .cart-currency__meta b {
        color: #d8a5ff;
    }

    .cart-currency--vote {
        color: var(--arcane-400);
        background:
            linear-gradient(270deg, rgb(53 201 255 / 13%), transparent 56%),
            rgb(3 15 27 / 94%);
    }

    .cart-currency--vote strong {
        color: var(--arcane-400);
        text-shadow: 0 0 14px rgb(53 201 255 / 22%);
    }

    .cart-currency--donate {
        color: #d8a5ff;
        background:
            linear-gradient(270deg, rgb(179 92 255 / 14%), transparent 56%),
            rgb(3 15 27 / 94%);
    }

    .cart-currency--donate strong {
        color: #d8a5ff;
        text-shadow: 0 0 14px rgb(179 92 255 / 24%);
    }

    .checkout-character-badge {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 12rem;
        align-items: center;
        gap: 1rem;
        overflow: hidden;
        padding: 1.4rem;
        background:
            linear-gradient(90deg, rgb(3 15 27 / 98%) 0%, rgb(3 15 27 / 82%) 58%, transparent),
            rgb(3 15 27 / 94%);
        color: var(--ice-50);
        text-decoration: none;
    }

    .checkout-character-badge--portrait {
        min-height: clamp(16rem, 32vw, 22rem);
        justify-content: flex-end;
        padding-left: 54%;
        background:
            linear-gradient(270deg, rgb(3 15 27 / 98%) 0%, rgb(3 15 27 / 82%) 58%, transparent),
            rgb(3 15 27 / 94%);
    }

    .checkout-character-badge--alliance {
        box-shadow: inset 3px 0 rgb(53 201 255 / 58%);
    }

    .checkout-character-badge--horde {
        box-shadow: inset 3px 0 rgb(244 107 75 / 64%);
    }

    .checkout-character-badge__portrait {
        position: absolute;
        z-index: 0;
        top: 0;
        left: 0;
        width: 55%;
        height: 100%;
        object-fit: contain;
        object-position: left bottom;
        opacity: 0.5;
        filter: saturate(0.86) contrast(1.05);
        mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 84%) 58%, transparent 100%);
        pointer-events: none;
    }

    .checkout-character-badge > :not(.checkout-character-badge__portrait) {
        position: relative;
        z-index: 1;
    }

    .checkout-character-badge .character-level {
        flex: 0 0 auto;
    }

    .checkout-character-badge__identity {
        display: grid;
        min-width: 0;
        gap: 0.25rem;
    }

    .checkout-character-badge--portrait .checkout-character-badge__identity {
        text-align: right;
    }

    .checkout-character-badge__identity strong {
        overflow: hidden;
        font-family: var(--font-display);
        font-size: clamp(1.55rem, 3vw, 2.25rem);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .checkout-character-badge__icons {
        display: flex;
        align-items: center;
        gap: 0.32rem;
    }

    .checkout-character-badge--portrait .checkout-character-badge__icons {
        justify-content: flex-end;
    }

    .checkout-character-badge__icons .game-icon--faction {
        width: 26px;
        height: 26px;
    }

    .checkout-character-badge__guild {
        overflow: hidden;
        color: var(--text-muted);
        font-size: 0.72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .checkout-character-badge .selection-badge {
        align-self: flex-start;
        margin-left: auto;
    }

    .checkout-character-badge--portrait .selection-badge {
        position: absolute;
        top: 1.4rem;
        right: 1.4rem;
        margin-left: 0;
        text-align: right;
    }

    .checkout-character-badge--empty {
        min-height: 8rem;
        box-shadow: inset 3px 0 rgb(123 199 242 / 26%);
    }

    .checkout-review-character {
        width: 100%;
        margin: var(--space-4) auto;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        text-align: left;
    }

    .checkout-review-character .cart-currency {
        border-top-color: var(--border);
    }

    .feature-content .checkout-review-table {
        min-width: 520px;
    }

    .checkout-review-table .cart-item-name {
        width: 58%;
    }

    .checkout-delivery-notice {
        margin: var(--space-4) 0;
        color: var(--text-muted);
        text-align: right;
    }

    .checkout-confirmation {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        max-width: 100% !important;
        gap: var(--space-4);
        margin: 0 !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .checkout-confirmation .legal-statement {
        min-width: 0;
    }

    .checkout-confirmation .legal-statement h2 {
        font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    }

    .checkout-confirmation .consent-check input {
        flex-shrink: 0;
    }

    .checkout-confirmation-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: var(--space-3);
    }

    .checkout-purchase-group {
        display: grid;
        gap: var(--space-3);
        width: 20rem;
        max-width: 100%;
        min-width: 0;
    }

    .feature-content button.checkout-purchase-button[type="submit"] {
        display: inline-flex;
        min-width: min(100%, 20rem);
        min-height: 3.4rem;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        border: 1px solid rgb(255 215 128 / 68%);
        border-radius: var(--radius-sm);
        background:
            linear-gradient(115deg, rgb(255 233 175 / 18%), transparent 42%),
            linear-gradient(135deg, #7d3518, #b96724 52%, #d2a342);
        box-shadow: 0 0 0 1px rgb(255 196 91 / 10%), 0 14px 34px rgb(0 0 0 / 34%);
        color: #fff7dc;
        font-weight: 900;
        letter-spacing: 0.025em;
        text-shadow: 0 1px 1px rgb(66 24 5 / 68%);
    }

    .checkout-purchase-button svg {
        width: 1.25rem;
        height: 1.25rem;
        color: #ffe09a;
    }

    .feature-content button.checkout-purchase-button[type="submit"]:hover,
    .feature-content button.checkout-purchase-button[type="submit"]:focus-visible {
        border-color: #ffe09a;
        background:
            linear-gradient(115deg, rgb(255 240 200 / 22%), transparent 42%),
            linear-gradient(135deg, #943f1b, #cf792c 52%, #e0b24e);
        box-shadow: 0 0 24px rgb(255 174 61 / 24%), 0 16px 38px rgb(0 0 0 / 38%);
        transform: translateY(-1px);
    }

    .cart-table-scroll {
        max-width: 100%;
        overflow-x: auto;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(2 12 22 / 78%);
        box-shadow: 0 16px 44px rgb(0 0 0 / 28%);
        scrollbar-color: var(--arcane-600) rgb(2 10 18 / 70%);
    }

    .cart-table-scroll:focus-visible {
        outline: 2px solid var(--arcane-400);
        outline-offset: 3px;
    }

    .feature-content .cart-table {
        min-width: 640px;
        margin: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .feature-content .cart-table thead th {
        padding: 0.72rem 0.62rem;
        color: var(--ice-100);
        font-size: 0.62rem;
        letter-spacing: 0.035em;
        white-space: nowrap;
    }

    .cart-column-heading {
        display: inline-grid;
        width: 2rem;
        height: 2rem;
        place-items: center;
        border: 1px solid rgb(123 199 242 / 16%);
        border-radius: 999px;
        background: rgb(4 19 33 / 68%);
        color: var(--ice-100);
    }

    .cart-table thead th:not(:first-child) .cart-column-heading {
        margin-inline: 0;
    }

    .feature-content .cart-table thead th:not(:first-child) {
        text-align: right;
    }

    .feature-content .cart-table tbody td:not(:first-child),
    .feature-content .cart-table tfoot td {
        text-align: right !important;
    }

    .cart-column-heading svg {
        width: 1.05rem;
        height: 1.05rem;
    }

    .feature-content .cart-table th:first-child,
    .feature-content .cart-table td:first-child {
        padding-left: 1.05rem;
    }

    .feature-content .cart-table th:last-child,
    .feature-content .cart-table td:last-child {
        padding-right: 1.05rem;
    }

    .cart-item-name {
        width: 48%;
    }

    .cart-item-warning {
        display: block;
        margin-top: 0.35rem;
        color: #ff9d8a;
        font-size: 0.68rem;
        font-weight: 650;
    }

    .feature-content .cart-table .cart-item-row--incompatible td {
        background: rgb(91 27 25 / 22%);
        box-shadow: inset 0 1px rgb(244 107 75 / 12%), inset 0 -1px rgb(244 107 75 / 12%);
    }

    .cart-price {
        font-weight: 800;
    }

    .cart-price--vote {
        color: var(--arcane-400) !important;
        text-shadow: 0 0 14px rgb(53 201 255 / 22%);
    }

    .cart-price--donate {
        color: #d8a5ff !important;
        text-shadow: 0 0 14px rgb(179 92 255 / 24%);
    }

    .cart-actions-cell {
        width: 5.25rem;
    }

    .cart-item-controls {
        display: flex;
        gap: 0.35rem;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
    }

    .feature-content button.cart-quantity-button[type="submit"] {
        display: inline-grid;
        width: 2rem;
        min-width: 2rem;
        height: 2rem;
        min-height: 2rem;
        padding: 0;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(9 31 49 / 90%);
        color: var(--ice-100);
        font-size: 1rem;
        line-height: 1;
    }

    .cart-quantity-button svg {
        width: 0.9rem;
        height: 0.9rem;
    }

    .feature-content button.cart-quantity-button[type="submit"]:hover,
    .feature-content button.cart-quantity-button[type="submit"]:focus-visible {
        border-color: var(--arcane-400);
        color: var(--arcane-400);
        box-shadow: 0 0 14px rgb(53 201 255 / 14%);
    }

    .feature-content button.cart-quantity-button[type="submit"]:disabled {
        border-color: rgb(123 199 242 / 10%);
        background: rgb(5 18 29 / 72%);
        box-shadow: none;
        color: rgb(156 184 201 / 38%);
        cursor: not-allowed;
    }

    .feature-content .cart-table tfoot th,
    .feature-content .cart-table tfoot td {
        background: rgb(5 22 37 / 80%) !important;
    }

    .feature-content .cart-table tfoot th {
        text-align: right;
    }

    .cart-tax-row small {
        display: block;
        margin-top: 0.2rem;
        color: var(--text-muted);
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
    }

    .cart-tax-value {
        color: var(--success-400) !important;
        font-weight: 900;
    }

    .feature-content .cart-total-row th,
    .feature-content .cart-total-row td {
        border-bottom: 0;
        background:
            linear-gradient(90deg, rgb(53 201 255 / 7%), rgb(228 202 136 / 6%)),
            rgb(4 18 31 / 92%) !important;
        font-size: 1rem;
        font-weight: 900;
    }

    .cart-total-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
    }

    .feature-content form.cart-clear-form {
        width: auto;
        max-width: none;
        margin: 0;
    }

    .feature-content button.cart-clear-button[type="submit"] {
        border-color: rgb(244 107 75 / 34%);
        color: var(--ember-300);
    }

    .feature-content button.cart-clear-button[type="submit"]:hover,
    .feature-content button.cart-clear-button[type="submit"]:focus-visible {
        border-color: var(--ember-400);
        color: var(--ember-300);
        box-shadow: 0 0 14px rgb(244 107 75 / 18%);
    }

    .cart-footer-actions {
        display: flex;
        gap: var(--space-3);
        align-items: center;
        justify-content: space-between;
        margin-top: var(--space-5);
    }

    .checkout-action-bar {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        margin-top: var(--space-5);
    }

    .checkout-action-bar__primary {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: var(--space-3);
        margin-left: auto;
    }

    .checkout-continue-shopping {
        justify-content: flex-start;
    }

    .cart-footer-actions form {
        margin: 0;
    }

    .button.cart-checkout-button {
        min-width: min(100%, 18rem);
        justify-content: space-between;
        border-color: rgb(228 202 136 / 48%);
        background:
            linear-gradient(115deg, rgb(53 201 255 / 20%), transparent 45%),
            linear-gradient(135deg, #0f7fb2, #176493 62%, #735d28);
        box-shadow: 0 0 0 1px rgb(53 201 255 / 10%), 0 12px 32px rgb(0 0 0 / 32%);
        font-weight: 900;
        letter-spacing: 0.025em;
    }

    .button.cart-checkout-button:hover,
    .button.cart-checkout-button:focus-visible {
        box-shadow: 0 0 24px rgb(53 201 255 / 22%), 0 14px 36px rgb(0 0 0 / 38%);
        transform: translateY(-1px);
    }

    .button.cart-checkout-button.is-disabled {
        border-color: rgb(123 199 242 / 20%);
        background: rgb(8 25 39 / 82%);
        box-shadow: none;
        color: var(--text-muted);
        cursor: not-allowed;
        transform: none;
    }

    .checkout-realm-notice {
        margin: var(--space-4) 0 0;
        padding: 0.85rem 1rem;
        border: 1px solid rgb(244 107 75 / 36%);
        border-radius: var(--radius-sm);
        background: rgb(91 27 25 / 28%);
        color: #ffd2c7;
    }

    .shipment {
        display: grid;
        gap: var(--space-5);
        width: min(100%, 68rem);
        margin-inline: auto;
    }

    .shipment-gratitude {
        position: relative;
        overflow: hidden;
        padding: clamp(1.5rem, 4vw, 3rem);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(circle at 88% 10%, rgb(53 201 255 / 18%), transparent 34%),
            linear-gradient(135deg, rgb(4 23 39 / 96%), rgb(8 35 54 / 78%));
        box-shadow: var(--shadow-lg), inset 0 1px rgb(255 255 255 / 5%);
    }

    .shipment--donate .shipment-gratitude {
        border-color: rgb(228 202 136 / 42%);
        background:
            radial-gradient(circle at 88% 10%, rgb(228 202 136 / 20%), transparent 34%),
            linear-gradient(135deg, rgb(24 18 29 / 96%), rgb(52 35 48 / 80%));
    }

    .shipment-gratitude h2 {
        max-width: 42rem;
        margin: 0.35rem 0 0.8rem;
        font-size: clamp(2rem, 5vw, 3.8rem);
    }

    .shipment-gratitude > p:last-child {
        max-width: 46rem;
        margin: 0;
        color: var(--ice-100);
        font-size: clamp(1rem, 2vw, 1.15rem);
        line-height: 1.75;
    }

    .shipment-status {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.38rem 0.68rem;
        border: 1px solid rgb(72 220 167 / 42%);
        border-radius: 999px;
        background: rgb(8 63 50 / 58%);
        color: #8cf1ca;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .shipment-status > span {
        width: 0.48rem;
        height: 0.48rem;
        border-radius: 50%;
        background: currentcolor;
        box-shadow: 0 0 12px currentcolor;
    }

    .shipment--pending .shipment-status {
        border-color: rgb(255 199 104 / 42%);
        background: rgb(84 53 18 / 56%);
        color: #ffd089;
    }

    .shipment-review-notice {
        display: grid;
        gap: 0.3rem;
        padding: 1rem 1.2rem;
        border: 1px solid rgb(255 199 104 / 38%);
        border-radius: var(--radius-md);
        background: rgb(80 50 17 / 30%);
        color: #ffe0aa;
    }

    .shipment-review-notice span {
        color: var(--text-muted);
    }

    .shipment-receipt-scroll {
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 16 28 / 94%);
    }

    .shipment-receipt {
        width: 100%;
        min-width: 48rem;
        table-layout: fixed;
        border-spacing: 0;
        border-collapse: separate;
        background: transparent;
    }

    .shipment-receipt__reference {
        width: 34%;
    }

    .shipment-receipt__currency {
        width: 23%;
    }

    .shipment-receipt__total {
        width: 13%;
    }

    .shipment-receipt__time {
        width: 30%;
    }

    .feature-content .shipment-receipt th,
    .feature-content .shipment-receipt td {
        border-right: 1px solid var(--border);
        text-align: right !important;
    }

    .shipment-receipt th:last-child,
    .shipment-receipt td:last-child {
        border-right: 0;
    }

    .shipment-receipt th {
        padding: 0.85rem 1rem 0.22rem;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .shipment-receipt th svg {
        display: block;
        width: 1.25rem;
        height: 1.25rem;
        margin-left: auto;
        color: var(--arcane-400);
        filter: drop-shadow(0 0 7px rgb(53 201 255 / 28%));
    }

    .shipment--donate .shipment-receipt th svg {
        color: var(--gold-300);
        filter: drop-shadow(0 0 7px rgb(228 202 136 / 26%));
    }

    .shipment-receipt td {
        padding: 0.18rem 1rem 0.9rem;
        color: var(--ice-50);
        font-size: 0.88rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .shipment-receipt__reference-value {
        font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
        font-size: 0.74rem !important;
        letter-spacing: -0.025em;
    }

    .shipment-recipient,
    .shipment-contents {
        display: grid;
        gap: var(--space-3);
    }

    .shipment-recipient > h3,
    .shipment-contents h3 {
        margin: 0;
    }

    .shipment-recipient .checkout-character-badge {
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
    }

    .shipment-recipient-fallback {
        display: grid;
        gap: 0.35rem;
        padding: 1.4rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(3 16 28 / 90%);
    }

    .shipment-recipient-fallback span,
    .shipment-recipient-fallback small {
        color: var(--text-muted);
    }

    .shipment-recipient-fallback strong {
        font-family: var(--font-display);
        font-size: 2rem;
    }

    .shipment-items {
        display: grid;
        gap: 0.7rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .shipment-contents {
        overflow: hidden;
        gap: 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 94% 0%, rgb(53 201 255 / 8%), transparent 28%),
            rgb(3 16 28 / 72%);
    }

    .shipment-contents .section-heading {
        min-height: 3.5rem;
        margin: 0;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--border);
        background: rgb(8 31 48 / 68%);
    }

    .shipment-contents .section-heading h3 {
        color: var(--ice-100);
        font-family: var(--font-ui);
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .shipment-items-count {
        display: grid;
        min-width: 1.8rem;
        min-height: 1.8rem;
        place-items: center;
        border: 1px solid var(--border-bright);
        border-radius: 999px;
        color: var(--arcane-300);
        font-size: 0.75rem;
        font-weight: 900;
    }

    .shipment-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 0.9rem;
        padding: 0.85rem 1rem;
        border: 0;
        border-bottom: 1px solid var(--border);
        background: rgb(3 16 28 / 78%);
    }

    .shipment-item:last-child {
        border-bottom: 0;
    }

    .shipment-item--delivered {
        border-color: rgb(72 220 167 / 28%);
    }

    .shipment-item--pending {
        border-color: rgb(255 199 104 / 34%);
    }

    .shipment-item__identity {
        display: grid;
        min-width: 0;
        gap: 0.2rem;
    }

    .shipment-item__identity small,
    .shipment-item__status {
        color: var(--text-muted);
        font-size: 0.75rem;
    }

    .shipment-item--delivered .shipment-item__status {
        color: #8cf1ca;
    }

    .shipment-item--pending .shipment-item__status {
        color: #ffd089;
    }

    .shipment-item__cost {
        font-weight: 900;
        white-space: nowrap;
    }

    .shipment-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: var(--space-3);
    }

    .team-directory {
        width: min(100%, 48rem);
        margin-inline: auto;
    }

    .team-directory__rule {
        width: 9.375rem;
        margin-inline: 0 auto;
    }

    .skip-link {
        position: fixed;
        z-index: 1000;
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.65rem 1rem;
        border-radius: var(--radius-sm);
        background: var(--arcane-500);
        color: white;
        transform: translateY(-160%);
    }

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

    .brand,
    .account-control,
    .realm-control {
        display: inline-flex;
        align-items: center;
        color: var(--text);
        text-decoration: none;
    }

    .brand {
        position: absolute;
        z-index: 4;
        top: 24px;
        left: 0;
        display: grid;
        width: 142px;
        height: 142px;
        flex: 0 0 auto;
        overflow: hidden;
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-md);
        background: rgb(3 18 30 / 98%);
        place-items: center;
    }

    .brand:focus-visible {
        outline: 2px solid var(--arcane-400);
        outline-offset: 3px;
    }

    .brand picture {
        position: relative;
        z-index: 1;
        display: block;
    }

    .brand-logo {
        display: block;
        width: 215px;
        height: auto;
    }

    .brand-logo--monogram {
        width: 128px;
        height: 128px;
        object-fit: contain;
    }

    .realm-control {
        gap: 0.65rem;
        min-height: 48px;
        padding: 0.35rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(11 33 52 / 65%);
        cursor: pointer;
    }

    .realm-control > svg {
        width: 14px;
        height: 14px;
    }

    .realm-control small,
    .account-control small {
        display: block;
        color: var(--text-muted);
        font-size: 0.68rem;
        line-height: 1;
    }

    .realm-control strong,
    .account-control strong {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.84rem;
        line-height: 1;
    }

    .status-orb {
        display: inline-block;
        flex: 0 0 auto;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--gold-300);
        box-shadow: 0 0 0 4px rgb(228 202 136 / 10%), 0 0 14px var(--gold-300);
    }

    .status-orb[data-status="online"] {
        background: var(--success-400);
        box-shadow: 0 0 0 4px rgb(101 229 176 / 10%), 0 0 14px var(--success-400);
    }

    .status-orb[data-status="full"] {
        background: var(--gold-300);
    }

    .status-orb[data-status="offline"] {
        background: var(--danger-400);
        box-shadow: 0 0 0 4px rgb(255 119 124 / 10%), 0 0 14px var(--danger-400);
    }

    .realm-popover {
        position: absolute;
        z-index: 10;
        top: calc(100% + 0.75rem);
        left: 0;
        width: min(320px, calc(100vw - 2rem));
        padding: var(--space-4);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-md);
        background: var(--glass-solid);
        box-shadow: var(--shadow-panel);
    }

    .realm-popover__heading {
        display: flex;
        justify-content: space-between;
        gap: var(--space-3);
        padding-bottom: var(--space-3);
        border-bottom: 1px solid var(--border);
    }

    .realm-popover__heading strong {
        color: var(--gold-300);
        font-size: 0.8rem;
    }

    .realm-popover__heading strong[data-status="online"] {
        color: var(--success-400);
    }

    .realm-popover__heading strong[data-status="offline"] {
        color: var(--danger-400);
    }

    .realm-popover dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
        margin-block: var(--space-4);
    }

    .realm-popover dl > div {
        padding: var(--space-3);
        border-radius: var(--radius-sm);
        background: rgb(255 255 255 / 4%);
    }

    .realm-popover dt {
        color: var(--text-muted);
        font-size: 0.7rem;
    }

    .realm-popover dd {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .language-control {
        display: flex;
        padding: 0.2rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(5 18 31 / 80%);
    }

    .language-control a {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border-radius: 50%;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 800;
        text-decoration: none;
    }

    .language-control a[aria-current="true"] {
        background: var(--ice-100);
        color: var(--ink-900);
    }

    .account-control {
        gap: 0.6rem;
    }

    .avatar {
        display: grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 1px solid var(--gold-400);
        border-radius: 50%;
        background: linear-gradient(145deg, #274763, #102235);
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 1.05rem;
    }

    .cart-control {
        position: relative;
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: rgb(11 33 52 / 65%);
        text-decoration: none;
    }

    .cart-control svg {
        width: 19px;
        height: 19px;
    }

    .cart-control span {
        position: absolute;
        top: -4px;
        right: -4px;
        display: grid;
        min-width: 19px;
        height: 19px;
        place-items: center;
        padding-inline: 4px;
        border-radius: 999px;
        background: var(--arcane-500);
        color: white;
        font-size: 0.65rem;
        font-weight: 800;
    }

    .button,
    button.button,
    input[type="submit"],
    input[type="button"],
    .feature-content button[type="submit"] {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.65rem 1.1rem;
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-sm);
        background: rgb(18 51 75 / 82%);
        color: var(--ice-50);
        font-weight: 750;
        line-height: 1;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .button:hover,
    input[type="submit"]:hover,
    .feature-content button[type="submit"]:hover {
        border-color: var(--arcane-400);
        color: white;
        transform: translateY(-1px);
    }

    .button--primary {
        border-color: rgb(75 213 255 / 78%);
        background: linear-gradient(135deg, var(--arcane-600), var(--arcane-500));
        box-shadow: 0 10px 28px rgb(10 168 236 / 22%);
    }

    .button--ghost {
        background: transparent;
    }

    .button--glass {
        background: rgb(7 23 38 / 52%);
        backdrop-filter: blur(12px);
    }

    .button--large {
        min-height: 52px;
        padding-inline: 1.45rem;
    }

    .header-login svg,
    .header-register svg {
        display: none;
        width: 19px;
        height: 19px;
    }

    .mobile-menu-button,
    .navigation-header {
        display: none;
    }

    .nav-list > li {
        position: relative;
    }

    .nav-list > li > a,
    .nav-list > li > button {
        display: flex;
        min-height: 48px;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0.85rem;
        border: 0;
        border-bottom: 2px solid transparent;
        background: transparent;
        color: var(--text-soft);
        font-size: 0.76rem;
        font-weight: 750;
        letter-spacing: 0.035em;
        text-decoration: none;
        text-transform: uppercase;
        cursor: pointer;
    }

    .nav-list > li > a:hover,
    .nav-list > li > a[aria-current="page"],
    .nav-list > li > button:hover,
    .nav-list > li > button[aria-expanded="true"] {
        border-bottom-color: var(--arcane-400);
        color: white;
    }

    .nav-list svg {
        width: 17px;
        height: 17px;
        color: var(--arcane-400);
    }

    .nav-list button svg:last-child {
        width: 11px;
        height: 11px;
        margin-left: 0.15rem;
        transition: transform var(--ease);
    }

    .nav-list button[aria-expanded="true"] svg:last-child {
        transform: rotate(180deg);
    }

    .nav-menu {
        position: absolute;
        z-index: 12;
        top: calc(100% - 1px);
        left: 50%;
        display: none;
        width: 240px;
        max-height: calc(100vh - 90px);
        padding: 0.5rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-md);
        background: rgb(7 21 34 / 97%);
        box-shadow: var(--shadow-panel);
        transform: translateX(-50%);
    }

    .nav-group:focus-within .nav-menu,
    .nav-group:hover .nav-menu,
    .nav-group > button[aria-expanded="true"] + .nav-menu {
        display: grid;
    }

    .nav-menu a,
    .nav-menu form button {
        display: block;
        width: 100%;
        padding: 0.7rem 0.8rem;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: var(--text-soft);
        font-size: 0.85rem;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .nav-menu__heading {
        display: block;
        margin: 0.45rem 0.8rem 0.2rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--border);
        color: var(--arcane-300);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .nav-menu__heading:first-child {
        margin-top: 0;
        padding-top: 0.25rem;
        border-top: 0;
    }

    .nav-menu a:hover,
    .nav-menu form button:hover {
        background: rgb(53 201 255 / 9%);
        color: var(--ice-50);
    }

    .hero {
        position: relative;
        min-height: min(680px, calc(100vh - 124px));
        overflow: hidden;
        border-bottom: 1px solid var(--border);
        isolation: isolate;
    }

    .hero__art,
    .hero__veil {
        position: absolute;
        z-index: -2;
        inset: 0;
    }

    .hero__art {
        background-image: var(--route-art, url("./images/hero.webp"));
        background-position: var(--route-art-x, 52%) var(--route-art-y, 50%);
        background-size: cover;
        animation: hero-breathe 18s ease-in-out infinite alternate;
    }

    .hero__veil {
        z-index: -1;
        background:
            linear-gradient(90deg, rgb(2 9 17 / 80%) 0%, rgb(2 9 17 / 48%) 42%, rgb(2 9 17 / 5%) 76%),
            linear-gradient(0deg, var(--ink-900) 0%, transparent 40%),
            linear-gradient(180deg, rgb(2 9 17 / 25%), transparent 30%);
    }

    @keyframes hero-breathe {
        from { transform: scale(1); }
        to { transform: scale(1.025); }
    }

    .hero__content {
        display: flex;
        min-height: inherit;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-block: var(--space-8);
    }

    .eyebrow {
        margin-bottom: 0.65rem;
        color: var(--arcane-400);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.22em;
        text-transform: uppercase;
    }

    .hero h1 {
        max-width: 720px;
        text-shadow: 0 4px 30px rgb(0 0 0 / 65%);
    }

    .hero__content > p:not(.eyebrow) {
        max-width: 590px;
        margin-top: var(--space-4);
        color: var(--ice-200);
        font-size: clamp(1rem, 1.8vw, 1.25rem);
    }

    .hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
        margin-top: var(--space-6);
    }

    .hero__status {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        margin-top: var(--space-6);
        padding: 0.55rem 0.8rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(3 15 26 / 52%);
        color: var(--text-soft);
        font-size: 0.8rem;
        text-decoration: none;
        backdrop-filter: blur(12px);
    }

    .hero__status strong {
        color: white;
        font-size: 1rem;
    }

    .page-banner {
        position: relative;
        overflow: hidden;
        padding-block: clamp(3rem, 8vw, 6rem);
        border-bottom: 1px solid var(--border);
        background:
            linear-gradient(90deg, rgb(3 12 21 / 68%), rgb(3 12 21 / 18%)),
            var(--route-art, url("./images/hero.webp")) var(--route-art-x, 60%) var(--route-art-y, 44%) / cover;
    }

    .page-banner::after {
        position: absolute;
        inset: auto 0 0;
        height: 38%;
        background: linear-gradient(transparent, rgb(3 12 21 / 64%));
        content: "";
        pointer-events: none;
    }

    .page-banner .shell {
        position: relative;
        z-index: 1;
    }

    .page-banner h1 {
        max-width: 900px;
        font-size: clamp(2.2rem, 4.5vw, 4rem);
    }

    .page-banner .shell > p:last-child {
        max-width: 700px;
        margin-top: var(--space-3);
        color: var(--ice-200);
    }

    .breadcrumbs {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: var(--space-5);
        color: var(--text-muted);
        font-size: 0.75rem;
    }

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

    .campaigns {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
        gap: var(--space-4);
        margin-top: -5rem;
        margin-bottom: var(--space-6);
    }

    .campaign-card {
        position: relative;
        min-height: 170px;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--glass-solid);
        box-shadow: var(--shadow-panel);
        color: white;
        text-decoration: none;
    }

    .campaign-card img {
        width: 100%;
        height: 100%;
        min-height: 170px;
        object-fit: cover;
        transition: transform 500ms ease;
    }

    .campaign-card img {
        aspect-ratio: 3 / 1;
        object-fit: cover;
    }

    .campaign-card::after {
        position: absolute;
        inset: 0;
        background: linear-gradient(transparent 30%, rgb(3 11 19 / 94%));
        content: "";
    }

    .campaign-card span {
        position: absolute;
        z-index: 1;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
    }

    .campaign-card strong,
    .campaign-card small {
        display: block;
    }

    .campaign-card strong {
        font-family: var(--font-display);
        font-size: 1.15rem;
    }

    .campaign-card small {
        color: var(--text-soft);
    }

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

    .sidebar-card {
        padding: var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--glass);
        box-shadow: 0 16px 40px rgb(0 0 0 / 20%);
    }

    .sidebar-card h2 {
        margin-bottom: var(--space-4);
        color: var(--gold-300);
        font-size: 1.15rem;
    }

    .footer-social {
        position: relative;
        min-width: min(100%, 620px);
        overflow: hidden;
        padding: 1.1rem 1.15rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            linear-gradient(90deg, rgb(5 18 31 / 18%) 0, rgb(5 18 31 / 92%) 42%),
            url("./images/ornaments/class-06-footer.webp") left 0.35rem center / auto 88% no-repeat,
            rgb(5 18 31 / 88%);
    }

    .footer-social > p {
        margin-left: clamp(6rem, 12vw, 8.25rem);
        margin-bottom: 0.75rem;
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 1rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .footer-social__links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-left: clamp(6rem, 12vw, 8.25rem);
    }

    .footer-social__links a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(11 34 54 / 74%);
        color: var(--ice-100);
        font-size: 0.78rem;
        font-weight: 700;
        text-decoration: none;
    }

    .footer-social__links a:hover,
    .footer-social__links a:focus-visible {
        border-color: var(--border-bright);
        background: rgb(18 52 78 / 90%);
        color: var(--arcane-400);
    }

    .footer-social__links svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .knowledge-grid,
    .knowledge-categories {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: var(--space-5);
    }

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

    .knowledge-group__header h2 {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .knowledge-group,
    .knowledge-category,
    .knowledge-detail {
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 100% 0, rgb(47 177 232 / 8%), transparent 15rem),
            rgb(4 17 30 / 72%);
        box-shadow: inset 0 1px rgb(255 255 255 / 3%);
    }

    .knowledge-group__header,
    .knowledge-detail__header {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-5);
        border-bottom: 1px solid var(--border);
    }

    .knowledge-group__header h2,
    .knowledge-detail__header h2,
    .knowledge-category h2 {
        margin: 0;
        color: var(--ice-50);
        font-size: clamp(1.35rem, 3vw, 2rem);
    }

    .knowledge-group__seal {
        width: 52px;
        min-width: 52px;
        aspect-ratio: 1;
        border-radius: 50%;
        background: url("./images/ornaments/frost-seal.webp") center / 86px no-repeat;
        filter: drop-shadow(0 0 13px rgb(53 201 255 / 25%));
    }

    .knowledge-list {
        display: grid;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .knowledge-list li {
        position: relative;
        display: flex;
        min-height: 50px;
        align-items: center;
        gap: var(--space-3);
        padding: 0.65rem 1rem 0.65rem 2.3rem;
        border-bottom: 1px solid var(--border);
    }

    .knowledge-list li:last-child {
        border-bottom: 0;
    }

    .knowledge-list li::before {
        position: absolute;
        left: 0.85rem;
        width: 18px;
        aspect-ratio: 1;
        background: url("./images/ornaments/arcane-dial.webp") center / 32px no-repeat;
        content: "";
        opacity: 0.78;
    }

    .knowledge-list a {
        color: var(--ice-100);
        font-weight: 650;
        text-decoration: none;
    }

    .knowledge-list__recent {
        display: inline-grid;
        width: 1.5rem;
        height: 1.5rem;
        flex: 0 0 1.5rem;
        place-items: center;
        border: 1px solid rgb(228 202 136 / 28%);
        border-radius: 50%;
        color: var(--gold-300);
        font-size: 0.68rem;
    }

    .knowledge-category {
        display: grid;
        grid-template-rows: minmax(180px, 0.8fr) auto;
    }

    .knowledge-category__media {
        overflow: hidden;
        border-bottom: 1px solid var(--border);
    }

    .knowledge-category__media img,
    .knowledge-detail__image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .knowledge-category__media img {
        transition: transform 600ms ease;
    }

    .knowledge-category__media--placeholder,
    .knowledge-detail__image--placeholder,
    .news-card__media--placeholder {
        background:
            radial-gradient(circle at 50% 42%, rgb(71 205 255 / 24%), transparent 28%),
            url("images/ornaments/arcane-dial.webp") center / 160px no-repeat,
            linear-gradient(145deg, #071526, #0c2942);
    }

    .knowledge-category__media--placeholder {
        display: block;
        min-height: 160px;
    }

    .knowledge-category:hover .knowledge-category__media img {
        transform: scale(1.035);
    }

    .knowledge-category__body {
        position: relative;
        padding: var(--space-5);
    }

    .knowledge-category__body .knowledge-group__seal {
        position: absolute;
        top: -32px;
        right: var(--space-4);
        border: 1px solid var(--border);
        background-color: var(--ink-900);
    }

    .knowledge-category h2 a {
        color: inherit;
        text-decoration: none;
    }

    .knowledge-category .prose {
        margin-top: var(--space-3);
    }

    .knowledge-detail__header {
        align-items: flex-start;
    }

    .knowledge-detail__header .prose {
        margin-top: var(--space-2);
    }

    .knowledge-detail__image {
        max-height: 360px;
        border-bottom: 1px solid var(--border);
    }

    .article-meta__seal {
        display: inline-block;
        width: 1.15rem;
        height: 1.15rem;
        margin-right: 0.25rem;
        vertical-align: -0.2rem;
        background: url("./images/ornaments/arcane-dial.webp") center / 28px no-repeat;
    }

    .game-token {
        display: inline-flex;
        min-height: 30px;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.55rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(12 39 61 / 74%);
        color: var(--ice-100);
        font-size: 0.72rem;
        font-weight: 750;
        line-height: 1.15;
        white-space: nowrap;
    }

    .game-token--faction {
        border-color: rgb(228 202 136 / 28%);
        background: linear-gradient(135deg, rgb(36 91 129 / 72%), rgb(87 48 42 / 45%));
        color: var(--gold-300);
    }

    .game-token--large {
        min-height: 40px;
        padding-inline: 0.9rem;
        font-size: 0.85rem;
    }

    .armory-emblem,
    .feature-ornament {
        width: 128px;
        max-width: 42vw;
        aspect-ratio: 1;
        margin: 0 auto var(--space-4);
        background: url("./images/ornaments/frost-seal.webp") center / contain no-repeat;
        filter: drop-shadow(0 0 24px rgb(53 201 255 / 18%));
    }

    .feature-ornament {
        width: 180px;
    }

    .feature-ornament--success {
        background-image: url("./images/ornaments/arcane-dial.webp");
    }

    .footer-grid nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: var(--space-4);
        padding: 1.1rem 1.15rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(5 18 31 / 88%);
    }

    .footer-grid nav a {
        color: var(--text-soft);
        font-size: 0.78rem;
        text-decoration: none;
    }

    .prose {
        color: var(--text-soft);
    }

    .prose > * + * {
        margin-top: 1em;
    }

    .prose h1,
    .prose h2,
    .prose h3,
    .prose h4 {
        margin-top: 1.5em;
        color: var(--ice-50);
    }

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

    .prose > :is(h1, h2, h3, h4, h5, h6):first-child {
        margin-top: 0;
    }

    .prose img,
    .feature-content img {
        height: auto;
        border-radius: var(--radius-sm);
    }

    .prose iframe {
        width: 100%;
        border: 0;
    }

    .page-introduction:not(:empty) {
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-6);
        border-bottom: 1px solid var(--border);
    }

    .feature-content {
        min-width: 0;
        color: var(--text-soft);
    }

    .feature-content::after {
        display: table;
        clear: both;
        content: "";
    }

    .feature-content form {
        max-width: 760px;
        margin-inline: 0;
        text-align: left;
    }

    .form-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
        gap: clamp(var(--space-6), 5vw, 4rem);
        align-items: start;
        width: 100%;
        text-align: left;
    }

    .form-layout--wide {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.68fr);
    }

    .form-layout__content {
        min-width: 0;
        text-align: left;
    }

    .form-layout__content form,
    .form-layout__content .show_form,
    .form-layout__content #register {
        width: 100% !important;
        max-width: 680px;
        margin-inline: 0;
        text-align: left;
    }

    .form-layout__content h2,
    .form-layout__content h3 {
        text-align: left;
    }

    .form-layout__art {
        position: sticky;
        top: calc(var(--header-height, 80px) + var(--space-6));
        min-height: 360px;
        margin: 0;
        overflow: hidden;
        border: 1px solid rgb(113 210 255 / 22%);
        border-radius: var(--radius-lg);
        background: rgb(1 8 16 / 76%);
        box-shadow:
            0 24px 70px rgb(0 0 0 / 44%),
            inset 0 0 36px rgb(53 201 255 / 5%);
        isolation: isolate;
    }

    .form-layout__art::after {
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: inherit;
        background:
            linear-gradient(180deg, rgb(1 8 16 / 5%), transparent 54%, rgb(1 8 16 / 24%)),
            radial-gradient(circle at 50% 42%, transparent 35%, rgb(1 8 16 / 20%) 100%);
        content: "";
        pointer-events: none;
    }

    .form-layout__art img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .feature-content label {
        display: inline-block;
        margin-bottom: 0.35rem;
        color: var(--ice-100);
        font-size: 0.85rem;
        font-weight: 700;
    }

    .feature-content input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"]),
    .feature-content select,
    .feature-content textarea {
        width: 100%;
        min-height: 46px;
        padding: 0.7rem 0.8rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        outline: none;
        background: rgb(2 12 22 / 72%);
        color: var(--ice-50);
        transition: border-color var(--ease), box-shadow var(--ease);
    }

    .feature-content input:focus,
    .feature-content select:focus,
    .feature-content textarea:focus {
        border-color: var(--arcane-400);
        box-shadow: 0 0 0 3px rgb(53 201 255 / 12%);
    }

    .feature-content textarea {
        min-height: 140px;
        resize: vertical;
    }

    .feature-content form p {
        margin-bottom: var(--space-4);
    }

    .feature-content table {
        width: 100% !important;
        max-width: 100%;
        margin-block: var(--space-4);
        border-spacing: 0;
        border-collapse: separate;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(4 15 26 / 52%);
        color: var(--text-soft);
    }

    .feature-content th,
    .feature-content td {
        height: auto !important;
        padding: 0.8rem 0.9rem;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        background: transparent !important;
        color: inherit;
        text-align: left;
        vertical-align: middle;
    }

    .feature-content th {
        background: rgb(38 94 127 / 20%) !important;
        color: var(--ice-100);
        font-size: 0.73rem;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .feature-content tr:last-child td {
        border-bottom: 0;
    }

    .feature-content tr:hover td {
        background: rgb(53 201 255 / 4%) !important;
    }

    .accept,
    .error,
    .attention,
    .notice,
    .success,
    .errormsg {
        margin-block: var(--space-4);
        padding: 0.85rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(53 201 255 / 8%);
        color: var(--ice-100);
    }

    .accept,
    .success {
        border-color: rgb(101 229 176 / 42%);
        background: rgb(101 229 176 / 8%);
    }

    .error,
    .errormsg {
        border-color: rgb(255 119 124 / 42%);
        background: rgb(255 119 124 / 8%);
        color: #ffc8ca;
    }

    .pagination {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin-top: var(--space-5);
    }

    .pagination a,
    .pagination strong {
        display: inline-grid;
        min-width: 40px;
        min-height: 40px;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        text-decoration: none;
    }

    .pagination__ellipsis {
        display: inline-grid;
        min-width: 24px;
        min-height: 40px;
        place-items: center;
        color: var(--text-muted);
    }
}

@layer features {
    .news-feed {
        display: grid;
        gap: var(--space-5);
    }

    .news-card {
        display: grid;
        grid-template-columns: minmax(190px, 34%) minmax(0, 1fr);
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(4 17 29 / 62%);
    }

    .news-card:not(:has(.news-card__media)) {
        grid-template-columns: 1fr;
    }

    .news-card__media {
        min-height: 260px;
        overflow: hidden;
    }

    .news-card__media img {
        width: 100%;
        height: 100%;
        border-radius: 0;
        object-fit: cover;
        transition: transform 500ms ease;
    }

    .news-card__media--placeholder {
        display: block;
        min-height: 220px;
    }

    .news-archive-note {
        margin: var(--space-6) auto 0;
        color: var(--text-muted);
        text-align: center;
    }

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

    .news-card__body {
        min-width: 0;
        padding: clamp(1rem, 3vw, 2rem);
    }

    .news-card__body h2 {
        font-size: clamp(1.35rem, 3vw, 2rem);
    }

    .news-card__body h2 a {
        color: var(--ice-50);
        text-decoration: none;
    }

    .news-card__lead {
        margin-top: 0.55rem;
        color: var(--ice-200);
    }

    .news-card__copy {
        display: -webkit-box;
        max-height: 7.8em;
        margin-top: var(--space-4);
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .news-card__link {
        display: inline-flex;
        margin-top: var(--space-4);
        align-items: center;
        gap: 0.4rem;
        color: var(--gold-300);
        font-size: 0.8rem;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
    }

    .news-card--featured {
        grid-template-columns: 1fr;
    }

    .news-card--featured .news-card__media {
        height: clamp(260px, 35vw, 420px);
    }

    .news-card--featured .news-card__body h2 {
        font-size: clamp(1.7rem, 4vw, 2.8rem);
    }

    .realm-dashboard {
        display: grid;
        gap: var(--space-5);
    }

    .realm-spotlight {
        position: relative;
        display: flex;
        min-height: 230px;
        align-items: flex-end;
        justify-content: space-between;
        gap: var(--space-5);
        overflow: hidden;
        padding: clamp(1.25rem, 4vw, 2.5rem);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-lg);
        background:
            linear-gradient(90deg, rgb(3 14 25 / 92%), rgb(3 14 25 / 26%)),
            var(--route-art, url("./images/hero.webp")) var(--route-art-x, 72%) var(--route-art-y, 48%) / cover;
        box-shadow: var(--shadow-glow);
    }

    .realm-spotlight::after {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: inset 0 0 80px rgb(13 177 235 / 10%);
        content: "";
        pointer-events: none;
    }

    .realm-spotlight > * {
        position: relative;
        z-index: 1;
    }

    .realm-spotlight h1 {
        font-size: clamp(2rem, 5vw, 3.7rem);
    }

    .realm-spotlight p:last-child {
        max-width: 550px;
        margin-top: var(--space-3);
        color: var(--ice-200);
    }

    .realm-state {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(2 12 21 / 72%);
        backdrop-filter: blur(14px);
    }

    .realm-state strong {
        color: var(--success-400);
        font-size: 0.8rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .realm-state--offline strong {
        color: var(--danger-400);
    }

    .stat-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .stat-card,
    .faction-card,
    .configuration-grid article {
        position: relative;
        overflow: hidden;
        padding: var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(21 51 74 / 56%), rgb(5 18 31 / 76%));
    }

    .stat-card > span,
    .faction-card > span,
    .configuration-grid article > span {
        display: block;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .stat-card > strong,
    .faction-card > strong {
        display: block;
        margin-block: 0.45rem 0.2rem;
        color: var(--ice-50);
        font-family: var(--font-display);
        font-size: clamp(1.65rem, 4vw, 2.6rem);
        font-weight: 400;
        line-height: 1;
    }

    .stat-card > small,
    .faction-card > small {
        color: var(--text-muted);
    }

    .stat-card--primary {
        border-color: var(--border-bright);
        box-shadow: var(--shadow-glow);
    }

    .population-meter {
        height: 5px;
        margin-top: var(--space-4);
        overflow: hidden;
        border-radius: 999px;
        background: rgb(255 255 255 / 7%);
    }

    .population-meter span {
        display: block;
        width: var(--population);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--arcane-600), var(--arcane-400));
        box-shadow: 0 0 14px var(--arcane-400);
        transition: width 600ms ease;
    }

    .faction-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .faction-card {
        min-height: 150px;
    }

    .faction-card--horde {
        border-color: rgb(255 114 94 / 25%);
        background: url("./images/banners/horde-realm-status.webp") 72% center / cover;
    }

    .faction-card--alliance {
        border-color: rgb(65 161 255 / 30%);
        background: url("./images/banners/alliance-realm-status.webp") 72% center / cover;
    }

    .faction-population {
        display: grid;
        gap: 0.75rem;
        margin: 0;
        padding: 1rem 1.15rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(15 39 58 / 72%), rgb(5 18 31 / 82%));
    }

    .faction-population figcaption {
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .faction-population__legend {
        display: flex;
        justify-content: space-between;
        gap: var(--space-4);
        font-size: 0.82rem;
        font-weight: 700;
    }

    .faction-population__legend strong {
        margin-left: 0.3rem;
        color: var(--ice-50);
    }

    .faction-population__horde {
        color: #ff8b7d;
    }

    .faction-population__alliance {
        color: #75bdff;
        text-align: right;
    }

    .faction-population__bar {
        display: flex;
        height: 10px;
        overflow: hidden;
        border-radius: 999px;
        background: rgb(255 255 255 / 7%);
        box-shadow: inset 0 1px 2px rgb(0 0 0 / 45%);
    }

    .faction-population__segment {
        width: var(--faction-share);
        height: 100%;
    }

    .faction-population__segment--horde {
        background: linear-gradient(90deg, #812e34, #ef6c62);
        box-shadow: 0 0 14px rgb(239 108 98 / 35%);
    }

    .faction-population__segment--alliance {
        background: linear-gradient(90deg, #2385d8, #69bdff);
        box-shadow: 0 0 14px rgb(65 161 255 / 38%);
    }

    .route-static-howto .content-panel,
    .route-static-rules .content-panel {
        background:
            linear-gradient(145deg, rgb(18 44 66 / 92%), rgb(6 19 32 / 96%)),
            url("./images/banners/silver-crusaders.webp") top right / min(760px, 100%) auto no-repeat;
    }

    body[class*="route-armory-"] .content-panel {
        background:
            linear-gradient(145deg, rgb(12 31 47 / 92%), rgb(5 14 25 / 97%)),
            url("./images/banners/ebon-rune-order.webp") top right / min(760px, 100%) auto no-repeat;
    }

    body[class*="route-wiki-"] .content-panel,
    body[class*="route-faq-"] .content-panel {
        background:
            linear-gradient(145deg, rgb(23 29 52 / 92%), rgb(7 16 31 / 97%)),
            url("./images/banners/violet-arcanists.webp") top right / min(760px, 100%) auto no-repeat;
    }

    .realm-updated {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.45rem;
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .realm-updated strong {
        color: var(--gold-300);
    }

    .realm-configuration {
        margin-top: var(--space-8);
    }

    .section-heading {
        margin-bottom: var(--space-5);
    }

    .configuration-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: var(--space-4);
    }

    .configuration-grid article > strong {
        display: block;
        margin-top: 0.45rem;
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 1.4rem;
        font-weight: 400;
    }

    .configuration-grid article p {
        margin-top: 0.45rem;
        color: var(--text-muted);
        font-size: 0.82rem;
    }

    .community-embed {
        display: grid;
        margin-top: var(--space-7);
        place-items: center;
    }

    .community-embed iframe {
        width: min(100%, 700px);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
    }

    .shop-section + .shop-section {
        margin-top: var(--space-7);
    }

    .shop-category-grid,
    .shop-subcategory-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--space-3);
    }

    .shop-category-grid > a,
    .shop-subcategory-grid > a {
        display: flex;
        min-height: 76px;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(4 17 29 / 62%);
        color: var(--ice-100);
        text-decoration: none;
    }

    .shop-category-grid > a:hover,
    .shop-subcategory-grid > a:hover {
        border-color: var(--border-bright);
        background: rgb(28 70 98 / 42%);
        transform: translateY(-2px);
    }

    .shop-category-grid img,
    .shop-subcategory-grid img {
        flex: 0 0 44px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    .shop-category-grid strong {
        display: block;
    }

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

    .product-grid:has(> .product-card:first-child:last-child) {
        grid-template-columns: minmax(230px, 320px);
    }

    .product-grid:has(> .product-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card {
        display: flex;
        min-height: 360px;
        flex-direction: column;
        padding: var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 80% 0%, rgb(53 201 255 / 10%), transparent 35%),
            rgb(4 17 29 / 72%);
        transition: border-color var(--ease), transform var(--ease);
    }

    .product-card:hover {
        border-color: var(--border-bright);
        transform: translateY(-3px);
    }

    .product-card--incompatible {
        border-color: rgb(244 107 75 / 52%);
        background:
            radial-gradient(circle at 80% 0%, rgb(244 107 75 / 13%), transparent 38%),
            rgb(34 12 20 / 76%);
        box-shadow: inset 0 0 0 1px rgb(244 107 75 / 8%);
    }

    .product-card--incompatible:hover {
        border-color: rgb(255 143 116 / 72%);
    }

    .product-card__identity {
        min-width: 0;
    }

    .product-card h3.transaction-item {
        margin: 0;
    }

    .product-card dl {
        display: grid;
        gap: 0.45rem;
        margin-block: var(--space-5);
    }

    .product-card dl > div {
        display: flex;
        justify-content: space-between;
        gap: var(--space-3);
        border-bottom: 1px solid rgb(255 255 255 / 5%);
    }

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

    .product-card dd {
        color: var(--ice-100);
        font-size: 0.8rem;
    }

    .product-card__requirement {
        display: inline-flex;
        min-height: 24px;
        align-items: center;
        justify-content: flex-end;
    }

    .product-card__requirement img {
        display: block;
        border-radius: 999px;
        box-shadow: 0 0 10px rgb(53 201 255 / 18%);
    }

    .product-card__eligibility {
        margin: 0 0 var(--space-3);
        padding: 0.55rem 0.65rem;
        border: 1px solid rgb(244 107 75 / 34%);
        border-radius: var(--radius-sm);
        background: rgb(91 27 25 / 24%);
        color: #ffd2c7;
        font-size: 0.72rem;
    }

    .product-card__eligibility--neutral {
        border-color: rgb(123 199 242 / 22%);
        background: rgb(5 29 48 / 52%);
        color: var(--text-muted);
    }

    .product-card form button:disabled {
        border-color: rgb(244 107 75 / 22%);
        background: rgb(39 18 24 / 72%);
        box-shadow: none;
        color: rgb(255 189 173 / 52%);
        cursor: not-allowed;
    }

    .product-card__prices {
        display: grid;
        gap: 0.35rem;
        margin-top: auto;
        color: var(--text-soft);
        font-size: 0.78rem;
    }

    .product-card__prices strong {
        font-size: 1.15rem;
    }

    .product-card__price--vote strong {
        color: var(--arcane-400);
        text-shadow: 0 0 14px rgb(53 201 255 / 22%);
    }

    .product-card__price--donate strong {
        color: #d8a5ff;
        text-shadow: 0 0 14px rgb(179 92 255 / 24%);
    }

    .product-card form {
        margin-top: var(--space-4);
    }

    .product-card form button {
        width: 100%;
    }

    .account-overview,
    .account-preferences,
    .account-security-summary,
    .account-history {
        display: grid;
        gap: var(--space-5);
    }

    .account-preferences,
    .account-security-summary,
    .account-history {
        margin-top: var(--space-8);
    }

    .account-welcome {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-5);
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 10% 0%, rgb(53 201 255 / 15%), transparent 32%),
            rgb(5 19 32 / 72%);
    }

    .account-welcome > div {
        min-width: 0;
        flex: 1;
    }

    .account-welcome .eyebrow {
        margin-bottom: 0.2rem;
    }

    .account-welcome h2 {
        font-size: clamp(1.55rem, 4vw, 2.4rem);
    }

    .account-welcome p:last-child {
        overflow: hidden;
        color: var(--text-muted);
        text-overflow: ellipsis;
    }

    .avatar--large {
        width: 68px;
        height: 68px;
        flex: 0 0 auto;
        font-size: 1.8rem;
    }

    .account-stat-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-3);
    }

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

    .account-stat-grid article {
        padding: var(--space-4);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(4 17 29 / 62%);
    }

    .account-stat-grid span,
    .account-stat-grid small {
        display: block;
        color: var(--text-muted);
        font-size: 0.7rem;
    }

    .account-stat-grid strong {
        display: block;
        margin-block: 0.35rem;
        overflow: hidden;
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: clamp(1.3rem, 3vw, 2rem);
        font-weight: 400;
        text-overflow: ellipsis;
    }

    .account-security-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .account-security-card {
        display: grid;
        min-width: 0;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-4);
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 100% 0%, rgb(53 201 255 / 10%), transparent 52%),
            linear-gradient(145deg, rgb(9 31 50 / 88%), rgb(4 17 29 / 82%));
        box-shadow: 0 16px 36px rgb(0 0 0 / 18%);
    }

    .account-security-card__icon {
        display: grid;
        width: 2.75rem;
        aspect-ratio: 1;
        border: 1px solid rgb(53 201 255 / 42%);
        border-radius: 50%;
        background: rgb(5 24 40 / 82%);
        color: var(--arcane-400);
        place-items: center;
    }

    .account-security-card__icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .account-security-card dt {
        margin-bottom: 0.3rem;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .account-security-card dd {
        overflow: hidden;
        color: var(--ice-100);
        font-size: 0.86rem;
        font-weight: 700;
        text-overflow: ellipsis;
    }

    .account-security-card--clear .account-security-card__icon {
        border-color: rgb(88 226 178 / 46%);
        color: var(--success-400);
    }

    .account-security-card--locked {
        border-color: rgb(255 104 104 / 42%);
        background:
            radial-gradient(circle at 100% 0%, rgb(255 104 104 / 12%), transparent 52%),
            linear-gradient(145deg, rgb(38 23 31 / 88%), rgb(13 17 27 / 84%));
    }

    .account-security-card--locked .account-security-card__icon,
    .account-security-card--locked dd {
        border-color: rgb(255 104 104 / 46%);
        color: var(--danger-400);
    }

    .account-preferences {
        padding: clamp(var(--space-5), 4vw, var(--space-8));
        border: 1px solid var(--border-bright);
        border-radius: var(--radius-lg);
        outline: none;
        background:
            radial-gradient(circle at 100% 0%, rgb(53 201 255 / 10%), transparent 32%),
            linear-gradient(150deg, rgb(8 29 48 / 88%), rgb(3 14 25 / 82%));
        box-shadow: 0 25px 70px rgb(0 0 0 / 24%);
    }

    .account-preferences:focus-visible {
        box-shadow: 0 0 0 3px rgb(53 201 255 / 18%), 0 25px 70px rgb(0 0 0 / 24%);
    }

    .section-heading--split {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: var(--space-5);
    }

    .section-heading--split > div {
        max-width: 720px;
    }

    .section-heading--split > div > p:last-child,
    .account-security-heading > p:last-child {
        color: var(--text-muted);
    }

    .preference-session-note {
        flex: 0 0 auto;
        padding: 0.65rem 0.85rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(3 14 25 / 68%);
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .preference-session-note strong {
        color: var(--ice-100);
    }

    .preference-feedback {
        margin-block: 0;
    }

    .preference-group {
        display: grid;
        gap: var(--space-4);
        padding-top: var(--space-6);
        border-top: 1px solid var(--border);
    }

    .preference-group__heading {
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }

    .preference-group__heading h3 {
        font-size: clamp(1.2rem, 2vw, 1.55rem);
    }

    .preference-group__heading p {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .preference-step {
        display: grid;
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--arcane-400);
        border-radius: 50%;
        color: var(--arcane-300);
        font-family: var(--font-display);
        font-size: 0.78rem;
    }

    .currency-choice-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .currency-choice-grid form,
    .character-card footer form {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .currency-choice {
        position: relative;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: var(--space-3);
        width: 100%;
        min-height: 116px;
        align-items: center;
        padding: var(--space-4);
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(14 43 65 / 70%), rgb(3 15 26 / 78%));
        color: var(--text-soft);
        text-align: left;
        cursor: pointer;
        transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
    }

    .currency-choice:hover {
        border-color: var(--arcane-400);
        transform: translateY(-2px);
    }

    .currency-choice:focus-visible {
        outline: 3px solid rgb(53 201 255 / 28%);
        outline-offset: 3px;
    }

    .currency-choice.is-selected {
        border-color: var(--arcane-300);
        box-shadow: inset 0 0 28px rgb(53 201 255 / 10%);
    }

    .currency-choice--donate.is-selected {
        border-color: var(--gold-400);
        box-shadow: inset 0 0 28px rgb(216 166 74 / 10%);
    }

    .currency-choice__icon {
        display: grid;
        width: 50px;
        height: 50px;
        place-items: center;
        border: 1px solid var(--arcane-400);
        border-radius: 50%;
        color: var(--arcane-200);
        font-family: var(--font-display);
        font-size: 1.2rem;
        box-shadow: inset 0 0 18px rgb(53 201 255 / 14%);
    }

    .currency-choice--donate .currency-choice__icon {
        border-color: var(--gold-400);
        color: var(--gold-300);
    }

    .currency-choice__copy strong,
    .currency-choice__copy small {
        display: block;
    }

    .currency-choice__copy strong {
        color: var(--ice-50);
        font-size: 0.92rem;
    }

    .currency-choice__copy small {
        margin-top: 0.25rem;
        color: var(--text-muted);
        font-size: 0.68rem;
        line-height: 1.45;
    }

    .currency-choice__balance {
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: clamp(1.35rem, 3vw, 2rem);
    }

    .selection-badge {
        display: inline-flex;
        align-items: center;
        width: max-content;
        padding: 0.25rem 0.5rem;
        border: 1px solid rgb(101 229 176 / 40%);
        border-radius: 999px;
        background: rgb(101 229 176 / 9%);
        color: var(--success, #65e5b0);
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .currency-choice > .selection-badge {
        position: absolute;
        top: 0.55rem;
        right: 0.55rem;
    }

    .character-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-4);
    }

    .character-card {
        position: relative;
        overflow: hidden;
        padding: var(--space-5);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(20 48 70 / 56%), rgb(4 16 28 / 78%));
        transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
    }

    .character-card::before {
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: var(--arcane-400);
        filter: blur(70px);
        opacity: 0.1;
        content: "";
    }

    .character-card__class-art {
        position: absolute;
        z-index: 0;
        top: 0;
        right: 0;
        width: min(76%, 360px);
        height: 100%;
        object-fit: cover;
        object-position: 72% center;
        opacity: 0.11;
        filter: saturate(0.82) contrast(1.08);
        mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 72%) 42%, #000 100%);
        pointer-events: none;
    }

    .character-card__race-art {
        position: absolute;
        z-index: 0;
        top: 0;
        right: 0;
        width: min(52%, 250px);
        height: 100%;
        object-fit: cover;
        object-position: center 28%;
        opacity: 0.48;
        filter: saturate(0.82) contrast(1.04);
        mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 82%) 36%, #000 100%);
        pointer-events: none;
    }

    .character-card > :not(.character-card__class-art, .character-card__race-art) {
        position: relative;
        z-index: 1;
    }

    .character-card--horde::before {
        background: var(--ember-400);
    }

    .character-grid--selectable .character-card:hover {
        transform: translateY(-2px);
    }

    .character-card.is-selected {
        border-color: var(--arcane-300);
        box-shadow: inset 0 0 32px rgb(53 201 255 / 8%), 0 14px 38px rgb(0 0 0 / 18%);
    }

    .character-card--horde.is-selected {
        border-color: rgb(244 129 99 / 70%);
        box-shadow: inset 0 0 32px rgb(244 107 75 / 8%), 0 14px 38px rgb(0 0 0 / 18%);
    }

    .character-card.is-archived {
        opacity: 0.62;
        filter: saturate(0.55);
    }

    .character-card header {
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }

    .character-card header > div {
        min-width: 0;
        flex: 1;
    }

    .character-level {
        display: grid;
        width: 48px;
        height: 48px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--gold-400);
        border-radius: 50%;
        color: var(--gold-300);
        font-family: var(--font-display);
    }

    .character-card h3 {
        font-size: 1.2rem;
    }

    .character-card h3 a {
        color: var(--ice-50);
        text-decoration: none;
    }

    .character-card header p {
        color: var(--text-muted);
        font-size: 0.72rem;
    }

    .character-card dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
        margin-top: var(--space-5);
    }

    .character-card dt {
        color: var(--text-muted);
        font-size: 0.68rem;
    }

    .character-card dd {
        overflow: hidden;
        color: var(--ice-100);
        font-size: 0.8rem;
        text-overflow: ellipsis;
    }

    .character-card footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        margin-top: var(--space-5);
        padding-top: var(--space-4);
        border-top: 1px solid var(--border);
    }

    .character-card footer > a {
        flex: 0 0 auto;
        color: var(--arcane-200);
        font-size: 0.72rem;
    }

    .character-card footer form {
        width: auto;
        margin-left: auto;
    }

    .character-card footer .button {
        min-height: 40px;
        padding: 0.55rem 0.8rem;
        font-size: 0.7rem;
    }

    .character-card footer .button:disabled {
        opacity: 0.72;
        cursor: default;
    }

    .archived-note {
        color: var(--text-muted);
        font-size: 0.7rem;
    }

    .preference-empty {
        padding: var(--space-7);
        border: 1px dashed var(--border);
        border-radius: var(--radius-md);
        text-align: center;
    }

    .preference-empty > span {
        color: var(--arcane-300);
        font-size: 2rem;
    }

    .preference-empty p {
        margin: 0.35rem 0 0;
        color: var(--text-muted);
    }

    .current-account-detail {
        margin-block: var(--space-5);
    }

    .current-account-detail > div {
        padding: var(--space-4);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(4 17 29 / 62%);
    }

    .current-account-detail dt {
        color: var(--text-muted);
        font-size: 0.7rem;
    }

    .current-account-detail dd {
        margin-top: 0.3rem;
        overflow-wrap: anywhere;
        color: var(--ice-100);
    }

    .security-setting-panel {
        padding-top: var(--space-5);
        border-top: 1px solid var(--border);
    }

    .security-setting-panel h3 {
        margin-bottom: var(--space-4);
    }

    #news {
        display: grid;
        gap: var(--space-5);
    }

    #news .news_title,
    #news .news_text {
        float: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
    }

    #news .news_title {
        display: grid;
        gap: 0.25rem;
        padding-bottom: var(--space-3);
        border-bottom: 1px solid var(--border);
    }

    #news .news_title h1,
    #news .news_title h2 {
        float: none !important;
        width: auto;
        margin: 0;
    }

    #news .news_title h1 {
        font-size: clamp(1.45rem, 3vw, 2.15rem);
    }

    #news .news_title h2 {
        color: var(--text-muted);
        font-family: var(--font-ui);
        font-size: 0.86rem;
    }

    #news .news_text {
        display: flow-root;
        margin-bottom: var(--space-7);
        color: var(--text-soft);
    }

    #news .news-img {
        float: left;
        width: fit-content;
        max-width: min(42%, 360px);
        margin: 0 var(--space-4) var(--space-4) 0;
    }

    #news .news-img img {
        display: block;
    }

    #news > img {
        display: none;
    }

    .article-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding-top: var(--space-4);
        border-top: 1px solid var(--border);
        color: var(--text-muted);
        font-size: 0.78rem;
    }

    .article-footer time {
        margin-left: auto;
        color: var(--ice-200);
        text-align: right;
    }

    .turnstile-field {
        display: grid;
        gap: var(--space-2);
        width: min(100%, 30rem);
        margin-block: var(--space-4);
    }

    .turnstile-field__label {
        margin: 0;
        color: var(--text-soft);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .turnstile-field .cf-turnstile {
        width: 100%;
        min-height: 65px;
    }

    #account,
    #account_r,
    #products_l,
    #products_r {
        float: none !important;
        width: auto !important;
        margin: 0 !important;
    }

    #account,
    #account_r {
        display: inline-block;
        width: calc(50% - 0.75rem) !important;
        vertical-align: top;
    }

    #account_r {
        margin-right: 1rem !important;
    }

    #products_l,
    #products_r {
        display: inline-block;
        width: calc(50% - 0.75rem) !important;
        vertical-align: top;
    }

    #products_l {
        margin-right: 1rem !important;
    }

    .show_form,
    #register {
        width: min(100%, 620px) !important;
        margin-inline: auto;
        padding: 0 !important;
        background: transparent !important;
    }

    .form-layout .show_form,
    .form-layout #register {
        margin-inline: 0;
    }

    #inputs {
        display: grid;
        gap: var(--space-3);
    }

    .player {
        min-height: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .player h1 {
        font-size: clamp(1.6rem, 4vw, 2.6rem);
    }

    .feature-content [align="center"] {
        max-width: 100%;
    }

    .feature-content .thumbs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: var(--space-4);
        width: 100% !important;
    }

    .feature-content hr {
        height: 1px;
        margin-block: var(--space-5);
        border: 0;
        background: var(--border);
    }
}

@layer utilities {
    [hidden] {
        display: none !important;
    }

    .mobile-backdrop {
        position: fixed;
        z-index: 105;
        inset: 0;
        background: rgb(0 5 10 / 75%);
        backdrop-filter: blur(4px);
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .site-header {
        z-index: 110;
    }

    body.menu-open .header-bar {
        pointer-events: none;
    }
}

@layer responsive {
    @media (min-width: 1051px) {
        .hero__content {
            justify-content: flex-start;
            padding-top: 7rem;
        }
    }

    @media (max-width: 860px) {
        .form-layout,
        .form-layout--wide {
            grid-template-columns: minmax(0, 1fr);
        }

        .form-layout__art {
            position: relative;
            top: auto;
            width: 100%;
            min-height: 0;
            max-height: 280px;
        }

        .form-layout__art img {
            height: 280px;
            aspect-ratio: auto;
            object-position: center 42%;
        }
    }

    @media (max-width: 1050px) {
        :root {
            --header-height: 68px;
        }

        .site-header {
            backdrop-filter: none;
        }

        .header-bar {
            justify-content: space-between;
            padding-left: 122px;
        }

        .brand {
            top: 22px;
            width: 99px;
            height: 99px;
            border-radius: var(--radius-md);
        }

        .brand-logo--monogram {
            width: 88px;
            height: 88px;
        }

        .page-banner {
            padding-top: 5.5rem;
        }

        .header-login,
        .realm-control > svg,
        .account-control > span:last-child {
            display: none;
        }

        .mobile-menu-button {
            display: grid;
            width: 44px;
            height: 44px;
            place-content: center;
            gap: 5px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: rgb(11 33 52 / 65%);
            cursor: pointer;
        }

        .mobile-menu-button > span:not(.sr-only) {
            display: block;
            width: 20px;
            height: 2px;
            border-radius: 2px;
            background: var(--ice-100);
        }

        .site-navigation {
            position: fixed;
            z-index: 1;
            top: 0;
            right: 0;
            bottom: 0;
            display: block;
            width: min(400px, 90vw);
            overflow-y: auto;
            border: 0;
            border-left: 1px solid var(--border-bright);
            background: #061421;
            box-shadow: -30px 0 70px rgb(0 0 0 / 45%);
            visibility: hidden;
            overscroll-behavior: contain;
            pointer-events: none;
            transform: translateX(105%);
            transition:
                transform 260ms ease,
                visibility 0s linear 260ms;
        }

        .site-navigation[data-open="true"],
        body.menu-open .site-navigation {
            visibility: visible;
            pointer-events: auto;
            transform: translateX(0);
            transition-delay: 0s;
        }

        .navigation-header {
            display: flex;
            min-height: 68px;
            align-items: center;
            justify-content: space-between;
            padding-inline: var(--space-4);
            border-bottom: 1px solid var(--border);
            color: var(--ice-100);
            font-family: var(--font-display);
            letter-spacing: 0.12em;
        }

        .navigation-header button {
            display: grid;
            width: 44px;
            height: 44px;
            place-items: center;
            border: 0;
            background: transparent;
            color: var(--ice-100);
            font-size: 2rem;
            cursor: pointer;
        }

        .nav-list {
            display: block;
            width: 100%;
            min-height: 0;
            padding: var(--space-3);
        }

        .nav-list > li > a,
        .nav-list > li > button {
            width: 100%;
            min-height: 52px;
            justify-content: flex-start;
            border-bottom: 1px solid var(--border);
            padding-inline: var(--space-3);
            font-size: 0.85rem;
        }

        .nav-list button svg:last-child {
            margin-left: auto;
        }

        .nav-menu {
            position: static;
            width: auto;
            max-height: none;
            padding: 0.35rem 0 0.6rem 1.5rem;
            overflow: visible;
            border: 0;
            border-bottom: 1px solid var(--border);
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            transform: none;
        }

        .nav-group:hover .nav-menu,
        .nav-group:focus-within .nav-menu {
            display: none;
        }

        .nav-group > button[aria-expanded="true"] + .nav-menu {
            display: grid;
        }

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

        .site-sidebar {
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        }

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

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

        .brand-logo {
            width: 38px;
            height: 41px;
            object-fit: contain;
        }

        .brand-logo--monogram {
            width: 85px;
            height: 85px;
        }

        .header-actions {
            gap: 0.45rem;
        }

        .realm-control {
            padding-inline: 0.6rem;
        }

        .realm-control small,
        .realm-control strong {
            display: none;
        }

        .realm-control {
            display: none;
        }

        .language-control {
            display: flex;
        }

        .header-login,
        .header-register {
            display: grid;
            width: 42px;
            min-height: 42px;
            padding: 0;
            place-items: center;
        }

        .header-login svg,
        .header-register svg {
            display: block;
        }

        .header-login span,
        .header-register span {
            display: none;
        }

        .realm-popover {
            position: fixed;
            top: calc(var(--header-height) + 0.5rem);
            right: 0.65rem;
            left: auto;
        }

        .hero {
            min-height: 610px;
        }

        .hero__art {
            background-position: var(--route-art-x, 63%) var(--route-art-y, 50%);
        }

        .hero__veil {
            background:
                linear-gradient(90deg, rgb(2 9 17 / 80%), rgb(2 9 17 / 36%)),
                linear-gradient(0deg, var(--ink-900) 0%, transparent 50%);
        }

        .hero__content {
            justify-content: flex-end;
            padding-bottom: 7rem;
        }

        .hero__actions,
        .hero__actions .button {
            width: 100%;
        }

        .hero__status {
            flex-wrap: wrap;
        }

        .campaigns {
            margin-top: -4.5rem;
        }

        .content-panel {
            padding: 1rem;
            border-radius: var(--radius-md);
        }

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

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

        .footer-social {
            min-width: 0;
            background:
                linear-gradient(90deg, rgb(5 18 31 / 12%) 0, rgb(5 18 31 / 94%) 48%),
                url("./images/ornaments/class-06-footer.webp") left -0.65rem center / auto 78% no-repeat,
                rgb(5 18 31 / 88%);
        }

        .footer-social > p,
        .footer-social__links {
            margin-left: clamp(5.25rem, 25vw, 7rem);
        }

        .feature-content {
            overflow-wrap: anywhere;
        }

        .checkout-character-badge {
            min-height: 10rem;
            padding: 1rem;
        }

        .checkout-character-badge--portrait {
            min-height: 15rem;
            align-items: flex-end;
            flex-direction: column;
            gap: 0.6rem;
            padding-left: 52%;
        }

        .checkout-character-badge--portrait .selection-badge {
            top: 1rem;
            right: 1rem;
        }

        .checkout-character-badge__portrait {
            width: 62%;
        }

        .feature-content .cart-table {
            display: table;
            min-width: 620px;
            white-space: normal;
        }

        .feature-content .cart-table td,
        .feature-content .cart-table th {
            min-width: 0;
        }

        .cart-footer-actions {
            align-items: stretch;
            flex-direction: column-reverse;
        }

        .checkout-action-bar {
            align-items: stretch;
            flex-direction: column-reverse;
        }

        .checkout-action-bar__primary {
            width: 100%;
            align-items: stretch;
            flex-direction: column-reverse;
            margin-left: 0;
        }

        .checkout-purchase-group {
            width: 100%;
        }

        .checkout-confirmation-actions {
            flex-direction: column-reverse;
            align-items: stretch;
        }

        .checkout-confirmation {
            width: 100%;
            margin-left: 0 !important;
        }

        .cart-footer-actions form,
        .cart-footer-actions .button {
            width: 100%;
        }

        .feature-content table {
            display: block;
            max-width: 100%;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
        }

        .feature-content td,
        .feature-content th {
            min-width: 110px;
        }

        .feature-content .data-table--ranking {
            display: table;
            min-width: 0;
            table-layout: fixed;
            white-space: normal;
        }

        .feature-content .data-table--guilds {
            display: table;
            min-width: 0;
            table-layout: fixed;
            white-space: normal;
        }

        .feature-content .data-table--ranking th,
        .feature-content .data-table--ranking td,
        .feature-content .data-table--guilds th,
        .feature-content .data-table--guilds td {
            min-width: 0;
        }

        .data-table--guilds th:nth-child(1) {
            width: 36%;
        }

        .data-table--guilds th:nth-child(2) {
            width: 29%;
        }

        .data-table--guilds th:nth-child(3) {
            width: 15%;
        }

        .data-table--guilds th:nth-child(4) {
            width: 20%;
        }

        .data-table--guilds th,
        .data-table--guilds td {
            padding: 0.65rem 0.3rem;
        }

        .data-table--guilds th:last-child {
            font-size: 0.58rem;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .guild-age__full {
            display: none;
        }

        .guild-age__short {
            display: inline;
        }

        .data-table--ranking th:nth-child(1) {
            width: 10%;
        }

        .data-table--ranking th:nth-child(2) {
            width: 42%;
        }

        .data-table--ranking th:nth-child(3) {
            width: 27%;
        }

        .data-table--ranking th:nth-child(4) {
            width: 21%;
        }

        .data-table--ranking th:first-child,
        .data-table--ranking td:first-child,
        .data-table--ranking th:last-child,
        .data-table--ranking td:last-child {
            white-space: nowrap;
        }

        #news .news-img {
            float: none;
            max-width: 100%;
            margin: 0 0 var(--space-4);
        }

        #account,
        #account_r,
        #products_l,
        #products_r {
            display: block;
            width: 100% !important;
            margin: 0 0 var(--space-4) !important;
        }

        .page-banner {
            padding: 5.5rem 0 2.75rem;
        }

        .breadcrumbs {
            margin-bottom: var(--space-4);
        }

        .realm-spotlight {
            min-height: 280px;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
            background-position: var(--route-art-x, 68%) var(--route-art-y, 48%);
        }

        .stat-grid,
        .faction-grid {
            grid-template-columns: 1fr;
        }

        .news-card {
            grid-template-columns: 1fr;
        }

        .news-card__media {
            min-height: 210px;
        }

        .account-welcome {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
        }

        .account-welcome > .button {
            width: 100%;
            grid-column: 1 / -1;
        }

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

        .account-security-cards {
            grid-template-columns: 1fr;
        }

        .section-heading--split {
            align-items: flex-start;
            flex-direction: column;
        }

        .preference-session-note {
            white-space: normal;
        }

        .currency-choice-grid {
            grid-template-columns: 1fr;
        }

        .currency-choice {
            grid-template-columns: auto minmax(0, 1fr) auto;
        }

        .character-card footer {
            align-items: stretch;
            flex-direction: column;
        }

        .character-card footer form,
        .character-card footer .button {
            width: 100%;
        }
    }

    @media (max-width: 360px) {
        .header-bar {
            padding-left: 94px;
        }

        .brand {
            width: 77px;
            height: 77px;
        }

        .brand-logo--monogram {
            width: 70px;
            height: 70px;
        }

        .header-actions {
            gap: 0.25rem;
        }

        .language-control a:not([aria-current="true"]) {
            display: none;
        }
    }

    @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;
        }
    }

    @media (prefers-contrast: more) {
        :root {
            --text-soft: #d8ebf8;
            --text-muted: #b0c8d9;
            --border: rgb(160 220 255 / 52%);
        }
    }
}

@layer features {
    .game-token.game-token--identity {
        padding-left: 0.35rem;
    }

    .game-token.game-token--icon-only {
        padding: 5px;
    }
}

@layer features {
    .armory-profile {
        display: grid;
        gap: var(--space-6);
    }

    .panel-surface {
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: linear-gradient(145deg, rgb(20 54 79 / 45%), transparent 44%), rgb(4 15 27 / 78%);
        box-shadow: var(--shadow-panel), inset 0 1px rgb(255 255 255 / 4%);
        backdrop-filter: blur(16px);
    }

    .armory-identity {
        position: relative;
        display: flex;
        min-height: 190px;
        overflow: hidden;
        align-items: center;
        gap: var(--space-5);
        padding: clamp(1.25rem, 4vw, 2.5rem);
        isolation: isolate;
    }

    .armory-identity::before {
        position: absolute;
        z-index: 1;
        inset: 0;
        background: radial-gradient(circle at 82% 42%, rgb(53 201 255 / 2.4%), transparent 34%), linear-gradient(90deg, rgb(3 12 22 / 19.2%) 0%, rgb(7 29 47 / 15.2%) 52%, rgb(7 29 47 / 8.4%) 100%);
        content: "";
        pointer-events: none;
    }

    .armory-profile--horde .armory-identity::before {
        background: radial-gradient(circle at 82% 42%, rgb(255 114 94 / 2.4%), transparent 34%), linear-gradient(90deg, rgb(20 8 12 / 19.2%) 0%, rgb(42 18 23 / 15.6%) 52%, rgb(42 18 23 / 8.8%) 100%);
    }

    .armory-identity__race-art {
        position: absolute;
        z-index: 0;
        top: 0;
        right: 0;
        width: clamp(190px, 34%, 360px);
        height: 100%;
        object-fit: cover;
        object-position: center 28%;
        opacity: 0.58;
        filter: saturate(0.86) contrast(1.03);
        mask-image: linear-gradient(90deg, transparent, #000 34%);
        pointer-events: none;
    }

    .armory-identity__faction,
    .armory-identity__content {
        position: relative;
        z-index: 2;
    }

    .armory-identity__faction {
        width: clamp(82px, 13vw, 132px);
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 0 25px rgb(53 201 255 / 42%));
    }

    .armory-profile--horde .armory-identity__faction {
        filter: drop-shadow(0 0 25px rgb(255 114 94 / 38%));
    }

    .armory-identity__content {
        min-width: 0;
    }

    .armory-identity__meta {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin-bottom: 0.65rem;
    }

    .armory-identity__meta .eyebrow {
        margin: 0;
    }

    .armory-identity h2 {
        margin: 0;
        font-size: clamp(2rem, 6vw, 4rem);
        overflow-wrap: anywhere;
    }

    .armory-identity__title {
        margin: 0.15rem 0 0.9rem;
        color: var(--gold-300);
        font-family: var(--font-display);
    }

    .armory-identity__tokens {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .armory-identity__tokens .game-token {
        min-height: 34px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(2 10 18 / 56%);
        color: var(--text-soft);
        text-decoration: none;
    }

    .armory-status {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.45rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgb(2 10 18 / 70%);
        color: var(--text-soft);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .armory-status span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text-muted);
    }

    .armory-status--online span {
        background: var(--success-400);
        box-shadow: 0 0 12px var(--success-400);
    }

    .armory-section > h2,
    .armory-section .section-heading h2 {
        margin-bottom: var(--space-4);
    }

    .armory-section.panel-surface {
        padding: clamp(1rem, 3vw, 1.75rem);
    }

    .section-note {
        max-width: 34rem;
        margin: 0;
        color: var(--text-muted);
        font-size: 0.86rem;
    }

    .equipment-paperdoll {
        position: relative;
        display: grid;
        overflow: hidden;
        grid-template-columns: minmax(270px, 1fr) minmax(190px, 0.7fr) minmax(270px, 1fr);
        gap: var(--space-4);
        padding: clamp(0.8rem, 2.5vw, 1.5rem);
        isolation: isolate;
    }

    .equipment-paperdoll::before {
        position: absolute;
        z-index: 1;
        inset: 0;
        background:
            linear-gradient(90deg, rgb(2 10 18 / 16.4%) 0%, rgb(2 10 18 / 5.6%) 34%, rgb(2 10 18 / 4.8%) 66%, rgb(2 10 18 / 16.4%) 100%),
            linear-gradient(0deg, rgb(2 10 18 / 14.4%), transparent 30%, rgb(2 10 18 / 4.4%) 72%, rgb(2 10 18 / 11.6%));
        content: "";
        pointer-events: none;
    }

    .equipment-paperdoll__class-art {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 68% 50%;
        opacity: 0.62;
        filter: saturate(0.88) contrast(1.06);
        pointer-events: none;
    }

    .equipment-paperdoll > :not(.equipment-paperdoll__class-art) {
        position: relative;
        z-index: 2;
    }

    .equipment-paperdoll__column {
        display: grid;
        align-content: start;
        gap: 0.55rem;
    }

    .equipment-paperdoll__art-space {
        min-height: 460px;
    }

    .equipment-slot {
        display: grid;
        min-height: 66px;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 0.7rem;
        padding: 0.55rem;
        border: 1px solid rgb(123 199 242 / 14%);
        border-radius: var(--radius-sm);
        background: rgb(2 10 18 / 52%);
        transition: border-color var(--ease), background var(--ease), transform var(--ease);
    }

    .equipment-slot:focus-within,
    .equipment-slot:hover {
        border-color: var(--border-bright);
        background: rgb(10 34 53 / 72%);
        transform: translateY(-1px);
    }

    .equipment-slot__icon {
        width: 46px;
        height: 46px;
        border: 1px solid rgb(228 202 136 / 32%);
        border-radius: 8px;
        background: radial-gradient(circle, rgb(53 201 255 / 18%), transparent 68%), rgb(7 19 31 / 92%);
        background-position: center;
        background-size: cover;
        box-shadow: inset 0 0 12px rgb(0 0 0 / 50%);
    }

    .equipment-slot__icon[data-loaded="true"] {
        box-shadow: 0 0 14px rgb(53 201 255 / 22%);
    }

    .equipment-slot__content,
    .equipment-slot__content span {
        display: block;
        min-width: 0;
    }

    .equipment-slot__name {
        display: inline;
        padding: 0 !important;
        background-position: -9999px !important;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .equipment-slot__level,
    .equipment-slot__durability,
    .equipment-slot__appearance {
        margin-top: 0.12rem;
        color: var(--text-muted);
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .equipment-slot__appearance a {
        text-decoration: none;
    }

    .equipment-slot--empty {
        width: 58px;
        min-height: 58px;
        grid-template-columns: 46px;
        padding: 5px;
        opacity: 0.62;
    }

    .equipment-paperdoll__column--right .equipment-slot--empty {
        justify-self: end;
        grid-template-columns: 46px;
    }

    .equipment-paperdoll__column--right .equipment-slot--empty .equipment-slot__icon {
        grid-column: 1;
    }

    .equipment-paperdoll__weapons .equipment-slot--empty {
        justify-self: center;
    }

    .equipment-paperdoll__column--right .equipment-slot__icon {
        grid-column: 2;
    }

    .equipment-paperdoll__column--right .equipment-slot {
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .equipment-paperdoll__column--right .equipment-slot--empty {
        grid-template-columns: 46px;
    }

    .equipment-paperdoll__column--right .equipment-slot__content {
        grid-row: 1;
        grid-column: 1;
        text-align: right;
    }

    .equipment-paperdoll__weapons {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
        padding-top: var(--space-4);
        border-top: 1px solid var(--border);
    }

    .item-quality-0 { color: #9d9d9d; }
    .item-quality-1 { color: #fff; }
    .item-quality-2 { color: #1eff00; }
    .item-quality-3 { color: #38a8ff; }
    .item-quality-4 { color: #b048ff; }
    .item-quality-5 { color: #ff8a24; }
    .item-quality-6 { color: #e6cc80; }
    .item-quality-7 { color: #7de2ff; }

    .armory-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .armory-overview {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin: 0;
    }

    .armory-overview div {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgb(123 199 242 / 12%);
    }

    .armory-overview div:nth-child(odd) {
        padding-right: var(--space-4);
    }

    .armory-overview dt {
        color: var(--text-muted);
        font-size: 0.74rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .armory-overview dd {
        margin: 0.2rem 0 0;
        color: var(--text);
        font-weight: 700;
    }

    .armory-section h3 {
        margin: var(--space-4) 0 var(--space-3);
        color: var(--gold-300);
        font-size: 0.95rem;
    }

    .profession-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .profession-card {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 0.7rem;
        padding: 0.7rem;
        border: 1px solid rgb(123 199 242 / 14%);
        border-radius: var(--radius-sm);
        background: rgb(2 10 18 / 48%);
    }

    .profession-card:hover,
    .profession-card:focus-within {
        border-color: var(--border-bright);
    }

    .profession-card__icon {
        width: 42px;
        height: 42px;
        display: block;
        overflow: hidden;
        box-sizing: border-box;
        flex: 0 0 auto;
        border: 1px solid rgb(228 202 136 / 34%);
        border-radius: 8px;
        background: rgb(4 15 27 / 86%);
        background-position: center;
        background-size: cover;
        object-fit: cover;
        color: transparent;
        font-size: 0;
        text-decoration: none;
    }

    .profession-card__icon[data-loaded="true"] {
        box-shadow: 0 0 14px rgb(53 201 255 / 22%);
    }

    .profession-card__body,
    .profession-card__body > span {
        display: block;
        min-width: 0;
    }

    .profession-card__body {
        flex: 1;
        color: var(--text);
        text-decoration: none;
    }

    .profession-card__body strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profession-card__body > span:not(.profession-progress) {
        color: var(--text-muted);
        font-size: 0.76rem;
    }

    .profession-progress {
        height: 4px;
        overflow: hidden;
        margin-top: 0.35rem;
        border-radius: 99px;
        background: rgb(255 255 255 / 8%);
    }

    .profession-progress span {
        width: var(--profession-progress);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--arcane-600), var(--arcane-400));
        box-shadow: 0 0 8px var(--arcane-400);
    }

    .empty-state {
        padding: var(--space-4);
        border: 1px dashed var(--border);
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        text-align: center;
    }

    .arena-summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
        gap: var(--space-4);
    }

    .arena-summary-card {
        position: relative;
        overflow: hidden;
        padding: var(--space-4);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(145deg, rgb(15 50 73 / 65%), rgb(3 13 23 / 80%));
        color: var(--text);
        text-decoration: none;
    }

    .arena-summary-card:hover,
    .arena-summary-card:focus-visible {
        border-color: var(--border-bright);
        box-shadow: var(--shadow-glow);
    }

    .arena-summary-card__bracket {
        display: inline-block;
        margin-bottom: 0.4rem;
        color: var(--gold-300);
        font-family: var(--font-display);
    }

    .arena-summary-card > strong {
        display: block;
        font-size: 1.08rem;
    }

    .arena-summary-card dl {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        margin: var(--space-4) 0 0;
    }

    .arena-summary-card dt {
        color: var(--text-muted);
        font-size: 0.68rem;
    }

    .arena-summary-card dd {
        margin: 0.1rem 0 0;
        font-weight: 700;
    }
}

@layer responsive {
    @media (max-width: 980px) {
        .equipment-paperdoll {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .equipment-paperdoll__art-space {
            display: none;
        }

        .equipment-paperdoll::before {
            background: linear-gradient(90deg, rgb(2 10 18 / 15.6%), rgb(2 10 18 / 8.4%) 50%, rgb(2 10 18 / 15.6%));
        }

        .equipment-paperdoll__class-art {
            object-position: 68% top;
            opacity: 0.5;
        }

        .equipment-paperdoll__weapons {
            grid-column: 1 / -1;
        }

        .armory-detail-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 680px) {
        .armory-identity {
            align-items: flex-start;
            padding-top: 3.5rem;
        }

        .armory-identity__faction {
            width: 72px;
        }

        .equipment-paperdoll {
            grid-template-columns: 1fr;
        }

        .equipment-paperdoll::before {
            background: linear-gradient(0deg, rgb(2 10 18 / 17.6%), rgb(2 10 18 / 11.6%) 58%, rgb(2 10 18 / 8%));
        }

        .equipment-paperdoll__class-art {
            height: 36rem;
            object-position: 68% top;
            opacity: 0.46;
            mask-image: linear-gradient(#000 72%, transparent);
        }

        .equipment-paperdoll__column,
        .equipment-paperdoll__weapons {
            display: grid;
            grid-column: 1;
            grid-template-columns: repeat(4, 58px);
            justify-content: space-between;
        }

        .equipment-paperdoll__weapons {
            grid-template-columns: repeat(3, 58px);
        }

        .equipment-slot:not(.equipment-slot--empty) {
            grid-column: 1 / -1;
        }

        .equipment-paperdoll__column--right .equipment-slot--empty {
            justify-self: start;
        }

        .equipment-paperdoll__column--right .equipment-slot__icon {
            grid-row: 1;
            grid-column: 1;
        }

        .equipment-paperdoll__column--right .equipment-slot {
            grid-template-columns: 48px minmax(0, 1fr);
        }

        .equipment-paperdoll__column--right .equipment-slot--empty {
            grid-template-columns: 46px;
        }

        .equipment-paperdoll__column--right .equipment-slot__content {
            grid-row: 1;
            grid-column: 2;
            text-align: left;
        }

        .armory-overview,
        .profession-list {
            grid-template-columns: 1fr;
        }

        .armory-overview div:nth-child(odd) {
            padding-right: 0;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .equipment-slot {
            transform: none !important;
        }
    }
}

@layer features {
    .shop-return-banner {
        position: relative;
        display: block;
        aspect-ratio: 4 / 1;
        margin-bottom: var(--space-4);
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgb(2 10 18 / 82%);
        box-shadow: 0 18px 44px rgb(0 0 0 / 24%);
        color: var(--ice-50);
        text-decoration: none;
    }

    .shop-return-banner::after {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgb(1 8 16 / 52%), transparent 62%);
        content: "";
        pointer-events: none;
    }

    .shop-return-banner img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--ease), filter var(--ease);
    }

    .shop-return-banner span {
        position: absolute;
        z-index: 1;
        top: 50%;
        left: clamp(1rem, 3vw, 2rem);
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.65rem 0.9rem;
        border: 1px solid rgb(113 210 255 / 32%);
        border-radius: 999px;
        background: rgb(2 12 22 / 72%);
        font-weight: 800;
        transform: translateY(-50%);
        backdrop-filter: blur(8px);
    }

    .shop-return-banner b {
        color: var(--arcane-400);
        font-size: 1.25rem;
        line-height: 1;
    }

    .shop-return-banner:hover,
    .shop-return-banner:focus-visible {
        border-color: var(--border-bright);
        color: white;
    }

    .shop-return-banner:hover img {
        filter: saturate(1.08) brightness(1.06);
        transform: scale(1.015);
    }

    .shop-search-panel {
        margin-bottom: var(--space-6);
        padding: clamp(1rem, 2.5vw, 1.5rem);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background:
            radial-gradient(circle at 86% 10%, rgb(53 201 255 / 10%), transparent 34%),
            rgb(3 15 27 / 68%);
        box-shadow: inset 0 1px rgb(255 255 255 / 3%);
    }

    .feature-content .shop-search-form {
        display: grid;
        width: 100%;
        max-width: none;
        grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.75fr) auto;
        gap: var(--space-3);
        align-items: end;
    }

    .shop-search-form__query,
    .shop-search-form__scope {
        display: block;
        margin: 0;
    }

    .shop-search-form button {
        white-space: nowrap;
    }

    .shop-search-results-heading {
        margin-top: var(--space-7);
    }
}

@layer responsive {
    @media (max-width: 900px) {
        .product-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 760px) {
        .feature-content .shop-search-form {
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .shop-search-form__scope {
            grid-column: 1 / -1;
            grid-row: 2;
        }

        .shop-search-form__query {
            grid-column: 1;
            grid-row: 1;
        }

        .shop-search-form button {
            grid-column: 2;
            grid-row: 1;
        }
    }

    @media (max-width: 600px) {
        .product-grid,
        .product-grid:has(> .product-card:first-child:last-child),
        .product-grid:has(> .product-card:nth-child(2):last-child) {
            grid-template-columns: minmax(0, 1fr);
        }
    }
}
/* Versioned legal acceptance */
.legal-review-panel {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(67, 195, 244, .3);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(6, 27, 43, .96), rgba(4, 18, 31, .98));
}
.legal-review-form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.consent-check { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.5; }
.consent-check input { inline-size: 1.2rem; block-size: 1.2rem; margin-top: .15rem; accent-color: #34c8ff; }
.legal-review-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.legal-review-links a { color: #65d8ff; }

/* Privacy request center */
.privacy-request-form,
.privacy-request-status,
.account-privacy-requests {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid rgb(67 195 244 / 30%);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgb(53 201 255 / 10%), transparent 34%),
        linear-gradient(150deg, rgb(8 29 48 / 94%), rgb(3 14 25 / 96%));
    box-shadow: 0 25px 70px rgb(0 0 0 / 24%);
}

.privacy-request-form,
.privacy-request-status {
    width: min(100%, 980px);
    margin-inline: auto;
}

.privacy-request-form__hero,
.privacy-request-status__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
}

.privacy-request-form__icon,
.privacy-request-status__hero-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    background: rgb(3 15 27 / 72%);
    color: var(--arcane-400);
}

.privacy-request-form__icon svg,
.privacy-request-status__hero-icon svg {
    width: 30px;
    height: 30px;
}

.privacy-request-form__hero h2,
.privacy-request-status__hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.privacy-request-form__hero p:last-child,
.privacy-request-status__hero p:last-child {
    max-width: 720px;
    color: var(--text-muted);
}

.privacy-request-form__fields {
    margin: 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgb(2 15 27 / 66%);
}

.privacy-request-form__fields input,
.privacy-request-form__fields select,
.privacy-request-form__fields textarea {
    width: 100%;
    box-sizing: border-box;
}

.privacy-request-form__actions,
.privacy-request-status__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-3);
}

.privacy-request-status__hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.privacy-request-status__badge,
.privacy-request-state {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgb(53 201 255 / 40%);
    border-radius: 999px;
    background: rgb(53 201 255 / 9%);
    color: var(--arcane-400);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.privacy-request-status--completed .privacy-request-status__badge,
.privacy-request-state--completed {
    border-color: rgb(71 226 166 / 42%);
    background: rgb(71 226 166 / 9%);
    color: #75e6b2;
}

.privacy-request-status--rejected .privacy-request-status__badge,
.privacy-request-state--rejected {
    border-color: rgb(255 104 104 / 42%);
    background: rgb(255 104 104 / 9%);
    color: #ff9999;
}

.privacy-request-status__details {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    background: rgb(2 15 27 / 66%);
}

.privacy-request-status__details > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem 0.65rem;
    align-content: center;
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.4rem);
    border-right: 1px solid var(--border);
}

.privacy-request-status__details > div:last-child {
    border-right: 0;
}

.privacy-request-status__details span {
    grid-row: 1 / 3;
    color: var(--gold-300);
}

.privacy-request-status__details svg {
    width: 20px;
    height: 20px;
}

.privacy-request-status__details dt {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.privacy-request-status__details dd {
    min-width: 0;
    margin: 0;
    color: var(--ice-100);
    font-weight: 700;
}

.privacy-request-status__reference dd {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.82rem;
}

.privacy-request-status__notice,
.account-privacy-requests__empty {
    padding: var(--space-4);
    border: 1px solid rgb(53 201 255 / 24%);
    border-left: 3px solid var(--arcane-400);
    border-radius: var(--radius-sm);
    background: rgb(53 201 255 / 7%);
    color: var(--text-soft);
}

.account-privacy-requests {
    margin-top: var(--space-8);
}

.account-privacy-requests__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
}

.account-privacy-requests__table {
    width: 100%;
    border-collapse: collapse;
    background: rgb(2 15 27 / 70%);
    font-size: 0.82rem;
}

.account-privacy-requests__table th,
.account-privacy-requests__table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.account-privacy-requests__table th {
    background: rgb(8 34 53 / 84%);
    color: var(--text-muted);
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-privacy-requests__table tbody tr:last-child td {
    border-bottom: 0;
}

.account-privacy-requests__action {
    width: 1%;
    text-align: right !important;
}

.account-privacy-requests__action a {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    color: var(--arcane-400);
}

.account-privacy-requests__action svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 720px) {
    .privacy-request-status__hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .privacy-request-status__badge {
        grid-column: 1 / -1;
    }

    .privacy-request-status__details {
        grid-template-columns: 1fr;
    }

    .privacy-request-status__details > div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .privacy-request-status__details > div:last-child {
        border-bottom: 0;
    }

    .privacy-request-form__actions,
    .privacy-request-status__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .privacy-request-form__actions .button,
    .privacy-request-status__actions .button {
        width: 100%;
    }

    .account-privacy-requests__table-wrap {
        overflow: visible;
        border: 0;
    }

    .account-privacy-requests__table,
    .account-privacy-requests__table tbody,
    .account-privacy-requests__table tr,
    .account-privacy-requests__table td {
        display: block;
    }

    .account-privacy-requests__table thead {
        display: none;
    }

    .account-privacy-requests__table tbody {
        display: grid;
        gap: var(--space-3);
    }

    .account-privacy-requests__table tr {
        padding: var(--space-3);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgb(3 18 31 / 76%);
    }

    .account-privacy-requests__table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: 0.55rem;
        border: 0;
        white-space: normal;
        text-align: right;
    }

    .account-privacy-requests__table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-align: left;
        text-transform: uppercase;
    }

    .account-privacy-requests__action {
        width: auto;
    }

    .account-privacy-requests__action::before {
        content: none !important;
    }

    .account-privacy-requests__action a {
        width: 100%;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    .privacy-request-form__hero,
    .privacy-request-status__hero {
        grid-template-columns: 1fr;
    }

    .privacy-request-form__icon,
    .privacy-request-status__hero-icon {
        width: 54px;
        height: 54px;
    }
}

@layer features {
    .referral-invite-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem 1rem;
        margin-top: var(--space-5);
    }

    .referral-invite-actions button,
    .referral-invite-actions .button {
        margin: 0;
        min-height: 2.75rem;
    }
}

@layer responsive {
    @media (max-width: 520px) {
        .referral-invite-actions {
            flex-direction: column;
            align-items: stretch;
            text-align: center;
        }
    }
}

/* Native navigation stays available when the enhancement cannot initialize. */
@layer responsive {
    .navigation-ready .navigation-disclosure {
        display: contents;
    }

    .navigation-ready .navigation-disclosure > summary {
        display: none;
    }

    body:not(.navigation-ready) .site-header {
        position: relative;
    }

    body:not(.navigation-ready) .mobile-menu-button,
    body:not(.navigation-ready) .navigation-header {
        display: none;
    }

    .navigation-disclosure > summary {
        min-height: 90px;
        padding: 1rem;
        padding-left: max(174px, calc((100% - var(--content)) / 2 + 174px));
        border-top: 1px solid var(--border);
        color: var(--ice-100);
        font-weight: 750;
        cursor: pointer;
    }

    body:not(.navigation-ready) .site-navigation {
        position: static;
        width: 100%;
        overflow: visible;
        border: 0;
        box-shadow: none;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    body:not(.navigation-ready) .nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        align-items: start;
        gap: var(--space-3);
        padding: var(--space-3);
    }

    body:not(.navigation-ready) .nav-group > button {
        width: 100%;
        opacity: 1;
        cursor: default;
    }

    body:not(.navigation-ready) .nav-group > button svg:last-child {
        display: none;
    }

    body:not(.navigation-ready) .nav-menu {
        position: static;
        display: grid;
        width: auto;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        transform: none;
    }

    @media (max-width: 1050px) {
        .navigation-disclosure > summary {
            min-height: 64px;
            padding-left: 122px;
        }
    }
}

/* Editorial navigation remains usable without scripts. */
.article-contents,
.article-related {
    margin-block: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color, #456078);
    border-radius: 0.5rem;
}
.article-contents ol,
.article-related ul { padding-inline-start: 1.5rem; }
.article-contents a,
.article-related a { overflow-wrap: anywhere; }
.article-guide-meta,
.article-author-bio { line-height: 1.65; }
.prose [id],
.wiki_text [id],
.news_text [id] { scroll-margin-top: 7rem; }
