:root {
    --obsidian: #080808;
    --gold: #f1c40f;
    --white: #ffffff;
    --grey: #888888;
    --text-soft: #c9c9c9;
    --line: rgba(255, 255, 255, 0.09);

    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.58);
    --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.4);

    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;

    --container: 1240px;

    --parallax-fast: 0px;
    --parallax-slow: 0px;
}

html[data-theme-resolved="dark"] {
    color-scheme: dark;
}

html[data-theme-resolved="light"] {
    color-scheme: light;
    --obsidian: #f6f2e8;
    --gold: #b58b11;
    --white: #171512;
    --grey: #6f675c;
    --text-soft: #45403a;
    --line: rgba(23, 21, 18, 0.12);
    --shadow-xl:
    0 24px 64px rgba(114, 88, 20, 0.1),
    0 6px 18px rgba(0, 0, 0, 0.05);
    --shadow-lg:
    0 18px 42px rgba(114, 88, 20, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip; /* Changed from hidden to clip for desktop */
    color: var(--white);
    background:
    radial-gradient(circle at 18% 10%, rgba(241, 196, 15, 0.05) 0%, transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.04) 0%, transparent 24%),
    var(--obsidian);
    font-family: "Syne", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

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

figure {
    margin: 0;
}

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

button {
    border: 0;
    background: none;
    padding: 0;
}

textarea {
    resize: vertical;
}

::selection {
    background: rgba(241, 196, 15, 0.24);
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(241, 196, 15, 0.55);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: clamp(3.4rem, 8vw, 6.5rem) 0;
}

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

/* Ambient layers */

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.ambient-stripes {
    z-index: -3;
}

.ambient-stripes::before,
.ambient-stripes::after {
    content: "";
    position: absolute;
    inset: -16%;
    background: repeating-linear-gradient(
        115deg,
        transparent 0 26px,
        rgba(241, 196, 15, 0.075) 26px 27px,
                                          transparent 27px 66px
    );
}

.ambient-stripes::before {
    opacity: 0.18;
    transform: translate3d(0, var(--parallax-fast), 0) scale(1.16);
}

.ambient-stripes::after {
    opacity: 0.09;
    filter: blur(9px);
    transform: translate3d(0, var(--parallax-slow), 0) scale(1.22);
}

.ambient-vignette {
    z-index: -2;
    background:
    radial-gradient(circle at 18% 12%, rgba(241, 196, 15, 0.07) 0%, transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 24%),
    radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.8) 100%);
}

/* Custom cursor */

@media (pointer: fine) {
    body,
    a,
    button,
    input,
    textarea,
    select,
    label {
        cursor: none;
    }
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor-orb,
.cursor-shape {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.cursor-orb {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(241, 196, 15, 0.18) 0%,
                                rgba(241, 196, 15, 0.08) 34%,
                                rgba(241, 196, 15, 0) 72%
    );
    filter: blur(10px);
    opacity: 0.96;
    transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.cursor-shape {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.34);
    transition:
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.cursor.is-active .cursor-shape {
    width: 12px;
    height: 12px;
}

.cursor.is-active .cursor-orb {
    transform: translate(-50%, -50%) scale(1.08);
}

.cursor.is-text .cursor-shape {
    width: 2px;
    height: 24px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.cursor.is-text .cursor-orb {
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0.72;
}

.cursor.is-pressed .cursor-shape {
    transform: translate(-50%, -50%) scale(0.82);
}

.cursor.is-reveal .cursor-orb {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
}

.cursor.is-cc-hover .cursor-orb {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
}

.cursor.is-cc-hover .cursor-shape {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}

@media (pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* Shared panels */

.luxury-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.luxury-panel::before {
    display: none;
}

.luxury-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
    opacity: 0.5;
    pointer-events: none;
}

.luxury-panel:hover::before,
.luxury-panel:focus-within::before {
    opacity: 0;
}

/* Brand text */

@keyframes brand-sheen {
    0% {
        background-position: 48% 50%;
    }
    100% {
        background-position: 52% 50%;
    }
}

.brand-word,
.brand-version {
    display: inline-block;
    background-size: 220% 100%;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: brand-sheen 24s ease-in-out infinite alternate;
}

.brand-word {
    background-image: linear-gradient(
        120deg,
        #ffffff 0%,
        #fcfcfb 35%,
        #f1f0ec 60%,
        #ffffff 100%
    );
}

.brand-version {
    background-image: linear-gradient(
        120deg,
        #edc54a 0%,
        #f3d25d 40%,
        #dfb42c 72%,
        #edc54a 100%
    );
}

/* Header */

.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0 0;
    isolation: isolate;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem 0.9rem 1.15rem;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.32rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand .brand-word {
    font-size: 1.06rem;
}

.brand .brand-version {
    font-size: 0.98rem;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    transition:
    color 0.28s ease,
    background-color 0.28s ease,
    transform 0.28s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
}

.nav-link.active {
    color: #f7e39a;
    box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.22);
}

.nav-pill,
.nav-links {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-fade {
    display: none;
}

.tilt-scene,[data-reveal-card] {
    -webkit-tap-highlight-color: transparent;
}

.news-modal,
.news-modal-dialog {
    overscroll-behavior: contain;
}

/* Welcome strip */

.welcome-strip {
    padding-top: 0.8rem;
}

.welcome-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
}

.welcome-pill p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
}

/* Hero */

.hero {
    min-height: calc(100svh - 140px);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5.5rem);
    padding: 2.2rem 0 2rem;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 1rem;
    color: rgba(241, 196, 15, 0.88);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.32rem;
    margin: 0 0 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 0.92;
    white-space: nowrap;
}

.hero-title .brand-word,
.hero-title .brand-version {
    font-size: clamp(3.2rem, 9vw, 7.2rem);
}

.hero-tagline {
    margin: 0;
    max-width: 40rem;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.2vw + 0.75rem, 1.15rem);
}

.hero-note {
    display: inline-flex;
    margin-top: 1.55rem;
    padding: 0.9rem 1rem;
    border-radius: 999px;
}

.hero-note p {
    margin: 0;
    color: #d8d8d8;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.hero-visual {
    position: relative;
    display: grid;
    justify-items: end;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: min(46vw, 500px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.14), rgba(241, 196, 15, 0) 66%);
    filter: blur(14px);
    opacity: 0.78;
    pointer-events: none;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: clamp(180px, 22vw, 260px);
    aspect-ratio: 2 / 3;
    margin-left: auto;
    transform: translateX(clamp(28px, 5vw, 86px));
}

/* Section headings */

.section-head {
    margin-bottom: 1.2rem;
}

.section-head.compact {
    margin-bottom: 1rem;
}

.section-kicker {
    margin: 0 0 0.42rem;
    color: rgba(241, 196, 15, 0.88);
    font-size: 0.78rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 0 0 0.38rem;
    font-size: clamp(1.5rem, 3.4vw, 2.55rem);
    line-height: 1.02;
}

.section-copy {
    margin: 0;
    max-width: 35rem;
    color: var(--grey);
}

/* Layout blocks */

.updates-layout,
.community-layout {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

.updates-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.community-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.spotlight-panel,
.news-panel,
.reviews-panel,
.feedback-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(1rem, 2vw, 1.4rem);
    border-radius: var(--radius-xl);
}

.spotlight-list,
.news-list,
.reviews-grid {
    flex: 1;
}

/* Fluent reveal cards */

.reveal-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.reveal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: radial-gradient(
        240px circle at var(--reveal-x, 50%) var(--reveal-y, 50%),
                                rgba(255, 255, 255, 0.34),
                                rgba(241, 196, 15, 0.12) 24%,
                                transparent 62%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 0;
    -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.reveal-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(
        260px circle at var(--reveal-x, 50%) var(--reveal-y, 50%),
                                rgba(255, 255, 255, 0.06),
                                transparent 55%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 0;
}

.reveal-card.is-reveal-hover::before,
.reveal-card.is-reveal-hover::after {
    opacity: 1;
}

.reveal-card > * {
    position: relative;
    z-index: 1;
}

/* Spotlight + news */

.spotlight-list {
    display: grid;
    gap: 0.95rem;
    grid-auto-rows: 1fr;
}

.spotlight-card {
    display: grid;
    grid-template-columns: minmax(104px, 132px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    min-height: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.spotlight-thumb {
    width: 100%;
    max-width: 132px;
    aspect-ratio: 614 / 889;
}

.spotlight-content h3 {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.14rem;
}

.statline {
    margin: 0 0 0.45rem;
    color: #d9c067;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
}

.rarity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.56rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rarity-badge.legendary {
    color: #171717;
    background: linear-gradient(135deg, #f7d75a, #d8a30a);
}

.rarity-badge.common {
    color: #f6ecdf;
    background: linear-gradient(135deg, #6b4d2f, #8d6740);
}

.news-list {
    display: grid;
    gap: 0.85rem;
    grid-auto-rows: 1fr;
}

.news-card {
    width: 100%;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.014));
    text-align: left;
    appearance: none;
    transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
}

.news-date,
.news-card-title,
.news-card-preview {
    display: block;
}

.news-date {
    margin-bottom: 0.32rem;
    color: #dec35e;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
}

.news-card-title {
    margin-bottom: 0.35rem;
    font-size: 1.03rem;
    font-weight: 700;
}

.news-card-preview {
    color: var(--text-soft);
}

.news-card:hover .news-card-title {
    color: #f7e39a;
}

/* Reviews + feedback */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    grid-auto-rows: 1fr;
}

.review-card {
    min-height: 188px;
    padding: 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.014));
    transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
}

