:root {
    --night-950: #040711;
    --night-900: #080d19;
    --night-850: #0d1422;
    --night-800: #131c2b;
    --ink: #17100e;
    --panel: #1c1412;
    --panel-soft: #241916;
    --gold-100: #fff0ba;
    --gold-300: #f5cd70;
    --gold-500: #d99a37;
    --gold-700: #8e4e18;
    --ember: #c93720;
    --ember-bright: #f0642f;
    --text: #f8f2e8;
    --muted: #b9b0a5;
    --line: rgba(239, 187, 86, 0.2);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    --content: 1180px;
    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Player gift vault */
.gift-vault {
    position: relative;
    margin-top: 1.35rem;
    padding: clamp(1rem, 2.4vw, 1.65rem);
    overflow: hidden;
    border: 1px solid rgba(227, 164, 70, 0.3);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 8%, rgba(223, 131, 44, 0.13), transparent 28%),
        linear-gradient(145deg, rgba(20, 24, 39, 0.98), rgba(8, 13, 26, 0.98));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
}

.gift-vault::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.gift-vault > * {
    position: relative;
    z-index: 1;
}

.gift-vault__header,
.gift-vault__heading,
.gift-vault__collect,
.gift-card,
.gift-card__meta,
.gift-history__item {
    display: flex;
    align-items: center;
}

.gift-vault__header {
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-vault__heading {
    min-width: 0;
    gap: 0.9rem;
}

.gift-vault__seal {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #fff2c4;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 206, 113, 0.58);
    border-radius: 17px;
    background: linear-gradient(145deg, #a84e19, #e9a33c 52%, #69300f);
    box-shadow: 0 10px 30px rgba(212, 113, 30, 0.24), inset 0 1px rgba(255, 255, 255, 0.4);
    transform: rotate(45deg) scale(0.74);
}

.gift-vault__seal::first-letter {
    transform: rotate(-45deg);
}

.gift-vault__heading .eyebrow {
    margin: 0 0 0.25rem;
    color: #f1b754;
}

.gift-vault__heading h2 {
    margin: 0;
    color: #fff1cf;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.gift-vault__heading p:last-child {
    max-width: 680px;
    margin: 0.3rem 0 0;
    color: rgba(235, 229, 216, 0.66);
}

.gift-vault__count {
    display: grid;
    flex: 0 0 auto;
    min-width: 105px;
    padding: 0.65rem 0.85rem;
    text-align: center;
    border: 1px solid rgba(245, 181, 77, 0.24);
    border-radius: 16px;
    background: rgba(236, 147, 47, 0.08);
}

.gift-vault__count b {
    color: #ffd98a;
    font: 700 1.45rem/1 var(--font-display);
}

.gift-vault__count {
    color: rgba(239, 226, 204, 0.58);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.gift-card {
    position: relative;
    min-width: 0;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(228, 181, 105, 0.2);
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(28, 31, 45, 0.96), rgba(13, 18, 31, 0.96));
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.gift-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.425rem);
    justify-self: center;
}

.gift-card:hover {
    border-color: rgba(245, 183, 81, 0.5);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.gift-card__visual {
    position: relative;
    display: grid;
    flex: 0 0 94px;
    width: 94px;
    height: 94px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(239, 178, 79, 0.36);
    border-radius: 18px;
    background: radial-gradient(circle, rgba(242, 147, 37, 0.16), rgba(4, 7, 14, 0.94) 72%);
}

.gift-card__glow {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(242, 151, 43, 0.2);
    filter: blur(14px);
}

.gift-card__visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.72));
}

.gift-card__placeholder {
    color: #f4bb5d;
    font: 700 1.2rem var(--font-display);
}

.gift-card__body {
    min-width: 0;
    flex: 1;
}

.gift-card__badge {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #79dda7;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gift-card__body h3 {
    margin: 0;
    overflow: hidden;
    color: #fff0ce;
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-card__body > p {
    margin: 0.22rem 0 0;
    overflow: hidden;
    color: rgba(235, 228, 215, 0.64);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-card__body .gift-card__description-two {
    color: rgba(240, 177, 83, 0.75);
}

.gift-card blockquote {
    margin: 0.55rem 0 0;
    padding-left: 0.55rem;
    overflow: hidden;
    color: rgba(255, 239, 205, 0.72);
    font-size: 0.72rem;
    font-style: italic;
    border-left: 2px solid rgba(239, 167, 58, 0.55);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-card__meta {
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.gift-card__meta span {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.gift-card__meta small,
.gift-card__meta time {
    color: rgba(230, 222, 207, 0.48);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gift-card__meta strong {
    color: #ffd786;
}

.gift-vault__collect {
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(102, 220, 157, 0.2);
    border-radius: 16px;
    background: rgba(30, 94, 68, 0.12);
}

.gift-vault__collect > p {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: rgba(219, 237, 225, 0.65);
    font-size: 0.78rem;
}

.gift-vault__collect > p span {
    color: #68d99e;
}

.gift-vault__collect form,
.gift-vault__collect button {
    flex: 0 0 auto;
    margin: 0;
}

.gift-vault__collect button {
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border-radius: 13px;
}

.gift-vault__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 130px;
    text-align: left;
}

.gift-vault__empty > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #f0ae4a;
    border: 1px solid rgba(240, 174, 74, 0.3);
    border-radius: 14px;
    background: rgba(240, 174, 74, 0.08);
}

.gift-vault__empty h3,
.gift-history h3 {
    margin: 0;
    color: #f7e5c0;
    font-family: var(--font-display);
}

.gift-vault__empty p {
    margin: 0.18rem 0 0;
    color: rgba(235, 228, 215, 0.55);
    font-size: 0.8rem;
}

.gift-history {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-history h3 {
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

.gift-history__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.gift-history__item {
    min-width: 0;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.gift-history__item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    image-rendering: pixelated;
}

.gift-history__item > span {
    display: grid;
    min-width: 0;
    flex: 1;
}

.gift-history__item strong {
    overflow: hidden;
    color: #eadcbf;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-history__item small,
.gift-history__item time {
    color: rgba(230, 222, 207, 0.44);
    font-size: 0.62rem;
}

@media (max-width: 820px) {
    .gift-grid,
    .gift-history__list {
        grid-template-columns: 1fr;
    }

    .gift-vault__header,
    .gift-vault__collect {
        align-items: stretch;
        flex-direction: column;
    }

    .gift-vault__count {
        display: flex;
        min-width: 0;
        align-items: baseline;
        justify-content: center;
        gap: 0.4rem;
    }

    .gift-vault__collect button,
    .gift-vault__collect form {
        width: 100%;
    }

    .gift-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .gift-card {
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .gift-card__visual {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
        border-radius: 15px;
    }

    .gift-card__visual img {
        width: 50px;
        height: 50px;
    }

    .gift-card__body h3 {
        font-size: 1.05rem;
    }

    .gift-card__meta time {
        display: none;
    }
}

/* Dynamic launch, download and community surfaces */
.launch-countdown {
    width: min(680px, 100%);
    margin: 2rem auto 0;
    padding: 1rem;
    border: 1px solid rgba(245, 205, 112, 0.26);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(5, 9, 18, 0.78), rgba(49, 20, 14, 0.56));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.launch-countdown > p {
    margin: 0 0 0.8rem;
    color: var(--gold-300);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

.launch-countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.launch-countdown__grid div {
    padding: 0.7rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(3, 6, 13, 0.56);
    text-align: center;
}

.launch-countdown__grid strong {
    display: block;
    color: #fff1ca;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.launch-countdown__grid span {
    display: block;
    margin-top: 0.35rem;
    color: #847c73;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.launch-countdown time {
    display: block;
    margin-top: 0.75rem;
    color: #8f877d;
    font-size: 0.68rem;
    text-align: center;
}

.launch-countdown.is-complete {
    border-color: rgba(84, 214, 141, 0.38);
}

.launch-countdown--pending {
    padding: 1.3rem;
    text-align: center;
}

.launch-countdown--pending strong {
    color: #fff1ca;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.55rem);
}

.download-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: stretch;
    gap: clamp(1.2rem, 4vw, 3.2rem);
}

.download-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.8rem, 5vw, 3.5rem);
    border: 1px solid rgba(245, 205, 112, 0.2);
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 20%, rgba(212, 126, 45, 0.2), transparent 35%),
        linear-gradient(145deg, rgba(17, 20, 31, 0.94), rgba(20, 11, 13, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.download-panel__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(245, 205, 112, 0.35);
    border-radius: 18px;
    color: #fff1ca;
    background: rgba(194, 103, 31, 0.2);
    font-family: var(--font-display);
    font-size: 1.9rem;
}

.download-panel h2,
.discord-stage h2 {
    margin: 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1;
}

.download-panel > p:not(.eyebrow),
.discord-stage__copy > p:not(.eyebrow) {
    max-width: 620px;
    color: #a9a096;
}

.download-button {
    margin-top: 1rem;
}

.download-button.is-disabled {
    cursor: not-allowed;
    filter: grayscale(0.55);
    opacity: 0.62;
}

.download-panel__news {
    display: block;
    width: fit-content;
    margin-top: 1.2rem;
    color: var(--gold-300);
    font-size: 0.75rem;
    font-weight: 800;
}

.journey-steps {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.07);
}

.journey-steps article {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    min-height: 150px;
    padding: 1.4rem 1.8rem;
    background: linear-gradient(110deg, rgba(12, 17, 28, 0.98), rgba(22, 13, 15, 0.98));
    gap: 1.2rem;
}

.journey-steps article > span {
    color: rgba(221, 154, 77, 0.68);
    font-family: var(--font-display);
    font-size: 2rem;
}

.journey-steps h3 {
    margin: 0;
    color: #f2e7d6;
    font-family: var(--font-display);
    font-size: 1.45rem;
}

.journey-steps p {
    margin: 0.4rem 0 0;
    color: #8e877e;
    font-size: 0.78rem;
}

.discord-stage {
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: center;
    overflow: hidden;
    min-height: 390px;
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid rgba(121, 132, 255, 0.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 50%, rgba(88, 101, 242, 0.28), transparent 35%),
        linear-gradient(135deg, rgba(10, 15, 29, 0.98), rgba(23, 15, 27, 0.96));
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
    gap: 2rem;
}

.button--discord {
    margin-top: 1rem;
    border-color: rgba(160, 169, 255, 0.48);
    color: #fff;
    background: linear-gradient(135deg, #6573ee, #4d57bf);
    box-shadow: 0 14px 34px rgba(88, 101, 242, 0.25);
}

.discord-stage__mark {
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    border: 0;
    border-radius: 50%;
    color: #f1edff;
    background: transparent;
    box-shadow: none;
}

.discord-stage__mark span {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
}

.discord-stage__mark small {
    align-self: start;
    color: #aeb5ff;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.discord-stage__mark img {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

.social-contact {
    padding-top: 4.5rem;
}

.social-contact .section-heading {
    margin-bottom: 2rem;
}

.social-contact .section-heading p:last-child {
    max-width: 620px;
    margin: 0.8rem auto 0;
    color: #918980;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    color: #eee5d9;
    background: linear-gradient(145deg, rgba(16, 22, 35, 0.96), rgba(20, 13, 17, 0.96));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    flex-direction: column;
    grid-column: span 2;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-card:nth-child(4) {
    grid-column: 3 / span 2;
}

a.social-card:hover {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    transform: translateY(-4px);
}

.social-card--discord:hover {
    border-color: rgba(119, 132, 255, 0.55);
}

.social-card--instagram:hover {
    border-color: rgba(224, 45, 132, 0.55);
}

.social-card--facebook:hover {
    border-color: rgba(80, 123, 201, 0.55);
}

.social-card--youtube:hover {
    border-color: rgba(255, 69, 58, 0.62);
}

.social-card__visual {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 1.2rem;
    background: transparent;
}

.social-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-card--discord .social-card__visual {
    border-color: transparent;
    background: transparent;
}

.social-card__name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
}

.social-card__action {
    margin-top: 0.35rem;
    color: #918980;
    font-size: 0.7rem;
    font-weight: 700;
}

.social-card.is-disabled {
    filter: saturate(0.6);
    opacity: 0.6;
}

.social-contact__email {
    margin: 1.5rem 0 0;
    color: #7f7871;
    font-size: 0.75rem;
    text-align: center;
}

.social-contact__email a {
    color: var(--gold-300);
    font-weight: 800;
}

body.site-intro-active {
    overflow: hidden;
}

.site-intro[hidden] {
    display: none;
}

.site-intro {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff6e9;
    background: #03060e;
    opacity: 1;
    transition: opacity 480ms ease;
}

.site-intro.is-leaving {
    pointer-events: none;
    opacity: 0;
}

.site-intro::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(1, 3, 10, 0.08) 12%, rgba(1, 3, 10, 0.58) 100%),
        radial-gradient(circle at 50% 45%, transparent 17%, rgba(1, 3, 10, 0.56) 100%);
    content: '';
    pointer-events: none;
}

.site-intro__scene,
.site-intro__left-figure,
.site-intro__right-figure,
.site-intro__smith {
    position: absolute;
    inset: 0;
    background: #050914 url('../img/intro-marketplace.jpg') center / cover no-repeat;
}

.site-intro__scene {
    z-index: -2;
    transform: scale(1.08);
    filter: brightness(0.72) saturate(0.84);
    animation: intro-scene-approach 5.6s cubic-bezier(0.2, 0.65, 0.16, 1) both;
}

.site-intro__left-figure,
.site-intro__right-figure,
.site-intro__smith {
    z-index: 1;
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

.site-intro__left-figure {
    clip-path: polygon(0 0, 43% 0, 44% 58%, 38% 100%, 0 100%);
    filter: brightness(1.13) saturate(1.18);
    transform: translate3d(-9%, 3%, 0) scale(1.08);
    animation: intro-left-arrival 2.4s 0.35s cubic-bezier(0.14, 0.8, 0.22, 1) both;
}

.site-intro__right-figure {
    clip-path: polygon(64% 0, 100% 0, 100% 100%, 55% 100%, 60% 58%);
    filter: brightness(1.12) saturate(1.16);
    transform: translate3d(10%, 1%, 0) scale(1.08);
    animation: intro-right-arrival 2.6s 0.55s cubic-bezier(0.14, 0.8, 0.22, 1) both;
}

.site-intro__smith {
    clip-path: polygon(50% 58%, 82% 54%, 91% 100%, 41% 100%);
    filter: brightness(1.25) saturate(1.35);
    transform: translate3d(0, 10%, 0) scale(1.1);
    animation: intro-smith-arrival 2.5s 0.78s cubic-bezier(0.14, 0.8, 0.22, 1) both;
}

.site-intro__forge-glow {
    position: absolute;
    z-index: 2;
    right: 19%;
    bottom: -12%;
    width: min(46vw, 720px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 150, 0.92) 0, rgba(255, 116, 24, 0.38) 21%, rgba(238, 66, 10, 0.1) 44%, transparent 69%);
    filter: blur(7px);
    mix-blend-mode: screen;
    opacity: 0;
    animation: intro-forge-pulse 1.1s 1.2s ease-in-out 3 both;
    pointer-events: none;
}

.site-intro__sparks {
    position: absolute;
    z-index: 3;
    right: 15%;
    bottom: 2%;
    width: min(43vw, 660px);
    height: min(44vw, 560px);
    opacity: 0;
    background-image:
        radial-gradient(circle, #fff3bf 0 1px, transparent 2px),
        radial-gradient(circle, #ffbd58 0 1.5px, transparent 2.5px),
        radial-gradient(circle, #ff7d25 0 1px, transparent 2px),
        radial-gradient(circle, #ffe194 0 1px, transparent 2px);
    background-position: 8% 85%, 42% 71%, 72% 91%, 91% 58%;
    background-size: 92px 132px, 128px 176px, 106px 154px, 142px 202px;
    mix-blend-mode: screen;
    mask-image: linear-gradient(to top, #000 3%, transparent 88%);
    animation: intro-sparks-rise 1.15s 1s linear 4 both;
    pointer-events: none;
}

.site-intro__mist {
    position: absolute;
    z-index: 2;
    inset: auto -15% -19% -15%;
    height: 48%;
    background:
        radial-gradient(ellipse at 24% 65%, rgba(151, 185, 223, 0.2), transparent 40%),
        radial-gradient(ellipse at 73% 45%, rgba(255, 180, 99, 0.12), transparent 34%);
    filter: blur(18px);
    opacity: 0;
    animation: intro-mist-drift 5.2s 0.25s ease-out both;
    pointer-events: none;
}

.site-intro__brand {
    position: relative;
    z-index: 5;
    width: min(550px, 47vw);
    margin-top: 3.5vh;
    text-align: center;
    transform: translate3d(0, 5vh, 0) scale(0.82);
    opacity: 0;
    animation: intro-brand-reveal 5.4s 0.35s cubic-bezier(0.16, 0.75, 0.24, 1) both;
}

.site-intro__brand::before {
    position: absolute;
    z-index: -1;
    inset: 29% -12% 12%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 182, 59, 0.29), transparent 66%);
    filter: blur(18px);
    content: '';
}

.site-intro__brand img {
    display: block;
    width: 100%;
    filter: drop-shadow(0 8px 2px rgba(20, 4, 1, 0.9)) drop-shadow(0 0 32px rgba(255, 174, 45, 0.42));
}

.site-intro__brand p {
    margin: -0.9rem 0 0;
    color: #f7dd9c;
    font-size: clamp(0.63rem, 1.15vw, 0.82rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 7px #090407;
    text-transform: uppercase;
}

.site-intro__skip {
    position: absolute;
    z-index: 6;
    right: clamp(1rem, 3vw, 2.3rem);
    bottom: clamp(1rem, 3vw, 2.1rem);
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 228, 166, 0.36);
    border-radius: 999px;
    color: #f8e5b7;
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(3, 6, 12, 0.58);
    backdrop-filter: blur(12px);
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.site-intro__skip:hover,
.site-intro__skip:focus-visible {
    border-color: var(--gold-100);
    color: #fff8e8;
    background: rgba(84, 32, 8, 0.65);
}

@keyframes intro-scene-approach {
    0% { transform: scale(1.11); filter: brightness(0.46) saturate(0.65); }
    38% { filter: brightness(0.76) saturate(0.95); }
    100% { transform: scale(1.01); filter: brightness(0.76) saturate(0.95); }
}

@keyframes intro-left-arrival {
    0% { opacity: 0; transform: translate3d(-13%, 5%, 0) scale(1.1); }
    55% { opacity: 0.72; }
    100% { opacity: 0.38; transform: translate3d(-1%, 0, 0) scale(1.015); }
}

@keyframes intro-right-arrival {
    0% { opacity: 0; transform: translate3d(14%, 4%, 0) scale(1.11); }
    55% { opacity: 0.7; }
    100% { opacity: 0.36; transform: translate3d(1%, 0, 0) scale(1.015); }
}

@keyframes intro-smith-arrival {
    0% { opacity: 0; transform: translate3d(0, 15%, 0) scale(1.15); }
    65% { opacity: 0.62; }
    100% { opacity: 0.35; transform: translate3d(0, 1%, 0) scale(1.02); }
}

@keyframes intro-forge-pulse {
    0%, 100% { opacity: 0.06; transform: scale(0.8); }
    50% { opacity: 0.9; transform: scale(1.12); }
}

@keyframes intro-sparks-rise {
    0% { opacity: 0; transform: translate3d(0, 15%, 0) scale(0.9); }
    15% { opacity: 0.95; }
    100% { opacity: 0; transform: translate3d(-3%, -43%, 0) scale(1.08); }
}

@keyframes intro-mist-drift {
    0% { opacity: 0; transform: translate3d(-6%, 12%, 0); }
    35% { opacity: 0.88; }
    100% { opacity: 0.45; transform: translate3d(4%, 0, 0); }
}

@keyframes intro-brand-reveal {
    0%, 13% { opacity: 0; transform: translate3d(0, 8vh, 0) scale(0.68); filter: blur(9px); }
    38% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.05); filter: blur(0); }
    72% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
    100% { opacity: 0.98; transform: translate3d(0, -1.2vh, 0) scale(1.02); filter: blur(0); }
}

@media (max-width: 760px) {
    .site-intro__brand {
        width: min(530px, 82vw);
        margin-top: 5vh;
    }

    .site-intro__left-figure {
        clip-path: polygon(0 0, 50% 0, 47% 100%, 0 100%);
    }

    .site-intro__right-figure {
        clip-path: polygon(65% 0, 100% 0, 100% 100%, 56% 100%);
    }

    .site-intro__smith {
        clip-path: polygon(45% 58%, 100% 54%, 100% 100%, 38% 100%);
    }

    .site-intro__forge-glow {
        right: -8%;
        width: 82vw;
    }

    .site-intro__sparks {
        right: -4%;
        width: 78vw;
        height: 86vw;
    }
}

.not-found {
    position: relative;
    display: grid;
    min-height: min(760px, calc(100vh - 128px));
    place-items: center;
    padding: clamp(8rem, 15vw, 12rem) 1rem 6rem;
    overflow: hidden;
    text-align: center;
}

.not-found::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(2, 6, 15, 0.24), rgba(2, 6, 15, 0.9)),
        radial-gradient(circle at 50% 8%, rgba(236, 157, 41, 0.16), transparent 38rem);
    content: '';
}

.not-found__glow {
    position: absolute;
    z-index: -1;
    width: min(680px, 90vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205, 73, 30, 0.26), rgba(205, 73, 30, 0));
    filter: blur(12px);
}

.not-found__panel {
    width: min(670px, 100%);
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 4rem);
    border-color: rgba(245, 205, 112, 0.28);
    background: linear-gradient(145deg, rgba(14, 21, 35, 0.95), rgba(15, 9, 14, 0.96));
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.55), inset 0 0 34px rgba(246, 178, 62, 0.05);
}

.not-found__code {
    margin: -0.35rem 0 0.45rem;
    color: transparent;
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 21vw, 10.5rem);
    font-weight: 900;
    line-height: 0.78;
    letter-spacing: -0.07em;
    -webkit-text-stroke: 1px rgba(245, 205, 112, 0.72);
    text-shadow: 0 0 32px rgba(227, 138, 33, 0.32);
}

.not-found h1 {
    margin: 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.1rem);
    line-height: 1.08;
}

.not-found h1 + p {
    max-width: 480px;
    margin: 1rem auto 1.7rem;
    color: #c6beb4;
}

.not-found__actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.contact-strip__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem;
}

