/*
 * TERRA ICON — Light Gold release polish.
 *
 * Loaded after page/module styles. The dark theme is intentionally untouched.
 * Light Gold uses a warm champagne editorial system with stronger hierarchy,
 * readable bronze accents and deliberate dark inverse islands for artwork,
 * photography and collectible-card stages.
 */

:root[data-theme="light-gold"] {
    --color-bg-page: #f4ede2;
    --color-bg-soft: #eadfce;
    --color-surface: #fffdf9;
    --color-surface-elevated: #fff8ed;
    --color-surface-card-start: rgba(255, 254, 250, .995);
    --color-surface-card-end: rgba(245, 236, 222, .985);

    --color-text-primary: #241d16;
    --color-text-secondary: #5e5348;
    --color-text-muted: #75695c;
    --color-placeholder: #827568;
    --color-disabled-text: #887c70;

    --color-accent: #8a5a17;
    --color-accent-highlight: #6f450d;
    --color-accent-strong: #603907;
    --color-accent-text: #875716;
    --color-accent-text-strong: #68400d;
    --color-accent-soft: rgba(138, 90, 23, .105);
    --color-accent-softer: rgba(138, 90, 23, .068);
    --color-accent-glow: rgba(183, 130, 42, .17);

    --color-border-subtle: rgba(72, 49, 26, .12);
    --color-border: rgba(133, 88, 22, .28);
    --color-border-strong: rgba(133, 88, 22, .48);
    --color-border-control: rgba(72, 49, 26, .19);
    --color-border-control-hover: rgba(133, 88, 22, .48);

    --gradient-button-primary: linear-gradient(135deg, #f3e1aa 0%, #d2aa55 43%, #a56d1f 100%);
    --shadow-button-primary: 0 10px 24px rgba(88, 58, 18, .16), inset 0 1px 0 rgba(255, 255, 255, .52);
    --shadow-button-primary-hover: 0 0 0 3px rgba(138, 96, 30, .13), 0 15px 32px rgba(88, 58, 18, .20), inset 0 1px 0 rgba(255, 255, 255, .58);

    --background-page:
        radial-gradient(circle at 9% 7%, rgba(255, 255, 255, .96), transparent 19rem),
        radial-gradient(circle at 92% 14%, rgba(207, 166, 91, .14), transparent 27rem),
        radial-gradient(circle at 22% 82%, rgba(116, 31, 50, .045), transparent 30rem),
        linear-gradient(145deg, #f8f2e8 0%, #f2eadf 49%, #eee3d3 100%);
    --background-card: linear-gradient(150deg, rgba(255, 254, 251, .995), rgba(247, 239, 227, .985));
    --background-card-accent:
        radial-gradient(circle at 92% 0%, rgba(202, 155, 67, .16), transparent 14rem),
        linear-gradient(115deg, rgba(255, 255, 255, .26), transparent 36%);
    --background-site-glow: radial-gradient(circle, rgba(191, 139, 52, .16), transparent 66%);
    --shadow-card: 0 20px 55px rgba(71, 48, 23, .105), 0 1px 0 rgba(255, 255, 255, .9) inset;
    --shadow-soft: 0 12px 34px rgba(71, 48, 23, .09);
    --shadow-accent: 0 12px 34px rgba(127, 82, 18, .12);

    --color-nav-surface: rgba(255, 253, 248, .91);
    --color-nav-surface-menu: rgba(255, 252, 246, .98);
    --color-nav-surface-contrast: rgba(255, 253, 248, .99);
    --color-nav-border: rgba(92, 61, 27, .15);
    --color-nav-border-scrolled: rgba(133, 88, 22, .25);
    --gradient-nav-surface: linear-gradient(135deg, rgba(255, 254, 251, .93), rgba(239, 229, 214, .88));
    --gradient-nav-surface-scrolled: linear-gradient(135deg, rgba(255, 254, 251, .975), rgba(238, 227, 210, .94));
    --gradient-menu-surface: linear-gradient(145deg, rgba(255, 254, 251, .985), rgba(238, 227, 210, .965));
    --gradient-bottom-nav-surface: linear-gradient(135deg, rgba(255, 254, 251, .97), rgba(238, 227, 210, .925));
    --shadow-nav: 0 14px 42px rgba(64, 43, 21, .11), inset 0 1px 0 rgba(255, 255, 255, .88), inset 0 -1px 0 rgba(133, 88, 22, .06);
    --shadow-nav-scrolled: 0 18px 50px rgba(64, 43, 21, .15), inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(133, 88, 22, .08);
    --shadow-menu: 0 24px 58px rgba(64, 43, 21, .16), inset 0 1px 0 rgba(255, 255, 255, .88);
    --shadow-bottom-nav: 0 -13px 35px rgba(64, 43, 21, .09), 0 18px 44px rgba(64, 43, 21, .12), inset 0 1px 0 rgba(255, 255, 255, .88);

    --public-surface-hero:
        radial-gradient(circle at 87% 14%, rgba(199, 151, 61, .18), transparent 31%),
        linear-gradient(145deg, rgba(255, 254, 250, .995), rgba(240, 229, 212, .985));
    --public-surface-featured:
        radial-gradient(circle at 92% 8%, rgba(201, 155, 67, .15), transparent 34%),
        linear-gradient(145deg, rgba(255, 254, 250, .995), rgba(246, 238, 225, .99));
    --public-surface-subtle: linear-gradient(135deg, rgba(202, 157, 71, .13), rgba(255, 255, 255, .72));
    --public-surface-item: rgba(255, 253, 248, .74);
    --public-surface-item-hover: rgba(201, 155, 67, .12);
    --public-surface-control: rgba(255, 254, 250, .96);
    --public-surface-control-focus: rgba(255, 252, 244, 1);
    --public-surface-sheet:
        radial-gradient(circle at 10% 0%, rgba(201, 155, 67, .17), transparent 31%),
        linear-gradient(145deg, rgba(255, 254, 250, .998), rgba(239, 228, 211, .995));
    --public-surface-tabs: rgba(255, 253, 248, .91);
    --public-surface-table-head: rgba(128, 84, 20, .065);
    --public-surface-profile:
        radial-gradient(circle at 78% 13%, rgba(201, 155, 67, .16), transparent 34%),
        linear-gradient(180deg, rgba(255, 254, 250, .998), rgba(241, 231, 216, .99));
    --public-surface-catalog-card:
        radial-gradient(circle at 10% 18%, rgba(201, 155, 67, .12), transparent 33%),
        linear-gradient(150deg, rgba(255, 254, 250, .995), rgba(246, 238, 225, .985));
    --public-surface-editorial:
        linear-gradient(90deg, rgba(116, 31, 50, .045), transparent 28%, transparent 72%, rgba(116, 31, 50, .045)),
        linear-gradient(180deg, rgba(255, 254, 250, .96), rgba(245, 236, 222, .94));
    --public-shadow-panel: 0 22px 62px rgba(69, 47, 24, .11), inset 0 1px 0 rgba(255, 255, 255, .86);
    --public-shadow-card: 0 15px 36px rgba(69, 47, 24, .10), inset 0 1px 0 rgba(255, 255, 255, .78);
    --public-shadow-card-hover: 0 22px 48px rgba(69, 47, 24, .15), 0 0 0 1px rgba(138, 90, 23, .07);
    --public-shadow-profile: 0 30px 80px rgba(69, 47, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .82);

    --workspace-surface-hero:
        radial-gradient(circle at 88% 12%, rgba(201, 155, 67, .17), transparent 34%),
        linear-gradient(145deg, rgba(255, 254, 250, .997), rgba(239, 228, 211, .98));
    --workspace-surface-panel: rgba(255, 253, 248, .74);
    --workspace-surface-panel-hover: rgba(201, 155, 67, .115);
    --workspace-surface-panel-strong: rgba(255, 254, 250, .985);
    --workspace-surface-accent: rgba(138, 90, 23, .085);
    --workspace-surface-accent-strong: linear-gradient(135deg, rgba(202, 157, 71, .15), rgba(255, 255, 255, .74));
    --workspace-surface-control: rgba(255, 254, 250, .975);
    --workspace-surface-control-readonly: rgba(138, 90, 23, .075);
    --workspace-surface-row: linear-gradient(135deg, rgba(255, 254, 250, .99), rgba(241, 231, 216, .82));
    --workspace-surface-row-hover: linear-gradient(135deg, rgba(202, 157, 71, .16), rgba(255, 254, 250, .95));
    --workspace-shadow-panel: 0 20px 54px rgba(69, 47, 24, .105), inset 0 1px 0 rgba(255, 255, 255, .84);
    --workspace-shadow-card: 0 15px 36px rgba(69, 47, 24, .10);
    --workspace-shadow-card-hover: 0 21px 46px rgba(69, 47, 24, .15);
}

/* Global finishing: stronger separation and less “flat demo” feeling. */
:root[data-theme="light-gold"] body:not(.maintenance-page) {
    background-attachment: fixed;
}

:root[data-theme="light-gold"] .site-glow {
    opacity: .72;
    filter: blur(18px);
}

:root[data-theme="light-gold"] .premium-card {
    border-color: rgba(133, 88, 22, .25);
    box-shadow: var(--shadow-card);
}

:root[data-theme="light-gold"] .premium-card::before {
    opacity: .9;
}

:root[data-theme="light-gold"] .btn-outline,
:root[data-theme="light-gold"] .theme-toggle,
:root[data-theme="light-gold"] .language-switcher__trigger,
:root[data-theme="light-gold"] .menu-toggle {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 7px 18px rgba(69, 47, 24, .055);
}

:root[data-theme="light-gold"] .btn-outline:hover,
:root[data-theme="light-gold"] .theme-toggle:hover,
:root[data-theme="light-gold"] .menu-toggle:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 22px rgba(69, 47, 24, .09);
}

/* Public editorial surfaces get a subtle inner highlight and real depth. */
:root[data-theme="light-gold"] :is(
    .ti-about-hero,
    .ti-rules-hero,
    .ti-contacts-hero,
    .ti-contacts-message,
    .ti-about-final,
    .ti-rules-principle,
    .ti-seasons-hero,
    .ti-open-results-card,
    .ti-profile-shell,
    .ti-catalog-card,
    .journal-masthead
) {
    box-shadow: var(--public-shadow-panel), inset 0 1px 0 rgba(255, 255, 255, .82);
}

:root[data-theme="light-gold"] :is(
    .ti-about-note,
    .ti-about-step,
    .ti-about-value-list article,
    .ti-rule-list li,
    .ti-contact-card,
    .ti-stage-chips span,
    .ti-archive-ranks span,
    .ti-dashboard-season-history a
) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

/* Authenticated workspace: white cards should feel finished, not unstyled. */
:root[data-theme="light-gold"] :is(
    .dashboard-card,
    .dashboard-panel,
    .application-section,
    .application-status-card,
    .notification-card,
    .duel-card,
    .community-level-card,
    .community-support-card,
    .community-referral-card
) {
    box-shadow: var(--workspace-shadow-card), inset 0 1px 0 rgba(255, 255, 255, .72);
}

/* Nickname onboarding: keep the story panel as a deliberate dark editorial island. */
:root[data-theme="light-gold"] .nickname-card {
    border-color: rgba(133, 88, 22, .30);
    box-shadow: 0 28px 72px rgba(69, 47, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .85);
}

:root[data-theme="light-gold"] .nickname-account,
:root[data-theme="light-gold"] .nickname-input-shell {
    background: rgba(255, 254, 250, .84);
}

/* ========================================================================== */
/* COLLECTIBLES — complete Light Gold treatment.                               */
/* Card artwork and the exhibit stage intentionally remain dark/inverse.       */
/* ========================================================================== */

:root[data-theme="light-gold"] .collectibles-page {
    --cc-gold: #875716;
    --cc-gold-soft: #69400d;
    --cc-ink: #241d16;
    --cc-panel: rgba(255, 253, 248, .92);
    --cc-line: rgba(133, 88, 22, .23);
    --cc-muted: #6f6255;
}

:root[data-theme="light-gold"] .collectibles-shell {
    color: var(--color-text-primary);
}

:root[data-theme="light-gold"] .collectibles-hero {
    border-color: rgba(133, 88, 22, .28);
    background:
        radial-gradient(circle at 82% 12%, rgba(201, 155, 67, .18), transparent 34%),
        radial-gradient(circle at 8% 90%, rgba(116, 31, 50, .045), transparent 28%),
        linear-gradient(145deg, rgba(255, 254, 250, .995), rgba(239, 228, 211, .985));
    box-shadow: 0 30px 82px rgba(69, 47, 24, .13), inset 0 1px 0 rgba(255, 255, 255, .88);
}

:root[data-theme="light-gold"] .collectibles-hero h1 {
    color: #261d13;
}

:root[data-theme="light-gold"] .collectibles-overview > div,
:root[data-theme="light-gold"] .collectibles-filters a,
:root[data-theme="light-gold"] .collectibles-set-list article,
:root[data-theme="light-gold"] .collectibles-empty,
:root[data-theme="light-gold"] .collectible-unavailable > section {
    border-color: rgba(133, 88, 22, .18);
    background: linear-gradient(145deg, rgba(255, 254, 250, .92), rgba(245, 236, 222, .86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

:root[data-theme="light-gold"] .collectibles-overview strong,
:root[data-theme="light-gold"] .collectibles-current-set strong,
:root[data-theme="light-gold"] .dashboard-collectibles-progress strong {
    color: #68400d;
}

:root[data-theme="light-gold"] .collectible-progress,
:root[data-theme="light-gold"] .collectible-card-progress > span,
:root[data-theme="light-gold"] .collectible-detail-progress > span {
    background: rgba(84, 57, 28, .11);
}

:root[data-theme="light-gold"] .collectibles-filters a:hover,
:root[data-theme="light-gold"] .collectibles-filters a.is-active {
    color: #21170a;
    border-color: #9b681d;
    background: linear-gradient(135deg, #f3e3b4, #d4ae5e 52%, #b67d2b);
    box-shadow: 0 8px 22px rgba(98, 64, 18, .14), inset 0 1px 0 rgba(255, 255, 255, .55);
}

:root[data-theme="light-gold"] .collectible-grid-card-copy h3 {
    color: #2a2119;
}

:root[data-theme="light-gold"] .collectible-grid-card-copy p,
:root[data-theme="light-gold"] .collectible-card-progress small,
:root[data-theme="light-gold"] .collectibles-pagination span,
:root[data-theme="light-gold"] .collectibles-set-list span {
    color: #74675a;
}

:root[data-theme="light-gold"] .collectible-edition-badges b,
:root[data-theme="light-gold"] .collectible-detail-edition-badges span {
    color: #70450e;
    border-color: rgba(133, 88, 22, .22);
    background: rgba(176, 124, 37, .075);
}

/* Detail page: readable editorial column. */
:root[data-theme="light-gold"] .collectible-premium-back {
    color: #765020;
}

:root[data-theme="light-gold"] .collectible-premium-back:hover {
    color: #4f2f08;
}

:root[data-theme="light-gold"] .collectible-detail-copy-premium h1 {
    color: #261d14;
}

:root[data-theme="light-gold"] .collectible-detail-copy-premium .collectible-detail-subtitle {
    color: #65594d;
}

:root[data-theme="light-gold"] .collectible-detail-copy-premium .collectible-detail-set span {
    color: rgba(112, 69, 14, .55);
}

:root[data-theme="light-gold"] .collectible-owned-state-premium {
    border-color: rgba(133, 88, 22, .23);
    background:
        radial-gradient(circle at 0 0, rgba(201, 155, 67, .15), transparent 35%),
        linear-gradient(145deg, rgba(255, 254, 250, .96), rgba(244, 234, 218, .88));
    box-shadow: 0 13px 32px rgba(69, 47, 24, .075), inset 0 1px 0 rgba(255, 255, 255, .84);
}

:root[data-theme="light-gold"] .collectible-owned-state-premium.is-owned {
    border-color: rgba(150, 99, 24, .39);
}

:root[data-theme="light-gold"] .collectible-owned-state-premium div > small {
    color: #88755f;
}

:root[data-theme="light-gold"] .collectible-owned-state-premium strong {
    color: #2c2116;
}

:root[data-theme="light-gold"] .collectible-owned-state-premium.is-locked .collectible-owned-icon {
    color: #70450e;
    border-color: rgba(133, 88, 22, .24);
    background: rgba(176, 124, 37, .095);
}

:root[data-theme="light-gold"] :is(
    .collectible-section-label-icon,
    .collectible-panel-icon,
    .collectible-owner-stat-icon
) {
    color: #875716;
    border-color: rgba(133, 88, 22, .22);
    background: rgba(176, 124, 37, .075);
}

:root[data-theme="light-gold"] .collectible-section-label h2 {
    color: #2b2118;
}

:root[data-theme="light-gold"] .collectible-facts-premium .collectible-fact {
    border-color: rgba(133, 88, 22, .15);
    background: linear-gradient(145deg, rgba(255, 254, 250, .93), rgba(244, 234, 218, .76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

:root[data-theme="light-gold"] .collectible-facts-premium .collectible-fact:hover {
    border-color: rgba(133, 88, 22, .31);
    background: linear-gradient(145deg, rgba(201, 155, 67, .13), rgba(255, 254, 250, .94));
}

:root[data-theme="light-gold"] .collectible-fact-icon {
    color: #875716;
    background: rgba(176, 124, 37, .085);
}

:root[data-theme="light-gold"] .collectible-facts-premium dt {
    color: #85786b;
}

:root[data-theme="light-gold"] .collectible-facts-premium dd {
    color: #2b2118;
}

:root[data-theme="light-gold"] .collectible-story-premium,
:root[data-theme="light-gold"] .collectible-condition-premium,
:root[data-theme="light-gold"] .collectible-history-card {
    border-color: rgba(133, 88, 22, .18);
    background:
        radial-gradient(circle at 100% 0, rgba(201, 155, 67, .12), transparent 38%),
        linear-gradient(145deg, rgba(255, 254, 250, .95), rgba(243, 233, 216, .86));
    box-shadow: 0 14px 34px rgba(69, 47, 24, .075), inset 0 1px 0 rgba(255, 255, 255, .78);
}

:root[data-theme="light-gold"] .collectible-condition-premium {
    background:
        radial-gradient(circle at 0 100%, rgba(201, 155, 67, .15), transparent 36%),
        linear-gradient(135deg, rgba(255, 254, 250, .95), rgba(241, 230, 212, .9));
}

:root[data-theme="light-gold"] .collectible-about-text,
:root[data-theme="light-gold"] .collectible-condition-premium strong {
    color: #3f342a;
}

:root[data-theme="light-gold"] .collectible-partner-card,
:root[data-theme="light-gold"] .collectible-owner-stat-premium,
:root[data-theme="light-gold"] .collectible-detail-progress {
    border-color: rgba(133, 88, 22, .16);
    background: linear-gradient(145deg, rgba(255, 254, 250, .92), rgba(244, 234, 218, .78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

:root[data-theme="light-gold"] .collectible-partner-card > img,
:root[data-theme="light-gold"] .collectible-partner-card > span {
    color: #875716;
    border-color: rgba(133, 88, 22, .20);
    background: rgba(176, 124, 37, .065);
}

:root[data-theme="light-gold"] .collectible-partner-card strong,
:root[data-theme="light-gold"] .collectible-owner-stat-premium strong {
    color: #2b2118;
}

:root[data-theme="light-gold"] .collectible-owner-stat-premium b {
    color: #70450e;
    background: rgba(176, 124, 37, .085);
}

:root[data-theme="light-gold"] .collectible-links-premium a {
    color: #3a2c1f;
    border-color: rgba(133, 88, 22, .18);
    background: linear-gradient(145deg, rgba(255, 254, 250, .94), rgba(242, 231, 214, .86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

:root[data-theme="light-gold"] .collectible-links-premium a:hover {
    color: #24190d;
    border-color: rgba(133, 88, 22, .38);
    background: linear-gradient(145deg, rgba(201, 155, 67, .15), rgba(255, 254, 250, .95));
}

:root[data-theme="light-gold"] .collectible-links-premium a b {
    color: #7a4c10;
    background: rgba(176, 124, 37, .09);
}

:root[data-theme="light-gold"] .collectible-share-button {
    color: #70450e;
    border-color: rgba(133, 88, 22, .25);
    background: rgba(255, 253, 248, .80);
}

:root[data-theme="light-gold"] .collectible-share-button:hover {
    border-color: rgba(133, 88, 22, .48);
    background: rgba(201, 155, 67, .12);
}

/* Rich card lore must switch from ivory-on-dark to ink-on-paper. */
:root[data-theme="light-gold"] .collectible-history-title {
    color: #2b2118;
}

:root[data-theme="light-gold"] .collectible-card-history-richtext {
    color: #44382d;
}

:root[data-theme="light-gold"] .collectible-card-history-richtext h2,
:root[data-theme="light-gold"] .collectible-card-history-richtext h3 {
    color: #2f2419;
}

:root[data-theme="light-gold"] .collectible-card-history-richtext strong {
    color: #70450e;
}

:root[data-theme="light-gold"] .collectible-card-history-richtext em {
    color: #5e472b;
}

:root[data-theme="light-gold"] .collectible-card-history-richtext blockquote {
    color: #4a3927;
    border-left-color: #9d6a20;
    background: rgba(176, 124, 37, .085);
}

:root[data-theme="light-gold"] .collectible-card-history-richtext hr {
    border-top-color: rgba(133, 88, 22, .35);
}

/* Redeem page is paper in Light Gold, while reveal modal remains theatrical dark. */
:root[data-theme="light-gold"] .collectible-redeem-card {
    border-color: rgba(133, 88, 22, .24);
    background:
        radial-gradient(circle at 90% 0, rgba(201, 155, 67, .18), transparent 36%),
        linear-gradient(145deg, rgba(255, 254, 250, .995), rgba(240, 229, 212, .985));
    box-shadow: 0 26px 66px rgba(69, 47, 24, .12), inset 0 1px 0 rgba(255, 255, 255, .86);
}

:root[data-theme="light-gold"] .collectible-redeem-card h1 {
    color: #281f16;
}

:root[data-theme="light-gold"] .collectible-redeem-mark {
    color: #70450e;
    border-color: rgba(133, 88, 22, .32);
    background: rgba(176, 124, 37, .07);
}

:root[data-theme="light-gold"] .collectible-redeem-card input {
    color: #2d231a;
    border-color: rgba(72, 49, 26, .20);
    background: rgba(255, 254, 250, .94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

:root[data-theme="light-gold"] .collectible-redeem-card input:focus {
    outline: 0;
    border-color: rgba(133, 88, 22, .48);
    box-shadow: 0 0 0 3px rgba(138, 90, 23, .11), inset 0 1px 0 rgba(255, 255, 255, .88);
}

:root[data-theme="light-gold"] .collectible-redeem-result {
    color: #6f2634;
    border-color: rgba(156, 48, 69, .28);
    background: rgba(156, 48, 69, .075);
}

:root[data-theme="light-gold"] .collectible-redeem-result.is-success {
    color: #185f37;
    border-color: rgba(23, 107, 58, .28);
    background: rgba(23, 107, 58, .075);
}

:root[data-theme="light-gold"] .collectible-redeem-result > span {
    color: currentColor;
    background: rgba(255, 255, 255, .58);
}

/* Intentionally inverse components in Light Gold: preserve guaranteed contrast. */
:root[data-theme="light-gold"] :is(
    .home-hero,
    .nickname-story,
    .collectible-card-visual,
    .collectible-detail-stage,
    .ti-card-reveal,
    .dashboard-collectibles-link,
    .media-lightbox,
    .ti-media-lightbox
) {
    color-scheme: dark;
}

@media (max-width: 760px) {
    :root[data-theme="light-gold"] .collectible-detail-copy-premium {
        padding-top: 6px;
    }
}

/* Stage D – TERRA FACES Light Gold */
:root[data-theme="light-gold"] .collectibles-section-switch {
    border-color: rgba(133, 88, 22, .20);
    background: rgba(255, 253, 248, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

:root[data-theme="light-gold"] .collectibles-section-switch a {
    color: #6f6255;
}

:root[data-theme="light-gold"] .collectibles-section-switch a.is-active,
:root[data-theme="light-gold"] .collectibles-section-switch a:hover {
    color: #21170a;
    border-color: #9b681d;
    background: linear-gradient(135deg, #f3e3b4, #d4ae5e 52%, #b67d2b);
}

:root[data-theme="light-gold"] :is(
    .digital-faces-stat-card,
    .digital-faces-season-card,
    .digital-faces-how-grid article,
    .digital-faces-preview-empty
) {
    border-color: rgba(133, 88, 22, .18);
    background: linear-gradient(145deg, rgba(255, 254, 250, .94), rgba(245, 236, 222, .88));
    box-shadow: 0 18px 42px rgba(69, 47, 24, .09), inset 0 1px 0 rgba(255, 255, 255, .84);
}

:root[data-theme="light-gold"] .digital-faces-stat-card.is-accent {
    border-color: rgba(133, 88, 22, .30);
    background: linear-gradient(145deg, rgba(246, 227, 181, .72), rgba(255, 252, 244, .96));
}

:root[data-theme="light-gold"] :is(
    .digital-faces-stat-card strong,
    .digital-faces-season-head h3,
    .digital-faces-preview-copy strong,
    .digital-faces-how-grid h3,
    .digital-faces-season-meta strong
) {
    color: #2a2119;
}

:root[data-theme="light-gold"] :is(
    .digital-faces-stat-card span,
    .digital-faces-season-kicker,
    .digital-faces-season-meta span,
    .digital-faces-preview-copy small,
    .digital-faces-season-note,
    .digital-faces-how-grid p
) {
    color: #6f6255;
}

:root[data-theme="light-gold"] .digital-faces-stat-card small,
:root[data-theme="light-gold"] .digital-faces-season-meta small {
    color: #756553;
}

:root[data-theme="light-gold"] .digital-faces-season-badge {
    background: rgba(133, 88, 22, .09);
    color: #69400d;
}

:root[data-theme="light-gold"] .digital-faces-season-badge.is-complete {
    background: rgba(33, 133, 82, .10);
    color: #276a48;
}

:root[data-theme="light-gold"] .digital-faces-progress {
    background: rgba(84, 57, 28, .11);
}

:root[data-theme="light-gold"] .digital-faces-preview-visual {
    border-color: rgba(133, 88, 22, .22);
    background: linear-gradient(180deg, rgba(236, 225, 208, .96), rgba(216, 197, 168, .94));
    box-shadow: 0 12px 30px rgba(69, 47, 24, .10);
}

/* ========================================================================== */
/* STAGE 5 — final Light Gold surface audit.                                   */
/*                                                                            */
/* A few late modules still use their historical variable names. Mapping      */
/* those aliases only inside Light Gold keeps Dark Gold byte-for-byte visual   */
/* behaviour while preventing transparent cards and invalid declarations.      */
/* ========================================================================== */

:root[data-theme="light-gold"] {
    --color-surface-soft: var(--workspace-surface-panel);
    --surface: var(--color-surface);
    --border: var(--color-border);
    --text-primary: var(--color-text-primary);
    --text: var(--color-text-primary);
    --text-muted: var(--color-text-secondary);
    --accent: var(--color-accent);
    --accent-strong: var(--color-accent-strong);

    --card-bg: var(--background-card);
    --border-color: var(--admin-border);
    --text-color: var(--color-text-primary);
    --gold: var(--admin-text-heading);
    --admin-surface-sticky: var(--admin-surface-topbar);
}

/* Account profile — the old undefined surface token made these cards clear. */
:root[data-theme="light-gold"] .account-profile-card {
    border-color: rgba(133, 88, 22, .26);
    background:
        radial-gradient(circle at 92% 0%, rgba(201, 155, 67, .13), transparent 27rem),
        linear-gradient(150deg, rgba(255, 254, 251, .995), rgba(246, 238, 225, .985));
    box-shadow: 0 24px 66px rgba(69, 47, 24, .115), inset 0 1px 0 rgba(255, 255, 255, .9);
}

:root[data-theme="light-gold"] .account-data-card {
    border-color: var(--workspace-border-soft);
    background: linear-gradient(145deg, rgba(255, 254, 250, .94), rgba(244, 234, 218, .8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}

:root[data-theme="light-gold"] .account-data-card strong,
:root[data-theme="light-gold"] .account-history-row strong {
    color: var(--color-text-primary);
}

:root[data-theme="light-gold"] .account-nickname-editor {
    border-color: var(--workspace-border);
    background: rgba(255, 253, 248, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

:root[data-theme="light-gold"] .account-history-row {
    border-bottom-color: var(--workspace-divider);
}

/* Application preview — Light Gold must not inherit the old dark notice. */
:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel {
    color: var(--color-text-primary);
    border-color: rgba(133, 88, 22, .32);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .9), transparent 17rem),
        radial-gradient(circle at 92% 16%, rgba(201, 155, 67, .16), transparent 22rem),
        linear-gradient(145deg, rgba(255, 254, 250, .995), rgba(239, 228, 211, .985));
    box-shadow: 0 22px 60px rgba(69, 47, 24, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
}

:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__status {
    color: var(--color-accent-text-strong);
    border-color: rgba(133, 88, 22, .3);
    background: rgba(176, 124, 37, .085);
}

:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel h1 {
    color: var(--color-text-primary);
}

:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel p {
    color: var(--color-text-secondary);
}

:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__actions .btn-outline {
    color: var(--color-accent-text-strong);
    border-color: var(--color-border-strong);
    background: rgba(255, 253, 248, .78);
}

:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__actions .btn-outline:hover,
:root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__actions .btn-outline:focus-visible {
    background: rgba(176, 124, 37, .1);
}

/* The participant profile itself becomes champagne paper; photos stay inverse. */
:root[data-theme="light-gold"] .participant-profile-page .ti-profile-shell {
    border-color: rgba(133, 88, 22, .3);
    box-shadow: 0 30px 82px rgba(69, 47, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .86);
}

:root[data-theme="light-gold"] .participant-profile-page :is(
    .ti-profile-badges span,
    .ti-profile-social-list a,
    .ti-profile-community,
    .ti-profile-empty-media
) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

:root[data-theme="light-gold"] .participant-profile-page .ti-profile-quote {
    background: linear-gradient(135deg, rgba(201, 155, 67, .14), rgba(255, 255, 255, .62));
}

/* TERRA FACES — replace whole background stacks, not only background-color. */
:root[data-theme="light-gold"] :is(
    .digital-faces-showcase,
    .digital-faces-season-switcher,
    .digital-faces-opener,
    .digital-faces-raffle,
    .digital-faces-library
) {
    color: var(--color-text-primary);
    border-color: rgba(133, 88, 22, .22);
    background:
        radial-gradient(circle at 88% 8%, rgba(201, 155, 67, .15), transparent 31%),
        linear-gradient(145deg, rgba(255, 254, 250, .995), rgba(242, 231, 214, .985));
    box-shadow: 0 24px 62px rgba(69, 47, 24, .105), inset 0 1px 0 rgba(255, 255, 255, .86);
}

:root[data-theme="light-gold"] .digital-faces-showcase::before {
    opacity: .42;
    background-image:
        linear-gradient(rgba(105, 72, 34, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 72, 34, .035) 1px, transparent 1px);
}

:root[data-theme="light-gold"] :is(
    .digital-faces-showcase__head h2,
    .digital-faces-season-switcher__head h2,
    .digital-faces-opener__copy h2,
    .digital-faces-raffle__copy h2,
    .digital-faces-opener__progress strong,
    .digital-faces-showcase__empty strong,
    .digital-faces-library-empty-v2 h3
) {
    color: var(--color-text-primary);
}

:root[data-theme="light-gold"] .digital-faces-showcase__counter,
:root[data-theme="light-gold"] .digital-faces-season-tab,
:root[data-theme="light-gold"] .digital-faces-library-empty-v2 {
    border-color: rgba(133, 88, 22, .17);
    background: rgba(255, 253, 248, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

:root[data-theme="light-gold"] .digital-faces-season-tab:hover,
:root[data-theme="light-gold"] .digital-faces-season-tab.is-selected {
    border-color: rgba(133, 88, 22, .38);
    background: rgba(176, 124, 37, .11);
}

:root[data-theme="light-gold"] .digital-faces-raffle--completed {
    border-color: rgba(133, 88, 22, .36);
    background:
        radial-gradient(circle at 90% 0%, rgba(201, 155, 67, .2), transparent 34%),
        linear-gradient(145deg, rgba(251, 239, 205, .88), rgba(255, 253, 248, .98));
}

:root[data-theme="light-gold"] .digital-faces-raffle__tickets {
    border-left-color: rgba(133, 88, 22, .18);
}

:root[data-theme="light-gold"] .digital-faces-raffle__result.is-winner {
    color: var(--color-success) !important;
}

/* Artwork, mystery card, ticket overlays and TERRA PACK remain dark islands. */
:root[data-theme="light-gold"] :is(
    .digital-faces-fan__card,
    .digital-faces-mystery-card,
    .digital-face-slot.is-owned .digital-face-slot__visual,
    .digital-face-ticket,
    .digital-face-vision,
    .digital-open-dialog
) {
    color-scheme: dark;
}

/* Administrative collectibles — map legacy components to the admin system. */
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-admin-nav a {
    color: var(--color-text-secondary);
    border-color: var(--admin-border-soft);
    background: var(--admin-surface-panel);
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-admin-nav a:hover,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-admin-nav a:focus-visible {
    color: var(--admin-text-link);
    border-color: var(--admin-border-strong);
    background: var(--admin-surface-accent);
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-admin-nav a.is-active {
    color: var(--admin-text-on-gold);
    border-color: var(--admin-border-strong);
    background: var(--gradient-button-primary);
    box-shadow: var(--shadow-button-primary);
}

:root[data-theme="light-gold"] .admin-collectibles-page :is(
    .collectible-mini-list > a,
    .collectible-set-list > div,
    .collectible-set-list > a,
    .collectible-switch,
    .collectible-language-columns fieldset,
    .collectible-preview-numbers span,
    .collectible-micro-stats span,
    .collectible-backfill-meta div,
    .collectible-code-meta > div,
    .collectible-code-unavailable
) {
    color: var(--color-text-primary);
    border-color: var(--admin-border-soft);
    background: var(--admin-surface-panel);
}

:root[data-theme="light-gold"] .admin-collectibles-page :is(
    .collectible-mini-list > a,
    .collectible-set-list > a
):hover {
    border-color: var(--admin-border-strong);
    background: var(--admin-surface-row-hover);
}

:root[data-theme="light-gold"] .admin-collectibles-page :is(
    .collectible-upload,
    .collectible-repeat-row,
    .collectible-story-quill
) {
    color: var(--color-text-primary);
    border-color: var(--admin-border);
    background: rgba(255, 253, 248, .78);
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-upload-empty {
    color: var(--color-text-muted);
    background: rgba(133, 88, 22, .065);
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-secret-result {
    border-color: var(--admin-border-strong);
    background:
        radial-gradient(circle at 85% 20%, rgba(201, 155, 67, .17), transparent 35%),
        var(--background-card);
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-token code {
    color: var(--admin-text-code);
    border-color: var(--admin-border);
    background: var(--admin-surface-code);
}

/* Quill ships a dark, !important toolbar in this module; Light Gold needs its */
/* own equally explicit accessible editor skin. */
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar {
    border-color: var(--admin-border) !important;
    background: linear-gradient(180deg, rgba(255, 254, 250, .99), rgba(239, 228, 211, .96)) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker-label {
    color: var(--color-text-primary) !important;
    border-color: var(--admin-border-soft) !important;
    background: rgba(255, 253, 248, .82) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button:hover,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button:focus-visible,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button.ql-active,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker-label:hover,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker-label.ql-active {
    color: var(--admin-text-link) !important;
    border-color: var(--admin-border-strong) !important;
    background: var(--admin-surface-accent-strong) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-stroke {
    stroke: var(--color-text-secondary) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-fill {
    fill: var(--color-text-secondary) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button:hover .ql-stroke,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button:focus-visible .ql-stroke,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button.ql-active .ql-stroke {
    stroke: var(--admin-text-link) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button:hover .ql-fill,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button:focus-visible .ql-fill,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar button.ql-active .ql-fill {
    fill: var(--admin-text-link) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker {
    color: var(--color-text-primary) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker-options {
    color: var(--color-text-primary) !important;
    border-color: var(--admin-border) !important;
    background: var(--color-surface) !important;
    box-shadow: var(--admin-shadow-sticky) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker-item {
    color: var(--color-text-primary) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker-item:hover,
:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-editor-toolbar .ql-picker-item.ql-selected {
    color: var(--admin-text-link) !important;
    background: var(--admin-surface-accent) !important;
}

:root[data-theme="light-gold"] .admin-collectibles-page .collectible-story-quill .ql-editor {
    color: var(--color-text-primary);
    background: rgba(255, 254, 250, .82);
}

/* Generic admin prize widgets still use the same historical alias family. */
:root[data-theme="light-gold"] .admin-page :is(
    .admin-prize-total,
    .admin-prize-stat
) {
    color: var(--color-text-primary);
}

@media (max-width: 680px) {
    :root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    :root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__actions form,
    :root[data-theme="light-gold"] .application-preview-page .ti-preview-panel__actions .btn {
        width: 100%;
    }
}