.review-rating {
    margin: 0 0 0.9rem;
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 0.1em;
}

.review-card h3 {
    margin: 0 0 1rem;
    font-size: 1.04rem;
    line-height: 1.3;
}

.review-author {
    margin: 0;
    color: var(--grey);
    font-size: 0.9rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    margin-top: 1.1rem;
}

.rating-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.rating-group legend {
    margin-bottom: 0.55rem;
    color: var(--grey);
    font-size: 0.86rem;
}

.stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.35rem;
}

.rating-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-label {
    color: rgba(255, 255, 255, 0.22);
    font-size: 1.75rem;
    line-height: 1;
    transition:
    transform 0.2s ease,
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.star-label:hover,
.star-label:hover ~ .star-label,
.rating-input:checked ~ .star-label {
    color: var(--gold);
    text-shadow: 0 0 18px rgba(241, 196, 15, 0.2);
}

.star-label:hover {
    transform: translateY(-1px) scale(1.04);
}

.input-label {
    color: var(--grey);
    font-size: 0.86rem;
}

.text-input {
    width: 100%;
    min-height: 160px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(7, 7, 7, 0.88);
    color: var(--white);
    font-size: 0.98rem;
    line-height: 1.6;
    transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.text-input:hover,
.text-input:focus {
    outline: none;
    border-color: rgba(241, 196, 15, 0.46);
    box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.08);
    background: rgba(12, 12, 12, 0.96);
}

.feedback-status {
    min-height: 1.4em;
    margin: -0.2rem 0 0;
    color: #cdbd75;
    font-size: 0.9rem;
}

.feedback-status.is-error {
    color: #c88f7f;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: auto;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.ghost-button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(241, 196, 15, 0.34);
    background: rgba(255, 255, 255, 0.04);
}

.ghost-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* News modal */

.news-modal[hidden] {
    display: none;
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: grid;
    place-items: center;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.news-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 3, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.news-modal-dialog {
    position: relative;
    width: min(1040px, calc(100vw - 24px));
    max-width: 1040px;
    padding: 1.65rem 1.8rem 1.8rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(14, 14, 14, 0.94);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-modal-dialog::-webkit-scrollbar {
    display: none;
}

.news-modal.is-open .news-modal-dialog {
    transform: translateY(0) scale(1);
}

.news-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.45rem;
    line-height: 1;
    transition: background 0.22s ease, transform 0.22s ease;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.news-modal-date {
    margin: 0 0 0.45rem;
    color: #dec35e;
    font-size: 0.84rem;
    letter-spacing: 0.1em;
}

.news-modal-title {
    margin: 0 0 1rem;
    padding-right: 3rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.news-modal-body {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.news-modal-body p {
    margin: 0 0 1rem;
}

.news-modal-body p:last-child {
    margin-bottom: 0;
}

/* Simplified card tilt system */

.tilt-scene {
    perspective: 800px;
}

.card-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    border-radius: inherit;
    will-change: transform;
}

.card-face {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: inherit;
    background: #151515;
    box-shadow:
    0 0 5px rgba(0, 0, 0, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.card-back-frame {
    padding: 0;
    background: transparent;
    border-radius: 22px;
    overflow: hidden;
}

.card-back-frame img {
    border-radius: 22px;
}

.spotlight-thumb .card-face {
    border-radius: 18px;
}

.spotlight-thumb .card-face img {
    border-radius: 18px;
}

.shine {
    position: absolute;
    inset: -10%;
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    background:
    radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                    rgba(255, 255, 255, 0.34) 0%,
                    rgba(255, 255, 255, 0.16) 16%,
                    rgba(255, 255, 255, 0.05) 30%,
                    rgba(255, 255, 255, 0) 52%
    ),
    linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 18%,
                    rgba(255, 255, 255, 0.04) 38%,
                    rgba(255, 255, 255, 0.14) 50%,
                    rgba(255, 255, 255, 0.04) 62%,
                    rgba(255, 255, 255, 0) 82%
    );
    filter: blur(14px);
    mix-blend-mode: screen;
    transform: translateZ(0);
}

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

/* Footer */

.site-footer {
    padding: 2.4rem 0 3rem;
    text-align: center;
}

.site-footer a {
    color: #f2d76b;
    text-decoration: none;
    transition: color 0.22s ease;
}

.site-footer a:hover {
    color: #fff0b2;
}

/* Reveal */

.reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (hover: none) and (pointer: coarse) {
    .site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-top: max(0.45rem, env(safe-area-inset-top));
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .site-header .container {
        position: relative;
        z-index: 1000;
    }

    .nav-pill {
        position: relative;
        z-index: 100;
    }

    .site-header .container {
        position: relative;
        z-index: 100;
    }

    .site-header .container::before {
        content: "";
        position: absolute;
        inset: 0;
        left: auto;
        width: 78px;
        border-radius: 999px;
        background: linear-gradient(
            90deg,
            rgba(8, 8, 8, 0) 0%,
                                    rgba(8, 8, 8, 0.04) 28%,
                                    rgba(8, 8, 8, 0.12) 48%,
                                    rgba(8, 8, 8, 0.3) 68%,
                                    rgba(8, 8, 8, 0.62) 86%,
                                    rgba(8, 8, 8, 0.86) 100%
        );
        pointer-events: none;
        z-index: 101;
    }

    .site-header .container::after {
        content: "›";
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        display: grid;
        place-items: center;
        width: 18px;
        height: 18px;
        color: rgba(241, 196, 15, 0.78);
        font-size: 1rem;
        line-height: 1;
        pointer-events: none;
        z-index: 102;
        opacity: 0.92;
    }

    .reveal-card::before,
    .reveal-card::after {
        display: none;
    }

    .hero-visual {
        justify-items: center;
    }

    .hero-visual::before {
        display: none;
    }
}

/* Responsive */

@media (max-width: 1100px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 2.6rem;
    }

    .hero-visual {
        justify-items: start;
    }

    .hero-card {
        transform: translateX(0);
    }

    .updates-layout,
    .community-layout {
        grid-template-columns: 1fr;
    }
}

/* Index page */

.index-page-head {
    margin-bottom: 1.2rem;
}

.index-page-title {
    margin: 0 0 0.45rem;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.95;
}

.index-page-copy {
    max-width: 46rem;
}

.collection-toolbar {
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.collection-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.collection-control {
    display: grid;
    gap: 0.38rem;
}

.collection-search {
    min-width: 0;
}

.collection-control-label {
    color: var(--grey);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.collection-input,
.collection-select {
    width: 100%;
    min-height: 48px;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(7, 7, 7, 0.88);
    color: var(--white);
    font-size: 0.96rem;
    transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.collection-input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.collection-input:hover,
.collection-input:focus,
.collection-select:hover,
.collection-select:focus {
    outline: none;
    border-color: rgba(241, 196, 15, 0.42);
    box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.08);
    background: rgba(12, 12, 12, 0.96);
}

.collection-select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.8) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8) 50%, transparent 50%);
    background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

.collection-toolbar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.95rem;
}

.collection-toggle {
    display: inline-flex;
    gap: 0.3rem;
    padding: 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.collection-toggle button {
    min-height: 40px;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.64);
    transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.collection-toggle button.is-active {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.collection-toolbar-meta {
    margin: 0;
    color: var(--grey);
    font-size: 0.92rem;
    text-align: right;
}

.index-master-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto;
    gap: 1rem 1.35rem;
    padding: 1.2rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-xl);
}

.index-master-copy h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.index-master-total {
    text-align: right;
    align-self: center;
}

.index-master-value {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 0.95;
    font-weight: 800;
    color: #ffffff;
}

.index-master-value span {
    color: #e3bf43;
}

.index-master-label {
    margin: 0.32rem 0 0;
    color: var(--grey);
    font-size: 0.92rem;
}

.index-master-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.index-master-stat {
    padding: 0.9rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.index-master-stat strong {
    display: block;
    font-size: 1.2rem;
    color: #ffffff;
}

.index-master-stat span {
    color: var(--grey);
    font-size: 0.84rem;
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.vault-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    text-align: left;
    transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.vault-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.vault-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 614 / 889;
    border-radius: 18px;
}

.vault-card-media .card-container,
.vault-card-media .card-face {
    display: block;
    width: 100%;
    height: 100%;
}

.vault-card-media .card-face {
    border-radius: 18px;
}

.vault-card-media .card-face img {
    border-radius: 18px;
}

.vault-card.is-locked .vault-card-media img {
    filter: grayscale(1) brightness(0.45) contrast(0.92);
}

.vault-card.is-locked .vault-card-name,
.vault-card.is-locked .vault-card-meta {
    color: rgba(255, 255, 255, 0.62);
}

.vault-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.vault-card-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
}

.vault-card-status {
    flex: 0 0 auto;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vault-card-status.unlocked {
    color: #111111;
    background: linear-gradient(135deg, #f3d66b, #dfb42c);
}

.vault-card-status.locked {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.vault-card-meta {
    display: block;
    color: var(--grey);
    font-size: 0.84rem;
}

.vault-card-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: #cfb65d;
    font-size: 0.8rem;
}

.vault-card-line span:last-child {
    color: var(--text-soft);
}

.vault-empty {
    grid-column: 1 / -1;
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    color: var(--grey);
}

.vault-card-media,
.card-detail-image {
    display: block;
}

/* Card detail modal */

.card-detail-modal[hidden] {
    display: none;
}

.card-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 280;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.card-detail-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.card-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 3, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.card-detail-dialog {
    position: relative;
    width: min(980px, calc(100vw - 24px));
    max-height: min(88svh, 920px);
    padding: 1.45rem;
    border-radius: var(--radius-xl);
    background: rgba(14, 14, 14, 0.94);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-clip: padding-box;
}

.card-detail-dialog::-webkit-scrollbar {
    display: none;
}

.card-detail-modal.is-open .card-detail-dialog {
    transform: translateY(0) scale(1);
}

.card-detail-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.45rem;
    line-height: 1;
    transition: background 0.22s ease, transform 0.22s ease;
}

.card-detail-close:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.card-detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.card-detail-visual {
    max-width: 300px;
}

.card-detail-image {
    width: 100%;
    aspect-ratio: 614 / 889;
    border-radius: 20px;
}

.card-detail-image .card-face {
    border-radius: 20px;
}

.card-detail-image .card-face img {
    border-radius: 20px;
}

.card-detail-image.is-locked img {
    filter: grayscale(1) brightness(0.48) contrast(0.92);
}

.card-detail-kicker {
    margin: 0 0 0.35rem;
    color: #dec35e;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-detail-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
}

.card-detail-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.card-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-detail-badge.type {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.card-detail-badge.status.unlocked {
    color: #111111;
    background: linear-gradient(135deg, #f3d66b, #dfb42c);
}

.card-detail-badge.status.locked {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

.card-detail-copy-text {
    margin: 0 0 1rem;
    color: var(--text-soft);
}

.card-detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.card-detail-stat {
    padding: 0.85rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.card-detail-stat span {
    display: block;
    color: var(--grey);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-detail-stat strong {
    display: block;
    margin-top: 0.16rem;
    font-size: 1.15rem;
    color: #ffffff;
}

.card-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.card-detail-info {
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-detail-info span {
    display: block;
    color: var(--grey);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-detail-info strong {
    display: block;
    margin-top: 0.14rem;
    font-size: 1rem;
}

@media (max-width: 980px) {
    .collection-toolbar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .collection-search {
        grid-column: 1 / -1;
    }

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

    .index-master-total {
        text-align: left;
    }

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

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

    .card-detail-visual {
        max-width: 240px;
    }
}

@media (max-width: 760px) {
    html,
    body {
        overflow-x: visible; /* CRITICAL FIX: Clears overflow so Chrome Android sticky works if we used it */
    }

    .container {
        width: calc(100% - 16px);
    }

    .site-header {
        padding-top: 0.6rem;
    }

    @keyframes mobile-nav-hint-blink {
        0%, 100% {
            color: rgba(241, 196, 15, 0.48);
            text-shadow: 0 0 6px rgba(241, 196, 15, 0.06);
        }
        50% {
            color: rgba(241, 196, 15, 0.95);
            text-shadow: 0 0 14px rgba(241, 196, 15, 0.28);
        }
    }

    .nav-pill {
        position: relative;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0.45rem;
        padding: 0.55rem 0.65rem;
        overflow: hidden;
        white-space: nowrap;
        border-radius: 999px;
    }

    .brand {
        position: relative;
        z-index: 3;
        flex: 0 0 auto;
        gap: 0.16rem;
        margin-right: 0.15rem;
    }

    .brand .brand-word {
        font-size: 0.9rem;
    }

    .brand .brand-version {
        font-size: 0.84rem;
    }

    .nav-links {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        flex-wrap: nowrap;
        gap: 0.14rem;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-left: 0.25rem;
        padding-right: 0.4rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-fade {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 34px;
        display: flex;
        align-items: center;
        pointer-events: none;
        z-index: 2;
        color: rgba(241, 196, 15, 0.82);
        font-size: 1rem;
        line-height: 1;
        text-shadow: 0 0 10px rgba(241, 196, 15, 0.18);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        animation: mobile-nav-hint-blink 1.9s ease-in-out infinite;
    }

    .nav-fade.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .nav-fade-left {
        border-radius: 999px 0 0 999px;
        justify-content: flex-start;
        padding-left: 8px;
        background: linear-gradient(
            90deg,
            rgba(8, 8, 8, 0.88) 0%,
                                    rgba(8, 8, 8, 0.56) 46%,
                                    rgba(8, 8, 8, 0) 100%
        );
    }

    .nav-fade-right {
        right: 0;
        justify-content: flex-end;
        padding-right: 8px;
        background: linear-gradient(
            270deg,
            rgba(8, 8, 8, 0.88) 0%,
                                    rgba(8, 8, 8, 0.56) 46%,
                                    rgba(8, 8, 8, 0) 100%
        );
    }

    .site-header .container::before,
    .site-header .container::after {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0.48rem 0.66rem;
        font-size: 0.72rem;
    }

    .welcome-strip {
        padding-top: 0.55rem;
    }

    .welcome-pill {
        display: flex;
        width: 100%;
        justify-content: center;
        min-height: 40px;
        padding: 0.65rem 0.85rem;
    }

    .welcome-pill p {
        font-size: 0.86rem;
        text-align: center;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.15rem 0 0.25rem;
    }

    .hero-copy {
        max-width: none;
        text-align: center;
    }

    .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .hero-title {
        width: 100%;
        justify-content: center;
        gap: 0.16rem;
    }

    .hero-title .brand-word,
    .hero-title .brand-version {
        font-size: clamp(2rem, 10.8vw, 3.4rem);
    }

    .hero-tagline {
        max-width: 30rem;
        margin-inline: auto;
        font-size: 0.95rem;
    }

    .hero-note {
        width: 100%;
        max-width: 100%;
        margin: 1rem auto 0;
        justify-content: center;
    }

    .hero-note p {
        font-size: 0.72rem;
        line-height: 1.4;
        text-align: center;
    }

    .hero-visual {
        justify-items: center;
        margin-top: 0.2rem;
    }

    .hero-visual::before {
        display: none;
    }

    .hero-card {
        width: clamp(110px, 32vw, 140px);
        margin: 0 auto;
        transform: none;
    }

    .section {
        padding: 2.6rem 0;
    }

    .updates-layout,
    .community-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .spotlight-panel,
    .news-panel,
    .reviews-panel,
    .feedback-panel {
        padding: 0.95rem;
    }

    .section-head h2 {
        font-size: clamp(1.25rem, 7vw, 1.8rem);
    }

    .section-copy {
        font-size: 0.92rem;
    }

    .spotlight-card {
        grid-template-columns: 88px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .spotlight-thumb {
        max-width: 88px;
    }

    .spotlight-content h3 {
        font-size: 1rem;
    }

    .statline {
        font-size: 0.78rem;
    }

    .news-card {
        padding: 0.9rem;
    }

    .news-card-title {
        font-size: 0.96rem;
    }

    .news-card-preview {
        font-size: 0.9rem;
    }

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

    .review-card {
        min-height: auto;
        padding: 1rem;
    }

    .review-card h3 {
        font-size: 0.98rem;
    }

    .feedback-form {
        margin-top: 0.9rem;
        gap: 0.85rem;
    }

    .text-input {
        min-height: 132px;
        padding: 0.85rem 0.9rem;
        font-size: 0.94rem;
    }

    .ghost-button {
        width: 100%;
        min-height: 44px;
    }

    .news-modal {
        padding: 8px;
    }

    .news-modal-dialog {
        width: calc(100vw - 12px);
        max-width: none;
        max-height: calc(100svh - 16px);
        padding: 1rem 0.95rem 1.05rem;
        overflow: hidden;
    }

    .news-modal-title {
        padding-right: 2.5rem;
        font-size: 1.34rem;
    }

    .news-modal-date {
        font-size: 0.76rem;
    }

    .news-modal-body {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .site-footer {
        padding: 1.8rem 0 2.2rem;
    }

    .site-footer p {
        font-size: 0.82rem;
        line-height: 1.8;
    }

    .collection-toolbar {
        padding: 0.95rem;
    }

    .collection-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .collection-toolbar-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .collection-toggle {
        width: 100%;
    }

    .collection-toggle button {
        flex: 1 1 0;
    }

    .collection-toolbar-meta {
        text-align: left;
        font-size: 0.88rem;
    }

    .index-master-card {
        padding: 1rem;
    }

    .index-master-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .vault-card {
        padding: 0.75rem;
    }

    .vault-card-name {
        font-size: 0.92rem;
    }

    .vault-card-meta,
    .vault-card-line {
        font-size: 0.76rem;
    }

    .card-detail-modal {
        padding: calc(env(safe-area-inset-top) + 76px) 8px max(4px, env(safe-area-inset-bottom));
        place-items: start center;
    }

    .card-detail-dialog {
        width: calc(100vw - 12px);
        max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 80px);
        padding: 1.05rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .card-detail-title {
        padding-right: 2.4rem;
        font-size: 1.45rem;
    }

    .card-detail-stat-grid,
    .card-detail-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Marketplace page */

.market-head {
    margin-bottom: 1rem;
}

.market-title {
    margin: 0 0 0.45rem;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.95;
}

.market-copy {
    max-width: 48rem;
}

.market-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-xl);
}

.market-wallet-copy {
    display: grid;
    gap: 0.22rem;
}

.market-wallet-label {
    color: var(--grey);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-wallet-value {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1;
    color: #f2d76b;
}

.market-wallet-note {
    margin: 0;
    max-width: 25rem;
    color: var(--grey);
    text-align: right;
}

.market-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 280px);
    gap: 1rem;
    align-items: stretch;
}

.market-sidebar,
.market-stage,
.market-detail,
.opened-pack-panel {
    padding: 1.1rem;
    border-radius: var(--radius-xl);
}

.market-sidebar,
.market-stage,
.market-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.market-panel-title {
    margin: 0 0 0.85rem;
    font-size: 1.25rem;
    line-height: 1.05;
}

.market-pack-list {
    display: grid;
    gap: 0.75rem;
}

.market-pack-option {
    width: 100%;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    text-align: left;
    transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.market-pack-option:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(241, 196, 15, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.market-pack-option.is-active {
    border-color: rgba(241, 196, 15, 0.34);
    box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.18);
}

.market-pack-option:disabled {
    opacity: 0.55;
}

.market-pack-option-name,
.market-pack-option-meta,
.market-pack-option-price {
    display: block;
}

.market-pack-option-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.market-pack-option-meta {
    margin-top: 0.25rem;
    color: var(--grey);
    font-size: 0.84rem;
}

.market-pack-option-price {
    margin-top: 0.45rem;
    color: #e6c759;
    font-size: 0.88rem;
    font-weight: 700;
}

.market-sidebar-note {
    margin: auto 0 0;
    padding-top: 1rem;
    color: var(--grey);
    font-size: 0.9rem;
}

.market-stage-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.market-stage-title {
    margin: 0;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    line-height: 1;
}

.market-stage-price {
    margin: 0;
    color: #f1cf53;
    font-size: 0.96rem;
    font-weight: 700;
}

.pack3d-shell {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 540px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.03), transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(241, 196, 15, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.015);
    overflow: hidden;
}

.pack3d-viewport {
    width: 100%;
    height: 100%;
    min-height: 540px;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.pack3d-viewport canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.pack3d-guidance {
    margin: 0.85rem 0 0;
    color: var(--grey);
    text-align: center;
}

.market-stage-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

.market-buy-button {
    min-height: 48px;
    padding: 0.9rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    letter-spacing: 0.03em;
    transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    opacity 0.22s ease;
    background: linear-gradient(135deg, #f3d66b, #dfb42c);
    color: #111111;
}

.market-buy-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.market-buy-button.is-dark {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.09);
}

.market-buy-button:disabled {
    opacity: 0.62;
}

.market-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
    "inside price"
    "focus focus"
    "best best";
    gap: 0.75rem;
}

.market-detail-stat:nth-child(1) {
    grid-area: inside;
}

.market-detail-stat:nth-child(2) {
    grid-area: focus;
}

.market-detail-stat:nth-child(3) {
    grid-area: best;
}

.market-detail-stat:nth-child(4) {
    grid-area: price;
}

.market-detail-stat {
    padding: 0.85rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.market-detail-stat span {
    display: block;
    color: var(--grey);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-detail-stat strong {
    display: block;
    margin-top: 0.16rem;
    font-size: 1.05rem;
}

.market-detail-copy {
    margin: 0.95rem 0 0;
    color: var(--text-soft);
}

.market-pull-status {
    margin-top: 1rem;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--grey);
}

.opened-pack-panel {
    margin-top: 1rem;
}

.opened-pack-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.opened-pack-title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1;
}

.opened-pack-meta {
    margin: 0;
    color: var(--grey);
    text-align: right;
}

.opened-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    min-height: 200px;
}

.opened-cards-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--grey);
    text-align: center;
    padding: 1rem;
}

.market-pull-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    text-align: left;
    transition:
    transform 0.22s ease,
    background 0.22s ease;
}

.market-pull-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.market-pull-card.is-new-hit {
    border-color: rgba(241, 196, 15, 0.28);
}

.market-pull-card.just-dealt {
    animation: market-card-deal 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes market-card-deal {
    0% {
        opacity: 0;
        transform: translateY(-24px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.market-pull-media {
    display: block;
    width: 100%;
    aspect-ratio: 614 / 889;
    border-radius: 18px;
}

.market-pull-media .card-container,
.market-pull-media .card-face {
    display: block;
    width: 100%;
    height: 100%;
}

.market-pull-media .card-face,
.market-pull-media .card-face img {
    border-radius: 18px;
}

.market-pull-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.market-pull-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
}

.market-pull-flag {
    flex: 0 0 auto;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.market-pull-flag.new {
    background: linear-gradient(135deg, #f3d66b, #dfb42c);
    color: #111111;
}

.market-pull-flag.owned {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
}

.market-pull-meta {
    color: var(--grey);
    font-size: 0.82rem;
}

.market-pull-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: #cfb65d;
    font-size: 0.78rem;
}

.market-pull-line span:last-child {
    color: var(--text-soft);
}

@media (max-width: 1180px) {
    .market-layout {
        grid-template-columns: 1fr;
    }

    .market-sidebar {
        order: 1;
    }

    .market-detail {
        order: 2;
    }

    .market-stage {
        order: 3;
    }

    .market-pack-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .market-wallet {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-wallet-note {
        text-align: left;
    }

    .market-pack-list {
        grid-template-columns: 1fr;
    }

    .market-sidebar {
        order: 1;
    }

    .market-detail {
        order: 2;
    }

    .market-stage {
        order: 3;
    }

    .market-stage,
    .market-sidebar,
    .market-detail,
    .opened-pack-panel {
        padding: 0.95rem;
    }

    .market-stage-head,
    .opened-pack-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .opened-pack-meta {
        text-align: left;
    }

    .pack3d-shell,
    .pack3d-viewport {
        min-height: 420px;
    }

    .pack3d-guidance {
        text-align: left;
    }

    .market-stage-actions {
        flex-direction: column;
    }

    .market-buy-button {
        width: 100%;
    }

    .opened-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .market-pull-card {
        padding: 0.72rem;
    }

    .market-pull-name {
        font-size: 0.9rem;
    }

    .market-pull-meta,
    .market-pull-line {
        font-size: 0.75rem;
    }
}

/* Account page */

.account-head {
    margin-bottom: 1rem;
}

.account-title {
    margin: 0 0 0.45rem;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.95;
}

.account-copy {
    max-width: 44rem;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    gap: 1rem;
    align-items: start;
}

.account-membership-column {
    display: grid;
    gap: 0.9rem;
}

.account-card-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cc-scene {
    perspective: 1200px;
    width: min(100%, 460px);
    aspect-ratio: 86 / 54;
    z-index: 1;
    touch-action: none;
}

@media (pointer: fine) {
    .cc-scene,
    .cc-scene *,
    .cc-card {
        cursor: none;
    }
}

.cc-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.cc-card.is-animating {
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.cc-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.cc-face--front {
    transform: rotateY(0deg);
    background: linear-gradient(135deg, #111111 0%, #151515 42%, #0a0a0a 100%);
    box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(241, 196, 15, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.cc-face--front::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
    radial-gradient(ellipse at 25% 15%, rgba(241, 196, 15, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(255, 255, 255, 0.03) 0%, transparent 45%);
    z-index: 1;
    pointer-events: none;
}

.cc-face--front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 2px,
        rgba(255, 255, 255, 0.006) 2px, rgba(255, 255, 255, 0.006) 4px
    );
    z-index: 1;
    pointer-events: none;
}

.cc-face--back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #101010 0%, #0d0d0d 48%, #131110 100%);
    box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(241, 196, 15, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(241, 196, 15, 0.22);
}

.cc-face .shine {
    inset: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    filter: none;
    transform: none;
    mix-blend-mode: screen;
    background:
    radial-gradient(
        circle at var(--shine-x, 50%) var(--shine-y, 50%),
                    rgba(255, 255, 255, 0.16) 0%,
                    rgba(255, 255, 255, 0.08) 14%,
                    rgba(255, 255, 255, 0.025) 28%,
                    rgba(255, 255, 255, 0) 48%
    ),
    linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 20%,
                    rgba(255, 255, 255, 0.025) 40%,
                    rgba(255, 255, 255, 0.08) 50%,
                    rgba(255, 255, 255, 0.025) 60%,
                    rgba(255, 255, 255, 0) 80%
    );
}

/* Chip + Holo */

.chip {
    overflow: hidden;
}

.chip-holo {
    position: absolute;
    inset: 0;
    border-radius: 7px;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(
        var(--holo-angle, 135deg),
                                rgba(255, 40, 90, 0.6) 0%,
                                rgba(255, 190, 40, 0.5) 15%,
                                rgba(255, 230, 0, 0.5) 28%,
                                rgba(120, 255, 180, 0.5) 42%,
                                rgba(0, 190, 255, 0.55) 56%,
                                rgba(120, 100, 255, 0.5) 70%,
                                rgba(220, 120, 255, 0.5) 85%,
                                rgba(255, 40, 120, 0.5) 100%
    );
    mix-blend-mode: color-dodge;
}

.chip-holo-grating {
    position: absolute;
    inset: 0;
    border-radius: 7px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: repeating-linear-gradient(
        calc(var(--holo-angle, 135deg) + 90deg),
                                          transparent 0px,
                                          rgba(255, 255, 255, 0.08) 1px,
                                          transparent 2px,
                                          transparent 3px
    );
    mix-blend-mode: overlay;
}

.chip-holo-iridescent {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    border-radius: 7px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translate(var(--holo-shift-x, -33%), var(--holo-shift-y, -33%));
    background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 80, 120, 0.3), transparent 40%),
    radial-gradient(ellipse at 60% 30%, rgba(0, 200, 255, 0.3), transparent 35%),
    radial-gradient(ellipse at 50% 70%, rgba(255, 220, 0, 0.25), transparent 40%),
    radial-gradient(ellipse at 70% 60%, rgba(180, 120, 255, 0.25), transparent 35%),
    radial-gradient(ellipse at 40% 55%, rgba(140, 255, 180, 0.22), transparent 40%);
    mix-blend-mode: color-dodge;
}

.chip-holo-specular {
    position: absolute;
    inset: 0;
    border-radius: 7px;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        circle at var(--holo-cx, 50%) var(--holo-cy, 50%),
                                rgba(255, 255, 255, 0.7) 0%,
                                rgba(255, 255, 255, 0.2) 20%,
                                transparent 50%
    );
    mix-blend-mode: overlay;
}

/* Front content */

.cc-front-content {
    position: relative;
    z-index: 5;
    padding: 24px 28px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.cc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-card-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.32rem;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cc-card-brand .brand-word {
    font-size: 1.02rem;
}

.cc-card-brand .brand-version {
    font-size: 0.95rem;
}

.cc-card-tier {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(201, 168, 76, 0.06);
}

.cc-chip-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chip {
    width: 46px;
    height: 34px;
    border-radius: 7px;
    background: linear-gradient(145deg, #c9a84c, #e8c84a, #c9a84c, #b8982c);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.chip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.chip-inner {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 50%;
    bottom: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.cc-contactless {
    width: 24px;
    height: 24px;
    opacity: 0.4;
}

.cc-contactless svg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
}

.cc-card-number {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cc-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.cc-profile-copy h2 {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.cc-profile-copy p {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.cc-profile-pic {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid rgba(241, 196, 15, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 0 0 auto;
}

.cc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.6rem;
}

.cc-card-info-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cc-card-label {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
}

.cc-card-value {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

/* Back content */

.cc-magnetic-strip {
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg, #0e0e0e, #1a1a1a, #0e0e0e);
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.cc-back-content {
    padding: 14px 28px 18px;
    color: white;
    position: relative;
    z-index: 2;
    height: calc(100% - 58px);
    display: flex;
    flex-direction: column;
}

.cc-back-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.8rem;
    margin-bottom: 8px;
}

.cc-back-top-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cc-back-label {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.28);
}

.cc-back-value {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.3px;
}

.cc-xp-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 10px;
}

.cc-xp-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d4a017, #f1c40f, #f8e28a);
    transition: width 0.6s ease;
    position: relative;
}

.cc-xp-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
    border-radius: inherit;
}

.cc-back-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    flex: 1;
    align-content: stretch;
}

.cc-back-stat {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cc-back-stat strong {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.1;
}

.cc-back-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.cc-back-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Hint */

.cc-hint {
    z-index: 1;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-hint-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    line-height: 15px;
    text-align: center;
    font-size: 10px;
}

.account-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.account-mini-card {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
}

.account-mini-card span {
    display: block;
    color: var(--grey);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-mini-card strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.25rem;
    color: #ffffff;
}

.account-console {
    padding: 1rem;
    border-radius: var(--radius-xl);
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.account-console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.account-tabs {
    display: inline-flex;
    gap: 0.3rem;
    padding: 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.02);
    max-width: 100%;
    overflow-x: auto;
}

.account-tab {
    min-height: 40px;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.62);
    transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
    white-space: nowrap;
}

.account-tab.is-active {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
}

.account-achievements-button {
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3d66b, #dfb42c);
    color: #111111;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.22s ease;
    white-space: nowrap;
}

.account-achievements-button:hover {
    transform: translateY(-2px);
}

.account-panels {
    flex: 1 1 auto;
    min-height: 420px;
}

.account-panel {
    min-height: 420px;
}

.account-panel-head {
    margin-bottom: 0.95rem;
}

.account-panel-head h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    line-height: 1.05;
}

.account-panel-head p {
    margin: 0;
    color: var(--grey);
}

.account-form {
    display: grid;
    gap: 0.8rem;
}

.account-field {
    display: grid;
    gap: 0.38rem;
}

.account-field span {
    color: var(--grey);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-input {
    width: 100%;
    min-height: 48px;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    background: rgba(7,7,7,0.88);
    color: var(--white);
    font-size: 0.96rem;
    transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.account-input:hover,
.account-input:focus {
    outline: none;
    border-color: rgba(241,196,15,0.42);
    box-shadow: 0 0 0 4px rgba(241,196,15,0.08);
    background: rgba(12,12,12,0.96);
}

.account-action-button {
    min-height: 46px;
    padding: 0.88rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3d66b, #dfb42c);
    color: #111111;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.account-action-button:hover {
    transform: translateY(-2px);
}

.account-status {
    min-height: 1.4em;
    margin: 0;
    color: #cfbf75;
    font-size: 0.9rem;
}

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

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.setting-copy h3 {
    margin: 0 0 0.18rem;
    font-size: 1rem;
}

.setting-copy p {
    margin: 0;
    color: var(--grey);
    font-size: 0.9rem;
}

.setting-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    transition: background 0.22s ease;
}

.setting-toggle span {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.22s ease, background 0.22s ease;
}

.setting-toggle.is-on {
    background: rgba(241,196,15,0.36);
}

.setting-toggle.is-on span {
    transform: translateX(28px);
    background: #f7e39a;
}

.theme-mode-toggle {
    display: inline-flex;
    gap: 0.3rem;
    padding: 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.02);
    max-width: 100%;
}

.theme-mode-button {
    min-height: 40px;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.62);
    transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
    white-space: nowrap;
}

.theme-mode-button.is-active {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
}

.account-modal[hidden] {
    display: none;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.account-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.account-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,3,3,0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.account-modal-dialog {
    position: relative;
    width: min(820px, calc(100vw - 24px));
    max-height: min(88svh, 880px);
    padding: 1.2rem 1.2rem 1.3rem;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    background: rgba(14,14,14,0.94);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.account-modal-dialog::-webkit-scrollbar {
    display: none;
}

.account-modal.is-open .account-modal-dialog {
    transform: translateY(0) scale(1);
}

.account-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.88);
    font-size: 1.35rem;
    line-height: 1;
    transition: background 0.22s ease, transform 0.22s ease;
}

.account-modal-close:hover {
    background: rgba(255,255,255,0.08);
    transform: rotate(90deg);
}

.achievement-list {
    display: grid;
    gap: 0.75rem;
}

.achievement-list-large {
    margin-top: 0.4rem;
}

.achievement-item {
    padding: 0.9rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.achievement-item-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
}

.achievement-item h3 {
    margin: 0;
    font-size: 1rem;
}

.achievement-item p {
    margin: 0;
    color: var(--grey);
    font-size: 0.92rem;
}

.achievement-badge {
    flex: 0 0 auto;
    padding: 0.25rem 0.56rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.achievement-badge.unlocked {
    background: linear-gradient(135deg, #f3d66b, #dfb42c);
    color: #111111;
}

.achievement-badge.locked {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.76);
}

@media (max-width: 1080px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-membership-column {
        justify-items: center;
    }
}

@media (max-width: 760px) {
    .account-membership-column {
        width: 100%;
        justify-items: stretch;
    }

    .account-card-block {
        width: 100%;
        align-items: stretch;
    }

    .cc-scene {
        width: calc(100% - 12px);
        max-width: none;
        margin-inline: auto;
        aspect-ratio: 86 / 54;
        height: auto;
    }

    .cc-front-content {
        padding: 20px 22px 18px;
    }

    .cc-card-brand .brand-word {
        font-size: 0.92rem;
    }

    .cc-card-brand .brand-version {
        font-size: 0.86rem;
    }

    .cc-card-tier {
        font-size: 8px;
        letter-spacing: 2px;
        padding: 2px 6px;
    }

    .chip {
        width: 42px;
        height: 31px;
    }

    .cc-contactless {
        width: 20px;
        height: 20px;
    }

    .cc-card-number {
        font-size: 13.5px;
        letter-spacing: 2.6px;
    }

    .cc-profile-copy h2 {
        font-size: 0.92rem;
    }

    .cc-profile-copy p {
        font-size: 0.68rem;
    }

    .cc-profile-pic {
        width: 40px;
        height: 40px;
        font-size: 0.76rem;
    }

    .cc-card-label {
        font-size: 6px;
    }

    .cc-card-value {
        font-size: 10.5px;
    }

    .cc-magnetic-strip {
        height: 34px;
        margin-top: 18px;
    }

    .cc-back-content {
        padding: 11px 22px 14px;
        height: calc(100% - 52px);
    }

    .cc-back-label {
        font-size: 6px;
    }

    .cc-back-value {
        font-size: 10px;
    }

    .cc-xp-track {
        height: 6px;
        margin-bottom: 8px;
    }

    .cc-back-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .cc-back-stat {
        min-height: 0;
        padding: 5px 6px;
        border-radius: 7px;
    }

    .cc-back-stat strong {
        font-size: 0.72rem;
    }

    .cc-back-footer {
        margin-top: 6px;
        padding-top: 6px;
    }

    .account-mini-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .account-console {
        padding: 0.95rem;
        min-height: 0;
    }

    .account-console-top {
        flex-direction: column;
        align-items: stretch;
    }

    .account-tabs {
        display: flex;
        width: 100%;
    }

    .account-tab {
        flex: 1 1 0;
        text-align: center;
    }

    .account-panels,
    .account-panel {
        min-height: 0;
    }

    .setting-item {
        align-items: start;
        flex-direction: column;
    }

    .theme-mode-toggle {
        width: 100%;
    }

    .theme-mode-button {
        flex: 1 1 0;
        text-align: center;
    }

    .account-modal {
        padding: calc(env(safe-area-inset-top) + 76px) 8px max(4px, env(safe-area-inset-bottom));
        place-items: start center;
    }

    .account-modal-dialog {
        width: calc(100vw - 12px);
        max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 80px);
        padding: 1rem;
    }
}

html[data-theme-resolved="light"] body {
    background:
    radial-gradient(circle at 18% 10%, rgba(181, 139, 17, 0.07) 0%, transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.55) 0%, transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, #f3ecdf 100%);
    color: #171512;
}

html[data-theme-resolved="light"] .ambient-stripes::before,
html[data-theme-resolved="light"] .ambient-stripes::after {
    background: repeating-linear-gradient(
        115deg,
        transparent 0 26px,
        rgba(181, 139, 17, 0.045) 26px 27px,
                                          transparent 27px 66px
    );
}

html[data-theme-resolved="light"] .ambient-stripes::before {
    opacity: 0.16;
}

html[data-theme-resolved="light"] .ambient-stripes::after {
    opacity: 0.06;
    filter: blur(10px);
}

html[data-theme-resolved="light"] .ambient-vignette {
    background:
    radial-gradient(circle at 18% 12%, rgba(181, 139, 17, 0.07) 0%, transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 24%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0) 48%, rgba(227, 218, 202, 0.86) 100%);
}

html[data-theme-resolved="light"] .brand-word {
    background-image: linear-gradient(
        120deg,
        #181511 0%,
        #31281d 40%,
        #1b1713 72%,
        #181511 100%
    );
}

html[data-theme-resolved="light"] .brand-version {
    background-image: linear-gradient(
        120deg,
        #a97d0f 0%,
        #c89a18 40%,
        #936b0c 72%,
        #a97d0f 100%
    );
}

html[data-theme-resolved="light"] .cursor-orb {
    background: radial-gradient(
        circle,
        rgba(181, 139, 17, 0.12) 0%,
                                rgba(181, 139, 17, 0.05) 34%,
                                rgba(181, 139, 17, 0) 72%
    );
}

html[data-theme-resolved="light"] .cursor-shape {
    background: #171512;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
}

html[data-theme-resolved="light"] .cursor.is-text .cursor-shape {
    background: rgba(23, 21, 18, 0.88);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

html[data-theme-resolved="light"] .luxury-panel,
html[data-theme-resolved="light"] .spotlight-card,
html[data-theme-resolved="light"] .news-card,
html[data-theme-resolved="light"] .review-card,
html[data-theme-resolved="light"] .vault-card,
html[data-theme-resolved="light"] .vault-empty,
html[data-theme-resolved="light"] .market-pack-option,
html[data-theme-resolved="light"] .market-detail-stat,
html[data-theme-resolved="light"] .market-pull-status,
html[data-theme-resolved="light"] .market-pull-card,
html[data-theme-resolved="light"] .opened-cards-empty,
html[data-theme-resolved="light"] .index-master-stat,
html[data-theme-resolved="light"] .card-detail-stat,
html[data-theme-resolved="light"] .card-detail-info,
html[data-theme-resolved="light"] .setting-item,
html[data-theme-resolved="light"] .achievement-item,
html[data-theme-resolved="light"] .account-mini-card,
html[data-theme-resolved="light"] .collection-toggle,
html[data-theme-resolved="light"] .account-tabs,
html[data-theme-resolved="light"] .theme-mode-toggle {
    border-color: rgba(23, 21, 18, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 240, 230, 0.8));
    box-shadow:
    0 14px 30px rgba(167, 136, 61, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme-resolved="light"] .luxury-panel::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 38%);
    opacity: 0.72;
}

html[data-theme-resolved="light"] .card-face {
    box-shadow:
    0 14px 28px rgba(167, 136, 61, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme-resolved="light"] .cc-face--front,
html[data-theme-resolved="light"] .cc-face--back {
    box-shadow:
    0 14px 28px rgba(167, 136, 61, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme-resolved="light"] .muted,
html[data-theme-resolved="light"] .section-copy,
html[data-theme-resolved="light"] .hero-tagline,
html[data-theme-resolved="light"] .news-card-preview,
html[data-theme-resolved="light"] .review-author,
html[data-theme-resolved="light"] .collection-toolbar-meta,
html[data-theme-resolved="light"] .market-wallet-note,
html[data-theme-resolved="light"] .market-sidebar-note,
html[data-theme-resolved="light"] .market-detail-copy,
html[data-theme-resolved="light"] .market-pull-status,
html[data-theme-resolved="light"] .opened-pack-meta,
html[data-theme-resolved="light"] .account-panel-head p,
html[data-theme-resolved="light"] .setting-copy p,
html[data-theme-resolved="light"] .achievement-item p,
html[data-theme-resolved="light"] .feedback-status,
html[data-theme-resolved="light"] .account-status,
html[data-theme-resolved="light"] .error-note {
    color: #5c5449;
}

html[data-theme-resolved="light"] .welcome-pill p,
html[data-theme-resolved="light"] .hero-note p,
html[data-theme-resolved="light"] .vault-card-line span:last-child,
html[data-theme-resolved="light"] .market-pull-line span:last-child,
html[data-theme-resolved="light"] .card-detail-copy-text {
    color: #4a433a;
}

html[data-theme-resolved="light"] .section-kicker,
html[data-theme-resolved="light"] .eyebrow,
html[data-theme-resolved="light"] .news-date,
html[data-theme-resolved="light"] .statline,
html[data-theme-resolved="light"] .market-pack-option-price,
html[data-theme-resolved="light"] .market-stage-price,
html[data-theme-resolved="light"] .card-detail-kicker,
html[data-theme-resolved="light"] .review-rating,
html[data-theme-resolved="light"] .market-wallet-value {
    color: #9f7810;
}

html[data-theme-resolved="light"] .spotlight-content h3,
html[data-theme-resolved="light"] .news-card-title,
html[data-theme-resolved="light"] .review-card h3,
html[data-theme-resolved="light"] .vault-card-name,
html[data-theme-resolved="light"] .market-pack-option-name,
html[data-theme-resolved="light"] .market-panel-title,
html[data-theme-resolved="light"] .market-stage-title,
html[data-theme-resolved="light"] .opened-pack-title,
html[data-theme-resolved="light"] .market-pull-name,
html[data-theme-resolved="light"] .card-detail-title,
html[data-theme-resolved="light"] .index-page-title,
html[data-theme-resolved="light"] .market-title,
html[data-theme-resolved="light"] .account-title,
html[data-theme-resolved="light"] .achievement-item h3,
html[data-theme-resolved="light"] .setting-copy h3,
html[data-theme-resolved="light"] .account-panel-head h2,
html[data-theme-resolved="light"] .index-master-copy h2,
html[data-theme-resolved="light"] .index-master-value,
html[data-theme-resolved="light"] .index-master-stat strong,
html[data-theme-resolved="light"] .card-detail-stat strong,
html[data-theme-resolved="light"] .card-detail-info strong,
html[data-theme-resolved="light"] .market-detail-stat strong,
html[data-theme-resolved="light"] .account-mini-card strong,
html[data-theme-resolved="light"] .achievement-badge.locked,
html[data-theme-resolved="light"] .opened-cards-empty,
html[data-theme-resolved="light"] .vault-empty,
html[data-theme-resolved="light"] .error-title,
html[data-theme-resolved="light"] .error-text {
    color: #171512;
}

html[data-theme-resolved="light"] .index-master-stat span,
html[data-theme-resolved="light"] .card-detail-stat span,
html[data-theme-resolved="light"] .card-detail-info span,
html[data-theme-resolved="light"] .market-detail-stat span,
html[data-theme-resolved="light"] .account-mini-card span,
html[data-theme-resolved="light"] .collection-control-label,
html[data-theme-resolved="light"] .account-field span,
html[data-theme-resolved="light"] .rating-group legend,
html[data-theme-resolved="light"] .input-label,
html[data-theme-resolved="light"] .market-wallet-label,
html[data-theme-resolved="light"] .vault-card-meta,
html[data-theme-resolved="light"] .market-pull-meta {
    color: #6a6257;
}

html[data-theme-resolved="light"] .vault-card-line,
html[data-theme-resolved="light"] .market-pull-line {
    color: #8f6c11;
}

html[data-theme-resolved="light"] .nav-pill {
    background: rgba(251, 247, 239, 0.82);
    border-color: rgba(23, 21, 18, 0.08);
}

html[data-theme-resolved="light"] .nav-link {
    color: rgba(23, 21, 18, 0.68);
}

html[data-theme-resolved="light"] .nav-link:hover,
html[data-theme-resolved="light"] .nav-link.active {
    color: #171512;
    background: rgba(23, 21, 18, 0.05);
}

html[data-theme-resolved="light"] .nav-link.active {
    color: #8d6b12;
    box-shadow: inset 0 0 0 1px rgba(181, 139, 17, 0.2);
}

html[data-theme-resolved="light"] .nav-fade-left {
    background: linear-gradient(
        90deg,
        rgba(246, 242, 232, 0.96) 0%,
                                rgba(246, 242, 232, 0.72) 46%,
                                rgba(246, 242, 232, 0) 100%
    );
}

html[data-theme-resolved="light"] .nav-fade-right {
    background: linear-gradient(
        270deg,
        rgba(246, 242, 232, 0.96) 0%,
                                rgba(246, 242, 232, 0.72) 46%,
                                rgba(246, 242, 232, 0) 100%
    );
}

html[data-theme-resolved="light"] .welcome-pill,
html[data-theme-resolved="light"] .hero-note,
html[data-theme-resolved="light"] .market-wallet,
html[data-theme-resolved="light"] .collection-toolbar,
html[data-theme-resolved="light"] .index-master-card,
html[data-theme-resolved="light"] .market-sidebar,
html[data-theme-resolved="light"] .market-stage,
html[data-theme-resolved="light"] .market-detail,
html[data-theme-resolved="light"] .opened-pack-panel,
html[data-theme-resolved="light"] .account-console {
    border-color: rgba(23, 21, 18, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 230, 0.82));
    box-shadow:
    0 16px 34px rgba(167, 136, 61, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme-resolved="light"] .text-input,
html[data-theme-resolved="light"] .collection-input,
html[data-theme-resolved="light"] .collection-select,
html[data-theme-resolved="light"] .account-input {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(23, 21, 18, 0.1);
    color: #171512;
    box-shadow: none;
}

html[data-theme-resolved="light"] .text-input::placeholder,
html[data-theme-resolved="light"] .collection-input::placeholder,
html[data-theme-resolved="light"] .account-input::placeholder {
    color: rgba(23, 21, 18, 0.36);
}

html[data-theme-resolved="light"] .text-input:hover,
html[data-theme-resolved="light"] .text-input:focus,
html[data-theme-resolved="light"] .collection-input:hover,
html[data-theme-resolved="light"] .collection-input:focus,
html[data-theme-resolved="light"] .collection-select:hover,
html[data-theme-resolved="light"] .collection-select:focus,
html[data-theme-resolved="light"] .account-input:hover,
html[data-theme-resolved="light"] .account-input:focus {
    border-color: rgba(181, 139, 17, 0.28);
    box-shadow: 0 0 0 4px rgba(181, 139, 17, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

html[data-theme-resolved="light"] .collection-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.9);
    background-image:
    linear-gradient(45deg, transparent 50%, rgba(23, 21, 18, 0.7) 50%),
    linear-gradient(135deg, rgba(23, 21, 18, 0.7) 50%, transparent 50%);
    background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

html[data-theme-resolved="light"] .collection-select option,
html[data-theme-resolved="light"] .account-input option {
    background: #fbf8f1;
    color: #171512;
}

html[data-theme-resolved="light"] .ghost-button,
html[data-theme-resolved="light"] .market-buy-button.is-dark {
    border-color: rgba(23, 21, 18, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 239, 229, 0.94));
    color: #2b241c;
}

html[data-theme-resolved="light"] .ghost-button:hover:not(:disabled),
html[data-theme-resolved="light"] .market-buy-button.is-dark:hover:not(:disabled) {
    border-color: rgba(181, 139, 17, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

html[data-theme-resolved="light"] .collection-toggle button,
html[data-theme-resolved="light"] .account-tab,
html[data-theme-resolved="light"] .theme-mode-button {
    color: rgba(23, 21, 18, 0.76);
}

html[data-theme-resolved="light"] .collection-toggle button.is-active,
html[data-theme-resolved="light"] .account-tab.is-active,
html[data-theme-resolved="light"] .theme-mode-button.is-active {
    background: rgba(23, 21, 18, 0.08);
    color: #171512;
    box-shadow: inset 0 0 0 1px rgba(23, 21, 18, 0.04);
}

html[data-theme-resolved="light"] .account-achievements-button,
html[data-theme-resolved="light"] .account-action-button,
html[data-theme-resolved="light"] .market-buy-button,
html[data-theme-resolved="light"] .error-link.primary {
    color: #171512;
    border-color: rgba(181, 139, 17, 0.34);
    background: linear-gradient(135deg, #e7c65d, #c89817);
    box-shadow: none;
}

html[data-theme-resolved="light"] .setting-toggle {
    background: rgba(23, 21, 18, 0.1);
}

html[data-theme-resolved="light"] .setting-toggle span {
    background: #ffffff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

html[data-theme-resolved="light"] .setting-toggle.is-on {
    background: rgba(181, 139, 17, 0.28);
}

html[data-theme-resolved="light"] .setting-toggle.is-on span {
    background: #fff5d0;
}

html[data-theme-resolved="light"] .star-label {
    color: rgba(181, 139, 17, 0.28);
    text-shadow: none;
}

html[data-theme-resolved="light"] .star-label:hover,
html[data-theme-resolved="light"] .star-label:hover ~ .star-label,
html[data-theme-resolved="light"] .rating-input:checked ~ .star-label {
    color: #c39216;
    text-shadow: 0 0 12px rgba(181, 139, 17, 0.14);
}

html[data-theme-resolved="light"] .news-modal-dialog,
html[data-theme-resolved="light"] .card-detail-dialog,
html[data-theme-resolved="light"] .account-modal-dialog {
    background: rgba(252, 248, 241, 0.97);
}

html[data-theme-resolved="light"] .news-modal-close,
html[data-theme-resolved="light"] .card-detail-close,
html[data-theme-resolved="light"] .account-modal-close {
    background: rgba(23, 21, 18, 0.05);
    color: rgba(23, 21, 18, 0.82);
}

html[data-theme-resolved="light"] .news-modal-close:hover,
html[data-theme-resolved="light"] .card-detail-close:hover,
html[data-theme-resolved="light"] .account-modal-close:hover {
    background: rgba(23, 21, 18, 0.08);
}

html[data-theme-resolved="light"] .pack3d-shell {
    border-color: rgba(23, 21, 18, 0.08);
    background:
    radial-gradient(circle at 50% 24%, rgba(23, 21, 18, 0.03), transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(181, 139, 17, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.62);
}

html[data-theme-resolved="light"] .site-footer a {
    color: #8d6b12;
}

html[data-theme-resolved="light"] .site-footer a:hover {
    color: #6e510c;
}

html[data-theme-resolved="light"] .error-link {
    color: #171512 !important;
    border-color: rgba(23, 21, 18, 0.1) !important;
    background: rgba(255, 255, 255, 0.78) !important;
}

html[data-theme-resolved="light"] .error-link:hover {
    border-color: rgba(181, 139, 17, 0.25) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

/* Light mode corrective pass */

html[data-theme-resolved="light"] {
    --light-gold: #a97d0f;
    --light-gold-strong: #8d6b12;
    --light-gold-soft: rgba(169, 125, 15, 0.12);
    --light-gold-line: rgba(169, 125, 15, 0.18);
}

html[data-theme-resolved="light"] .brand-version,
html[data-theme-resolved="light"] .section-kicker,
html[data-theme-resolved="light"] .eyebrow,
html[data-theme-resolved="light"] .news-date,
html[data-theme-resolved="light"] .statline,
html[data-theme-resolved="light"] .market-pack-option-price,
html[data-theme-resolved="light"] .market-stage-price,
html[data-theme-resolved="light"] .card-detail-kicker,
html[data-theme-resolved="light"] .review-rating,
html[data-theme-resolved="light"] .market-wallet-value,
html[data-theme-resolved="light"] .vault-card-line,
html[data-theme-resolved="light"] .market-pull-line {
    color: var(--light-gold) !important;
}

html[data-theme-resolved="light"] .nav-link.active,
html[data-theme-resolved="light"] .site-footer a,
html[data-theme-resolved="light"] .market-wallet-value,
html[data-theme-resolved="light"] .star-label:hover,
html[data-theme-resolved="light"] .star-label:hover ~ .star-label,
html[data-theme-resolved="light"] .rating-input:checked ~ .star-label {
    color: var(--light-gold-strong) !important;
}

html[data-theme-resolved="light"] .site-footer a:hover {
    color: #6e510c !important;
}

html[data-theme-resolved="light"] .spotlight-thumb .card-face,
html[data-theme-resolved="light"] .vault-card-media .card-face {
    box-shadow: none !important;
}

html[data-theme-resolved="light"] .spotlight-thumb .card-face img,
html[data-theme-resolved="light"] .vault-card-media .card-face img {
    box-shadow: none !important;
}

html[data-theme-resolved="light"] .vault-card-line span:last-child,
html[data-theme-resolved="light"] .market-pull-line span:last-child,
html[data-theme-resolved="light"] .hero-note p,
html[data-theme-resolved="light"] .welcome-pill p,
html[data-theme-resolved="light"] .card-detail-copy-text {
    color: #4c453b !important;
}

html[data-theme-resolved="light"] .account-tabs,
html[data-theme-resolved="light"] .theme-mode-toggle,
html[data-theme-resolved="light"] .collection-toggle {
    border-color: rgba(23, 21, 18, 0.08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 230, 0.84)) !important;
    box-shadow:
    0 10px 22px rgba(167, 136, 61, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme-resolved="light"] .account-tab,
html[data-theme-resolved="light"] .theme-mode-button,
html[data-theme-resolved="light"] .collection-toggle button {
    color: #4d453c !important;
}

html[data-theme-resolved="light"] .account-tab.is-active,
html[data-theme-resolved="light"] .theme-mode-button.is-active,
html[data-theme-resolved="light"] .collection-toggle button.is-active {
    background: rgba(169, 125, 15, 0.14) !important;
    color: #171512 !important;
    box-shadow: inset 0 0 0 1px rgba(169, 125, 15, 0.12) !important;
}

html[data-theme-resolved="light"] .account-achievements-button,
html[data-theme-resolved="light"] .account-action-button,
html[data-theme-resolved="light"] .market-buy-button,
html[data-theme-resolved="light"] .error-link.primary {
    background: linear-gradient(135deg, #e7c65d, #c89817) !important;
    color: #171512 !important;
    border-color: rgba(169, 125, 15, 0.3) !important;
    box-shadow: none !important;
}

html[data-theme-resolved="light"] .account-achievements-button:hover,
html[data-theme-resolved="light"] .account-action-button:hover,
html[data-theme-resolved="light"] .market-buy-button:hover {
    box-shadow: none !important;
}

html[data-theme-resolved="light"] .star-label {
    color: rgba(169, 125, 15, 0.34) !important;
    text-shadow: none !important;
}

html[data-theme-resolved="light"] .star-label:hover,
html[data-theme-resolved="light"] .star-label:hover ~ .star-label,
html[data-theme-resolved="light"] .rating-input:checked ~ .star-label {
    color: var(--light-gold) !important;
    text-shadow: 0 0 10px rgba(169, 125, 15, 0.12) !important;
}

html[data-theme-resolved="light"] .cc-card-brand .brand-word {
    background-image: linear-gradient(
        120deg,
        #ffffff 0%,
        #fcfcfb 35%,
        #f1f0ec 60%,
        #ffffff 100%
    ) !important;
}

html[data-theme-resolved="light"] .cc-card-brand .brand-version {
    background-image: linear-gradient(
        120deg,
        #edc54a 0%,
        #f3d25d 40%,
        #dfb42c 72%,
        #edc54a 100%
    ) !important;
}

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

    .ambient-stripes::before,
    .ambient-stripes::after,
    .luxury-panel::before,
    .brand-word,
    .brand-version,
    .cursor-orb,
    .cursor-shape,
    .nav-link,
    .spotlight-card,
    .news-card,
    .review-card,
    .text-input,
    .news-modal,
    .news-modal-dialog,
    .shine,
    .reveal,
    .reveal-card::before,
    .reveal-card::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