/* News archive inspired by the supplied three-column reference */
.news-archive {
    padding-top: 3.5rem;
}

.news-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.news-toolbar h2 {
    margin: 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.news-filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.news-filter label {
    color: #8e877e;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.news-filter select,
.news-filter button {
    min-height: 40px;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ddd4c7;
    background: #111621;
}

.news-filter button {
    border-color: rgba(223, 153, 73, 0.4);
    cursor: pointer;
    font-weight: 800;
}

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.archive-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: #111722;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.26);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.archive-card:hover {
    border-color: rgba(222, 151, 70, 0.36);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    transform: translateY(-4px);
}

.archive-card__cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #080c14;
}

.archive-card__cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 8, 14, 0.72), transparent 52%);
    content: '';
}

.archive-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease, filter 450ms ease;
}

.archive-card:hover .archive-card__cover img {
    filter: saturate(1.08);
    transform: scale(1.035);
}

.archive-card__cover > span {
    position: absolute;
    z-index: 1;
    right: 0.85rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 220, 147, 0.28);
    border-radius: 7px;
    color: #ffe3a4;
    background: rgba(16, 10, 10, 0.78);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.archive-card__body {
    padding: 1.25rem;
}

.archive-card time {
    color: var(--gold-300);
    font-size: 0.7rem;
    font-weight: 800;
}

.archive-card h3 {
    margin: 0.75rem 0 0;
    color: #f3eadf;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.15;
}

.archive-card h3 a:hover {
    color: var(--gold-300);
}

.archive-card__body > p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.9em;
    margin: 0.75rem 0 0;
    color: #8f8981;
    font-size: 0.78rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.archive-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #635e59;
    font-size: 0.65rem;
}

.archive-card__meta a {
    color: #c99c63;
    font-weight: 800;
}

.archive-card--compact .archive-card__body {
    min-height: 120px;
}

.empty-news {
    grid-column: 1 / -1;
    padding: 4rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: #8f8981;
    text-align: center;
}

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

.empty-news h3 {
    color: #eee4d6;
    font-family: var(--font-display);
    font-size: 1.6rem;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.2rem;
    gap: 1.25rem;
}

.news-pagination a,
.news-pagination span {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    color: #a99f94;
    font-size: 0.72rem;
}

/* News detail inspired by the supplied long-form reference */
.news-detail-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 9rem 0 3rem;
}

.news-detail {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 4px solid var(--gold-500);
    border-radius: 0 0 18px 18px;
    background: #111722;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}

.news-detail__back {
    display: inline-block;
    margin: 1.5rem clamp(1.25rem, 5vw, 3.5rem) 0;
    color: #9c9389;
    font-size: 0.7rem;
    font-weight: 800;
}

.news-detail__header {
    padding: 2rem clamp(1.25rem, 5vw, 3.5rem) 1.8rem;
}

.news-detail__header h1 {
    max-width: 880px;
    margin: 0;
    color: #fff0d5;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 0.98;
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    color: #7d7770;
    font-size: 0.68rem;
    gap: 1rem;
}

.news-detail__cover {
    width: calc(100% - clamp(2.5rem, 10vw, 7rem));
    max-height: 540px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.news-detail__cover img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}

.news-detail__content {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
    color: #c4bbb0;
    font-size: 0.92rem;
    line-height: 1.9;
}

.news-detail__lead {
    color: #eee2d1;
    font-size: 1.05rem;
    font-weight: 700;
}

.news-detail__body p {
    margin: 0 0 1.25rem;
}

.ornate-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 2.8rem 0;
    color: var(--gold-500);
    gap: 0.9rem;
}

.ornate-divider::before,
.ornate-divider::after {
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    content: '';
}

.news-detail__signature {
    margin: 0;
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.more-news {
    padding-top: 2rem;
}

@media (max-width: 980px) {
    .download-section,
    .discord-stage {
        grid-template-columns: 1fr;
    }

    .discord-stage__mark {
        display: none;
    }

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

@media (max-width: 640px) {
    .launch-countdown {
        margin-top: 1.35rem;
        padding: 0.7rem;
    }

    .launch-countdown__grid {
        gap: 0.35rem;
    }

    .launch-countdown__grid div {
        padding: 0.65rem 0.25rem;
    }

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

    .journey-steps article {
        grid-template-columns: 50px 1fr;
        min-height: 132px;
        padding: 1.1rem;
    }

    .discord-stage {
        min-height: 0;
        padding: 2rem 1.25rem;
    }

    .contact-strip__actions,
    .news-toolbar,
    .news-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .news-archive-grid {
        grid-template-columns: 1fr;
    }

    .news-filter select,
    .news-filter button {
        width: 100%;
    }

    .news-detail-shell {
        width: min(100% - 1rem, 1120px);
        padding-top: 6.5rem;
    }

    .news-detail__cover {
        width: calc(100% - 1.5rem);
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .social-card,
    .social-card:nth-child(4) {
        grid-column: auto;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(33, 75, 123, 0.16), transparent 28rem),
        radial-gradient(circle at 82% 25%, rgba(147, 44, 27, 0.12), transparent 26rem),
        var(--night-950);
    font-family: var(--font-body);
    line-height: 1.65;
    min-width: 320px;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 56px 56px;
    content: '';
    pointer-events: none;
}

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

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

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

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

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

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    color: #111;
    background: var(--gold-100);
    font-weight: 800;
    transform: translateY(-160%);
}

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

.site-shell {
    min-height: 100vh;
    overflow: clip;
}

.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(240, 179, 64, 0.36);
    background: rgba(4, 7, 17, 0.96);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
    display: flex;
    align-items: center;
    width: min(var(--content), calc(100% - 2rem));
    min-height: 128px;
    margin: 0 auto;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.72rem;
}

.brand-mark {
    display: block;
    width: 102px;
    height: 102px;
    flex: 0 0 auto;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65));
}

.brand-copy {
    display: grid;
    line-height: 1;
    text-transform: uppercase;
}

.brand-copy strong {
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.09em;
}

.brand-copy small {
    margin-top: 0.3rem;
    color: var(--gold-500);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.42em;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: clamp(1rem, 2.2vw, 2rem);
}

.primary-nav a {
    position: relative;
    padding: 1.75rem 0 1.55rem;
    color: #d8d2ca;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.primary-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 0.9rem;
    left: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), var(--gold-300));
    content: '';
    transition: inset 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--gold-100);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    right: 0;
    left: 0;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.25rem;
    border: 1px solid rgba(255, 224, 154, 0.65);
    color: #241008;
    background: linear-gradient(180deg, #ffd676, #c97b22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px rgba(135, 49, 18, 0.28);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms ease, filter 180ms ease;
}

.nav-cta:hover,
.button:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 45px;
    height: 45px;
    margin-left: auto;
    padding: 0.65rem;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--night-800);
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--gold-300);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #62db83;
    box-shadow: 0 0 0 5px rgba(98, 219, 131, 0.1), 0 0 14px rgba(98, 219, 131, 0.75);
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: min(900px, calc(100vh - 120px));
    padding: clamp(24rem, 31vw, 28rem) 1rem 5rem;
    background-color: #081121;
    background-image: url('../img/rise-guardian-sky2.jpg');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 0 56%, rgba(2, 5, 12, 0.24) 72%, #040711 100%),
        radial-gradient(circle at 50% 68%, transparent 0, rgba(0, 0, 0, 0.12) 66%);
}

.ornate-panel {
    position: relative;
    width: min(700px, calc(100% - 2rem));
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(246, 196, 101, 0.46);
    background:
        linear-gradient(rgba(31, 20, 17, 0.86), rgba(13, 11, 13, 0.92)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 6px);
    box-shadow: inset 0 0 0 4px rgba(60, 30, 13, 0.5), inset 0 0 45px rgba(0, 0, 0, 0.72), var(--shadow);
    text-align: center;
}

.ornate-panel::before,
.ornate-panel::after {
    position: absolute;
    left: 50%;
    width: 64px;
    height: 18px;
    border: solid var(--gold-500);
    content: '';
    transform: translateX(-50%) rotate(45deg);
}

.ornate-panel::before {
    top: -10px;
    border-width: 1px 0 0 1px;
}

.ornate-panel::after {
    bottom: -10px;
    border-width: 0 1px 1px 0;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--gold-300);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
}

.hero h1 {
    color: var(--gold-100);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    text-shadow: 0 2px 0 #4f1a0d, 0 0 30px rgba(221, 123, 30, 0.25);
}

.hero__lead {
    max-width: 550px;
    margin: 1rem auto 1.5rem;
    color: #d4ccc1;
    font-size: clamp(0.93rem, 1.6vw, 1.08rem);
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button--ghost {
    color: var(--gold-100);
    background: rgba(5, 8, 15, 0.58);
    box-shadow: inset 0 0 20px rgba(220, 139, 36, 0.08);
}

.button--disabled,
.button:disabled {
    color: #8c8378;
    border-color: #4a4038;
    background: #211b19;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.account-access-control {
    font: inherit;
}

.button.account-access-control {
    cursor: pointer;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 470px;
    margin: 1.7rem auto 0;
    border-top: 1px solid var(--line);
}

.hero__stats div {
    padding: 1rem 0.5rem 0;
}

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

.hero__stats dt {
    color: #968c81;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__stats dd {
    margin: 0.2rem 0 0;
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
}

.hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    color: #d1c9be;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero__scroll span {
    margin-left: 0.45rem;
    color: var(--gold-500);
}

