/* WEEKLY V12.4 — Ember Everywhere
 * Cosmetic-only: no wallet, casino result, permissions, or authentication logic.
 * Loaded from the existing V12.2 global sheet; applies to all shared-layout pages.
 * Color system: charcoal / warm graphite / molten orange / parchment text.
 */
:root { color-scheme: dark; }
body.weekly-ember-v122,
body.weekly-ember-v122 :is(.w4-page,.wc,.w7-shell,.w7-shared-body,.pkn-page,.wdice,.wcrash,.wkeno,.wch,.lsix,.ws2,.royale-v3,.weekly-member-wrap,.weekly-chrome,.w21-shell) {
  --ember:#ff922d; --ember-light:#ffc17f; --ember-deep:#d95b16;
  --bg:#0a0b0d; --bg-soft:#101115; --panel:#19181a; --panel-2:#211c1a; --panel-3:#2b231e;
  --text:#faf7f3; --ink:#faf7f3; --muted:#c5b5aa; --muted-2:#a19288;
  --purple:#ff9638; --purple-2:#ffc17f; --purple-soft:#ff8a2820;
  --gold:#ffb362; --gold-deep:#cb671f; --silver:#f0ded0;
  --realm-ink:#0a0b0d; --realm-panel:#191718; --realm-glass:#1b1717;
  --realm-gold:#ffb662; --realm-glow:#ff973b; --realm-border:#72442b;
  --wc-purple:#ff9c49; --wc-gold:#ffbb7c; --wc-border:#6b4834;
  --w4-accent:#ff9e48; --violet:#ff9637; --pink:#ffb45e;
  --edge:#493228; --edgeHi:#b66b38;
  --green:#ffa055; --ww-green:#ffa055; --pkn-green:#ffa055; --l6h-green:#ffaf5b;
  --pkn-lime:#ffc68a;
  accent-color:#ff8e2e;
}
body.weekly-ember-v122 { background:#090b0e!important; color:#f9f5f1!important; }
body.weekly-ember-v122 .site-ambient { opacity:.07!important; filter:hue-rotate(-35deg) saturate(.65); }
body.weekly-ember-v122 ::selection { background:#a94a17!important; color:#fff!important; }
body.weekly-ember-v122 :is(.site-header,.wl-sidebar,.mobile-bottom-nav,.mobile-menu-panel,.weekly-account-panel,.nav-dropdown-panel) { border-color:#4e3427!important; }
body.weekly-ember-v122 :is(.weekly-account-panel,.mobile-bottom-nav,.mobile-menu-panel,.nav-dropdown-panel) {
  background:#171518!important; color:#f6eae1!important; box-shadow:0 18px 44px #0008!important;
}
body.weekly-ember-v122 :is(.weekly-account-panel a,.mobile-menu-panel a,.nav-dropdown-panel a):hover {
  color:#ffbe7a!important; background:#38251d!important;
}
body.weekly-ember-v122 :is(.site-header,.wl-sidebar) { box-shadow:none!important; }
body.weekly-ember-v122 :is(.w4-global-coins,.wl-wallet-chip,.weekly-coin-chip) {
  background:#271b17!important; border:1px solid #8b4c27!important; color:#ffbc79!important; box-shadow:none!important;
}
body.weekly-ember-v122 :is(.header-admin,.header-news,.header-search,.weekly-account-trigger,.weekly-header-login) {
  background:#242023!important; border-color:#68452f!important; color:#f6e8dc!important;
}
body.weekly-ember-v122 :is(.header-join,.weekly-header-signup,.wl-sidebar-promo a) {
  background:linear-gradient(115deg,#ffb04c,#fa761d)!important; border:1px solid #ffc17a!important;
  color:#21150e!important; box-shadow:0 6px 22px #fb782327!important;
}
body.weekly-ember-v122 :is(.wl-side-links a.is-current,.wl-side-links a[aria-current="page"]) {
  background:linear-gradient(100deg,#4d2817,#22191a)!important; border-color:#c66d30!important; color:#ffc18a!important;
}
body.weekly-ember-v122 :is(.site-footer,.footer-main,.footer-bottom) { background-color:#0c0c10!important; border-color:#392d28!important; }
body.weekly-ember-v122 .site-footer a:hover { color:#ffb779!important; }
/* Decorative heroes: preserve real artwork and data, replace purple gradients only. */
body.weekly-ember-v122 :is(
 .page-hero,.giveaway-page-hero,.store-hero,.w4-rewards-hero,.w4-community-hero,.w4-vip-hero,
 .w4-identity-hero,.w4-wallet-hero,.wc-cover,.wc-demo-banner,.w7-hero,.w7-shared-card,
 .pkn-top,.wdice-header,.wcrash-hero,.wkeno-header,.wch-head,.lsix-head,.ws2-head,
 .weekly-member-panel,.weekly-auth-panel,.w4-page-heading
) {
  background:radial-gradient(ellipse at 85% 20%,#a64a2338,transparent 58%),
    linear-gradient(122deg,#181318,#271b18 68%,#402316)!important;
  border-color:#795034!important;
  box-shadow:0 14px 38px #0005,inset 0 1px 0 #ffc28a13!important;
}
body.weekly-ember-v122 :is(
 .w4-rewards-hero,.w4-community-hero,.w4-vip-hero,.w4-identity-hero,.w4-wallet-hero,
 .wc-cover,.w7-hero,.pkn-top,.wdice-header,.wcrash-hero,.wkeno-header,.wch-head,.lsix-head
) { border-top:1px solid #a65e34!important; }
body.weekly-ember-v122 :is(
 .page-hero h1,.w4-page-heading h1,.w4-community-hero h1,.w4-rewards-hero h1,
 .w4-vip-hero h1,.w4-identity-hero h1,.w4-profile h1,.wc-cover h1,.w7-hero h1,
 .pkn-heading h1,.wdice-heading h1,.wcrash-heading h1,.wkeno-header h1,.wch-head h1,.lsix-head h1,
 .ws2-head h1,.weekly-member-panel h1
) { color:#fff3e8!important; text-shadow:none!important; }
body.weekly-ember-v122 :is(
 .page-hero h1 em,.page-hero h1 span,.w4-page h1 em,.w4-page h1 span,
 .w4-community h1 em,.w4-vip h1 em,.wc-cover h1 em,.w7-hero h1 em,
 .pkn-heading h1 em,.wdice-heading h1 em,.wcrash-heading h1 em,
 .wkeno-header h1 em,.wch-head h1 em,.lsix-head h1 em
) { color:#ffa752!important; -webkit-text-fill-color:#ffa752!important; }
body.weekly-ember-v122 :is(
 .eyebrow,.w4-kicker,.wc-mini,.wc-section-heading small,.w21-kicker,.w7-kicker,
 .w4-availability,.platform-mini-label,.pkn-card-title,.wdice-card-head,
 .wcrash-panel-title,.wkeno-panel-head,.wch-label,.lsix-section-heading,.ws2-card-head
) { color:#ffb477!important; }
body.weekly-ember-v122 :is(.page-hero p,.w4-muted,.wc-privacy-note,.w7-help,.ws2-footnote,.w4-note) { color:#c8b7a9!important; }
/* Cards, account surfaces and the public showcase. */
body.weekly-ember-v122 :is(
 .giveaway-card,.event-card-large,.store-card,.staff-card,.premium-empty,.empty,
 .w4-card,.w4-community-tile,.w4-community-preview,.w4-tier,.w4-team-member,
 .w4-rank,.w4-collection,.w4-transaction,.w4-wallet-activity,.w4-wallet-actions,
 .wc-case,.wc-item,.wc-drop,.wc-dialog,.wc-detail-dialog,.wc-progress,.wc-summary,
 .w21-shell,.w21-settings,.w21-outcome,.w7-panel,.w7-badge,.w7-rank,.w7-notification,
 .weekly-member-wrap .weekly-member-panel,.weekly-auth-panel,.ws2-card,
 .w4-profile-grid>*,.w4-collectibles,.royale-v3 .dashboard-card
) {
  background:radial-gradient(ellipse at 94% 5%,#8a42171d,transparent 56%),linear-gradient(145deg,#211b1b,#151519 82%)!important;
  border-color:#5c3c2c!important; color:#f5ede7!important;
  box-shadow:0 8px 27px #0004,inset 0 1px 0 #ffdbb30a!important;
}
body.weekly-ember-v122 :is(
 .w4-card h2,.w4-card h3,.w4-tier h3,.wc-case h3,.wc-item h3,.w7-panel h2,
 .w7-badge h3,.ws2-card h2,.store-card h3,.staff-card h3
) { color:#fff0e3!important; }
body.weekly-ember-v122 :is(
 .w4-card a,.w4-community-tile a,.wc-case-copy a,.w4-team-member a,.w7-help a,
 .w4-page a:not(.w4-btn),.w7-panel a:not(.w7-button)
) { color:#ffb87b!important; }
/* Game consoles — recolor the SHELL, never the actual probability/payout indicators. */
body.weekly-ember-v122 :is(
 .pkn-controls,.pkn-machine-col,.pkn-session,.pkn-latest,.pkn-side-help,.pkn-machine,
 .wdice-controls,.wdice-stage,.wdice-history,.wdice-result,.wdice-settings,
 .wcrash-stage,.wcrash-controls,.wcrash-side,.wcrash-history,.wcrash-records-block,
 .wkeno-board-panel,.wkeno-settings-panel,.wkeno-paytable-panel,.wkeno-history-panel,
 .wch-controls,.wch-arena,.wch-record,.wch-history,.wch-session-grid,
 .lsix-board,.lsix-ticket,.lsix-machine-area,.lsix-prize-panel
) {
  background:linear-gradient(145deg,#221b1b,#111217 85%)!important;
  border-color:#795039!important; color:#f9f0e9!important;
  box-shadow:0 12px 32px #0005!important;
}
body.weekly-ember-v122 :is(
 .pkn-machine-head,.pkn-card-title,.pkn-marquee,.wdice-card-head,.wdice-ticker,
 .wcrash-ribbon,.wcrash-panel-title,.wkeno-statusbar,.wkeno-panel-head,
 .wch-ribbon,.lsix-bar,.lsix-section-heading
) { border-color:#855235!important; color:#ffba7b!important; }
body.weekly-ember-v122 :is(
 .pkn-wager-input,.wdice-wager-wrap input,.wcrash-amount input,.wkeno-wager-wrap input,
 .wch-wager input,.lsix-ticket input,.ws2-card input,.ws2-card select,
 .weekly-member-panel input,.wc-controls input,.wc-controls select
) { background:#111217!important; border-color:#755039!important; color:#fff4ec!important; }
/* Primary actions retain their existing disabled/locked, selection and gameplay safeguards. */
body.weekly-ember-v122 :is(
 .button.primary,.w4-btn:not(.w4-ghost),.wc-btn-primary,.w7-button.primary,
 .w21-btn-primary,.pkn-drop-btn,.wdice-submit,.wcrash-bet-button,
 .wkeno-play,.wch-start,.lsix-submit,.lsix-play,.ws2-primary,
 .weekly-member-panel button[type="submit"]
):not(:disabled):not([disabled]):not(.is-locked) {
  background:linear-gradient(115deg,#ffb552,#f9731c)!important;
  border:1px solid #ffca88!important; color:#28170e!important;
  box-shadow:0 9px 28px #f6782426!important;
}
body.weekly-ember-v122 :is(
 .button.ghost,.w4-ghost,.wc-btn-outline,.w7-button:not(.primary),
 .pkn-quick-row button,.wdice-quick button,.wcrash-quick button,
 .wkeno-wager-presets button,.wch-quick button,.ws2-test
) { background:#241c1b!important; border-color:#815139!important; color:#ffcf9b!important; }
body.weekly-ember-v122 :is(input,select,textarea):focus-visible,
body.weekly-ember-v122 :is(a,button,[role="button"]):focus-visible {
  outline:2px solid #ffae62!important; outline-offset:2px!important;
}
body.weekly-ember-v122 :is(.button,.w4-btn,.wc-btn,.w7-button,.pkn-drop-btn,.wdice-submit,.wcrash-bet-button,.wkeno-play,.wch-start):disabled { opacity:.48!important; box-shadow:none!important; }
/* Settings, forms, Night Market and minor sections. */
body.weekly-ember-v122 :is(.ws2,.w4-page,.wc,.w7-shell) { color:#f8eee6!important; }
body.weekly-ember-v122 :is(.ws2-head,.w4-page-heading,.wc-section-heading,.w7-shell header) { border-color:#6f462f!important; }
body.weekly-ember-v122 :is(.ws2-symbol,.w4-avatar,.w7-preview-avatar,.w4-tier-mark) { background:#3c251c!important; border-color:#bd7446!important; color:#ffc38b!important; }
body.weekly-ember-v122 :is(.w4-rank,.w4-badges,.w4-badge,.w7-badge-pinned) { border-color:#81533a!important; }
body.weekly-ember-v122 :is(.weekly-auth-form input,.weekly-member-panel input,.weekly-member-panel select) {
  background:#101115!important; color:#fff7f1!important; border-color:#79503a!important;
}
body.weekly-ember-v122 :is(.mobile-bottom-nav a.active,.mobile-bottom-nav a[aria-current="page"]) { color:#ffbb79!important; }
/* Respect genuine game color indicators, rarity, completed states, errors and warnings.
 * Do not restyle: .is-win, .is-loss, .wkeno-hit, .pkn-result-*, .wc-rarity-*.
 */
@media (max-width:850px) {
  body.weekly-ember-v122 :is(.page-hero,.w4-identity-hero,.wc-cover,.w7-hero) { border-radius:17px!important; }
  body.weekly-ember-v122 .page-shell { padding-left:14px!important; padding-right:14px!important; }
}
@media (prefers-reduced-motion:reduce) {
  body.weekly-ember-v122 :is(.w4-card,.wc-case,.w7-panel,.button) { transition:none!important; }
}
/* Consistent modern typography throughout public pages and user account. */
body.weekly-ember-v122 :is(
 .page-hero h1,.w4-page h1,.w4-page h2,.wc-cover h1,.wc-section-heading h2,
 .w7-hero h1,.w7-panel h2,.w4-identity-copy h1,.w4-page-heading h1,
 .content-section h2,.pkn-heading h1,.wdice-heading h1,.wcrash-heading h1,
 .wkeno-header h1,.wch-head h1,.lsix-head h1,.ws2-head h1
) { font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif!important;
  letter-spacing:-.045em!important; }
body.weekly-ember-v122 :is(.w4-wallet-main,.w4-avatar,.w4-profile-mascot) { border-color:#a56640!important; }
body.weekly-ember-v122 :is(.w4-status,.w4-profile .w6-featured-rank,.wc-featured-pill) {
  border-color:#a66b49!important; background:#35221c!important; color:#ffcb99!important;
}
