/* Classic intentionally has no visual overrides: it is the production baseline. */
:root {
  --theme-page-bg:var(--theme-bg);
  --theme-section-bg:var(--theme-section-gradient);
  --theme-card-bg:var(--theme-bg-card);
  --theme-card-bg-strong:var(--theme-bg-elevated);
  --theme-navbar-bg:color-mix(in srgb,var(--theme-bg) 90%,transparent);
  --theme-footer-bg:var(--theme-bg);
  --theme-surface-soft:color-mix(in srgb,var(--theme-bg-card) 85%,transparent);
  --theme-ambient:radial-gradient(circle at 75% 12%,var(--theme-glow),transparent 34%),var(--theme-section-gradient);
  --theme-divider:linear-gradient(90deg,transparent,var(--theme-border-strong),transparent);
  --theme-bg: #050608;
  --theme-bg-elevated: #101319;
  --theme-bg-card: #101319;
  --theme-text: #f5f7fb;
  --theme-text-muted: #9ba1ab;
  --theme-primary: #ff3030;
  --theme-secondary: #a70808;
  --theme-accent: #ff7272;
  --theme-border: rgba(255,255,255,.09);
  --theme-border-strong: rgba(255,48,48,.38);
  --theme-glow: rgba(255,48,48,.22);
  --theme-shadow: 0 24px 90px rgba(0,0,0,.45);
  --theme-button-bg: linear-gradient(135deg,#ff3030,#a70808);
  --theme-button-hover: 0 18px 40px rgba(255,30,30,.32);
  --theme-section-gradient: linear-gradient(180deg,#050608,#0b0d10);
}

html[data-redsky-theme="crimson-luxury"] {
  --theme-bg:#080507; --theme-bg-elevated:#1b0d12; --theme-bg-card:#190d12;
  --theme-text:#fff8f0; --theme-text-muted:#c5b6b4;
  --theme-primary:#aa2037; --theme-secondary:#58101c; --theme-accent:#e4bd78;
  --theme-border:rgba(228,189,120,.22); --theme-border-strong:rgba(228,189,120,.52);
  --theme-glow:rgba(200,66,72,.24); --theme-shadow:0 26px 90px rgba(0,0,0,.55),0 0 42px rgba(155,31,50,.12);
  --theme-button-bg:linear-gradient(135deg,#9f2137,#5a101e);
  --theme-button-hover:0 18px 42px rgba(164,39,58,.34),0 0 20px rgba(228,189,120,.12);
  --theme-section-gradient:radial-gradient(circle at 80% 0,rgba(134,33,48,.14),transparent 42%),linear-gradient(180deg,#080507,#15080d);
}
html[data-redsky-theme="naval-warfare"] {
  --theme-bg:#050a10; --theme-bg-elevated:#10202e; --theme-bg-card:#0c1925;
  --theme-text:#f0f7fc; --theme-text-muted:#afc4d1;
  --theme-primary:#267590; --theme-secondary:#174659; --theme-accent:#96d8e8;
  --theme-border:rgba(142,192,211,.2); --theme-border-strong:rgba(126,204,222,.48);
  --theme-glow:rgba(58,153,183,.24); --theme-shadow:0 26px 88px rgba(1,8,18,.58),0 0 38px rgba(50,137,164,.1);
  --theme-button-bg:linear-gradient(135deg,#287f9b,#174a61);
  --theme-button-hover:0 18px 42px rgba(34,130,159,.32),0 0 18px rgba(128,212,229,.13);
  --theme-section-gradient:radial-gradient(circle at 75% 0,rgba(42,111,151,.15),transparent 42%),linear-gradient(180deg,#050a10,#0c1b29);
}
html[data-redsky-theme="midnight-elite"] {
  --theme-bg:#060708; --theme-bg-elevated:#181c22; --theme-bg-card:#12161b;
  --theme-text:#f7f8f9; --theme-text-muted:#b7bec7;
  --theme-primary:#727d8a; --theme-secondary:#3c454f; --theme-accent:#d8e1e8;
  --theme-border:rgba(204,216,225,.18); --theme-border-strong:rgba(207,220,230,.46);
  --theme-glow:rgba(178,197,210,.16); --theme-shadow:0 26px 88px rgba(0,0,0,.62),0 0 32px rgba(190,206,219,.07);
  --theme-button-bg:linear-gradient(135deg,#5e6976,#343c47);
  --theme-button-hover:0 18px 40px rgba(107,123,136,.28),0 0 18px rgba(223,231,238,.1);
  --theme-section-gradient:radial-gradient(circle at 72% 0,rgba(116,128,143,.11),transparent 40%),linear-gradient(180deg,#060708,#12161c);
}
html[data-redsky-theme="halloween-nightfall"] {
  --theme-bg:#08080c; --theme-bg-elevated:#20151a; --theme-bg-card:#171116;
  --theme-text:#fff8f1; --theme-text-muted:#d3c1b9;
  --theme-primary:#a74720; --theme-secondary:#69241d; --theme-accent:#f4b47f;
  --theme-border:rgba(244,167,109,.22); --theme-border-strong:rgba(244,170,109,.54);
  --theme-glow:rgba(212,83,30,.26); --theme-shadow:0 27px 90px rgba(0,0,0,.6),0 0 44px rgba(153,55,27,.14);
  --theme-button-bg:linear-gradient(135deg,#a5451f,#66231d);
  --theme-button-hover:0 18px 44px rgba(177,71,29,.36),0 0 22px rgba(236,144,81,.16);
  --theme-section-gradient:radial-gradient(ellipse at 80% 4%,rgba(172,64,25,.2),transparent 42%),radial-gradient(ellipse at 8% 88%,rgba(72,32,80,.19),transparent 44%),linear-gradient(168deg,#08080c,#1b1014 60%,#0b0910);
  --theme-ambient:radial-gradient(ellipse at 82% 0,rgba(208,79,27,.2),transparent 39%),radial-gradient(ellipse at 9% 90%,rgba(79,32,86,.2),transparent 40%),linear-gradient(160deg,#0a090e,#1a1015 60%,#08080c);
  --theme-navbar-bg:rgba(13,10,14,.95); --theme-footer-bg:linear-gradient(180deg,#130d12,#07070a);
  --theme-surface-soft:rgba(39,25,29,.9);
}
html[data-redsky-theme="christmas-imperial"] {
  --theme-bg:#090b0c; --theme-bg-elevated:#1b2221; --theme-bg-card:#171d1d;
  --theme-text:#fffaf0; --theme-text-muted:#d1d2c6;
  --theme-primary:#872b39; --theme-secondary:#154b43; --theme-accent:#ebd097;
  --theme-border:rgba(221,196,142,.23); --theme-border-strong:rgba(230,204,151,.55);
  --theme-glow:rgba(184,62,69,.22); --theme-shadow:0 27px 90px rgba(0,0,0,.58),0 0 44px rgba(27,91,73,.11);
  --theme-button-bg:linear-gradient(135deg,#873042,#54202d);
  --theme-button-hover:0 18px 42px rgba(148,45,65,.32),0 0 22px rgba(230,202,145,.18);
  --theme-section-gradient:radial-gradient(ellipse at 78% 6%,rgba(188,145,80,.14),transparent 40%),radial-gradient(ellipse at 12% 76%,rgba(23,89,71,.2),transparent 43%),linear-gradient(160deg,#090b0c,#1d1218 58%,#0c1514);
  --theme-ambient:radial-gradient(ellipse at 84% 0,rgba(231,205,156,.16),transparent 36%),radial-gradient(ellipse at 9% 87%,rgba(22,101,77,.2),transparent 43%),linear-gradient(155deg,#0a0d0d,#1c1118 55%,#0c1916);
  --theme-navbar-bg:rgba(11,18,17,.95); --theme-footer-bg:linear-gradient(180deg,#121b19,#090a0b);
  --theme-surface-soft:rgba(34,42,39,.9);
}

/* Shared semantic mapping for alternate themes. No sizes, positions or content change. */
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) {
  --bg:var(--theme-bg); --bg-2:var(--theme-bg-elevated); --bg-3:var(--theme-bg-card);
  --text:var(--theme-text); --muted:var(--theme-text-muted); --line:var(--theme-border);
  --panel:var(--theme-surface-soft);--panel2:var(--theme-bg-elevated);
  --red:var(--theme-primary); --red-2:var(--theme-secondary); --shadow:var(--theme-shadow);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) body,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .section-dark,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .showcase-section,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .gallery-section,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .news-section,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .recruitment,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .final-cta,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) footer {
  background:var(--theme-section-gradient); color:var(--theme-text);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .nav-wrap {
  background:linear-gradient(180deg,var(--theme-bg) 0%,color-mix(in srgb,var(--theme-bg) 88%,transparent) 66%,transparent);
  border-bottom:1px solid var(--theme-border);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .nav-links,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .hero-text,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .section-copy p,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .recruitment p,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .gallery-lead,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .news-lead,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .footer-inner,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #achievements .achievements-lead,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #thanks .thanks-lead {
  color:var(--theme-text-muted);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .eyebrow,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .section-kicker,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .feature-card>span,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .contact-role,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .gallery-overlay>span,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo-kicker,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .battle-pass-kicker {
  color:var(--theme-accent);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .hero {
  background:var(--theme-bg);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .hero-overlay {
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-bg) 70%,transparent),color-mix(in srgb,var(--theme-bg) 84%,transparent) 60%,var(--theme-bg)),radial-gradient(circle at 72% 42%,var(--theme-glow),transparent 28%);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .glow-a,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .glow-b {background:var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .hero h1 span {
  background:linear-gradient(95deg,#fff 8%,var(--theme-accent) 55%,var(--theme-primary));background-clip:text;-webkit-background-clip:text;color:transparent;
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .btn-primary,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo-cta {
  background:var(--theme-button-bg);border-color:var(--theme-border-strong);box-shadow:0 12px 32px var(--theme-glow);color:#fff;
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .btn-primary:hover,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo-cta:hover {box-shadow:var(--theme-button-hover)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(a,button,input,select,textarea):focus-visible {outline:2px solid var(--theme-accent);outline-offset:3px}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.icon-btn,.nav-cta,.footer-social a,.social-strip a,.requirement-row span,.showcase-tags span,.season-rewards-promo-meta span) {
  border-color:var(--theme-border);color:var(--theme-text);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.visual-frame,.hero-sigil-card,.floating-card,.feature-card,.value-list div,.showcase-copy,.media-card,.contact-card,.gallery-card,.news-card,.achievement-card,.elite-public-card,.elite-rank-section,.promotion-celebration,.twitch-picker-panel,.redsky-gallery-browser-shell) {
  border-color:var(--theme-border);background-color:var(--theme-bg-card);box-shadow:var(--theme-shadow);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.feature-card,.media-card,.contact-card,.news-card,.achievement-card,.elite-public-card,.community-command-card):hover {border-color:var(--theme-border-strong)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .level-badge {border-color:var(--theme-border-strong);background:radial-gradient(circle,var(--theme-glow),transparent 75%)}

/* Dedicated cinematic sections retain their existing art/layout, with palette-aware atmosphere. */
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .battle-pass-section,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #events.events-section,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .giveaway-section,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #achievements.achievements-section,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .redsky-community-command,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .promotion-celebrations-section {
  background:var(--theme-section-gradient);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo-card,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .battle-pass-shell,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .giveaway-feature,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .events-showcase,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .community-network-panel {
  border-color:var(--theme-border-strong);background:linear-gradient(135deg,var(--theme-bg-card),var(--theme-bg) 85%);box-shadow:var(--theme-shadow),0 0 52px var(--theme-glow);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo h2 span,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo-meta strong,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .battle-pass-current-season,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .events-overline {
  color:var(--theme-accent);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .season-rewards-promo h2 span {text-shadow:0 0 30px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .battle-pass-head h2 span {
  background:linear-gradient(180deg,#fff,var(--theme-accent),var(--theme-primary));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .battle-pass-shell::after {background:linear-gradient(90deg,transparent,var(--theme-accent),transparent);box-shadow:0 0 24px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.redsky-gallery-browser,.redsky-gallery-lightbox,.twitch-picker-modal) {background-color:color-mix(in srgb,var(--theme-bg) 96%,transparent)}

/* Events retains its warship scene while its UI chrome follows the active palette. */
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #events.events-section {--event-red:var(--theme-primary);--event-red-hot:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .events-hero h2 em {background:linear-gradient(102deg,#fff 3%,var(--theme-accent) 45%,var(--theme-primary) 92%);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:0 18px 60px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.events-mark-kicker,.event-feature-label,.event-date-box span,.events-list-heading>div>span,.events-empty-kicker) {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .event-card,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .event-card.featured-event,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .events-empty {
  border-color:var(--theme-border);background:radial-gradient(circle at 84% 20%,var(--theme-glow),transparent 35%),linear-gradient(125deg,var(--theme-bg-card),var(--theme-bg) 72%);box-shadow:var(--theme-shadow);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.event-date-box,.event-type,.events-hero-mark) {border-color:var(--theme-border-strong);background:radial-gradient(circle at 50% 30%,var(--theme-glow),transparent 62%),var(--theme-bg-card)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .event-type {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .event-cta {border-color:var(--theme-border-strong);background:var(--theme-button-bg);box-shadow:0 12px 32px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .event-cta:hover {box-shadow:var(--theme-button-hover)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #gallery.gallery-section {background:var(--theme-section-gradient)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(#about.about-cinematic,#elite.elite-section,#contact,#thanks.thanks-section,#media.media-scene) {
  background:var(--theme-section-gradient);color:var(--theme-text);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.about-values-grid>*,.elite-summary-card,.elite-player-card,.thanks-card,#media .media-card,.contact-card) {
  border-color:var(--theme-border);background-color:var(--theme-bg-card);box-shadow:var(--theme-shadow);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #about.about-cinematic {--about-red:var(--theme-primary)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #about :is(.about-kicker,.about-hud-top strong,.about-hud-bottom span:nth-child(2),.about-values-grid strong) {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #about .about-intro h2 span {background:linear-gradient(100deg,#fff 2%,var(--theme-accent) 48%,var(--theme-primary) 100%);background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 8px 30px var(--theme-glow))}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #about .about-story {border-color:var(--theme-border-strong)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #about .about-kicker::before {background:linear-gradient(90deg,var(--theme-accent),transparent);box-shadow:0 0 12px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) #about .about-status i {background:var(--theme-accent);box-shadow:0 0 13px var(--theme-glow)}

/* Artwork itself is never replaced or changed; only the atmospheric scene tint varies. */
html[data-redsky-theme="naval-warfare"] .events-warship {filter:hue-rotate(205deg) saturate(.58) drop-shadow(0 20px 38px var(--theme-glow))}
html[data-redsky-theme="naval-warfare"] .events-atmosphere::before {filter:hue-rotate(205deg) blur(30px) saturate(.75)}
html[data-redsky-theme="midnight-elite"] .events-warship {filter:saturate(.32) drop-shadow(0 20px 38px var(--theme-glow))}
html[data-redsky-theme="midnight-elite"] .events-atmosphere::before {filter:saturate(.3) blur(30px)}

/* Public-wide chrome. These are visual surfaces only; image/rank/platform data
   and all section geometry stay owned by their original stylesheets. */
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.community-status-strip,.about-cinematic,.showcase-section,.redsky-community-command,.elite-section,.promotion-celebrations-section,.battle-pass-section,.giveaway-section,.events-section,.achievements-section,.news-section,.gallery-section,.recruitment,.tournament-callout,.redsky-match-section,.database-section,.tournament-tools-teaser-v11,.challenge-section,.application-section,.support-section,.partner-section,.rules-section,.faq-section,.thanks-section,.media-scene,.final-cta) {
  background:var(--theme-ambient);color:var(--theme-text);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.nav-wrap,.topbar,.legal-nav) {background:var(--theme-navbar-bg);border-color:var(--theme-border);color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(footer,.legal-footer) {background:var(--theme-footer-bg);border-color:var(--theme-border);color:var(--theme-text-muted)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.section-title,.section-heading,.hero h1,.legal-hero h1,.topbar h1,.tool-head h2) {color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.section-kicker,.eyebrow,.news-meta,.giveaway-eyebrow,.battle-pass-kicker,.season-rewards-promo-kicker,.events-overline,.tournament-badge,.challenge-status) {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.section-lead,.tool-desc,.legal-hero p,.legal-card p,.legal-card li,.recruitment p,.application-lead,.challenge-lead,.support-lead,.rules-lead,.news-lead,.gallery-lead,.thanks-lead,.events-empty p,.giveaway-content>p) {color:var(--theme-text-muted)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .gallery-preview-state {background:linear-gradient(150deg,var(--theme-surface-soft),var(--theme-bg-card));border-color:var(--theme-border-strong);box-shadow:var(--theme-shadow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .gallery-preview-state>span {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.community-status-strip,.status-strip-card,.recruitment-box,.tournament-box,.application-form,.challenge-form,.challenge-review,.support-card,.database-card,.partner-box,.rules-card,.faq-item,.news-card,.achievement-card,.thanks-card,.contact-card,.media-card,.showcase-copy,.showcase-frame,.giveaway-shell,.giveaway-feature,.events-hero-mark,.event-card,.events-empty,.elite-rank-section,.elite-public-card,.community-network-panel,.season-rewards-promo-card,.battle-pass-shell,.legal-card,.tool-card,.why-section) {
  border-color:var(--theme-border);box-shadow:var(--theme-shadow);
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.status-strip-card,.recruitment-box,.tournament-box,.application-form,.challenge-form,.challenge-review,.support-card,.database-card,.partner-box,.rules-card,.faq-item,.news-card,.achievement-card,.thanks-card,.contact-card,.media-card,.showcase-copy,.showcase-frame,.giveaway-shell,.giveaway-feature,.events-hero-mark,.event-card,.events-empty,.elite-rank-section,.elite-public-card,.community-network-panel,.legal-card,.tool-card,.why-section) {
  background:linear-gradient(150deg,var(--theme-surface-soft),var(--theme-bg-card) 64%,var(--theme-bg));
}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.season-rewards-promo-card,.battle-pass-shell) {background:var(--theme-ambient);border-color:var(--theme-border-strong)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.nav-cta,.btn-secondary,.secondary,.back,.icon-btn,.footer-social a,.social-strip a,.gallery-view,.faq-item summary,.status-strip-card,.events-hero-mark,.giveaway-live-badge) {border-color:var(--theme-border-strong);color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.btn-primary,.primary,.wide-action,.input-row button,.event-cta,.giveaway-enter-btn,.database-action,.challenge-submit,.tournament-action,.season-rewards-promo-cta) {background:var(--theme-button-bg);border-color:var(--theme-border-strong);box-shadow:0 12px 34px var(--theme-glow);color:#fff}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.btn-primary,.primary,.wide-action,.event-cta,.giveaway-enter-btn,.database-action,.challenge-submit):hover {box-shadow:var(--theme-button-hover)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.brand-mark,.news-status-dot,.events-empty-status i) {background:var(--theme-accent);box-shadow:0 0 19px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.visual-topline strong,.stats strong,.status-pill strong,.recruitment-stat strong,.level-badge strong) {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .faq-item summary::after {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .visual-frame::before,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .hero-sigil-card::before {background:radial-gradient(circle at 50% 34%,var(--theme-glow),transparent 48%)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.nav-cta,.btn-ghost,.icon-btn,.footer-social a,.social-strip a,.gallery-view,.faq-item summary) {background-color:var(--theme-surface-soft)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.feature-card>span,.contact-role,.news-meta,.recruitment-side strong,.event-type,.events-mark-kicker,.event-feature-label,.giveaway-eyebrow,.season-rewards-promo-meta strong,.battle-pass-current-season,.tournament-copy .eyebrow) {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.status-strip-card,.achievement-card,.news-card,.giveaway-meta>div,.event-date-box,.battle-pass-winner-badge,.season-rewards-promo-meta span,.faq-item,.tool-number,.badge,.updated,.callout) {border-color:var(--theme-border-strong)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.level-badge,.tournament-badge,.giveaway-live-badge,.battle-pass-winner-badge,.event-type,.badge,.tool-number,.callout) {background:radial-gradient(circle at 50% 0,var(--theme-glow),transparent 80%),var(--theme-surface-soft)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.section-divider,.decorative-line,.event-feature-rail,.event-meta-row,.giveaway-visual-caption,.gallery-browser-head,.legal-footer) {border-color:var(--theme-border)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {background-color:var(--theme-bg-elevated);border-color:var(--theme-border-strong);color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(input,textarea,select):focus-visible {outline:2px solid var(--theme-accent);outline-offset:2px}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.redsky-gallery-browser,.redsky-gallery-lightbox,.twitch-picker,.lightbox,.modal,.dialog) {background-color:color-mix(in srgb,var(--theme-bg) 96%,transparent);color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.twitch-picker-panel,.lightbox-panel,.twitch-picker-close,.lightbox-close) {background:var(--theme-bg-card);border-color:var(--theme-border-strong);color:var(--theme-text);box-shadow:var(--theme-shadow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.twitch-picker-head span,.twitch-picker-head h2,.lightbox-caption) {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.redsky-gallery-browser-shell,.redsky-gallery-album,.redsky-gallery-full-card,.redsky-gallery-icon-button,.redsky-gallery-lightbox-nav) {border-color:var(--theme-border-strong);background-color:var(--theme-bg-card);color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.giveaway-visual,.giveaway-promo-frame,.giveaway-emblem) {border-color:var(--theme-border-strong);background:radial-gradient(circle at 48% 38%,var(--theme-glow),transparent 58%),linear-gradient(140deg,var(--theme-bg-elevated),var(--theme-bg) 76%)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.giveaway-glow,.hero-glow) {background:var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .event-card::before,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .giveaway-visual::before {background:linear-gradient(110deg,var(--theme-glow),transparent 36% 72%,var(--theme-glow))}

/* The ceremony keeps medal tiers (gold/silver/bronze), while its surrounding
   glass, headings and supporting chrome belong to the site-wide theme. */
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .battle-pass-card {background:radial-gradient(circle at 50% 0,rgba(var(--tier-rgb),.15),transparent 42%),linear-gradient(160deg,var(--theme-bg-elevated),var(--theme-bg-card) 45%,var(--theme-bg));box-shadow:var(--theme-shadow),0 0 45px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .promotion-celebration {background:radial-gradient(circle at 50% 0,rgba(var(--accent-rgb),.14),transparent 44%),var(--theme-bg-card);box-shadow:var(--theme-shadow),0 0 44px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .promotion-member {background:linear-gradient(150deg,var(--theme-surface-soft),var(--theme-bg-card));border-color:var(--theme-border-strong)}

/* Standalone tournament and legal pages share the same tokens. The specific
   selectors avoid changing their layout or domain-specific status colors. */
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) body:has(.legal-wrap) {background:var(--theme-ambient)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.legal-top,.legal-nav,.topbar) {background:var(--theme-navbar-bg);border-color:var(--theme-border)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.legal-card,.tool-card,.detected-time-card>div,.timezone-info>div,.conversion-result,.timestamp-row,.user-result,.why-section,.toast) {background:linear-gradient(150deg,var(--theme-bg-elevated),var(--theme-bg-card) 65%,var(--theme-bg));border-color:var(--theme-border);box-shadow:var(--theme-shadow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.legal-card h2,.legal-card h3,.tool-card h2,.why-section h2,.topbar .brand) {color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.legal-card p,.legal-card li,.tool-desc,.why-section p,.lead) {color:var(--theme-text-muted)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.legal-card .callout,.tool-number,.badge:not(.green)) {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.topbar nav a.active,.topbar nav a:hover,.back:hover,.secondary:hover) {background:var(--theme-surface-soft);color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .hero-glow {background:var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .legal-footer a {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .legal-hero .eyebrow {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .legal-top a {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .legal-wrap section {border-top:1px solid var(--theme-border);background:linear-gradient(90deg,var(--theme-glow),transparent 68%)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .legal-wrap section h2 {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .legal-intro {color:var(--theme-text-muted)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .language-button {border-color:var(--theme-border-strong);background-color:var(--theme-surface-soft);color:var(--theme-text)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .mw-tournament-channel-card-v122 {border-color:var(--theme-border-strong);background:var(--theme-ambient);box-shadow:var(--theme-shadow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .mw-channel-kicker-v122 {color:var(--theme-accent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .mw-channel-button-v122 {background:var(--theme-button-bg);border-color:var(--theme-border-strong);box-shadow:0 12px 32px var(--theme-glow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .redsky-visual-command::before,
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) .redsky-community-command::after {background:radial-gradient(circle at 25% 45%,var(--theme-glow),transparent 45%)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.visual-command-light-sweep,.community-light-beam) {background:linear-gradient(90deg,transparent,var(--theme-glow),transparent)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.visual-command-radar,.community-orbit,.community-network-core,.community-node i) {border-color:var(--theme-border-strong)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.community-command-card,.redsky-match-card,.match-info-card,.match-panel,.tournament-tools-teaser-v11,.tournament-countdown-v10) {border-color:var(--theme-border);background:linear-gradient(150deg,var(--theme-surface-soft),var(--theme-bg-card) 65%,var(--theme-bg));box-shadow:var(--theme-shadow)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.community-command-tags span,.community-card-top>span,.showcase-tags span,.ban-tags span,.match-map-grid b,.redsky-match-head .match-vs) {color:var(--theme-accent);border-color:var(--theme-border-strong)}
html[data-redsky-theme]:not([data-redsky-theme="redsky-classic"]) :is(.community-command-copy h2 span,.redsky-visual-command .showcase-copy h2 span) {color:var(--theme-accent);text-shadow:0 0 28px var(--theme-glow)}

/* Seasonal identity uses the same global component map: atmospheric light and
   surface finish are CSS-only, with no new artwork, layout or animation work. */
html[data-redsky-theme="halloween-nightfall"] .hero-overlay {
  background:linear-gradient(90deg,rgba(8,8,12,.9),rgba(8,8,12,.47) 58%,rgba(18,9,13,.68)),radial-gradient(ellipse at 75% 49%,rgba(197,76,28,.3),transparent 38%),radial-gradient(ellipse at 18% 90%,rgba(81,35,88,.22),transparent 46%),radial-gradient(circle at 71% 23%,rgba(255,152,81,.42) 0 1px,transparent 2px),radial-gradient(circle at 18% 72%,rgba(230,96,55,.32) 0 1px,transparent 2px);
}
html[data-redsky-theme="christmas-imperial"] .hero-overlay {
  background:linear-gradient(90deg,rgba(9,11,12,.88),rgba(9,11,12,.49) 60%,rgba(12,22,19,.67)),radial-gradient(ellipse at 75% 42%,rgba(210,165,97,.2),transparent 38%),radial-gradient(ellipse at 12% 87%,rgba(28,111,83,.21),transparent 44%),radial-gradient(circle at 75% 21%,rgba(255,248,220,.36) 0 1px,transparent 2px),radial-gradient(circle at 21% 68%,rgba(221,241,229,.29) 0 1px,transparent 2px);
}
html[data-redsky-theme="halloween-nightfall"] :is(.season-rewards-promo-card,.giveaway-feature,.events-showcase,.community-network-panel,.legal-card,.tool-card) {
  background:radial-gradient(ellipse at 88% 4%,rgba(195,75,29,.16),transparent 47%),radial-gradient(ellipse at 4% 92%,rgba(77,32,82,.13),transparent 42%),linear-gradient(155deg,#24161b,#130f15 67%,#0b0a0e);
  box-shadow:inset 0 1px 0 rgba(255,204,157,.08),var(--theme-shadow),0 0 40px rgba(165,62,28,.09);
}
html[data-redsky-theme="christmas-imperial"] :is(.season-rewards-promo-card,.giveaway-feature,.events-showcase,.community-network-panel,.legal-card,.tool-card) {
  background:radial-gradient(ellipse at 88% 2%,rgba(222,190,133,.12),transparent 44%),radial-gradient(ellipse at 6% 95%,rgba(29,99,77,.17),transparent 43%),linear-gradient(155deg,#2a1b21,#131b1a 66%,#0b0e0f);
  box-shadow:inset 0 1px 0 rgba(255,239,205,.11),var(--theme-shadow),0 0 40px rgba(38,105,82,.08);
}
html[data-redsky-theme="halloween-nightfall"] #events.events-section::after {
  background-image:radial-gradient(circle at 18% 22%,rgba(255,163,86,.82) 0 1px,transparent 1.8px),radial-gradient(circle at 73% 38%,rgba(230,82,53,.66) 0 1px,transparent 1.8px),radial-gradient(circle at 41% 81%,rgba(166,94,145,.55) 0 1px,transparent 1.7px);
}
html[data-redsky-theme="christmas-imperial"] #events.events-section::after {
  background-image:radial-gradient(circle at 18% 22%,rgba(243,223,174,.8) 0 1px,transparent 1.8px),radial-gradient(circle at 73% 38%,rgba(210,231,223,.68) 0 1px,transparent 1.8px),radial-gradient(circle at 41% 81%,rgba(133,190,163,.5) 0 1px,transparent 1.7px);
}
html[data-redsky-theme="christmas-imperial"] .events-atmosphere::before {
  background:radial-gradient(ellipse at 17% 24%,rgba(186,150,94,.16),transparent 50%),radial-gradient(ellipse at 82% 17%,rgba(102,155,130,.16),transparent 54%),radial-gradient(ellipse at 61% 65%,rgba(161,50,65,.16),transparent 55%);
}

/* Content-owned rank tiers, reward images and platform logos remain untouched. */
@media(prefers-reduced-motion:reduce){html[data-redsky-theme] *{scroll-behavior:auto}}

/* Visible only in an authenticated Admin's private preview tab. */
.redsky-theme-preview-bar{position:fixed;z-index:99999;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;width:min(94vw,900px);padding:12px 14px;border:1px solid var(--theme-border-strong);border-radius:16px;background:rgba(9,12,17,.96);box-shadow:0 22px 55px rgba(0,0,0,.55);color:#f7f8fb;font:700 .76rem Inter,system-ui,sans-serif;backdrop-filter:blur(18px)}
.redsky-theme-preview-bar span:first-child{color:var(--theme-accent);font-weight:900;letter-spacing:.08em}.redsky-theme-preview-bar span:nth-child(2){margin-right:auto;color:#c2cad4}
.redsky-theme-preview-bar button{flex:none;padding:9px 12px;border:1px solid var(--theme-border-strong);border-radius:9px;background:var(--theme-button-bg);color:#fff;cursor:pointer;font-weight:800}
.redsky-theme-preview-bar button.is-cancel{background:transparent}.redsky-theme-preview-bar button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}.redsky-theme-preview-bar button:disabled{opacity:.5;cursor:wait}
@media(max-width:700px){.redsky-theme-preview-bar{flex-wrap:wrap;bottom:8px}.redsky-theme-preview-bar span:nth-child(2){width:100%;margin:0}.redsky-theme-preview-bar button{flex:1}}