.section {
    width: min(var(--content), calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-heading h2,
.world-copy h2,
.callout h2 {
    color: var(--gold-100);
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.text-link {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--gold-700);
    color: var(--gold-300);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 1rem;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(29, 22, 22, 0.94), rgba(10, 15, 26, 0.96));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.news-card__art {
    display: flex;
    align-items: end;
    min-height: 175px;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background-position: center;
    background-size: cover;
}

.news-card--featured .news-card__art {
    min-height: 225px;
}

.news-card__art--war {
    background:
        linear-gradient(180deg, transparent, rgba(13, 5, 5, 0.82)),
        radial-gradient(circle at 72% 28%, rgba(238, 139, 44, 0.65), transparent 18%),
        linear-gradient(135deg, #172844 0%, #7b2e1c 52%, #1a1014 100%);
}

.news-card__art--forge {
    background:
        linear-gradient(180deg, transparent, rgba(13, 5, 5, 0.82)),
        radial-gradient(circle at 25% 68%, #f1a634, transparent 15%),
        linear-gradient(145deg, #38120e, #7d2815 45%, #0c1524);
}

.news-card__art--tribes {
    background:
        linear-gradient(180deg, transparent, rgba(13, 5, 5, 0.82)),
        radial-gradient(circle at 50% 45%, rgba(85, 139, 189, 0.55), transparent 18%),
        linear-gradient(135deg, #111e34, #4c1f24 52%, #20120e);
}

.news-card__art span,
.tag {
    display: inline-flex;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(255, 221, 149, 0.35);
    color: var(--gold-100);
    background: rgba(101, 34, 17, 0.78);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-card__body {
    padding: 1.3rem;
}

.news-card time,
.article-meta {
    color: #8e877e;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0.55rem 0 0.6rem;
    color: #f4eadc;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.25;
}

.news-card h3 a:hover,
.list-card h2 a:hover {
    color: var(--gold-300);
}

.news-card p,
.world-copy > p:not(.eyebrow),
.callout p,
.guide-card p,
.contact-card p,
.download-card p,
.requirements-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.world-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
}

.world-copy > p:not(.eyebrow) {
    max-width: 520px;
    margin: 1.2rem 0 1.8rem;
    font-size: 1rem;
}

.feature-stack {
    display: grid;
    gap: 0.8rem;
}

.feature-stack article {
    display: flex;
    align-items: center;
    min-height: 112px;
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--line);
    background: linear-gradient(100deg, rgba(77, 29, 19, 0.5), rgba(12, 18, 30, 0.85));
    gap: 1.3rem;
}

.feature-stack article > span {
    color: var(--gold-500);
    font-family: var(--font-display);
    font-size: 2rem;
}

.feature-stack h3 {
    margin: 0 0 0.2rem;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: 1.25rem;
}

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

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(4rem, 8vw, 7rem);
    padding: clamp(2rem, 4vw, 3.3rem);
    border: 1px solid rgba(235, 177, 72, 0.4);
    background:
        linear-gradient(90deg, rgba(71, 20, 13, 0.88), rgba(10, 16, 28, 0.93)),
        var(--panel);
    box-shadow: var(--shadow);
    gap: 2rem;
}

.callout p:not(.eyebrow) {
    max-width: 670px;
    margin-top: 0.7rem;
}

.page-hero {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 510px;
    padding: 2rem 1rem 3.5rem;
    background-color: #07101f;
    background-image: url('../img/rise-guardian-sky2.jpg');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.page-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(3, 7, 16, 0.04), rgba(4, 7, 17, 0.55) 62%, var(--night-950));
}

.ornate-panel--compact {
    width: min(680px, calc(100% - 2rem));
    padding: 1.7rem 2rem;
}

.page-hero h1 {
    color: var(--gold-100);
    font-size: clamp(2.3rem, 6vw, 4.4rem);
}

.page-hero__content > p:last-child {
    margin: 0.7rem auto 0;
    color: #c8beb2;
}

.page-section {
    min-height: 420px;
}

.news-list {
    display: grid;
    gap: 0.8rem;
}

.list-card {
    display: grid;
    grid-template-columns: 90px 1fr 48px;
    align-items: center;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    background: linear-gradient(100deg, rgba(43, 23, 19, 0.8), rgba(11, 17, 28, 0.92));
    gap: 1.4rem;
}

.list-card__date {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 92px;
    border-right: 1px solid var(--line);
}

.list-card__date strong {
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: 2.1rem;
    line-height: 1;
}

.list-card__date span {
    color: #8d857c;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.list-card h2 {
    margin: 0.45rem 0 0.2rem;
    color: #f1e7d8;
    font-size: 1.35rem;
}

.list-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.card-arrow {
    color: var(--gold-300);
    font-size: 1.6rem;
    text-align: center;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.article-main {
    max-width: 760px;
}

.article-lead {
    color: #eee3d3;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.65;
}

.article-main h2 {
    margin-top: 2.3rem;
    color: var(--gold-100);
    font-size: 1.8rem;
}

.article-main p {
    color: #bdb4a9;
}

.article-main blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--gold-500);
    color: #eee0ca;
    background: rgba(93, 38, 21, 0.26);
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.article-aside {
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: rgba(25, 18, 18, 0.8);
}

.article-aside a {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    color: #d8cfc4;
    font-size: 0.84rem;
}

.article-aside a span {
    color: var(--gold-500);
}

.panel-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.panel-toolbar h2 {
    color: var(--gold-100);
    font-size: 2.4rem;
}

.status-note {
    margin: 0;
    color: #aaa198;
    font-size: 0.75rem;
}

.status-note .status-dot {
    background: #d99a37;
    box-shadow: 0 0 0 5px rgba(217, 154, 55, 0.1);
}

.table-shell {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: rgba(14, 18, 27, 0.86);
}

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

th,
td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

th {
    color: var(--gold-300);
    background: rgba(94, 39, 21, 0.38);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

td {
    color: #bfb6ab;
    font-size: 0.85rem;
}

.panel-help {
    margin-top: 1rem;
    color: #7f7972;
    font-size: 0.75rem;
}

.guide-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.guide-card,
.contact-card {
    position: relative;
    min-height: 240px;
    padding: 2rem;
    border: 1px solid var(--line);
    background: linear-gradient(140deg, rgba(57, 27, 20, 0.78), rgba(10, 17, 28, 0.92));
}

.guide-card > span:first-child,
.contact-card > span:first-child {
    color: rgba(240, 184, 80, 0.32);
    font-family: var(--font-display);
    font-size: 2.5rem;
}

.guide-card h2,
.contact-card h2,
.download-card h2,
.requirements-card h2,
.tribe-card h2 {
    margin: 0.5rem 0 0.7rem;
    color: var(--gold-100);
    font-size: 1.55rem;
}

.guide-card a {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--gold-300);
    font-size: 0.8rem;
    font-weight: 800;
}

.coming-soon {
    display: inline-flex;
    margin-top: 1.2rem;
    color: #847d74;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
    gap: 1rem;
}

.download-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    min-height: 230px;
    padding: 2rem;
    border: 1px solid rgba(237, 183, 82, 0.38);
    background: linear-gradient(120deg, rgba(79, 29, 19, 0.84), rgba(12, 18, 30, 0.94));
    box-shadow: var(--shadow);
    gap: 1.5rem;
}

.download-emblem {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid var(--gold-500);
    color: var(--gold-100);
    background: rgba(10, 11, 17, 0.55);
    font-family: var(--font-display);
    font-size: 1.5rem;
    transform: rotate(45deg);
}

.requirements-card {
    padding: 1.6rem;
    border: 1px solid var(--line);
    background: rgba(17, 20, 29, 0.88);
}

.requirements-card dl {
    margin: 1rem 0;
}

.requirements-card dl div {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
    font-size: 0.78rem;
}

.requirements-card dt {
    color: #898078;
}

.requirements-card dd {
    margin: 0;
    color: #d5ccbf;
    text-align: right;
}

.tribe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tribe-card {
    min-height: 360px;
    padding: 2rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.95)), #1a2435;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.tribe-card--guanyin {
    background: radial-gradient(circle at 50% 20%, rgba(74, 124, 190, 0.45), transparent 38%), linear-gradient(145deg, #162b48, #0a111c 72%);
}

.tribe-card--fujin {
    background: radial-gradient(circle at 50% 20%, rgba(191, 181, 111, 0.38), transparent 38%), linear-gradient(145deg, #2a382f, #0b1216 72%);
}

.tribe-card--jinong {
    background: radial-gradient(circle at 50% 20%, rgba(193, 51, 29, 0.48), transparent 38%), linear-gradient(145deg, #451a17, #110b0e 72%);
}

.tribe-symbol {
    display: block;
    margin-bottom: 5rem;
    color: rgba(255, 235, 191, 0.66);
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 30px currentColor;
}

.tribe-card p:last-child {
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-card--warning {
    border-color: rgba(224, 74, 40, 0.48);
    background: linear-gradient(140deg, rgba(93, 27, 20, 0.82), rgba(15, 13, 20, 0.94));
}

.site-footer {
    border-top: 1px solid rgba(236, 169, 56, 0.3);
    background: #050811;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.8fr 1.1fr;
    width: min(var(--content), calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0 3rem;
    gap: clamp(2rem, 6vw, 5rem);
}

.brand--footer {
    margin-bottom: 1rem;
}

.brand--footer .brand-mark {
    width: 112px;
    height: 112px;
}

.footer-grid > div:first-child p,
.footer-security p {
    max-width: 310px;
    margin: 0;
    color: #817a73;
    font-size: 0.78rem;
}

.footer-grid h2 {
    margin: 0 0 1rem;
    color: var(--gold-300);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-grid > div:not(:first-child) > a,
.footer-account-link {
    display: block;
    padding: 0.25rem 0;
    color: #958d84;
    font-size: 0.78rem;
}

.footer-account-link {
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: transparent;
}

.footer-security .footer-account-link {
    padding: 0.16rem 0;
    font-size: 0.64rem;
    letter-spacing: 0.045em;
}

.footer-grid a:hover {
    color: var(--gold-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: min(var(--content), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #625d58;
    font-size: 0.68rem;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1020px) {
    .nav-wrap {
        gap: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 0.8rem 1rem 1.2rem;
        border-bottom: 1px solid var(--gold-700);
        background: rgba(5, 8, 17, 0.99);
        box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 0.8rem 0.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .primary-nav a::after {
        display: none;
    }

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

    .news-card--featured {
        grid-column: 1 / -1;
    }

    .world-section,
    .download-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-aside {
        max-width: 520px;
    }

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

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

    .tribe-symbol {
        margin-bottom: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-security {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        min-height: 100px;
    }

    .brand-mark {
        width: 72px;
        height: 72px;
    }

    .brand-copy strong {
        font-size: 0.84rem;
    }

    .hero {
        min-height: 760px;
        padding: 23rem 0.5rem 4rem;
        background-position: top center;
        background-size: auto 690px;
    }

    .ornate-panel {
        width: min(94%, 600px);
        padding: 1.5rem 1rem;
    }

    .hero__stats {
        margin-top: 1.2rem;
    }

    .section {
        width: min(100% - 1.25rem, var(--content));
        padding: 4rem 0;
    }

    .section-heading,
    .callout,
    .panel-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-grid,
    .guide-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .news-card--featured {
        grid-column: auto;
    }

    .news-card--featured .news-card__art,
    .news-card__art {
        min-height: 180px;
    }

    .list-card {
        grid-template-columns: 62px 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .list-card__date {
        min-height: 80px;
    }

    .card-arrow {
        display: none;
    }

    .download-card {
        grid-template-columns: 1fr;
    }

    .download-emblem {
        margin: 0.5rem 1.2rem;
    }

    .download-card .button {
        justify-self: start;
    }

    .page-hero {
        min-height: 450px;
        padding-bottom: 2.5rem;
        background-size: auto 450px;
    }

    .page-hero__content {
        transform: translateY(1.5rem);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-grid > div:first-child,
    .footer-security {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }
}

@media (max-width: 430px) {
    .hero {
        min-height: 780px;
        padding-top: 20.5rem;
        background-size: auto 610px;
    }

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

    .hero__actions {
        display: grid;
    }

    .hero__stats dt {
        font-size: 0.52rem;
    }

    .hero__stats dd {
        font-size: 1.1rem;
    }

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

    .footer-grid > div:first-child,
    .footer-security {
        grid-column: auto;
    }
}

/* Staged reward wheel */
.wheel-chamber {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: clamp(1rem, 2.1vw, 1.7rem);
    border: 1px solid rgba(223, 157, 70, 0.26);
    border-radius: 24px;
    background:
        radial-gradient(circle at 16% 8%, rgba(255, 161, 55, 0.12), transparent 30%),
        radial-gradient(circle at 88% 42%, rgba(134, 54, 34, 0.14), transparent 33%),
        linear-gradient(145deg, rgba(15, 18, 32, 0.98), rgba(7, 10, 21, 0.99));
    box-shadow: inset 0 1px rgba(255, 229, 178, 0.05), 0 24px 80px rgba(0, 0, 0, 0.24);
}

.wheel-chamber::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.wheel-chamber__header,
.wheel-stage-track,
.wheel-command-grid {
    position: relative;
    z-index: 1;
}

.wheel-chamber__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.2rem 1rem;
}

.wheel-chamber__header h2 {
    margin: 0.16rem 0 0.34rem;
    color: #fff1d3;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.1vw, 2.5rem);
    line-height: 1.05;
}

.wheel-chamber__header > div > p:last-child {
    max-width: 650px;
    margin: 0;
    color: #a9a6a4;
    font-size: 0.77rem;
    line-height: 1.7;
}

.wheel-chamber__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.55rem;
}

.wheel-sound-toggle {
    display: grid;
    width: 68px;
    min-height: 58px;
    place-items: center;
    align-content: center;
    gap: 0.18rem;
    padding: 0.42rem 0.3rem;
    border: 1px solid rgba(231, 169, 81, 0.3);
    border-radius: 15px;
    color: #f7d99c;
    background:
        radial-gradient(circle at 50% 12%, rgba(232, 142, 48, 0.18), transparent 56%),
        linear-gradient(145deg, rgba(36, 27, 31, 0.98), rgba(9, 12, 21, 0.98));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.wheel-sound-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 188, 81, 0.62);
}

.wheel-sound-toggle:focus-visible {
    outline: 2px solid rgba(255, 198, 99, 0.78);
    outline-offset: 3px;
}

.wheel-sound-toggle > span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(255, 213, 139, 0.32);
    border-radius: 9px;
    font-size: 0.78rem;
    background: linear-gradient(145deg, rgba(173, 80, 33, 0.88), rgba(82, 33, 28, 0.9));
}

.wheel-sound-toggle small {
    font-size: 0.39rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.wheel-sound-toggle.is-muted {
    color: #817b78;
    border-color: rgba(255, 255, 255, 0.09);
    opacity: 0.78;
}

.wheel-sound-toggle.is-muted > span {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(12, 14, 22, 0.88);
}

.wheel-reward-trigger {
    display: grid;
    grid-template-columns: 40px minmax(88px, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-width: 176px;
    padding: 0.58rem 0.7rem;
    border: 1px solid rgba(231, 169, 81, 0.35);
    border-radius: 15px;
    color: #f8dfad;
    background: linear-gradient(135deg, rgba(80, 43, 31, 0.84), rgba(20, 18, 27, 0.92));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wheel-reward-trigger:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 188, 81, 0.66);
    box-shadow: 0 13px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(241, 138, 43, 0.08);
}

.wheel-reward-trigger > span:first-child {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 214, 143, 0.42);
    border-radius: 12px;
    color: #fff1bd;
    background: linear-gradient(145deg, #c76a28, #6e2e1e);
}

.wheel-reward-trigger > span:nth-child(2) {
    display: grid;
    gap: 0.12rem;
    text-align: left;
}

.wheel-reward-trigger small {
    color: #b69c7e;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wheel-reward-trigger strong {
    font-size: 0.74rem;
}

.wheel-reward-trigger i {
    color: #eaaa55;
    font-style: normal;
}

.wheel-stage-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 1rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    list-style: none;
    background: rgba(4, 7, 15, 0.66);
}

.wheel-stage-track li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    color: #625f61;
}

.wheel-stage-track li > span {
    display: grid;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.8rem;
    background: #12141e;
}

.wheel-stage-track li div {
    display: grid;
    min-width: 0;
}

.wheel-stage-track li small {
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wheel-stage-track li strong {
    color: #8d8886;
    font-size: 0.62rem;
}

.wheel-stage-track li > i {
    width: clamp(12px, 2.4vw, 30px);
    height: 1px;
    margin-left: 0.1rem;
    background: rgba(255, 255, 255, 0.09);
}

.wheel-stage-track li.is-cleared,
.wheel-stage-track li.is-current {
    color: #f4b756;
}

.wheel-stage-track li.is-cleared > span {
    border-color: rgba(89, 216, 145, 0.45);
    color: #82ecad;
    background: rgba(26, 95, 64, 0.3);
}

.wheel-stage-track li.is-current > span {
    border-color: #ffc064;
    color: #3f1d0d;
    background: radial-gradient(circle at 35% 28%, #fff4bd, #ec932c 62%, #8b3918);
    box-shadow: 0 0 22px rgba(240, 141, 38, 0.34);
}

.wheel-stage-track li.is-current strong {
    color: #ffe0a4;
}

.wheel-stage-track li.is-locked:not(.is-current) {
    opacity: 0.48;
}

.wheel-command-grid {
    display: grid;
    grid-template-columns: minmax(430px, 1fr) minmax(220px, 270px);
    gap: 1rem;
    align-items: start;
}

.wheel-arena {
    position: relative;
    display: grid;
    justify-items: center;
    min-width: 0;
    padding: 4.5rem 1rem 1.4rem;
    border: 1px solid rgba(210, 137, 54, 0.13);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 42%, rgba(240, 119, 29, 0.14), transparent 39%),
        linear-gradient(180deg, rgba(38, 23, 23, 0.16), rgba(5, 7, 14, 0.06));
}

.wheel-arena::before,
.wheel-arena::after {
    content: '';
    position: absolute;
    top: 17%;
    z-index: 0;
    width: 46px;
    height: 66%;
    pointer-events: none;
    opacity: 0.5;
    background:
        linear-gradient(90deg, transparent, rgba(231, 154, 66, 0.16), transparent),
        repeating-linear-gradient(180deg, rgba(190, 105, 46, 0.26) 0 2px, transparent 2px 34px);
}

.wheel-arena::before { left: 2.5%; }
.wheel-arena::after { right: 2.5%; transform: scaleX(-1); }

.wheel-arena__aura {
    position: absolute;
    top: 10%;
    left: 50%;
    width: min(480px, 90%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    opacity: 0.6;
    background: radial-gradient(circle, rgba(238, 113, 38, 0.2), rgba(103, 42, 32, 0.07) 43%, transparent 70%);
    filter: blur(16px);
}

.wheel-machine {
    --wheel-size: min(468px, 61vw);
    --wheel-offset: calc(var(--wheel-size) * -0.338);
    position: relative;
    z-index: 2;
    isolation: isolate;
    width: var(--wheel-size);
    aspect-ratio: 1;
    padding: 15px;
    border: 2px solid #d18a38;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 22%, rgba(255, 226, 148, 0.75), transparent 6%),
        conic-gradient(from 8deg, #4b2118, #d1903d 7%, #3a1a15 13%, #e5a64a 20%, #321418 28%, #c57831 35%, #2a1317 43%, #d7943c 51%, #361718 59%, #e1a34b 68%, #331517 76%, #c77b34 85%, #4a2019 94%, #d89742);
    box-shadow:
        inset 0 0 0 3px rgba(24, 10, 12, 0.88),
        inset 0 0 0 6px rgba(255, 206, 104, 0.24),
        0 0 0 5px #130d12,
        0 0 0 8px rgba(197, 119, 47, 0.76),
        0 0 0 13px rgba(34, 17, 17, 0.96),
        0 0 0 15px rgba(235, 163, 67, 0.34),
        0 35px 70px rgba(0, 0, 0, 0.62),
        0 0 68px rgba(232, 110, 26, 0.2);
}

.wheel-machine::before,
.wheel-machine::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-machine::before {
    inset: -11px;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(242, 175, 78, 0.94) 0deg 1.6deg,
        rgba(64, 28, 22, 0.95) 1.6deg 4deg,
        transparent 4deg 7.5deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}

.wheel-machine::after {
    inset: 5px;
    border: 2px solid rgba(255, 217, 130, 0.5);
    box-shadow:
        inset 0 0 0 3px rgba(10, 7, 10, 0.68),
        inset 0 0 18px rgba(246, 169, 67, 0.18);
}

.wheel-machine__rim,
.wheel-rotor {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-machine__rim {
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
    padding: 4px;
    border: 2px solid rgba(224, 164, 75, 0.82);
    background:
        conic-gradient(from 0deg, #2b1415, #c27a34 8%, #281215 16%, #b66c2e 25%, #2a1315 34%, #ce8739 44%, #291316 53%, #b97031 63%, #2b1416 73%, #ce8a3f 83%, #2a1315 92%, #ba7131),
        #090b13;
    box-shadow: inset 0 0 0 5px #09080d, inset 0 0 18px rgba(0, 0, 0, 0.88);
}

.wheel-rotor {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 207, 111, 0.42);
    box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.82);
    will-change: transform;
    transition: transform 4.8s cubic-bezier(0.12, 0.68, 0.12, 1);
}

.wheel-rotor.is-awaiting {
    animation: wheel-awaiting-result 900ms linear infinite;
    transition: none;
}

@keyframes wheel-awaiting-result {
    to { transform: rotate(360deg); }
}

.wheel-rotor__surface {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle, transparent 0 21%, rgba(234, 174, 78, 0.36) 21.4% 22%, #090b13 22.4% 25%, transparent 25.4%),
        radial-gradient(circle at 50% 43%, rgba(72, 111, 130, 0.14), transparent 47%),
        radial-gradient(circle, transparent 0 70%, rgba(226, 165, 72, 0.11) 71% 100%),
        repeating-conic-gradient(
            from -15deg,
            #1c3041 0deg 13.8deg,
            #29495a 13.8deg 15deg,
            #211d36 15deg 28.8deg,
            #3b3153 28.8deg 30deg
        );
    box-shadow: inset 0 0 78px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 221, 151, 0.08);
}

.wheel-rotor__surface::before {
    content: '';
    position: absolute;
    inset: 8.5%;
    border: 1px solid rgba(242, 191, 97, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 5px rgba(7, 11, 20, 0.2),
        inset 0 0 35px rgba(0, 0, 0, 0.22);
}

.wheel-rotor__surface::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        repeating-conic-gradient(from -15deg, rgba(255, 209, 117, 0.46) 0 1px, transparent 1.2px 30deg),
        radial-gradient(circle, transparent 0 77%, rgba(255, 198, 91, 0.14) 77.5% 78%, transparent 79%);
}

.wheel-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 66px;
    justify-items: center;
    gap: 0.22rem;
    color: #f2dbb4;
    text-align: center;
}

.wheel-segment--position-1 { transform: translate(-50%, -50%) rotate(0deg) translateY(var(--wheel-offset)) rotate(0deg); }
.wheel-segment--position-2 { transform: translate(-50%, -50%) rotate(30deg) translateY(var(--wheel-offset)) rotate(-30deg); }
.wheel-segment--position-3 { transform: translate(-50%, -50%) rotate(60deg) translateY(var(--wheel-offset)) rotate(-60deg); }
.wheel-segment--position-4 { transform: translate(-50%, -50%) rotate(90deg) translateY(var(--wheel-offset)) rotate(-90deg); }
.wheel-segment--position-5 { transform: translate(-50%, -50%) rotate(120deg) translateY(var(--wheel-offset)) rotate(-120deg); }
.wheel-segment--position-6 { transform: translate(-50%, -50%) rotate(150deg) translateY(var(--wheel-offset)) rotate(-150deg); }
.wheel-segment--position-7 { transform: translate(-50%, -50%) rotate(180deg) translateY(var(--wheel-offset)) rotate(-180deg); }
.wheel-segment--position-8 { transform: translate(-50%, -50%) rotate(210deg) translateY(var(--wheel-offset)) rotate(-210deg); }
.wheel-segment--position-9 { transform: translate(-50%, -50%) rotate(240deg) translateY(var(--wheel-offset)) rotate(-240deg); }
.wheel-segment--position-10 { transform: translate(-50%, -50%) rotate(270deg) translateY(var(--wheel-offset)) rotate(-270deg); }
.wheel-segment--position-11 { transform: translate(-50%, -50%) rotate(300deg) translateY(var(--wheel-offset)) rotate(-300deg); }
.wheel-segment--position-12 { transform: translate(-50%, -50%) rotate(330deg) translateY(var(--wheel-offset)) rotate(-330deg); }

.wheel-segment__token {
    display: grid;
    width: 48px;
    height: 52px;
    place-items: center;
    border: 2px solid rgba(225, 157, 64, 0.76);
    border-radius: 11px 11px 15px 15px;
    clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 86% 100%, 14% 100%, 0 88%, 0 12%);
    background:
        radial-gradient(circle at 50% 38%, rgba(134, 85, 187, 0.42), transparent 53%),
        linear-gradient(145deg, #30264b, #111527 68%, #090d18);
    box-shadow:
        inset 0 0 0 3px rgba(8, 7, 12, 0.75),
        inset 0 1px rgba(255, 255, 255, 0.12),
        0 7px 15px rgba(0, 0, 0, 0.44),
        0 0 18px rgba(172, 108, 231, 0.13);
}

.wheel-segment--item .wheel-segment__token {
    border-color: rgba(245, 186, 80, 0.88);
    color: #ffe19b;
    background:
        radial-gradient(circle at 50% 40%, rgba(157, 91, 211, 0.56), transparent 52%),
        linear-gradient(145deg, #3c2957, #17192d 65%, #0a0d18);
    box-shadow:
        inset 0 0 0 3px rgba(8, 8, 17, 0.74),
        0 7px 15px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(197, 120, 255, 0.15);
}

.wheel-segment__token img {
    width: 37px;
    height: 37px;
    transform: translateZ(0);
    backface-visibility: hidden;
    object-fit: contain;
    image-rendering: pixelated;
}

.wheel-segment__token b {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.wheel-segment--key .wheel-segment__token {
    border-color: rgba(96, 219, 181, 0.58);
    color: #9df3cf;
    background: radial-gradient(circle at 45% 35%, #167b65, #07332f 68%, #07191f);
    box-shadow: inset 0 0 0 3px rgba(5, 27, 27, 0.72), 0 7px 15px rgba(0, 0, 0, 0.45), 0 0 16px rgba(49, 208, 156, 0.13);
}

.wheel-segment--bomb .wheel-segment__token {
    border-color: rgba(255, 102, 69, 0.62);
    color: #ff9a69;
    background: radial-gradient(circle at 45% 35%, #9d3222, #481016 68%, #1f080d);
    box-shadow: inset 0 0 0 3px rgba(38, 6, 9, 0.72), 0 7px 15px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 68, 32, 0.23);
}

.wheel-segment.is-disabled {
    opacity: 0.28;
    filter: grayscale(1);
}

.wheel-segment small {
    overflow: hidden;
    width: 66px;
    color: #ffe0a2;
    font-size: 0.46rem;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px #000;
    white-space: nowrap;
}

.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: grid;
    width: 116px;
    height: 116px;
    place-content: center;
    transform: translate(-50%, -50%);
    border: 3px double rgba(255, 214, 143, 0.82);
    border-radius: 50%;
    text-align: center;
    background:
        radial-gradient(circle at 38% 28%, #fff0a5, #e39a3d 23%, #9c451f 52%, #371319 70%, #130b10 72%);
    box-shadow: 0 0 0 6px rgba(8, 8, 13, 0.94), 0 0 0 10px rgba(203, 126, 44, 0.7), 0 0 0 14px rgba(28, 13, 15, 0.96), 0 10px 34px rgba(0, 0, 0, 0.65), 0 0 28px rgba(231, 133, 39, 0.22);
}

.wheel-hub span {
    color: #4d190e;
    font-family: var(--font-display);
    font-size: 1.55rem;
    text-shadow: 0 1px rgba(255, 237, 174, 0.55);
}

.wheel-hub small {
    color: #ffe6a9;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.wheel-pointer {
    position: absolute;
    top: 2px;
    left: 50%;
    z-index: 9;
    width: 76px;
    height: 73px;
    transform: translateX(-50%);
    filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.68));
}

.wheel-pointer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 76px;
    height: 45px;
    transform: translateX(-50%);
    clip-path: polygon(0 62%, 20% 30%, 38% 36%, 50% 0, 62% 36%, 80% 30%, 100% 62%, 73% 72%, 50% 54%, 27% 72%);
    background: linear-gradient(90deg, #5d241a, #d9953f 25%, #ffe18b 50%, #d9953f 75%, #5d241a);
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    width: 17px;
    height: 17px;
    transform: translateX(-50%) rotate(45deg);
    border: 2px solid #ffd276;
    background: radial-gradient(circle at 30% 25%, #fff3b2, #df5424 42%, #65121b 76%);
    box-shadow: 0 0 16px rgba(255, 114, 39, 0.62);
}

.wheel-pointer span {
    position: absolute;
    top: 28px;
    left: 50%;
    display: block;
    width: 40px;
    height: 45px;
    transform: translateX(-50%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background: linear-gradient(90deg, #71301e, #f5b854 27%, #ffe18b 50%, #d77d31 74%, #642418);
    box-shadow: inset 0 0 0 2px rgba(255, 223, 137, 0.36);
}

.wheel-spin-form {
    position: relative;
    z-index: 6;
    display: grid;
    justify-items: center;
    gap: 0.62rem;
    margin-top: 2.25rem;
}

.wheel-spin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.wheel-spin-form::before {
    content: '';
    position: absolute;
    top: -1.05rem;
    left: 50%;
    z-index: -1;
    width: 250px;
    height: 30px;
    transform: translateX(-50%);
    border: 1px solid rgba(214, 139, 54, 0.42);
    border-radius: 50%;
    background: linear-gradient(180deg, #2f1718, #09080e 72%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.48);
}

.wheel-spin-form button {
    display: grid;
    grid-template-columns: 32px auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-width: 215px;
    padding: 0.72rem 1.15rem;
    border: 2px solid #f7bd5b;
    border-radius: 10px 10px 18px 18px;
    color: #3b170b;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent),
        linear-gradient(180deg, #ffe49a, #efa03e 55%, #af431d);
    box-shadow: inset 0 1px #fff4c3, inset 0 -3px rgba(98, 29, 13, 0.28), 0 13px 30px rgba(197, 81, 27, 0.34), 0 0 22px rgba(246, 163, 61, 0.12);
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
}

.wheel-spin-form .wheel-spin-button--auto {
    min-width: 188px;
    color: #f4dca9;
    border-color: rgba(239, 169, 70, 0.38);
    background: linear-gradient(145deg, rgba(37, 26, 31, 0.98), rgba(12, 14, 23, 0.98));
    box-shadow: inset 0 1px rgba(255, 224, 159, 0.1), 0 12px 25px rgba(0, 0, 0, 0.34);
}

.wheel-spin-form .wheel-spin-button--auto.is-active {
    color: #fff0bd;
    border-color: rgba(105, 222, 157, 0.58);
    background: linear-gradient(145deg, rgba(19, 72, 59, 0.98), rgba(9, 24, 29, 0.98));
    box-shadow: inset 0 1px rgba(165, 255, 204, 0.16), 0 0 24px rgba(58, 208, 130, 0.16);
}

.wheel-spin-form button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.wheel-spin-form button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.72) brightness(0.65);
}

.wheel-spin-form button > span {
    grid-row: 1 / 3;
    font-size: 1rem;
}

.wheel-spin-form button strong {
    font-size: 0.77rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.wheel-spin-form button small {
    font-size: 0.52rem;
    font-weight: 800;
}

.wheel-spin-form p {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: #777679;
    font-size: 0.52rem;
}

.wheel-spin-form p i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #61d999;
    box-shadow: 0 0 8px rgba(97, 217, 153, 0.65);
}

.wheel-spin-form.is-spinning button[type="submit"] {
    pointer-events: none;
    filter: saturate(0.55) brightness(0.75);
}

.wheel-spin-form.is-spinning button[type="submit"] > span {
    animation: wheel-button-pulse 720ms ease-in-out infinite alternate;
}

@keyframes wheel-button-pulse {
    to { transform: scale(1.2) rotate(45deg); filter: drop-shadow(0 0 7px #ffe097); }
}

.wheel-live-feedback {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    align-items: center;
    width: min(420px, calc(100% - 1rem));
    margin: 0.8rem auto 0;
    padding: 0.65rem 0.7rem;
    border: 1px solid rgba(255, 119, 78, 0.5);
    border-radius: 12px;
    color: #f5cfbf;
    background: linear-gradient(135deg, rgba(83, 24, 25, 0.96), rgba(19, 12, 19, 0.98));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.05);
}

.wheel-live-feedback[hidden] { display: none; }
.wheel-live-feedback > span { color: #ff9c6b; font-family: var(--font-display); font-size: 1rem; text-align: center; }
.wheel-live-feedback p { margin: 0; font-size: 0.58rem; line-height: 1.55; }
.wheel-live-feedback button { border: 0; color: #bba99e; background: transparent; cursor: pointer; font-size: 1rem; }

.wheel-intel {
    display: grid;
    gap: 0.72rem;
}

.wheel-balance-card,
.wheel-rules-card,
.wheel-preparing,
.wheel-history-card {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(24, 25, 39, 0.94), rgba(10, 12, 22, 0.96));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.wheel-balance-card {
    position: relative;
    overflow: hidden;
    padding: 0.85rem 0.9rem;
    border-color: rgba(222, 150, 64, 0.32);
}

.wheel-balance-card::after {
    content: 'RG';
    position: absolute;
    right: -0.1rem;
    bottom: -1rem;
    color: rgba(255, 215, 144, 0.035);
    font-family: var(--font-display);
    font-size: 5.3rem;
}

.wheel-balance-card > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wheel-balance-card > div span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #5a260e;
    font-family: var(--font-display);
    font-size: 0.72rem;
    background: radial-gradient(circle at 35% 25%, #fff0ac, #e58b2c 65%, #8d3b16);
}

.wheel-balance-card small,
.wheel-balance-card i {
    color: #9b8d7c;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wheel-balance-card > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0.52rem 0 0.05rem;
    color: #fff0c6;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1;
}

.wheel-rules-card,
.wheel-history-card {
    padding: 0.85rem;
}

.wheel-rules-card h3 {
    margin: 0.22rem 0 0.75rem;
    color: #eadcc3;
    font-family: var(--font-display);
    font-size: 1.02rem;
}

.wheel-rules-card ul {
    display: grid;
    gap: 0.48rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wheel-rules-card li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 0.58rem;
    padding: 0.52rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 11px;
    background: rgba(4, 6, 12, 0.32);
}

.wheel-rules-card li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.wheel-rules-card li > span.is-key { color: #86e6bd; background: rgba(30, 126, 92, 0.22); }
.wheel-rules-card li > span.is-bomb { color: #ff8d65; background: rgba(150, 47, 30, 0.22); }
.wheel-rules-card li > span.is-reward { color: #f5bb5e; background: rgba(173, 104, 31, 0.2); }

.wheel-rules-card li div {
    display: grid;
    gap: 0.12rem;
}

.wheel-rules-card li strong {
    color: #ddd2bf;
    font-size: 0.65rem;
}

.wheel-rules-card li small {
    color: #77777b;
    font-size: 0.51rem;
    line-height: 1.35;
}

.wheel-preparing {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem;
    border-color: rgba(255, 180, 77, 0.25);
    background: rgba(108, 58, 28, 0.18);
}

.wheel-preparing > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ebb265;
}

.wheel-preparing div {
    display: grid;
    gap: 0.15rem;
}

.wheel-preparing strong { color: #e9c78e; font-size: 0.63rem; }
.wheel-preparing small { color: #8d8275; font-size: 0.5rem; line-height: 1.4; }

.wheel-history-card h3 {
    margin: 0 0 0.55rem;
    color: #d8c9b2;
    font-family: var(--font-display);
    font-size: 0.88rem;
}

.wheel-history-card > div {
    display: grid;
    gap: 0.3rem;
}

.wheel-history-card__row {
    display: grid;
    grid-template-columns: 26px 48px minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.42rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.wheel-history-card__row b { color: #efb85e; text-align: center; }
.wheel-history-card__row--key b { color: #78dbae; }
.wheel-history-card__row--bomb b { color: #f07958; }
.wheel-history-card__row small { color: #706f73; font-size: 0.47rem; }
.wheel-history-card__row strong { overflow: hidden; color: #bdb5aa; font-size: 0.54rem; text-overflow: ellipsis; white-space: nowrap; }

.wheel-vault-modal,
.wheel-confirm-modal,
.wheel-result-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.wheel-vault-modal[hidden],
.wheel-confirm-modal[hidden],
.wheel-result-modal[hidden] {
    display: none;
}

.wheel-vault-modal__backdrop,
.wheel-confirm-modal__backdrop,
.wheel-result-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(2, 4, 10, 0.86);
    backdrop-filter: blur(9px);
}

.wheel-confirm-modal > section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(430px, 100%);
    padding: 1.55rem;
    border: 1px solid rgba(236, 170, 80, 0.48);
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 5%, rgba(241, 148, 52, 0.24), transparent 42%),
        linear-gradient(155deg, #211a23, #090b14 72%);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.68);
}

.wheel-confirm-modal__seal {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 0.75rem;
    place-items: center;
    border: 1px solid rgba(255, 209, 121, 0.58);
    border-radius: 19px;
    color: #ffe4a2;
    font-family: var(--font-display);
    font-size: 1.45rem;
    background: linear-gradient(145deg, #b85a27, #541b1d);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 10px 28px rgba(0, 0, 0, 0.4);
}

.wheel-confirm-modal h2 {
    margin: 0.2rem 0 0.5rem;
    color: #f8e4bf;
    font-family: var(--font-display);
    font-size: 1.65rem;
}

.wheel-confirm-modal section > p:not(.eyebrow) {
    max-width: 340px;
    margin: 0 auto;
    color: #9b9290;
    font-size: 0.64rem;
    line-height: 1.65;
}

.wheel-confirm-modal__actions {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.wheel-confirm-modal__actions .button {
    min-width: 130px;
}

.wheel-vault-modal > section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: min(820px, 100%);
    max-height: min(760px, calc(100vh - 2rem));
    border: 1px solid rgba(235, 164, 72, 0.4);
    border-radius: 23px;
    background: linear-gradient(145deg, #171725, #090c16 68%);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.62);
}

.wheel-vault-modal > section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(90deg, rgba(113, 53, 30, 0.34), transparent);
}

.wheel-vault-modal > section > header > div {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.wheel-vault-modal > section > header > div > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #ffe2a0;
    background: linear-gradient(145deg, #bd5e27, #69251b);
}

.wheel-vault-modal h2 {
    margin: 0.1rem 0 0;
    color: #f6e4c4;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.wheel-vault-modal > section > header > button,
.wheel-result-modal > section > button:first-child {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #b5aaa0;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.wheel-vault-modal__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.wheel-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    min-height: 0;
    max-height: min(560px, calc(100vh - 15rem));
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.wheel-reward-grid:focus-visible {
    outline: 2px solid rgba(240, 174, 77, 0.68);
    outline-offset: -4px;
}

.wheel-reward-grid article {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    background: rgba(4, 6, 13, 0.48);
}

.wheel-reward-grid__image {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(218, 145, 60, 0.35);
    border-radius: 17px;
    background: radial-gradient(circle, rgba(125, 65, 32, 0.25), rgba(3, 5, 10, 0.8));
}

.wheel-reward-grid__image img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    image-rendering: pixelated;
}

.wheel-reward-grid article > div:last-child {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.wheel-reward-grid article small { color: #d09243; font-size: 0.46rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.wheel-reward-grid article h3 { overflow: hidden; margin: 0; color: #eaddc8; font-family: var(--font-display); font-size: 0.93rem; text-overflow: ellipsis; white-space: nowrap; }
.wheel-reward-grid article p { overflow: hidden; margin: 0; color: #77767a; font-size: 0.51rem; text-overflow: ellipsis; white-space: nowrap; }
.wheel-reward-grid article strong { color: #f2bb67; font-size: 0.61rem; }

.wheel-vault-modal footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(90deg, rgba(31, 23, 29, 0.99), rgba(9, 12, 22, 0.99));
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.3);
}

.wheel-vault-modal footer p {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 470px;
    margin: 0;
    color: #888388;
    font-size: 0.55rem;
    line-height: 1.5;
}

.wheel-vault-modal__empty {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 0.8rem;
    min-height: 180px;
    padding: 1rem;
}

.wheel-vault-modal__empty > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    color: #c48f4d;
}

.wheel-vault-modal__empty h3 { margin: 0 0 0.25rem; color: #ded3c2; font-family: var(--font-display); }
.wheel-vault-modal__empty p { margin: 0; color: #7c7a7c; font-size: 0.62rem; }

.wheel-result-modal > section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(430px, 100%);
    padding: 1.55rem;
    border: 1px solid rgba(235, 166, 75, 0.46);
    border-radius: 25px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 22%, rgba(242, 141, 51, 0.22), transparent 38%),
        linear-gradient(155deg, #1d1924, #090b14 72%);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.68);
}

.wheel-result-modal > section > button:first-child {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 3;
}

.wheel-result-modal__burst {
    position: absolute;
    top: -110px;
    left: 50%;
    width: 330px;
    height: 330px;
    transform: translateX(-50%);
    opacity: 0.22;
    background: repeating-conic-gradient(from 0deg, #f5af4d 0 2deg, transparent 2deg 15deg);
    mask-image: radial-gradient(circle, transparent 0 20%, #000 65%, transparent 72%);
    animation: wheel-burst-turn 18s linear infinite;
}

.wheel-result-modal__prize {
    position: relative;
    display: grid;
    width: 112px;
    height: 112px;
    margin: 0 auto 0.85rem;
    place-items: center;
    border: 1px solid rgba(255, 216, 143, 0.52);
    border-radius: 32px 22px 32px 22px;
    background: radial-gradient(circle, rgba(146, 73, 31, 0.7), rgba(17, 15, 23, 0.96) 68%);
    box-shadow: 0 0 38px rgba(234, 133, 42, 0.22);
}

.wheel-result-modal__prize img { width: 88px; height: 88px; object-fit: contain; image-rendering: pixelated; }
.wheel-result-modal__prize span { color: #ffd98d; font-family: var(--font-display); font-size: 3.3rem; }
.wheel-result-modal--key .wheel-result-modal__prize { border-color: rgba(104, 229, 178, 0.52); background: radial-gradient(circle, rgba(30, 127, 91, 0.68), rgba(9, 22, 24, 0.98) 70%); }
.wheel-result-modal--key .wheel-result-modal__prize span { color: #a6f4d2; }
.wheel-result-modal--bomb .wheel-result-modal__prize { border-color: rgba(255, 103, 70, 0.55); background: radial-gradient(circle, rgba(150, 43, 27, 0.7), rgba(28, 7, 12, 0.98) 70%); }
.wheel-result-modal--bomb .wheel-result-modal__prize span { color: #ff9a6c; }

.wheel-result-modal h2 { position: relative; margin: 0.18rem 0 0.45rem; color: #f8e4bf; font-family: var(--font-display); font-size: 1.75rem; }
.wheel-result-modal section > p:not(.eyebrow) { position: relative; margin: 0 auto; max-width: 310px; color: #8e8a8b; font-size: 0.64rem; line-height: 1.6; }
.wheel-result-modal__meta { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 1rem 0; color: #91877c; font-size: 0.6rem; }
.wheel-result-modal__meta i { color: #d68d3a; font-style: normal; }
.wheel-result-modal__meta strong { color: #f4c477; }
.wheel-result-modal .button { position: relative; min-width: 170px; }

body.wheel-modal-open {
    overflow: hidden;
}

@keyframes wheel-burst-turn {
    to { transform: translateX(-50%) rotate(360deg); }
}

@media (max-width: 1180px) {
    .wheel-command-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-machine {
        --wheel-size: min(455px, 68vw);
        --wheel-offset: calc(var(--wheel-size) * -0.338);
    }

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

    .wheel-history-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .wheel-chamber {
        min-height: 0;
        padding: 0.85rem;
        border-radius: 19px;
    }

    .wheel-chamber__header {
        display: grid;
    }

    .wheel-chamber__actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .wheel-reward-trigger {
        width: min(100%, 230px);
    }

    .wheel-stage-track {
        overflow-x: auto;
        grid-template-columns: repeat(5, minmax(86px, 1fr));
        justify-content: start;
        padding: 0.58rem;
    }

    .wheel-stage-track li > i {
        display: none;
    }

    .wheel-arena {
        padding: 4.25rem 0.35rem 1.25rem;
    }

    .wheel-arena::before,
    .wheel-arena::after {
        display: none;
    }

    .wheel-machine {
        --wheel-size: min(410px, 82vw);
        --wheel-offset: calc(var(--wheel-size) * -0.338);
        padding: 14px;
    }

    .wheel-segment {
        width: 56px;
    }

    .wheel-segment__token {
        width: 42px;
        height: 46px;
        border-radius: 11px;
    }

    .wheel-segment__token img {
        width: 32px;
        height: 32px;
    }

    .wheel-segment small {
        width: 56px;
        font-size: 0.4rem;
    }

    .wheel-hub {
        width: 92px;
        height: 92px;
    }

    .wheel-intel,
    .wheel-reward-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-history-card {
        grid-column: auto;
    }

    .wheel-vault-modal footer {
        align-items: stretch;
        flex-direction: column;
    }

    .wheel-reward-grid {
        max-height: calc(100vh - 20rem);
    }

    .wheel-vault-modal footer .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wheel-machine {
        --wheel-size: min(330px, 88vw);
        --wheel-offset: calc(var(--wheel-size) * -0.326);
        padding: 12px;
    }

    .wheel-pointer {
        top: 7px;
        width: 62px;
        height: 62px;
    }

    .wheel-pointer::before {
        width: 62px;
        height: 38px;
    }

    .wheel-pointer::after {
        top: 7px;
        width: 14px;
        height: 14px;
    }

    .wheel-pointer span {
        top: 24px;
        width: 34px;
        height: 38px;
    }

    .wheel-segment {
        width: 48px;
    }

    .wheel-segment__token {
        width: 35px;
        height: 38px;
        border-radius: 9px;
    }

    .wheel-segment__token img {
        width: 27px;
        height: 27px;
    }

    .wheel-segment__token b {
        font-size: 1rem;
    }

    .wheel-segment small {
        display: none;
    }

    .wheel-hub {
        width: 76px;
        height: 76px;
        box-shadow: 0 0 0 5px rgba(8, 9, 15, 0.9), 0 0 0 7px rgba(222, 139, 52, 0.42);
    }

    .wheel-hub span {
        font-size: 1.05rem;
    }

    .wheel-spin-form button {
        min-width: 185px;
    }

    .wheel-spin-actions {
        width: 100%;
    }

    .wheel-spin-form .wheel-spin-button--auto {
        min-width: 185px;
    }

    .wheel-reward-grid article {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .wheel-reward-grid__image {
        width: 58px;
        height: 58px;
    }

    .wheel-reward-grid__image img {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-rotor {
        transition-duration: 1ms;
    }

    .wheel-rotor.is-awaiting {
        animation: none;
    }

    .wheel-result-modal__burst {
        animation: none;
    }
}

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

/* Modern one-page and account experience */
section[id] {
    scroll-margin-top: 86px;
}

.site-shell {
    overflow-x: clip;
    overflow-y: visible;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-color: rgba(245, 205, 112, 0.18);
    background: rgba(4, 7, 17, 0.78);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(1.15);
}

.nav-wrap {
    min-height: 74px;
}

.primary-nav a {
    padding-top: 1.55rem;
    padding-bottom: 1.4rem;
    font-size: 0.7rem;
}

.nav-auth {
    align-items: center;
    gap: 0.65rem;
}

.nav-auth--desktop {
    display: flex;
}

.nav-auth--mobile {
    display: none;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0 0.55rem;
    border: 1px solid rgba(245, 205, 112, 0.2);
    border-radius: 999px;
    background: rgba(5, 9, 18, 0.72);
}

.language-switcher > span {
    color: var(--gold-300);
    font-size: 0.9rem;
}

.language-switcher select {
    max-width: 108px;
    border: 0;
    color: #eee7dc;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    background: transparent;
    cursor: pointer;
}

.language-switcher select:focus-visible {
    outline: 2px solid var(--gold-300);
    outline-offset: 3px;
}

.language-switcher select option {
    color: #f4eee6;
    background: #090e19;
}

.language-switcher--mobile {
    display: none;
}

.auth-link {
    padding: 0.6rem 0.4rem;
    color: #d9d1c5;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-link:hover,
.auth-link.is-active {
    color: var(--gold-100);
}

.button,
.nav-cta {
    border-radius: 999px;
}

.button--compact {
    min-height: 40px;
    padding: 0.55rem 1rem;
}

.nav-auth__login {
    padding: 0.42rem 0.28rem;
    font-size: 0.64rem;
    letter-spacing: 0.065em;
}

.nav-auth__register {
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    font-size: 0.64rem;
    white-space: nowrap;
}

@media (min-width: 1121px) and (max-width: 1500px) {
    .nav-wrap {
        width: min(var(--content), calc(100% - 1rem));
        gap: 1rem;
    }

    .primary-nav {
        gap: clamp(0.55rem, 1vw, 0.9rem);
    }

    .brand-copy {
        display: none;
    }

    .primary-nav a {
        font-size: 0.64rem;
        letter-spacing: 0.055em;
    }

    .nav-auth {
        gap: 0.42rem;
    }

    .language-switcher select {
        max-width: 92px;
    }
}

.player-menu {
    position: relative;
    flex: 0 0 auto;
}

.player-menu summary {
    display: flex;
    align-items: center;
    min-width: 116px;
    min-height: 40px;
    padding: 0.3rem 0.65rem 0.3rem 0.42rem;
    border: 1px solid rgba(255, 218, 134, 0.24);
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(25, 29, 43, 0.94), rgba(8, 12, 22, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 9px 24px rgba(0, 0, 0, 0.24);
    list-style: none;
    gap: 0.48rem;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-profile-icon {
    position: relative;
    display: block;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 215, 128, 0.34);
    border-radius: 50%;
    background: rgba(220, 136, 39, 0.11);
}

.nav-profile-icon::before {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e9bd6c;
    content: '';
    transform: translateX(-50%);
}

.nav-profile-icon::after {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 13px;
    height: 7px;
    border-radius: 8px 8px 5px 5px;
    background: #e9bd6c;
    content: '';
    transform: translateX(-50%);
}

.nav-profile-label {
    color: #ddd3c5;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.player-menu summary::-webkit-details-marker {
    display: none;
}

.player-menu summary:hover,
.player-menu[open] summary,
.player-menu.is-current summary {
    border-color: rgba(255, 212, 110, 0.68);
    box-shadow: 0 0 0 3px rgba(226, 149, 45, 0.08), 0 12px 28px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
}

.player-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 229, 169, 0.58);
    border-radius: 13px;
    color: #4f1d0b;
    background:
        radial-gradient(circle at 34% 26%, #fff1b6, transparent 19%),
        linear-gradient(145deg, #ffd16e, #d97825 62%, #7f2b16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 8px 18px rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 950;
    text-transform: uppercase;
}

.player-avatar--large {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.2rem;
}

.player-menu__chevron {
    margin-left: auto;
    color: #ad9e8d;
    font-size: 0.82rem;
    transition: transform 180ms ease;
}

.player-menu[open] .player-menu__chevron {
    transform: rotate(180deg);
}

.player-menu__panel {
    position: absolute;
    z-index: 90;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    padding: 0.85rem;
    border: 1px solid rgba(255, 216, 128, 0.3);
    border-radius: 18px;
    background:
        radial-gradient(circle at 95% 0, rgba(225, 132, 39, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(18, 22, 35, 0.99), rgba(6, 10, 19, 0.99));
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
}

.player-menu__panel::before {
    position: absolute;
    top: -6px;
    right: 25px;
    width: 11px;
    height: 11px;
    border-top: 1px solid rgba(255, 216, 128, 0.3);
    border-left: 1px solid rgba(255, 216, 128, 0.3);
    background: #111624;
    content: '';
    transform: rotate(45deg);
}

.player-menu__identity,
.mobile-player-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.player-menu__identity {
    margin-bottom: 0.7rem;
    padding: 0.45rem 0.4rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.player-menu__identity > span:nth-child(2),
.mobile-player-card__copy {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.player-menu__identity small,
.mobile-player-card__copy small {
    color: #81776c;
    font-size: 0.54rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.player-menu__identity strong,
.mobile-player-card__copy strong {
    overflow: hidden;
    color: #f4e7d3;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-online {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(102, 224, 144, 0.18);
    border-radius: 50%;
    background: rgba(61, 158, 94, 0.09);
}

.player-online i,
.account-command__state i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ce897;
    box-shadow: 0 0 0 4px rgba(108, 232, 151, 0.09), 0 0 12px rgba(108, 232, 151, 0.65);
}

.player-menu__action {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: 11px;
    color: #d8cfc2;
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: transparent;
    gap: 0.4rem;
}

.player-menu__action:hover,
.player-menu__action.is-active {
    color: #fff0c7;
    background: rgba(223, 139, 42, 0.12);
}

.player-menu__action > span {
    color: #dda04b;
    font-size: 1rem;
    text-align: center;
}

.player-menu__action > strong {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.player-menu__action > i {
    color: #8b8175;
    font-style: normal;
}

.player-menu__action--logout {
    color: #b8aca0;
}

.mobile-player-card {
    padding: 0.72rem;
    border: 1px solid rgba(255, 218, 134, 0.2);
    border-radius: 14px;
    background: rgba(10, 15, 26, 0.88);
}

.mobile-player-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    gap: 0.45rem;
}

.mobile-player-action > span {
    color: var(--gold-400);
}

.hero,
.page-hero {
    overflow: hidden;
    background-color: #060b15;
    background-image: none;
}

.hero {
    align-items: flex-end;
    min-height: calc(100svh - 74px);
    padding: clamp(18rem, 29vw, 23rem) 1rem 5.5rem;
}

.hero::before,
.page-hero::before,
.auth-shell__backdrop {
    position: absolute;
    inset: -12px;
    z-index: -2;
    background: #07101f url('../img/rise-guardian-sky2.jpg') top center / cover no-repeat;
    content: '';
    filter: blur(5px) brightness(0.56) saturate(0.72);
    transform: scale(1.035);
}

.hero__veil {
    background:
        linear-gradient(180deg, rgba(4, 7, 17, 0.18), rgba(4, 7, 17, 0.36) 48%, #040711 100%),
        radial-gradient(circle at 50% 38%, transparent, rgba(2, 4, 10, 0.34) 72%);
}

.ornate-panel {
    border-color: rgba(255, 214, 126, 0.32);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(27, 19, 20, 0.83), rgba(7, 11, 20, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 242, 207, 0.08), 0 32px 90px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(1.2);
}

.ornate-panel::before,
.ornate-panel::after {
    width: 80px;
    opacity: 0.75;
}

.hero__badge,
.preview-pill,
.soft-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0.25rem 0.72rem;
    border: 1px solid rgba(255, 218, 137, 0.28);
    border-radius: 999px;
    color: var(--gold-300);
    background: rgba(204, 95, 31, 0.12);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__badge {
    margin-bottom: 1rem;
}

.section-kicker {
    max-width: 310px;
    margin: 0;
    color: #8e877f;
    font-size: 0.8rem;
    text-align: right;
}

.news-card,
.feature-stack article,
.community-grid article,
.leaderboard-glass,
.contact-strip {
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.news-card {
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
    border-color: rgba(245, 205, 112, 0.38);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
    transform: translateY(-5px);
}

.news-card__art {
    filter: saturate(0.82);
}

.ranking-section {
    position: relative;
}

.leaderboard-glass {
    overflow: hidden;
    padding: clamp(1.4rem, 3vw, 2.5rem);
    border: 1px solid rgba(245, 205, 112, 0.22);
    background:
        radial-gradient(circle at 92% 5%, rgba(194, 70, 29, 0.18), transparent 20rem),
        linear-gradient(140deg, rgba(30, 21, 22, 0.86), rgba(8, 14, 25, 0.92));
    box-shadow: var(--shadow);
}

.leaderboard-intro {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.75fr);
    align-items: end;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    gap: 2rem;
}

.leaderboard-intro h3 {
    max-width: 630px;
    margin: 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.15;
}

.leaderboard-intro > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.leaderboard-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 1px;
    background: var(--line);
}

.leaderboard-categories article {
    padding: 1.5rem;
    background: rgba(7, 12, 22, 0.88);
}

.leaderboard-categories span {
    color: var(--gold-500);
    font-family: var(--font-display);
    font-size: 1.7rem;
}

.leaderboard-categories h4 {
    margin: 0.5rem 0 0.2rem;
    color: #f2e8d9;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.leaderboard-categories p {
    margin: 0;
    color: #8e877f;
    font-size: 0.76rem;
}

/* Public avatar rankings */
.rankings-stage {
    max-width: 1180px;
}

.ranking-board {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2.4rem);
    border: 1px solid rgba(245, 205, 112, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 0, rgba(219, 91, 28, 0.16), transparent 24rem),
        linear-gradient(145deg, rgba(20, 24, 39, 0.96), rgba(5, 10, 20, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.ranking-board::before {
    position: absolute;
    top: 0;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 108, 0.85), transparent);
    content: '';
}

.ranking-board__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ranking-board__heading h2 {
    margin: 0.25rem 0 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.ranking-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ranking-tabs a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #aaa39b;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ranking-tabs a:hover,
.ranking-tabs a.is-active {
    border-color: rgba(245, 205, 112, 0.42);
    color: var(--gold-100);
    background: linear-gradient(135deg, rgba(137, 65, 24, 0.28), rgba(245, 205, 112, 0.06));
    transform: translateY(-1px);
}

.ranking-tabs__icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(245, 205, 112, 0.3);
    border-radius: 12px;
    color: var(--gold-300);
    background: rgba(0, 0, 0, 0.18);
    font-size: 1.1rem;
}

.ranking-tabs a > span:last-child {
    display: grid;
    gap: 0.16rem;
}

.ranking-tabs small {
    color: #756f69;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ranking-tabs strong {
    font-size: 0.88rem;
}

.ranking-list {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(3, 7, 15, 0.58);
}

.ranking-list__header,
.ranking-row {
    display: grid;
    grid-template-columns: 76px minmax(170px, 1.7fr) minmax(120px, 0.8fr) 90px minmax(120px, 0.8fr);
    align-items: center;
    gap: 0.65rem;
}

.ranking-list__header {
    min-height: 46px;
    padding: 0 1.15rem;
    color: #736e68;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ranking-list__header span:last-child {
    text-align: right;
}

.ranking-list__rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-row {
    position: relative;
    min-height: 76px;
    padding: 0.65rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: #cac3bb;
    transition: background 160ms ease, transform 160ms ease;
}

.ranking-row:hover {
    z-index: 1;
    background: rgba(245, 205, 112, 0.045);
    transform: translateX(2px);
}

.ranking-row--first {
    background: linear-gradient(90deg, rgba(218, 145, 39, 0.13), transparent 70%);
}

.ranking-row--second {
    background: linear-gradient(90deg, rgba(173, 185, 205, 0.08), transparent 60%);
}

.ranking-row--third {
    background: linear-gradient(90deg, rgba(175, 92, 50, 0.09), transparent 60%);
}

.ranking-row__rank {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #77716b;
    font-variant-numeric: tabular-nums;
}

.ranking-row__rank i {
    color: var(--gold-300);
    font-style: normal;
}

.ranking-row--first .ranking-row__rank strong {
    color: #ffd878;
}

.ranking-row__player {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
}

.ranking-row__player i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(245, 205, 112, 0.3);
    border-radius: 11px;
    color: #2d160a;
    background: linear-gradient(145deg, #ffd77d, #ad5a18);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 900;
}

.ranking-row__player strong {
    overflow: hidden;
    color: #f3eadf;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row__tribe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.ranking-row__tribe i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #777;
    box-shadow: 0 0 9px currentColor;
}

.ranking-row__tribe--guanyin { color: #e88970; }
.ranking-row__tribe--guanyin i { background: #e88970; }
.ranking-row__tribe--fujin { color: #77b8e8; }
.ranking-row__tribe--fujin i { background: #77b8e8; }
.ranking-row__tribe--jinong { color: #dab768; }
.ranking-row__tribe--jinong i { background: #dab768; }

.ranking-row__level {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.ranking-row__level small,
.ranking-row__score small {
    color: #716b65;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ranking-row__score {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
    font-variant-numeric: tabular-nums;
}

.ranking-row__score strong {
    color: var(--gold-200);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.ranking-state {
    display: grid;
    min-height: 270px;
    place-items: center;
    align-content: center;
    padding: 2rem;
    border: 1px dashed rgba(245, 205, 112, 0.18);
    border-radius: 16px;
    color: #8e877f;
    text-align: center;
}

.ranking-state > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(245, 205, 112, 0.3);
    border-radius: 50%;
    color: var(--gold-300);
    font-size: 1.25rem;
}

.ranking-state h3 {
    margin: 1rem 0 0.35rem;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: 1.45rem;
}

.ranking-state p {
    max-width: 540px;
    margin: 0;
    font-size: 0.8rem;
}

@media (max-width: 720px) {
    .ranking-board__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-tabs {
        grid-template-columns: 1fr;
    }

    .ranking-list__header {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 0.55rem;
        min-height: 92px;
        padding: 0.8rem;
    }

    .ranking-row__rank {
        grid-row: 1 / 3;
    }

    .ranking-row__player {
        align-self: end;
    }

    .ranking-row__tribe,
    .ranking-row__level {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    .ranking-row__level {
        margin-left: 7.1rem;
    }

    .ranking-row__score {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
    }
}

@media (max-width: 430px) {
    .ranking-board {
        padding: 0.85rem;
        border-radius: 16px;
    }

    .ranking-row__player i {
        width: 34px;
        height: 34px;
    }

    .ranking-row__level {
        margin-left: 6.65rem;
    }

    .ranking-row__score strong {
        font-size: 1rem;
    }
}

/* Limited item shop */
.shop-stage {
    max-width: 1320px;
    padding-top: clamp(2.8rem, 6vw, 5rem);
}

.shop-command {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.8rem);
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 2.8vw, 2rem);
    border: 1px solid rgba(255, 193, 92, 0.3);
    border-radius: 24px;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(255, 200, 108, 0.035) 50%, transparent 50.2%),
        radial-gradient(circle at 11% 20%, rgba(238, 126, 38, 0.22), transparent 18rem),
        radial-gradient(circle at 94% 10%, rgba(160, 54, 25, 0.25), transparent 21rem),
        linear-gradient(145deg, rgba(19, 22, 35, 0.98), rgba(5, 9, 18, 0.99));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 224, 158, 0.05);
}

.shop-command::before,
.shop-command::after {
    position: absolute;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 112, 0.78), transparent);
    content: '';
}

.shop-command::before { top: 0; }
.shop-command::after { bottom: 0; opacity: 0.36; }

.shop-command__crest {
    position: relative;
    display: grid;
    width: clamp(64px, 7vw, 88px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 208, 117, 0.55);
    color: #3b1809;
    background: linear-gradient(145deg, #ffe19a, #d77726 55%, #7a2d16);
    box-shadow: inset 0 0 0 5px rgba(38, 15, 9, 0.28), 0 14px 30px rgba(0, 0, 0, 0.38);
    transform: rotate(45deg) scale(0.78);
}

.shop-command__crest::after {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(64, 23, 10, 0.35);
    content: '';
}

.shop-command__crest span {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
    transform: rotate(-45deg);
}

.shop-command__copy h2 {
    margin: 0.25rem 0 0.55rem;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.3vw, 2.85rem);
    letter-spacing: -0.025em;
}

.shop-command__copy > p:last-child {
    max-width: 620px;
    margin: 0;
    color: #9f9890;
    font-size: 0.78rem;
    line-height: 1.65;
}

.shop-policy-note {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 0.7rem;
    margin: -0.45rem auto 1.5rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 202, 116, 0.18);
    border-radius: 13px;
    color: #aaa198;
    background: linear-gradient(110deg, rgba(39, 27, 28, 0.72), rgba(8, 13, 23, 0.8));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.shop-policy-note__icon {
    display: grid;
    flex: 0 0 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 208, 120, 0.28);
    border-radius: 9px;
    color: #efb65d;
    background: rgba(207, 104, 32, 0.1);
}

.shop-policy-note > span:last-child {
    display: grid;
    gap: 0.08rem;
}

.shop-policy-note strong {
    color: #e8d6b6;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.shop-policy-note small {
    font-size: 0.68rem;
    line-height: 1.45;
}

@media (max-width: 560px) {
    .shop-policy-note {
        width: 100%;
        align-items: flex-start;
        margin-top: -0.6rem;
    }
}

/* Account profile and persistent player systems workspace */
.account-space-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: min(720px, 100%);
    margin: 0 0 1rem;
    padding: 0.4rem;
    border: 1px solid rgba(233, 175, 78, 0.2);
    border-radius: 18px;
    background: rgba(8, 12, 23, 0.82);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.account-space-switcher a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.65rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #968f85;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.account-space-switcher a:hover {
    color: #f5ead4;
    border-color: rgba(233, 175, 78, 0.22);
    transform: translateY(-1px);
}

.account-space-switcher a.is-active {
    color: #fff3d5;
    border-color: rgba(244, 179, 68, 0.42);
    background: linear-gradient(135deg, rgba(128, 72, 25, 0.4), rgba(28, 23, 25, 0.74));
    box-shadow: inset 0 1px rgba(255, 226, 164, 0.09), 0 8px 22px rgba(0, 0, 0, 0.22);
}

.account-space-switcher a > span:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #f4b342;
    background: rgba(227, 149, 48, 0.1);
}

.account-space-switcher a > span:last-child {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.account-space-switcher strong {
    color: inherit;
    font: 800 0.77rem/1.1 var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-space-switcher small {
    overflow: hidden;
    color: #756f68;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1rem;
    margin-top: 1rem;
}

.profile-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.1rem, 2vw, 1.65rem);
    border: 1px solid rgba(226, 170, 76, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(178, 91, 28, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(17, 22, 38, 0.97), rgba(9, 13, 25, 0.98));
    box-shadow: inset 0 1px rgba(255, 241, 210, 0.04), 0 22px 50px rgba(0, 0, 0, 0.22);
}

.profile-card > header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-card > header > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(247, 184, 75, 0.38);
    border-radius: 14px;
    color: #ffd47b;
    background: linear-gradient(145deg, rgba(124, 67, 24, 0.72), rgba(45, 28, 25, 0.76));
}

.profile-card header .eyebrow {
    margin: 0 0 0.25rem;
}

.profile-card header h2 {
    margin: 0;
    color: #fff0cf;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.profile-details {
    display: grid;
    gap: 0;
    margin: 0.65rem 0 1.1rem;
}

.profile-details div {
    display: grid;
    grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.profile-details dt {
    color: #77746f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.profile-details dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: #eee6da;
    font-weight: 750;
    text-align: right;
}

.profile-status {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
}

.profile-status i,
.systems-sidebar__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ec785f;
    box-shadow: 0 0 0 4px rgba(236, 120, 95, 0.1), 0 0 12px rgba(236, 120, 95, 0.45);
}

.profile-status.is-verified i,
.systems-sidebar__status i {
    background: #58da92;
    box-shadow: 0 0 0 4px rgba(88, 218, 146, 0.1), 0 0 12px rgba(88, 218, 146, 0.45);
}

.profile-systems-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(236, 173, 67, 0.22);
    border-radius: 15px;
    color: #f8e8c5;
    text-decoration: none;
    background: rgba(224, 145, 38, 0.07);
}

.profile-systems-link > span:first-child {
    color: #f4b342;
    font-size: 1.15rem;
}

.profile-systems-link > span:nth-child(2) {
    display: grid;
    gap: 0.16rem;
}

.profile-systems-link strong {
    font-size: 0.8rem;
}

.profile-systems-link small {
    color: #7d7770;
    font-size: 0.7rem;
}

.profile-systems-link > i {
    color: #f4b342;
    font-style: normal;
}

.profile-card__lead {
    margin: 1rem 0;
    color: #8e8980;
    font-size: 0.82rem;
    line-height: 1.65;
}

.profile-password-form fieldset {
    display: grid;
    gap: 0.65rem;
}

.profile-password-form label {
    margin-top: 0.2rem;
    color: #b7aea1;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.045em;
}

.profile-password-submit {
    width: 100%;
    margin-top: 0.45rem;
}

.systems-layout {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

.systems-sidebar {
    position: sticky;
    top: 92px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: hidden;
    padding: 0.65rem;
    border: 1px solid rgba(227, 170, 73, 0.22);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(17, 21, 36, 0.98), rgba(7, 11, 21, 0.98));
    box-shadow: inset 0 1px rgba(255, 238, 199, 0.04), 0 24px 50px rgba(0, 0, 0, 0.28);
}

.systems-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.systems-sidebar__brand > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244, 181, 69, 0.36);
    border-radius: 12px;
    color: #ffd076;
    background: rgba(170, 86, 23, 0.22);
}

.systems-sidebar__brand div {
    display: grid;
    gap: 0.12rem;
}

.systems-sidebar__brand small {
    color: #7a746d;
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.systems-sidebar__brand strong {
    color: #fff0cf;
    font: 800 0.92rem var(--font-display);
}

.systems-sidebar nav {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem 0;
}

.systems-sidebar nav a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    min-height: 48px;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #88837c;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.systems-sidebar nav a:hover,
.systems-sidebar nav a.is-active {
    color: #fff0d1;
    border-color: rgba(238, 174, 67, 0.26);
    background: linear-gradient(105deg, rgba(122, 64, 25, 0.38), rgba(77, 45, 29, 0.12));
}

.systems-sidebar nav a > span {
    color: #e9a83e;
    text-align: center;
}

.systems-sidebar nav strong {
    overflow: hidden;
    font-size: 0.72rem;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.systems-sidebar nav i {
    color: #e7a541;
    font-style: normal;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.systems-sidebar nav a:hover i,
.systems-sidebar nav a.is-active i {
    opacity: 1;
    transform: translateX(0);
}

.systems-sidebar__status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #7f9587;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    margin-top: auto;
}

.systems-workspace {
    min-width: 0;
    min-height: 520px;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(226, 170, 76, 0.18);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(13, 18, 32, 0.96), rgba(7, 11, 21, 0.97));
    box-shadow: inset 0 1px rgba(255, 241, 210, 0.035), 0 24px 55px rgba(0, 0, 0, 0.2);
}

.systems-workspace__header {
    margin-bottom: 1rem;
    padding: 0.25rem 0.15rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.systems-workspace__header .eyebrow {
    margin: 0 0 0.35rem;
}

.systems-workspace__header h2 {
    margin: 0;
    color: #fff0cf;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.systems-workspace__header > p:last-child {
    max-width: 720px;
    margin: 0.45rem 0 0;
    color: #88837c;
    line-height: 1.65;
}

.systems-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.systems-stat-grid article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.1rem 0.7rem;
    align-items: center;
    min-height: 112px;
    padding: 0.9rem;
    border: 1px solid rgba(221, 167, 75, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
}

.systems-stat-grid article > span {
    grid-row: 1 / 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #ffce6e;
    font-weight: 900;
    background: rgba(198, 111, 31, 0.16);
}

.systems-stat-grid small,
.systems-stat-grid i {
    color: #77736e;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.systems-stat-grid strong {
    color: #fff0cf;
    font: 800 clamp(1.25rem, 3vw, 1.8rem) var(--font-display);
}

.systems-launch-grid {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.systems-launch-grid > a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid rgba(222, 168, 77, 0.16);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.015);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.systems-launch-grid > a:hover {
    border-color: rgba(239, 179, 74, 0.38);
    background: rgba(197, 106, 29, 0.07);
    transform: translateY(-2px);
}

.systems-launch-grid > a > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #ffce70;
    background: linear-gradient(145deg, rgba(130, 69, 24, 0.62), rgba(53, 31, 27, 0.66));
}

.systems-launch-grid small {
    color: #d59635;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.systems-launch-grid h3 {
    margin: 0.18rem 0;
    color: #f8ead0;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.systems-launch-grid p {
    overflow: hidden;
    margin: 0;
    color: #77736d;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.systems-launch-grid > a > i {
    color: #efad45;
    font-style: normal;
}

.systems-module-grid {
    margin-top: 0;
}

.systems-workspace .gift-vault,
.systems-workspace .shop-stage {
    width: 100%;
    max-width: none;
    margin: 0;
}

.systems-workspace .gift-vault {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.systems-workspace .gift-vault::before {
    display: none;
}

.shop-stage--systems {
    padding: 0;
}

.shop-stage--systems .shop-command {
    margin-top: 0;
}

@media (max-width: 1040px) {
    .systems-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .systems-stat-grid {
        grid-template-columns: 1fr;
    }

    .systems-stat-grid article {
        min-height: 88px;
    }
}

@media (max-width: 820px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

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

    .systems-sidebar {
        top: 72px;
        display: block;
        min-height: 0;
        overflow-x: auto;
        padding: 0.45rem;
        border-radius: 16px;
        scrollbar-width: thin;
    }

    .systems-sidebar__brand,
    .systems-sidebar__status {
        display: none;
    }

    .systems-sidebar nav {
        display: flex;
        gap: 0.4rem;
        width: max-content;
        min-width: 100%;
        padding: 0;
    }

    .systems-sidebar nav a {
        display: flex;
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }

    .systems-sidebar nav a > span {
        width: auto;
    }

    .systems-sidebar nav i {
        display: none;
    }

    .systems-workspace {
        min-height: 420px;
        padding: 1rem;
        border-radius: 18px;
    }
}

@media (max-width: 560px) {
    .account-space-switcher {
        gap: 0.35rem;
        padding: 0.3rem;
        border-radius: 15px;
    }

    .account-space-switcher a {
        gap: 0.5rem;
        min-height: 50px;
        padding: 0.5rem;
    }

    .account-space-switcher a > span:first-child {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .account-space-switcher small {
        display: none;
    }

    .account-space-switcher strong {
        font-size: 0.68rem;
    }

    .profile-card {
        padding: 1rem;
        border-radius: 17px;
    }

    .profile-details div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        align-items: start;
        padding: 0.7rem 0;
    }

    .profile-details dd,
    .profile-status {
        justify-content: flex-start;
        text-align: left;
    }

    .systems-command {
        display: none;
    }

    .systems-layout {
        margin-top: 0.7rem;
    }

    .systems-sidebar {
        top: 66px;
    }

    .systems-sidebar nav strong {
        font-size: 0.67rem;
    }

    .systems-workspace {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .systems-launch-grid > a {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        padding: 0.75rem;
    }

    .systems-launch-grid > a > span {
        width: 42px;
        height: 42px;
    }

    .systems-launch-grid p {
        display: none;
    }
}

.shop-command__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(105px, 1fr));
    gap: 0.65rem;
}

.shop-command__stats > div {
    display: grid;
    min-height: 82px;
    align-content: center;
    padding: 0.85rem 1.05rem;
    border: 1px solid rgba(255, 211, 132, 0.1);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(2, 6, 14, 0.48));
}

.shop-command__stats small {
    color: #756f69;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-command__stats strong {
    margin-top: 0.2rem;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.shop-command__stats strong i {
    color: var(--gold-500);
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shop-command__stats .shop-wallet {
    grid-column: 1 / -1;
    min-height: 68px;
    border-color: rgba(245, 205, 112, 0.24);
    background: linear-gradient(120deg, rgba(108, 54, 20, 0.3), rgba(2, 6, 14, 0.45));
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 360px));
    justify-content: center;
    gap: 1.25rem;
}

.shop-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 199, 99, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 38%),
        linear-gradient(165deg, rgba(24, 25, 39, 0.99), rgba(5, 9, 18, 0.99));
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 225, 166, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.shop-card::before {
    position: absolute;
    z-index: 5;
    inset: 8px;
    border: 1px solid rgba(255, 213, 126, 0.055);
    border-radius: 16px;
    pointer-events: none;
    content: '';
}

.shop-card:hover {
    border-color: rgba(245, 205, 112, 0.42);
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.42), 0 0 32px rgba(182, 82, 24, 0.08);
    transform: translateY(-4px);
}

.shop-card__visual {
    position: relative;
    display: grid;
    min-height: 278px;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 199, 94, 0.15);
    background:
        linear-gradient(30deg, transparent 49.5%, rgba(255, 208, 120, 0.035) 50%, transparent 50.5%),
        linear-gradient(150deg, transparent 49.5%, rgba(255, 208, 120, 0.035) 50%, transparent 50.5%),
        radial-gradient(circle at 50% 56%, rgba(221, 100, 31, 0.3), transparent 43%),
        linear-gradient(180deg, #0d1320, #080b13);
    background-size: 42px 72px, 42px 72px, auto, auto;
}

.shop-card__visual::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.06) 42%, transparent 57%);
    transform: translateX(-120%);
    transition: transform 600ms ease;
    content: '';
}

.shop-card:hover .shop-card__visual::before {
    transform: translateX(120%);
}

.shop-card__halo {
    position: absolute;
    width: 205px;
    height: 205px;
    border: 1px solid rgba(255, 207, 115, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(211, 94, 27, 0.15), inset 0 0 50px rgba(255, 194, 82, 0.05);
}

.shop-card__halo::before,
.shop-card__halo::after {
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255, 211, 126, 0.16);
    border-radius: inherit;
    content: '';
    animation: shop-orbit 24s linear infinite;
}

.shop-card__halo::after {
    inset: 39px;
    border-style: solid;
    opacity: 0.45;
}

@keyframes shop-orbit {
    to { transform: rotate(360deg); }
}

.shop-card__art-frame {
    position: relative;
    z-index: 2;
    display: grid;
    width: 184px;
    height: 184px;
    place-items: center;
    border: 1px solid rgba(255, 211, 126, 0.22);
    background: radial-gradient(circle, rgba(108, 47, 22, 0.42), rgba(7, 11, 19, 0.58) 68%);
    box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.6), 0 18px 40px rgba(0, 0, 0, 0.38);
    clip-path: polygon(14% 0, 86% 0, 100% 14%, 100% 86%, 86% 100%, 14% 100%, 0 86%, 0 14%);
}

.shop-card__visual img {
    position: relative;
    z-index: 2;
    width: 162px;
    height: 162px;
    object-fit: contain;
    filter: drop-shadow(0 14px 17px rgba(0, 0, 0, 0.78));
    image-rendering: pixelated;
    transition: filter 180ms ease, transform 180ms ease;
}

.shop-card:hover .shop-card__visual img {
    filter: drop-shadow(0 17px 21px rgba(0, 0, 0, 0.8));
    transform: scale(1.06);
}

.shop-card__placeholder {
    position: relative;
    z-index: 2;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(245, 205, 112, 0.32);
    color: rgba(255, 228, 166, 0.64);
    background: linear-gradient(145deg, rgba(91, 47, 24, 0.8), rgba(10, 15, 27, 0.92));
    box-shadow: inset 0 0 24px rgba(245, 205, 112, 0.08), 0 14px 28px rgba(0, 0, 0, 0.42);
    transform: rotate(45deg);
}

.shop-card__placeholder span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    transform: rotate(-45deg);
}

.shop-card__placeholder i {
    position: absolute;
    right: 9px;
    bottom: 9px;
    color: var(--gold-500);
    font-style: normal;
    transform: rotate(-45deg);
}

.shop-card__badge {
    position: absolute;
    z-index: 4;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.shop-card__badge {
    top: 18px;
    right: 18px;
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(88, 223, 147, 0.28);
    border-radius: 999px;
    color: #86dda9;
    background: rgba(15, 59, 40, 0.54);
}

.shop-card__badge--sold {
    border-color: rgba(239, 100, 83, 0.28);
    color: #ef887a;
    background: rgba(76, 24, 24, 0.58);
}

.shop-card__body {
    padding: 1.3rem;
}

.shop-card__edition {
    min-height: 0 !important;
    margin: 0 0 0.45rem !important;
    color: #c98b42 !important;
    font-size: 0.53rem !important;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shop-card__body h2 {
    margin: 0;
    color: #f5ecdf;
    font-family: var(--font-display);
    font-size: 1.48rem;
}

.shop-card__body > p {
    min-height: 2.6rem;
    margin: 0.45rem 0 1rem;
    color: #878079;
    font-size: 0.74rem;
    line-height: 1.55;
}

.shop-card__meta {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.shop-card__meta.has-bundle-amount {
    grid-template-columns: 0.65fr 0.65fr 1.3fr;
}

.shop-card__amount strong {
    color: #f2b765;
}

.shop-card__meta > span {
    display: grid;
    min-width: 0;
    padding: 0.76rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.shop-card__meta small {
    color: #716b65;
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-card__meta strong {
    overflow: hidden;
    margin-top: 0.25rem;
    color: var(--gold-200);
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-card__meta strong i {
    color: var(--gold-500);
    font-family: var(--font-body);
    font-size: 0.54rem;
    font-style: normal;
    text-transform: uppercase;
}

.shop-card__price strong {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-card__price strong b {
    display: inline-grid;
    flex: 0 0 22px;
    height: 22px;
    place-items: center;
    border: 1px solid #ffd783;
    border-radius: 50%;
    color: #5b240c;
    background: linear-gradient(145deg, #ffe39a, #cf711f);
    font-family: var(--font-display);
    font-size: 0.65rem;
    box-shadow: 0 0 12px rgba(231, 133, 39, 0.22);
}

.shop-card__action a,
.shop-card__action button {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 220, 139, 0.58);
    border-radius: 12px;
    color: #2d1408;
    background: linear-gradient(180deg, #ffd77c, #bd661f);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.52), 0 9px 22px rgba(132, 55, 18, 0.24);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shop-card__action form {
    width: 100%;
    margin: 0;
}

.shop-card__action button:not(:disabled):hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.shop-card__action button:disabled {
    border-color: rgba(255, 208, 117, 0.16);
    color: #a49a8e;
    background: linear-gradient(180deg, rgba(76, 57, 43, 0.38), rgba(24, 23, 28, 0.5));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
    cursor: not-allowed;
}

.shop-card.is-sold-out .shop-card__visual img,
.shop-card.is-sold-out .shop-card__placeholder {
    filter: grayscale(1) brightness(0.55);
}

.shop-empty {
    display: grid;
    min-height: 320px;
    place-items: center;
    align-content: center;
    padding: 2rem;
    border: 1px dashed rgba(245, 205, 112, 0.2);
    border-radius: 18px;
    color: #8d867f;
    text-align: center;
    background: rgba(7, 12, 22, 0.62);
}

.shop-empty > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(245, 205, 112, 0.3);
    color: var(--gold-300);
    transform: rotate(45deg);
}

.shop-empty h2 {
    margin: 1.4rem 0 0.4rem;
    color: var(--gold-100);
    font-family: var(--font-display);
}

.shop-empty p {
    margin: 0;
    font-size: 0.8rem;
}

@media (max-width: 980px) {
    .shop-command {
        grid-template-columns: auto 1fr;
    }

    .shop-command__stats { grid-column: 1 / -1; }

    .shop-command__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-command__stats .shop-wallet {
        grid-column: auto;
        min-height: 84px;
    }

}

@media (max-width: 640px) {
    .shop-command {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .shop-command__crest { margin: 0 auto; }

    .shop-command__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-command__stats .shop-wallet {
        grid-column: 1 / -1;
        min-height: 68px;
    }

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

    .shop-card__visual {
        min-height: 215px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-card__halo::before,
    .shop-card__halo::after { animation: none; }
}

/* Compact inventory-style store cards */
.shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(390px, 520px));
    gap: 1rem;
}

.shop-card {
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, rgba(223, 111, 31, 0.12), transparent 15rem),
        linear-gradient(145deg, rgba(17, 21, 34, 0.99), rgba(5, 9, 17, 0.99));
}

.shop-card::before {
    inset: 6px;
    border-radius: 13px;
}

.shop-card__top {
    position: relative;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 1rem;
    min-height: 142px;
    align-items: center;
    padding: 1.15rem;
    border-bottom: 1px solid rgba(255, 201, 104, 0.13);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 48%),
        repeating-linear-gradient(135deg, transparent 0 28px, rgba(255, 211, 126, 0.018) 29px 30px);
}

.shop-card__art-shell {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border: 1px solid rgba(255, 205, 111, 0.2);
    border-radius: 15px;
    background:
        radial-gradient(circle, rgba(197, 86, 27, 0.19), transparent 67%),
        rgba(4, 8, 15, 0.72);
    box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.58), 0 12px 28px rgba(0, 0, 0, 0.26);
}

.shop-card__art-shell::before,
.shop-card__art-shell::after {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(255, 199, 94, 0.58);
    content: '';
}

.shop-card__art-shell::before {
    top: 7px;
    left: 7px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.shop-card__art-shell::after {
    right: 7px;
    bottom: 7px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.shop-card__art-frame {
    position: relative;
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
}

.shop-card__art-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 64px;
    height: 64px;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.68));
    image-rendering: pixelated;
    transform: translate(-50%, -50%);
    transition: filter 180ms ease, transform 180ms ease;
}

.shop-card__art-frame .shop-card__placeholder {
    width: 54px;
    height: 54px;
}

.shop-card__art-frame .shop-card__placeholder span {
    font-size: 0.72rem;
}

.shop-card:hover .shop-card__art-frame img {
    filter: drop-shadow(0 9px 11px rgba(0, 0, 0, 0.78));
    transform: translate(-50%, -50%);
}

.shop-card__summary {
    min-width: 0;
    padding-right: 0.5rem;
}

.shop-card__summary .shop-card__edition {
    margin-bottom: 0.38rem !important;
}

.shop-card__summary h2 {
    overflow: hidden;
    margin: 0;
    color: #f7ead7;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-card__description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.4rem;
    margin: 0.45rem 0 0;
    color: #8e8880;
    font-size: 0.7rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shop-card__summary.has-secondary .shop-card__description {
    min-height: 0;
    margin-top: 0.4rem;
    -webkit-line-clamp: 1;
}

.shop-card__description-two {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.28rem 0 0;
    color: #c89a59;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.shop-card__top .shop-card__badge {
    top: 11px;
    right: 11px;
    padding: 0.3rem 0.52rem;
    font-size: 0.48rem;
}

.shop-card__commerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 0.65rem;
    align-items: stretch;
    padding: 0.85rem 1rem 1rem;
}

.shop-card__commerce .shop-card__meta {
    grid-template-columns: minmax(74px, 0.7fr) minmax(130px, 1.3fr);
    gap: 0.45rem;
    margin: 0;
}

.shop-card__commerce .shop-card__meta > span {
    justify-content: center;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
}

.shop-card__commerce .shop-card__action,
.shop-card__commerce .shop-card__action a,
.shop-card__commerce .shop-card__action button {
    height: auto;
    min-height: 42px;
}

.shop-card__commerce .shop-card__action {
    align-self: center;
}

.shop-card__commerce .shop-card__action a,
.shop-card__commerce .shop-card__action button {
    padding: 0.42rem 0.62rem;
    font-size: 0.53rem;
    line-height: 1.25;
    text-align: center;
}

.shop-card.is-sold-out .shop-card__art-frame img,
.shop-card.is-sold-out .shop-card__placeholder {
    filter: grayscale(1) brightness(0.55);
}

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

    .shop-card__top {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 0.8rem;
        min-height: 128px;
        padding: 0.9rem;
    }

    .shop-card__art-shell {
        width: 82px;
        height: 82px;
    }

    .shop-card__art-frame {
        width: 68px;
        height: 68px;
    }

    .shop-card__summary h2 {
        font-size: 1.13rem;
    }

    .shop-card__summary {
        padding-top: 1.15rem;
    }

    .shop-card__summary .shop-card__edition {
        display: none;
    }

    .shop-card__commerce {
        grid-template-columns: 1fr;
        padding: 0.75rem 0.85rem 0.85rem;
    }

    .shop-card__commerce .shop-card__action {
        width: min(100%, 178px);
        justify-self: end;
    }

    .shop-card__commerce .shop-card__action a,
    .shop-card__commerce .shop-card__action button {
        min-height: 39px;
    }
}

/* Warm fantasy-shop polish */
.shop-command {
    border-color: rgba(255, 205, 139, 0.34);
    border-radius: 28px;
    background:
        radial-gradient(circle at 5% 0, rgba(255, 164, 86, 0.2), transparent 18rem),
        radial-gradient(circle at 95% 100%, rgba(173, 57, 59, 0.2), transparent 20rem),
        linear-gradient(135deg, rgba(29, 20, 30, 0.98), rgba(7, 12, 23, 0.99));
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 237, 202, 0.08);
}

.shop-command__crest {
    width: 76px;
    border: 1px solid rgba(255, 221, 164, 0.68);
    border-radius: 26px;
    color: #fff0c8;
    background:
        radial-gradient(circle at 35% 28%, #ffd991, transparent 13%),
        linear-gradient(145deg, #e9853d, #9b3d2c 60%, #3d1b2b);
    box-shadow: inset 0 0 0 5px rgba(72, 25, 27, 0.23), 0 13px 34px rgba(201, 78, 43, 0.26);
    transform: rotate(8deg);
}

.shop-command__crest::after {
    inset: 7px;
    border-color: rgba(255, 233, 190, 0.24);
    border-radius: 20px;
}

.shop-command__crest span {
    font-family: var(--font-body);
    font-size: 1.6rem;
    text-shadow: 0 0 16px rgba(255, 226, 158, 0.7);
    transform: rotate(-8deg);
}

.shop-command__stats {
    gap: 0.5rem;
}

.shop-command__stats > div {
    min-height: 74px;
    border-color: rgba(255, 218, 158, 0.12);
    border-radius: 18px;
    background: rgba(8, 11, 21, 0.44);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(390px, 500px));
    gap: 1.15rem;
}

.shop-card {
    overflow: visible;
    border-color: rgba(255, 202, 133, 0.31);
    border-radius: 24px;
    background:
        radial-gradient(circle at 4% 8%, rgba(255, 163, 92, 0.16), transparent 12rem),
        radial-gradient(circle at 95% 82%, rgba(151, 51, 72, 0.13), transparent 13rem),
        linear-gradient(145deg, rgba(25, 19, 31, 0.99), rgba(6, 11, 20, 0.99));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 236, 202, 0.06);
}

.shop-card::before {
    inset: 5px;
    border-color: rgba(255, 224, 177, 0.07);
    border-radius: 19px;
}

.shop-card::after {
    position: absolute;
    z-index: -1;
    right: 24px;
    bottom: -8px;
    left: 24px;
    height: 28px;
    border-radius: 50%;
    background: rgba(218, 97, 50, 0.13);
    filter: blur(18px);
    content: '';
}

.shop-card:hover {
    border-color: rgba(255, 206, 137, 0.5);
    box-shadow: 0 27px 66px rgba(0, 0, 0, 0.4), 0 0 30px rgba(218, 96, 51, 0.07);
    transform: translateY(-3px);
}

.shop-card__top {
    grid-template-columns: 102px minmax(0, 1fr);
    min-height: 138px;
    border-bottom-color: rgba(255, 213, 149, 0.12);
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(circle at 11% 48%, rgba(255, 195, 113, 0.08), transparent 8rem),
        linear-gradient(120deg, rgba(255, 255, 255, 0.024), transparent 58%);
}

.shop-card__art-shell {
    width: 98px;
    height: 98px;
    border-color: rgba(255, 211, 143, 0.36);
    border-radius: 28px 20px 28px 20px;
    background:
        radial-gradient(circle, rgba(255, 185, 99, 0.19), transparent 62%),
        linear-gradient(145deg, rgba(33, 23, 33, 0.94), rgba(4, 9, 17, 0.96));
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5), 0 10px 25px rgba(0, 0, 0, 0.23), 0 0 24px rgba(218, 96, 48, 0.07);
}

.shop-card__art-shell::before,
.shop-card__art-shell::after {
    width: 15px;
    height: 15px;
    border-color: rgba(255, 217, 151, 0.7);
}

.shop-card__summary .shop-card__edition {
    width: fit-content;
    margin-bottom: 0.42rem !important;
    padding: 0.22rem 0.48rem;
    border: 1px solid rgba(255, 191, 112, 0.14);
    border-radius: 999px;
    color: #e9a85c !important;
    background: rgba(172, 70, 39, 0.1);
    letter-spacing: 0.09em;
}

.shop-card__summary h2 {
    color: #fff1dc;
    font-size: 1.42rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.shop-card__top .shop-card__badge {
    top: 12px;
    right: 13px;
    padding: 0.34rem 0.58rem;
    border-color: rgba(106, 226, 162, 0.23);
    color: #a5e9bf;
    background: rgba(26, 86, 58, 0.43);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);
}

.shop-card__commerce {
    padding: 0.75rem 0.9rem 0.9rem;
    border-radius: 0 0 24px 24px;
    background: rgba(3, 7, 14, 0.2);
}

.shop-card__commerce .shop-card__meta > span {
    border-color: rgba(255, 223, 174, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.027);
}

.shop-card__price strong b {
    border-color: #ffe4a2;
    background: linear-gradient(145deg, #ffe6a5, #ef9942 58%, #b64f31);
    box-shadow: 0 0 15px rgba(240, 144, 61, 0.25);
}

.shop-card__commerce .shop-card__action a,
.shop-card__commerce .shop-card__action button {
    border-color: rgba(255, 224, 172, 0.58);
    border-radius: 14px;
    color: #4c210f;
    background: linear-gradient(180deg, #ffe19d, #ef9a45 62%, #cf632f);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.62), 0 7px 17px rgba(181, 69, 35, 0.18);
}

.shop-card__commerce .shop-card__action button:disabled {
    border-color: rgba(255, 210, 152, 0.14);
    color: #9f958c;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

@media (max-width: 640px) {
    .shop-command__crest {
        width: 68px;
    }

    .shop-card__top {
        grid-template-columns: 86px minmax(0, 1fr);
        min-height: 128px;
    }

    .shop-card__art-shell {
        width: 84px;
        height: 84px;
        border-radius: 23px 17px 23px 17px;
    }

    .shop-card__summary h2 {
        font-size: 1.16rem;
    }

    .shop-card__meta.has-bundle-amount {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-card__meta.has-bundle-amount .shop-card__price {
        grid-column: 1 / -1;
    }
}

.section-heading--center {
    justify-content: center;
    text-align: center;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.community-grid article {
    min-height: 270px;
    padding: 2rem;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(37, 24, 24, 0.72), rgba(8, 14, 25, 0.88));
}

.community-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(245, 205, 112, 0.4);
    border-radius: 16px;
    color: var(--gold-300);
    background: rgba(217, 154, 55, 0.08);
    font-size: 1.3rem;
}

.community-grid h3 {
    margin: 2.6rem 0 0.7rem;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.community-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.account-cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    overflow: hidden;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(255, 213, 121, 0.34);
    border-radius: 26px;
    background: linear-gradient(120deg, rgba(96, 30, 18, 0.88), rgba(10, 16, 27, 0.96) 62%);
    box-shadow: var(--shadow);
    gap: 2rem;
}

.account-cta__glow {
    position: absolute;
    top: -150px;
    right: 8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(235, 118, 37, 0.22);
    filter: blur(70px);
    pointer-events: none;
}

.account-cta h2,
.contact-strip h2 {
    margin: 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.account-cta p:not(.eyebrow),
.contact-strip p:not(.eyebrow) {
    max-width: 680px;
    margin: 0.8rem 0 0;
    color: var(--muted);
}

.account-cta__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 15, 25, 0.62);
    gap: 2rem;
}

/* Login and register preview */
.auth-page .site-footer {
    display: none;
}

.auth-shell {
    position: relative;
    min-height: calc(100svh - 74px);
    overflow: hidden;
    padding: clamp(2rem, 5vw, 5rem) 1rem;
    isolation: isolate;
}

.auth-shell::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(3, 6, 14, 0.9), rgba(4, 7, 16, 0.38) 48%, rgba(18, 8, 9, 0.86));
    content: '';
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
    align-items: center;
    width: min(1120px, 100%);
    min-height: calc(100svh - 74px - clamp(4rem, 10vw, 10rem));
    margin: 0 auto;
    gap: clamp(2rem, 7vw, 7rem);
}

.auth-layout--single {
    grid-template-columns: minmax(0, 580px);
    justify-content: center;
}

.auth-story {
    max-width: 600px;
}

.auth-back {
    display: inline-flex;
    margin-bottom: clamp(3rem, 8vw, 7rem);
    color: #b9b0a5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    gap: 0.6rem;
}

.auth-back:hover {
    color: var(--gold-300);
}

.auth-story h1 {
    max-width: 650px;
    margin: 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.98;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
}

.auth-story > p:not(.eyebrow) {
    max-width: 550px;
    margin: 1.3rem 0 0;
    color: #c4bbb0;
}

.auth-benefits {
    display: grid;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    gap: 0.7rem;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    color: #d7cec1;
    font-size: 0.82rem;
    gap: 0.8rem;
}

.auth-benefits span {
    color: var(--gold-500);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.auth-emblem {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin-top: 3rem;
    border: 1px solid rgba(255, 220, 143, 0.7);
    color: #2a1208;
    background: linear-gradient(135deg, #ffe59c, #be641c);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    font-family: var(--font-display);
    font-weight: 900;
    transform: rotate(45deg);
}

.auth-emblem span {
    transform: rotate(-45deg);
}

.auth-card {
    padding: clamp(1.5rem, 4vw, 2.8rem);
    border: 1px solid rgba(255, 215, 128, 0.24);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(17, 18, 28, 0.86), rgba(20, 12, 14, 0.92));
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(26px) saturate(1.2);
}

.preview-pill {
    margin-bottom: 1.5rem;
}

.auth-card h1,
.auth-card h2 {
    margin: 0;
    color: #fff2d4;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1;
}

.account-card--single {
    width: 100%;
    text-align: left;
}

.account-card--single .auth-back {
    margin-bottom: 2rem;
}

.player-account {
    position: relative;
    min-height: calc(100svh - 128px);
    padding: clamp(2rem, 5vw, 4.5rem) 1rem 5rem;
    overflow: hidden;
    isolation: isolate;
}

.player-account__backdrop {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 7, 16, 0.78), rgba(3, 6, 13, 0.97)),
        radial-gradient(circle at 78% 17%, rgba(170, 70, 27, 0.18), transparent 30%),
        radial-gradient(circle at 15% 55%, rgba(39, 76, 139, 0.15), transparent 35%),
        #050914;
}

.player-account__backdrop::before {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    content: '';
}

.account-center {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.account-center__back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.35rem;
    color: #978e83;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    gap: 0.55rem;
}

.account-center__back:hover {
    color: var(--gold-200);
}

.account-command {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: clamp(1.2rem, 3vw, 1.75rem);
    overflow: hidden;
    border: 1px solid rgba(255, 215, 128, 0.25);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(20, 25, 39, 0.95), rgba(11, 15, 27, 0.93)),
        radial-gradient(circle at 15% 0, rgba(226, 143, 44, 0.2), transparent 35%);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    gap: 1.2rem;
}

.account-command::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 32%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e89d3d, #ffe2a0);
    content: '';
}

.account-command__crest {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(255, 224, 151, 0.58);
    color: #4e1a09;
    background: linear-gradient(145deg, #ffdc86, #ce7022 62%, #6e2714);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 14px 30px rgba(0, 0, 0, 0.32);
    font-family: var(--font-display);
    font-weight: 950;
    transform: rotate(45deg);
}

.account-command__crest span {
    transform: rotate(-45deg);
}

.account-command__copy .eyebrow {
    margin-bottom: 0.35rem;
}

.account-command__copy h1 {
    margin: 0;
    color: #fff0cb;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1;
}

.account-command__copy > p:last-child {
    max-width: 650px;
    margin: 0.55rem 0 0;
    color: #9f968c;
    font-size: 0.76rem;
}

.account-command__player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-width: 250px;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(255, 219, 142, 0.16);
    border-radius: 16px;
    background: rgba(4, 8, 17, 0.55);
    gap: 0.7rem;
}

.player-avatar--hero {
    grid-row: 1 / span 2;
    width: 49px;
    height: 49px;
    border-radius: 15px;
    font-size: 1.25rem;
}

.account-command__player > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.account-command__player small {
    color: #786f66;
    font-size: 0.53rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-command__player strong {
    overflow: hidden;
    color: #f0e2cf;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-command__state {
    display: flex;
    grid-column: 2;
    align-items: center;
    color: #86caa0;
    font-size: 0.52rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    gap: 0.45rem;
}

.account-module-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    align-items: stretch;
    gap: 1.25rem;
}

.session-recovery {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.56fr);
    align-items: center;
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(255, 213, 128, 0.2);
    border-radius: 20px;
    background:
        radial-gradient(circle at 0 50%, rgba(77, 155, 129, 0.13), transparent 31%),
        linear-gradient(120deg, rgba(16, 22, 32, 0.97), rgba(8, 12, 21, 0.98));
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    gap: 1.15rem;
    isolation: isolate;
}

.session-recovery::before {
    position: absolute;
    z-index: -1;
    top: -80px;
    right: 16%;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 214, 131, 0.08);
    border-radius: 50%;
    content: '';
}

.session-recovery--stuck {
    border-color: rgba(239, 157, 58, 0.42);
    background:
        radial-gradient(circle at 0 50%, rgba(214, 91, 32, 0.2), transparent 32%),
        linear-gradient(120deg, rgba(24, 20, 27, 0.98), rgba(10, 13, 22, 0.98));
}

.session-recovery__emblem {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 221, 145, 0.34);
    border-radius: 19px;
    color: #f3c16d;
    background: linear-gradient(145deg, rgba(208, 121, 35, 0.27), rgba(83, 36, 24, 0.2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 12px 30px rgba(0, 0, 0, 0.23);
}

.session-recovery__emblem span {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.session-recovery__copy {
    min-width: 0;
}

.session-recovery__copy .eyebrow {
    margin-bottom: 0.22rem;
}

.session-recovery__copy h2 {
    margin: 0;
    color: #f6e7cb;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.session-recovery__copy > p:last-of-type {
    max-width: 720px;
    margin: 0.35rem 0 0;
    color: #9d958c;
    font-size: 0.73rem;
    line-height: 1.6;
}

.session-recovery__state {
    display: inline-flex;
    align-items: center;
    margin-top: 0.65rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(98, 215, 143, 0.18);
    border-radius: 999px;
    color: #8fd2a8;
    background: rgba(46, 130, 78, 0.1);
    font-size: 0.57rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    gap: 0.42rem;
}

.session-recovery__state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #69e293;
    box-shadow: 0 0 10px rgba(105, 226, 147, 0.74);
}

.session-recovery--stuck .session-recovery__state {
    border-color: rgba(255, 163, 65, 0.27);
    color: #f2bb72;
    background: rgba(190, 79, 27, 0.12);
}

.session-recovery--stuck .session-recovery__state i {
    background: #ff9d45;
    box-shadow: 0 0 11px rgba(255, 112, 48, 0.78);
}

.session-recovery__action {
    display: grid;
    justify-items: stretch;
    gap: 0.55rem;
}

.session-recovery__action form {
    width: 100%;
}

.session-recovery__button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    border-color: rgba(255, 216, 132, 0.38);
    color: #ffedc9;
    background: linear-gradient(105deg, rgba(127, 52, 24, 0.92), rgba(211, 112, 35, 0.94));
    box-shadow: 0 12px 28px rgba(141, 57, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    gap: 0.65rem;
}

.session-recovery__button:hover,
.session-recovery__button:focus-visible {
    border-color: rgba(255, 226, 158, 0.72);
    color: #fff7e6;
    transform: translateY(-1px);
}

.session-recovery__button > span {
    font-size: 1rem;
}

.session-recovery__button b {
    font-size: 0.68rem;
    letter-spacing: 0.055em;
    text-align: left;
    text-transform: uppercase;
}

.session-recovery__button i {
    font-size: 1rem;
    font-style: normal;
}

.session-recovery__action small {
    display: flex;
    align-items: flex-start;
    color: #8b8178;
    font-size: 0.58rem;
    line-height: 1.45;
    gap: 0.42rem;
}

.session-recovery__action small span {
    display: grid;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    place-items: center;
    border: 1px solid rgba(238, 156, 65, 0.38);
    border-radius: 50%;
    color: #e9a554;
    font-size: 0.48rem;
    font-weight: 900;
}

.account-module {
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(255, 215, 128, 0.22);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(17, 21, 34, 0.94), rgba(8, 12, 22, 0.96));
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.account-module__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.8rem;
}

.account-module__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 221, 142, 0.35);
    border-radius: 13px;
    color: #f3bf69;
    background: rgba(218, 125, 37, 0.12);
}

.account-module__header .eyebrow {
    margin-bottom: 0.2rem;
    font-size: 0.55rem;
}

.account-module__header h2 {
    margin: 0;
    color: #f5e7ce;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.wallet-module .wallet-card {
    width: 100%;
    margin-top: 0;
}

.account-module__trust {
    display: flex;
    align-items: flex-start;
    margin-top: 1.15rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(102, 221, 143, 0.12);
    border-radius: 13px;
    color: #6fe098;
    background: rgba(42, 126, 72, 0.07);
    gap: 0.7rem;
}

.account-module__trust p {
    display: grid;
    margin: 0;
    gap: 0.15rem;
}

.account-module__trust strong {
    color: #aad6ba;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-module__trust small {
    color: #817d76;
    font-size: 0.65rem;
    line-height: 1.5;
}

.wallet-card {
    position: relative;
    display: grid;
    width: min(390px, 100%);
    margin-top: 2.4rem;
    padding: 1.4rem 1.55rem 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(255, 218, 138, 0.46);
    border-radius: 23px;
    color: #fff5dd;
    background:
        linear-gradient(125deg, rgba(255, 209, 93, 0.1), transparent 35%),
        linear-gradient(145deg, #1e1d29, #0d111d 59%, #321a15);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    isolation: isolate;
}

.wallet-card::before,
.wallet-card::after {
    position: absolute;
    z-index: -1;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 218, 138, 0.18);
    border-radius: 50%;
    content: '';
}

.wallet-card::before {
    top: -105px;
    right: -48px;
}

.wallet-card::after {
    right: -82px;
    bottom: -125px;
    width: 210px;
    height: 210px;
}

.wallet-card__flare {
    position: absolute;
    z-index: -1;
    top: -50px;
    right: 7%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 173, 57, 0.17);
    filter: blur(24px);
}

.wallet-card__header,
.wallet-card__footer,
.wallet-card__amount {
    display: flex;
    align-items: center;
}

.wallet-card__header {
    gap: 0.75rem;
}

.wallet-card__seal {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 232, 168, 0.72);
    border-radius: 12px;
    color: #4a1b0b;
    background: linear-gradient(135deg, #ffedb2, #d98a2a 64%, #8f3a15);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    font-size: 1.05rem;
}

.wallet-card__header > div {
    display: grid;
    gap: 0.15rem;
}

.wallet-card__eyebrow,
.wallet-card small,
.wallet-card__amount span,
.wallet-card__footer {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wallet-card__eyebrow {
    color: #f1dfbd;
}

.wallet-card small {
    color: #978776;
    font-size: 0.53rem;
}

.wallet-card__amount {
    align-items: flex-end;
    margin: 1.7rem 0 1.45rem;
    gap: 0.65rem;
}

.wallet-card__amount strong {
    color: #fff3ce;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.3rem);
    line-height: 0.78;
    text-shadow: 0 0 28px rgba(255, 184, 57, 0.25);
}

.wallet-card__amount span {
    padding-bottom: 0.2rem;
    color: #e2a950;
}

.wallet-card__footer {
    justify-content: space-between;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 231, 180, 0.15);
    color: #9f9284;
}

.wallet-card__footer span:first-child {
    display: inline-flex;
    align-items: center;
    max-width: 72%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    gap: 0.45rem;
}

.wallet-card__footer i,
.epin-vault__status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ee896;
    box-shadow: 0 0 0 4px rgba(110, 232, 150, 0.1), 0 0 13px rgba(110, 232, 150, 0.75);
}

.epin-vault {
    position: relative;
    padding: clamp(1.6rem, 4vw, 2.65rem);
    overflow: hidden;
    border-color: rgba(255, 215, 128, 0.36);
    background:
        radial-gradient(circle at 98% 3%, rgba(241, 145, 44, 0.24), transparent 31%),
        radial-gradient(circle at 3% 100%, rgba(72, 107, 196, 0.15), transparent 37%),
        linear-gradient(145deg, rgba(20, 22, 36, 0.96), rgba(10, 14, 25, 0.96));
}

.epin-vault::before {
    position: absolute;
    top: 18px;
    right: 18px;
    bottom: 18px;
    left: 18px;
    border: 1px solid rgba(255, 232, 178, 0.07);
    border-radius: 17px;
    pointer-events: none;
    content: '';
}

.epin-vault__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.65rem;
}

.epin-vault__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 216, 127, 0.48);
    border-radius: 15px;
    color: #fff2cb;
    background: linear-gradient(145deg, rgba(225, 132, 36, 0.45), rgba(91, 35, 21, 0.5));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.23), 0 12px 25px rgba(0, 0, 0, 0.23);
    transform: rotate(45deg);
}

.epin-vault__icon span {
    font-size: 1.25rem;
    transform: rotate(-45deg);
}

.epin-vault__status {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.62rem;
    border: 1px solid rgba(110, 232, 150, 0.2);
    border-radius: 999px;
    color: #a8dcbc;
    background: rgba(46, 132, 76, 0.11);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    gap: 0.42rem;
}

.epin-vault .eyebrow {
    margin-bottom: 0.55rem;
}

.epin-vault h2 {
    font-size: clamp(2.35rem, 4vw, 3.45rem);
}

.epin-vault .auth-card__lead {
    margin-top: 1.1rem;
    border: 1px solid rgba(255, 219, 143, 0.11);
    border-left: 2px solid #e3a243;
    border-radius: 0 12px 12px 0;
    background: rgba(255, 190, 92, 0.05);
}

.epin-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.3rem;
}

.epin-label-row > span {
    color: #74695f;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.field-shell.epin-input {
    position: relative;
    grid-template-columns: 34px minmax(0, 1fr) 9px;
    min-height: 66px;
    padding: 0 0.95rem;
    border-color: rgba(255, 219, 143, 0.2);
    border-radius: 16px;
    color: #e9b252;
    background: rgba(2, 6, 14, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field-shell.epin-input:focus-within {
    border-color: rgba(255, 213, 112, 0.72);
    box-shadow: 0 0 0 4px rgba(235, 166, 60, 0.1), 0 14px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.field-shell.epin-input > span:first-child {
    font-size: 1.45rem;
    font-weight: 900;
}

.field-shell.epin-input input {
    color: #fff1d2;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: clamp(0.78rem, 2.1vw, 0.96rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field-shell.epin-input input::placeholder {
    color: #756b62;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

.epin-input__edge {
    width: 7px;
    height: 22px;
    border: 1px solid rgba(255, 218, 124, 0.62);
    border-left: 0;
    border-radius: 0 5px 5px 0;
    opacity: 0.85;
}

.epin-submit {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    margin-top: 0.55rem;
    padding-right: 1.1rem;
    padding-left: 1.3rem;
    border-color: rgba(255, 228, 163, 0.82);
    background: linear-gradient(105deg, #d65d20, #e79732 49%, #ffd274);
    box-shadow: 0 14px 32px rgba(193, 83, 28, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    font-size: 0.74rem;
}

.epin-submit b {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    color: #5a190b;
    background: rgba(255, 246, 211, 0.56);
    font-size: 1rem;
    transition: transform 180ms ease;
}

.epin-submit:hover b {
    transform: translateX(3px);
}

.account-redeem-card__note {
    display: flex;
    align-items: flex-start;
    margin: 1.4rem 0 0;
    padding-top: 1.05rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #a89e93;
    font-size: 0.73rem;
    line-height: 1.65;
    gap: 0.6rem;
}

.account-redeem-card__note span {
    flex: 0 0 auto;
    color: var(--gold-400);
}

.itemci-purchase {
    position: relative;
    display: grid;
    margin-top: 1.25rem;
    padding: 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(255, 210, 119, 0.24);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(240, 149, 45, 0.16), transparent 42%),
        rgba(5, 9, 17, 0.68);
    gap: 0.9rem;
}

.itemci-purchase::after {
    position: absolute;
    top: -54px;
    right: -46px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 211, 119, 0.11);
    border-radius: 50%;
    pointer-events: none;
    content: '';
}

.itemci-purchase__copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.itemci-purchase__mark {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 222, 146, 0.48);
    border-radius: 12px;
    color: #4b1a0b;
    background: linear-gradient(145deg, #ffde91, #d77923);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    font-size: 1rem;
    font-weight: 900;
}

.itemci-purchase__copy .eyebrow {
    margin: 0 0 0.25rem;
    color: #e5a649;
    font-size: 0.52rem;
}

.itemci-purchase__copy h3 {
    margin: 0;
    color: #f7e8ca;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.itemci-purchase__copy p:last-child {
    margin: 0.3rem 0 0;
    color: #9d9388;
    font-size: 0.68rem;
    line-height: 1.55;
}

.itemci-purchase form {
    position: relative;
    z-index: 1;
    margin: 0;
}

.itemci-purchase__button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
    border-color: rgba(255, 218, 135, 0.38);
    color: #fff1d2;
    background: linear-gradient(105deg, rgba(147, 61, 22, 0.92), rgba(211, 121, 35, 0.92));
    box-shadow: 0 12px 28px rgba(126, 49, 16, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 0.68rem;
}

.itemci-purchase__button b {
    font-size: 1rem;
}

.itemci-purchase__button:hover {
    border-color: rgba(255, 229, 166, 0.72);
    background: linear-gradient(105deg, #a9471f, #e29335);
}

.itemci-purchase > small {
    color: #776f67;
    font-size: 0.59rem;
    line-height: 1.5;
}

.itemci-purchase--unavailable {
    opacity: 0.72;
}

.itemci-purchase__button:disabled {
    cursor: not-allowed;
    filter: saturate(0.35);
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.3rem;
    border: 1px solid rgba(255, 215, 128, 0.38);
    border-radius: 16px;
    color: #fff1c7;
    background: linear-gradient(145deg, rgba(205, 127, 45, 0.4), rgba(118, 51, 21, 0.35));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
    font-size: 1.35rem;
}

.notice-detail {
    margin: 1rem 0 0;
    color: #888077;
    font-size: 0.75rem;
    line-height: 1.7;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    gap: 0.8rem;
}

.auth-card__lead {
    margin: 0.9rem 0 1.7rem;
    padding: 0.8rem 1rem;
    border-left: 2px solid var(--gold-500);
    color: #a99f94;
    background: rgba(211, 126, 46, 0.06);
    font-size: 0.76rem;
}

.auth-form fieldset {
    display: grid;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 0.65rem;
}

.auth-form label,
.field-label-row {
    color: #dbd2c6;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
}

.field-label-row span {
    color: #776f67;
}

.field-shell {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    min-height: 52px;
    padding: 0 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    color: var(--gold-500);
    background: rgba(4, 8, 16, 0.62);
}

.field-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    color: #e8dfd2;
    outline: 0;
    background: transparent;
}

.field-shell input::placeholder {
    color: #625c57;
}

.auth-form fieldset:disabled {
    opacity: 0.76;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.field-grid > div {
    display: grid;
    gap: 0.55rem;
}

.check-row {
    display: flex;
    align-items: flex-start;
    margin: 0.6rem 0;
    color: #8f877f !important;
    gap: 0.55rem;
}

.check-row input {
    margin-top: 0.2rem;
    accent-color: var(--gold-500);
}

.auth-form__links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0;
    gap: 1rem;
}

.auth-form__links .check-row {
    margin: 0;
}

.auth-form__links > a {
    color: var(--gold-300);
    font-size: 0.72rem;
    font-weight: 800;
}

.auth-submit {
    width: 100%;
    margin-top: 0.35rem;
}

.auth-switch {
    margin: 1.4rem 0 0;
    color: #817a72;
    font-size: 0.78rem;
    text-align: center;
}

.auth-switch a {
    color: var(--gold-300);
    font-weight: 800;
}

.auth-switch--compact {
    margin-top: 0.55rem;
    font-size: 0.72rem;
}

.preview-pill--live {
    border-color: rgba(84, 214, 141, 0.35);
    color: #89e7ad;
    background: rgba(40, 136, 83, 0.13);
}

.form-alert {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.78rem;
}

.form-alert p {
    margin: 0;
}

.form-alert--error {
    border-color: rgba(238, 96, 96, 0.32);
    color: #ffb3b3;
    background: rgba(146, 33, 33, 0.16);
}

.field-shell--error {
    border-color: rgba(238, 96, 96, 0.65);
    box-shadow: 0 0 0 3px rgba(238, 96, 96, 0.07);
}

.field-error {
    margin: -0.25rem 0 0;
    color: #ff9f9f;
    font-size: 0.7rem;
}

.flash-stack {
    position: fixed;
    z-index: 80;
    top: 86px;
    right: 1rem;
    width: min(390px, calc(100% - 2rem));
}

.flash-message {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(245, 205, 112, 0.26);
    border-radius: 13px;
    color: #efe5d6;
    background: rgba(7, 12, 23, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.flash-message--success {
    border-color: rgba(84, 214, 141, 0.35);
}

body.store-result-open {
    overflow: hidden;
}

.store-result-popup[hidden] {
    display: none;
}

.store-result-popup {
    position: fixed;
    z-index: 145;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.store-result-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: default;
    background:
        radial-gradient(circle at 50% 42%, rgba(116, 52, 24, 0.22), transparent 33rem),
        rgba(1, 4, 10, 0.84);
    backdrop-filter: blur(12px) saturate(0.7);
}

.store-result-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    padding: 2.45rem 2.2rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 205, 119, 0.42);
    border-radius: 25px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -20%, rgba(235, 142, 54, 0.3), transparent 49%),
        linear-gradient(145deg, rgba(24, 25, 39, 0.99), rgba(5, 9, 18, 0.995));
    box-shadow:
        0 34px 110px rgba(0, 0, 0, 0.78),
        inset 0 1px rgba(255, 239, 205, 0.08),
        inset 0 0 45px rgba(234, 139, 52, 0.045);
    animation: store-result-enter 210ms ease-out both;
}

.store-result-popup__dialog::before,
.store-result-popup__dialog::after {
    position: absolute;
    width: 76px;
    height: 76px;
    border-color: rgba(255, 213, 135, 0.2);
    content: '';
    pointer-events: none;
}

.store-result-popup__dialog::before {
    top: 9px;
    left: 9px;
    border-top: 1px solid;
    border-left: 1px solid;
    border-radius: 17px 0 0;
}

.store-result-popup__dialog::after {
    right: 9px;
    bottom: 9px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    border-radius: 0 0 17px;
}

@keyframes store-result-enter {
    from { opacity: 0; transform: translateY(14px) scale(0.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.store-result-popup__close {
    position: absolute;
    z-index: 2;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 218, 153, 0.2);
    border-radius: 50%;
    color: #d9d0c5;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.035);
}

.store-result-popup__close:hover,
.store-result-popup__close:focus-visible {
    border-color: rgba(255, 218, 153, 0.7);
    color: #fff1ce;
    background: rgba(255, 211, 127, 0.08);
}

.store-result-popup__seal {
    display: grid;
    width: 74px;
    height: 74px;
    margin: 0 auto 1.25rem;
    place-items: center;
    border: 1px solid rgba(247, 191, 87, 0.5);
    border-radius: 24px 18px 24px 18px;
    color: #ffd98c;
    font-family: var(--font-display);
    font-size: 2rem;
    background: linear-gradient(145deg, rgba(226, 126, 41, 0.24), rgba(86, 34, 31, 0.25));
    box-shadow: inset 0 0 22px rgba(255, 192, 75, 0.08), 0 0 34px rgba(220, 111, 34, 0.17);
    transform: rotate(4deg);
}

.store-result-popup--success .store-result-popup__seal {
    border-color: rgba(91, 226, 151, 0.5);
    color: #8ce9b5;
    background: rgba(24, 105, 69, 0.2);
    box-shadow: inset 0 0 22px rgba(91, 226, 151, 0.07), 0 0 35px rgba(44, 183, 109, 0.14);
}

.store-result-popup--error .store-result-popup__seal {
    border-color: rgba(244, 98, 82, 0.5);
    color: #ff9c8f;
    background: rgba(123, 36, 38, 0.22);
    box-shadow: inset 0 0 22px rgba(244, 98, 82, 0.07), 0 0 35px rgba(211, 62, 51, 0.14);
}

.store-result-popup__dialog .eyebrow {
    margin: 0 0 0.55rem;
}

.store-result-popup__dialog h2 {
    margin: 0;
    color: #fff0d0;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    line-height: 1.16;
}

.store-result-popup__message {
    max-width: 390px;
    margin: 0.95rem auto 1.55rem;
    color: #c8c0b7;
    font-size: 0.88rem;
    line-height: 1.72;
}

.store-result-popup__button {
    min-width: 150px;
    min-height: 43px;
    padding: 0.65rem 1.35rem;
    border: 1px solid rgba(255, 215, 137, 0.52);
    border-radius: 11px;
    color: #32190b;
    cursor: pointer;
    background: linear-gradient(180deg, #ffda88, #bd671f);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(137, 59, 19, 0.22);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.store-result-popup__button:hover,
.store-result-popup__button:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .store-result-popup {
        padding: 0.75rem;
    }

    .store-result-popup__dialog {
        padding: 2.15rem 1.2rem 1.35rem;
        border-radius: 20px;
    }

    .store-result-popup__seal {
        width: 62px;
        height: 62px;
        margin-bottom: 1rem;
        font-size: 1.65rem;
    }

    .store-result-popup__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-result-popup__dialog { animation: none; }
}

.account-access-popup[hidden] {
    display: none;
}

.account-access-popup {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(2, 5, 11, 0.76);
    backdrop-filter: blur(9px);
}

.account-access-popup__dialog {
    position: relative;
    width: min(440px, 100%);
    padding: 2.5rem 2rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(245, 205, 112, 0.38);
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -15%, rgba(222, 125, 33, 0.28), transparent 53%),
        linear-gradient(145deg, rgba(22, 30, 49, 0.99), rgba(7, 10, 19, 0.99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), inset 0 0 34px rgba(249, 196, 93, 0.06);
}

.account-access-popup__close {
    position: absolute;
    top: 0.8rem;
    right: 0.85rem;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(245, 205, 112, 0.2);
    border-radius: 50%;
    color: #e8dfd1;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.04);
}

.account-access-popup__close:hover,
.account-access-popup__close:focus-visible {
    border-color: rgba(245, 205, 112, 0.7);
    color: var(--gold-100);
}

.account-access-popup__mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    place-items: center;
    border: 1px solid rgba(245, 205, 112, 0.38);
    border-radius: 50%;
    color: var(--gold-300);
    font-size: 1.4rem;
    background: rgba(220, 139, 36, 0.1);
    box-shadow: 0 0 28px rgba(220, 139, 36, 0.2);
}

.account-access-popup__dialog h2 {
    margin: 0;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 5vw, 2.1rem);
}

.account-access-popup__dialog > p:not(.eyebrow) {
    max-width: 335px;
    margin: 0.85rem auto 1.5rem;
    color: #c9c2ba;
    line-height: 1.7;
}

.nav-auth form {
    margin: 0;
}

.auth-link--button {
    border: 0;
    cursor: pointer;
    font: inherit;
    background: transparent;
}


.nav-user {
    max-width: 160px;
    overflow: hidden;
    color: var(--gold-300);
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .nav-toggle {
        display: block;
    }

    .nav-auth--desktop {
        display: none;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100svh - 74px);
        overflow-y: auto;
        padding: 0.8rem 1rem 1.2rem;
        border-bottom: 1px solid var(--gold-700);
        background: rgba(5, 8, 17, 0.97);
        box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 0.75rem 0.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .primary-nav a::after {
        display: none;
    }

    .nav-auth--mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 0.5rem;
    }

    .nav-auth--mobile.nav-auth--signed-in {
        grid-template-columns: 1fr 1fr;
    }

    .nav-auth--mobile.nav-auth--signed-in .mobile-player-card {
        grid-column: 1 / -1;
    }

    .nav-auth--mobile.nav-auth--signed-in form,
    .nav-auth--mobile.nav-auth--signed-in form button {
        width: 100%;
    }

    .language-switcher--mobile {
        display: flex;
        justify-content: center;
        margin: 0.45rem 0;
        border-radius: 12px;
    }

    .language-switcher--mobile select {
        width: 100%;
        max-width: none;
    }

    .nav-auth--mobile .auth-link,
    .nav-auth--mobile .button {
        border: 1px solid rgba(245, 205, 112, 0.22);
        border-radius: 12px;
        text-align: center;
    }

    .auth-layout {
        grid-template-columns: 0.8fr minmax(400px, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 820px) {
    .hero {
        min-height: 760px;
        padding: 20rem 0.65rem 4.5rem;
    }

    .hero::before {
        background-size: auto 650px;
    }

    .leaderboard-intro,
    .account-cta,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .leaderboard-categories,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-categories {
        gap: 1px;
    }

    .community-grid article {
        min-height: auto;
    }

    .community-grid h3 {
        margin-top: 1.8rem;
    }

    .account-cta__actions {
        justify-content: flex-start;
    }

    .contact-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-layout {
        min-height: auto;
    }

    .auth-story {
        display: none;
    }

    .auth-card {
        width: min(560px, 100%);
        margin: 0 auto;
    }

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

    .account-command__player {
        grid-column: 1 / -1;
        width: 100%;
    }

    .account-module-grid {
        grid-template-columns: 1fr;
    }

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

    .session-recovery__action {
        grid-column: 1 / -1;
        grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1fr);
        align-items: center;
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 760px;
        padding-top: 18.5rem;
    }

    .hero::before {
        background-size: auto 590px;
        filter: blur(4px) brightness(0.52) saturate(0.68);
    }

    .ornate-panel {
        border-radius: 18px;
    }

    .hero__badge {
        display: none;
    }

    .section-kicker {
        text-align: left;
    }

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

    .auth-shell {
        padding: 1rem 0.65rem 2rem;
    }

    .auth-card {
        border-radius: 18px;
    }

    .player-account {
        padding: 1rem 0.65rem 2.5rem;
    }

    .account-center__back {
        margin-left: 0.25rem;
    }

    .account-command {
        grid-template-columns: 1fr;
        padding: 1.1rem;
        border-radius: 17px;
    }

    .account-command__crest {
        display: none;
    }

    .account-command__copy h1 {
        font-size: 1.7rem;
    }

    .account-command__player {
        grid-column: auto;
        min-width: 0;
    }

    .account-module {
        padding: 1.1rem;
        border-radius: 17px;
    }

    .session-recovery {
        grid-template-columns: 1fr;
        padding: 1.05rem;
        border-radius: 17px;
    }

    .session-recovery__emblem {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .session-recovery__emblem span {
        font-size: 1.55rem;
    }

    .session-recovery__action {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .wallet-card {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .wallet-card__amount strong {
        font-size: clamp(2.45rem, 15vw, 3.6rem);
    }

    .epin-vault__top {
        margin-bottom: 1.3rem;
    }

    .auth-form__links,
    .account-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-actions .button {
        width: 100%;
        text-align: center;
    }

    .account-cta {
        border-radius: 20px;
    }

    .account-cta__actions,
    .account-cta__actions .button {
        width: 100%;
    }
}

/* Two-column catalogue inside the authenticated Systems workspace */
.systems-workspace .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0.85rem;
}

.systems-workspace .shop-card {
    width: 100%;
    border-radius: 19px;
}

.systems-workspace .shop-card::before {
    border-radius: 15px;
}

.systems-workspace .shop-card__top {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 122px;
    padding: 0.85rem;
    border-radius: 19px 19px 0 0;
}

.systems-workspace .shop-card__art-shell {
    width: 80px;
    height: 80px;
    border-radius: 22px 16px 22px 16px;
}

.systems-workspace .shop-card__art-frame {
    width: 62px;
    height: 62px;
}

.systems-workspace .shop-card__art-frame img {
    width: 56px;
    height: 56px;
}

.systems-workspace .shop-card__summary {
    padding-right: 0.2rem;
}

.systems-workspace .shop-card__summary h2 {
    font-size: 1.16rem;
}

.systems-workspace .shop-card__description {
    min-height: 2.1rem;
    font-size: 0.66rem;
}

.systems-workspace .shop-card__commerce {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.75rem;
    border-radius: 0 0 19px 19px;
}

.systems-workspace .shop-card__commerce .shop-card__meta {
    grid-template-columns: minmax(62px, 0.72fr) minmax(94px, 1.28fr);
    gap: 0.38rem;
}

.systems-workspace .shop-card__commerce .shop-card__meta > span {
    padding: 0.48rem 0.55rem;
}

.systems-workspace .shop-card__meta strong {
    font-size: 0.94rem;
}

.systems-workspace .shop-card__commerce .shop-card__action a,
.systems-workspace .shop-card__commerce .shop-card__action button {
    min-height: 40px;
    padding: 0.42rem 0.55rem;
    font-size: 0.61rem;
    letter-spacing: 0.035em;
}

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

@media (max-width: 430px) {
    .systems-workspace .shop-card__top {
        grid-template-columns: 70px minmax(0, 1fr);
        min-height: 112px;
        padding: 0.75rem;
    }

    .systems-workspace .shop-card__art-shell {
        width: 68px;
        height: 68px;
    }

    .systems-workspace .shop-card__art-frame {
        width: 56px;
        height: 56px;
    }

    .systems-workspace .shop-card__art-frame img {
        width: 50px;
        height: 50px;
    }

    .systems-workspace .shop-card__commerce {
        grid-template-columns: 1fr;
    }

    .systems-workspace .shop-card__commerce .shop-card__action {
        width: min(100%, 170px);
        justify-self: end;
    }
}
