/* Optional player theme. Room outcomes and financial status indicators keep their semantic colors. */
body[data-home-theme="azure"] {
  color-scheme: dark;
  --app-bg: #031027;
  --app-page-bg: #031027 url("./assets/azure-tide.png") center bottom / 100% 100% no-repeat;
  --app-surface: #092242;
  --app-surface-2: #103458;
  --app-surface-muted: #15395a;
  --app-text: #edf7ff;
  --app-text-secondary: #bed5ec;
  --app-text-muted: #9dbad4;
  --app-border: #355b80;
  --app-accent: #71d9ff;
  --app-header-bg: #061a36;
  --app-header-text: #f2f8ff;
  --app-header-subtitle: #c3d7ea;
  --app-footer-bg: #061c39;
  --app-footer-border: #519ad0;
  --app-footer-text: #c1d9ee;
  --app-footer-active: #82eaff;
  --app-profile-bg: linear-gradient(145deg,#164571,#061936);
  --app-card-border: #4988b1;
  --app-shadow: #000b20a8;
  --app-btn-outline-bg: #103457;
  --app-btn-outline-border: #5695bd;
  --app-btn-outline-text: #e1f7ff;
  --app-press-bg: #17476f;
  --app-filter-active-bg: linear-gradient(#1986c5,#114776);
  --azure-gold: #ffdd88;
  --azure-glass: radial-gradient(ellipse at 13% 0%,#257ac064,transparent 50%),
    radial-gradient(ellipse at 86% 100%,#0378c34d,transparent 43%),
    linear-gradient(151deg,#10355d,#071f42 47%,#061a35);
  --app-card-bg: var(--azure-glass);
  --azure-rim: inset 0 1px 0 #a6e6ff85,inset 0 -1px 0 #33caff91,0 3px 9px #00102499;
  --azure-button: linear-gradient(170deg,#2089ca 0%,#145594 40%,#092951 90%);
}
.theme-swatch.azure {background:linear-gradient(135deg,#031536 18%,#1373bd 51%,#76e5ff 60%,#093059 71%,#f1ce77)}

/* The art is anchored once behind each scroll view so long lists don't repeat the horizon. */
body.is-home[data-home-theme="azure"],
body[data-home-theme="azure"] :is(#homeView,#localLayer,#localLayer .local-scroll,.local-game-page) {background:var(--app-page-bg);color:var(--app-text)}
body[data-home-theme="azure"] #homeView .home-content {background:transparent}
body[data-home-theme="azure"] :is(#homeView .home-header,#localLayer .local-header,#localLayer .service-header,.trend-heading,.stats-dialog header) {
  color:var(--app-text);background:linear-gradient(110deg,#03142b,#0b2c52 66%,#071b35);
  border-bottom:1px solid #497da3;box-shadow:0 2px 8px #008aed23;
}
body[data-home-theme="azure"] :is(.home-brand-copy strong,.mine-brand b,.service-header b,.activity-heading strong,.service-faq h2) {color:var(--azure-gold)}
body[data-home-theme="azure"] :is(#homeView .account-panel,.provider-card,.activity-heading,.room-grid button,.announcement,
  #localLayer .service-card,.service-faq,.local-balance,.local-quick button,.local-two button,.local-pg,.mine-list,.mine-records button,
  .amount-card,.binding,.sound-settings,.promotion-card,.notice-card,.notice-game,.points-card,.lottery-stat-grid>div,
  .bet-record-card,.recharge-history-card,.system-notice-card,.stats-dialog,.home-theme-sheet,.pg-dialog,.modal-card,.room-finance-sheet,
  .bet-sheet,.bet-confirmation,.support-extra-dialog,.points-sheet,.wallet-picker,.group-game-sheet,.promotion-qr-sheet,.room-switch-dialog,
  .room-tool-dialog .room-scratch-card,.game-library-status,.ge-card,.pm-log-card,.sign-card) {
  background:var(--azure-glass);color:var(--app-text);border:1px solid var(--app-card-border);box-shadow:var(--azure-rim);
}
body[data-home-theme="azure"] #homeView :is(.promo-banner,.account-panel,.activity-heading,.provider-card,.announcement,.room-grid button) {border-radius:clamp(9px,2.3vw,20px)}
body[data-home-theme="azure"] #homeView .promo-banner {outline:1px solid #72c7ff88;outline-offset:-1px;overflow:hidden}
body[data-home-theme="azure"] #homeView .account-panel {margin-inline:clamp(6px,1.5vw,15px)}
body[data-home-theme="azure"] #homeView .game-hall {background:transparent;border:0;box-shadow:none}
body[data-home-theme="azure"] #homeView .hall-head {background:var(--azure-glass);border:1px solid var(--app-card-border);border-radius:14px 14px 0 0}
body[data-home-theme="azure"] #homeView .result-row {background:#092643;border:1px solid var(--app-card-border);border-top:0;border-radius:0 0 14px 14px}
body[data-home-theme="azure"] #homeView .game-hall h2 {background:transparent;color:#e8f7ff;text-align:center}
body[data-home-theme="azure"] #homeView .game-hall h2::before,
body[data-home-theme="azure"] #homeView .game-hall h2::after {content:"";display:inline-block;vertical-align:middle;width:2em;height:2px;margin:0 .6em;background:linear-gradient(90deg,transparent,#63d5ff,transparent)}
body[data-home-theme="azure"] #homeView .room-grid button {flex-direction:column;justify-content:center;text-align:center;gap:.3em}
body[data-home-theme="azure"] :is(.header-actions button,.activity-open,.activity-count,.next-round,.mine-balance button,.pg-refresh,.room-bottom-tools button) {
  background:var(--azure-button);border:1px solid #579ecc;color:#f1fbff;box-shadow:inset 0 1px 1px #b0e3ff80;
}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav) {
  background:radial-gradient(ellipse at 50% 0%,#155187 0%,transparent 62%),linear-gradient(#08294e,#041631);
  border:1px solid #5097cb;border-radius:18px 18px 0 0;box-shadow:var(--azure-rim);
}
body[data-home-theme="azure"] :is(.bottom-nav,.local-nav) button {position:relative;background:transparent}
body[data-home-theme="azure"] :is(.bottom-nav,.local-nav) button.active {color:#dbfaff;text-shadow:0 0 8px #20bcff}
body[data-home-theme="azure"] :is(.bottom-nav,.local-nav) button.active::after {content:"";position:absolute;inset:auto 21% 3px;height:2px;background:linear-gradient(90deg,transparent,#90efff,transparent);box-shadow:0 0 7px #18bcff;pointer-events:none}
body[data-home-theme="azure"] :is(.quick-actions,.local-quick,.mine-records,.local-nav,.bottom-nav) img {filter:drop-shadow(0 2px 4px #1987c586)}
body[data-home-theme="azure"] #localLayer .service-card::after {content:"";width:clamp(42px,13vw,85px);height:clamp(42px,13vw,85px);flex:none;margin-inline-start:auto;background:url("./assets/kefu0.png") center/72% auto no-repeat,radial-gradient(ellipse at 50% 88%,#6ce8ff80,transparent 47%);filter:drop-shadow(0 0 6px #1fa8fb)}
body[data-home-theme="azure"] #localLayer .service-faq {border-radius:16px;overflow:hidden}
body[data-home-theme="azure"] #localLayer .service-faq details {background:linear-gradient(105deg,#0d2e52,#071e3b);border-color:#355d86}
body[data-home-theme="azure"] #localLayer .service-faq :is(summary,p) {color:var(--app-text)}
body[data-home-theme="azure"] #localLayer :is(.local-quick,.local-two,.mine-records,.game-tabs,.game-grid) {background:transparent}
body[data-home-theme="azure"] #localLayer .local-balance strong,
body[data-home-theme="azure"] #localLayer .mine-balance b {color:var(--azure-gold);font-variant-numeric:tabular-nums}
body[data-home-theme="azure"] #localLayer .local-balance small {color:var(--app-text-secondary)}
body[data-home-theme="azure"] #localLayer .local-two button:last-child {border-color:#bb9b63;color:var(--azure-gold)}
body[data-home-theme="azure"] #localLayer .mine-user,
body[data-home-theme="azure"] #localLayer .mine-balance {margin-inline:10px;background:var(--azure-glass);border:1px solid var(--app-card-border)}
body[data-home-theme="azure"] #localLayer .mine-user {border-radius:16px 16px 0 0;border-bottom:0}
body[data-home-theme="azure"] #localLayer .mine-balance {border-radius:0 0 16px 16px;box-shadow:inset 0 -1px #50c6fa80}
body[data-home-theme="azure"] #localLayer .mine-records {gap:6px;margin-inline:10px}
body[data-home-theme="azure"] #localLayer .mine-records button {border-radius:12px;min-width:0}
body[data-home-theme="azure"] #localLayer .mine-list {border-radius:14px;overflow:hidden;margin-inline:10px}
body[data-home-theme="azure"] #localLayer .mine-list button {background:transparent;color:var(--app-text);border-color:var(--app-border)}
body[data-home-theme="azure"] #localLayer .mine-list button span {color:var(--app-accent)}
body[data-home-theme="azure"] :is(#localLayer .room-chat,#localLayer .group-messages,#localLayer .support-chat-messages,
  .empty-page,.transfer-empty,.trend-view,.pm-body,.pr-body,.ge-body,.reward-layout,.local-game-stage) {background:var(--app-page-bg);color:var(--app-text)}
body[data-home-theme="azure"] :is(#localLayer .room-status,.room-switch-dialog header,.pm-header,.pr-header,.ge-header,.stats-dialog header) {background:var(--azure-button);color:var(--app-text)}
body[data-home-theme="azure"] :is(#localLayer .room-result-wrap,.room-controls,.support-compose,.group-compose,.group-emoji-panel,
  .notice-tabs,.record-tabs,.stats-tabs,.game-tabs button,.group-tools button,.room-switch-item,.sign-day,.bet-review-list,
  .room-tool-dialog .room-scratch-surface,.support-extra-dialog input,.trend-scroll td,.stats-row,.pm-product,.pm-log-card__row) {
  background:var(--app-surface);color:var(--app-text);border-color:var(--app-border);
}
body[data-home-theme="azure"] :is(.room-scratch-card header,.room-scratch-card p,.room-trend-dialog .trend-heading,
  .trend-scroll th,.trend-scroll .trend-gaps td) {color:var(--azure-gold);background:var(--app-surface-2)}
body[data-home-theme="azure"] .trend-scroll tbody tr:nth-child(even) td {background:#102f4e}
body[data-home-theme="azure"] :is(#localLayer .empty-page,#localLayer .transfer-empty,.record-empty,.stats-feedback,.game-library-empty) {color:var(--app-text-secondary)}
body[data-home-theme="azure"] :is(#localLayer .local-submit,.room-controls>button,.bet-confirmation footer [data-bet-review-confirm],
  #welfareContent .local-submit:not(:disabled),.record-tabs button.selected,.notice-tabs button.selected,.stats-tabs button.selected,
  .game-tabs button.selected,.home-theme-sheet>button.selected,.stats-dialog footer button) {background:var(--azure-button);color:#fff;border-color:#6bcaff}
body[data-home-theme="azure"] :is(.record-tabs,.notice-tabs,.stats-tabs) button:not(.selected) {color:var(--app-text-secondary);background:var(--app-surface)}
body[data-home-theme="azure"] .lottery-stat-grid dd:not(.stat-loss):not(.stat-gain) {color:var(--app-accent)}
body[data-home-theme="azure"] :focus-visible {outline:2px solid #c1f0ff;outline-offset:2px}

body[data-home-theme="azure"] #homeView .room-grid button {position:relative}
body[data-home-theme="azure"] #homeView .room-grid button>span:nth-child(2) {align-items:center;margin:0}
body[data-home-theme="azure"] #homeView .room-grid em {position:absolute;right:7%;bottom:13%;color:#6ce5be}
body[data-home-theme="azure"] #localLayer .mine-user::after {content:"";margin-inline-start:auto;width:clamp(54px,15vw,95px);height:clamp(40px,12vw,72px);flex:none;background:url("./assets/room-reference.png") center/contain no-repeat;filter:drop-shadow(0 4px 6px #28a2ee70)}
body[data-home-theme="azure"] #localLayer :is(.game-grid button:not(.game-library-favorite),.electronic aside,.transfer-wallets span,.transfer-wallets button,.notice-message,.group-message p,.group-tools button,.room-switch-item,.stats-list>div) {color:var(--app-text);background:var(--azure-glass);border-color:var(--app-card-border)}
body[data-home-theme="azure"] #localLayer :is(.service-faq h2,.mine-list button i) {text-shadow:0 1px 3px #001127}
body[data-home-theme="azure"] :is(.local-nav,.bottom-nav) button:not(.active) img {filter:grayscale(1) brightness(1.55) drop-shadow(0 1px 2px #092348)}
body[data-home-theme="azure"] #localLayer :is(.local-game-state,.support-chat-feed,.group-chat-feed,.transfer-form,.reward-layout) {color:var(--app-text)}
body[data-home-theme="azure"] :is(.room-scratch-card h2,.scratch-dismiss,.room-switch-dialog header) {color:var(--azure-gold)}
body[data-home-theme="azure"] .room-scratch-card :is([data-scratch-current],[data-scratch-clock]) {background:transparent;color:var(--app-text)}
body[data-home-theme="azure"] .room-switch-grid .room-switch-item.selected {border-color:var(--app-accent);background:var(--azure-button);color:#fff}
body.is-home[data-home-theme="azure"] :is(.register-dialog,.register-dialog input,.modal-card) {background:var(--app-surface);color:var(--app-text);border-color:var(--app-border)}

/* Four luminous emblems share a single small raster atlas. */
body[data-home-theme="azure"] #homeView .room-grid .ball28,
body[data-home-theme="azure"] #localLayer .mine-user::after,
body[data-home-theme="azure"] #localLayer .service-card::after,
body[data-home-theme="azure"] #localLayer .finance-layout:has(.local-quick) .local-balance::after {
  background: url("./assets/azure-emblems.png") 0 center / 400% 100% no-repeat;
  width:clamp(56px,14vw,90px);height:auto;aspect-ratio:1;flex:none;align-self:center;
  pointer-events:none;filter:drop-shadow(0 3px 6px #169dff60);
}
body[data-home-theme="azure"] #homeView .room-grid .ball28 img {visibility:hidden}
body[data-home-theme="azure"] #homeView .room-grid button:nth-child(2) .ball28 {background-position:33.333% center}
body[data-home-theme="azure"] #localLayer .service-card::after {background-position:66.667% center}
body[data-home-theme="azure"] #localLayer .finance-layout:has(.local-quick) .local-balance::after {
  content:"";position:absolute;right:2%;top:50%;transform:translateY(-50%);background-position:100% center;
}
body[data-home-theme="azure"] #localLayer .finance-layout:has(.local-quick) .local-balance small {right:clamp(72px,19%,130px);max-width:40%}
body[data-home-theme="azure"] #localLayer .finance-layout:has(.local-quick) .local-balance .balance-reload {z-index:1}
body[data-home-theme="azure"] #localLayer .local-nav button:nth-child(3) img,
body[data-home-theme="azure"] #homeView .bottom-nav .center-nav span {
  background:radial-gradient(ellipse at 30% 15%,#70b9ff,#1267b1 36%,#08274d 76%);
  border:1px solid #83d8ff;box-shadow:inset 0 1px 3px #b0e4ff,0 -2px 9px #2c9efc88;filter:none;
}
body[data-home-theme="azure"] {
  --azure-glass: radial-gradient(ellipse 35% 4px at 24% 0%,#a7edff99,transparent),
    radial-gradient(ellipse 29% 4px at 77% 100%,#5fe1ff9c,transparent),
    radial-gradient(ellipse at 8% -30%,#357fcaa6,transparent 55%),
    linear-gradient(148deg,#103e72,#09274c 44%,#051a37 78%,#0b385c);
}
@media(max-width:600px) {
  body[data-home-theme="azure"] #localLayer :is(.mine-brand b,.service-header b,.mine-list button,.service-faq summary,.local-quick button,.mine-user b) {font-size:15px}
  body[data-home-theme="azure"] #localLayer :is(.local-nav button,.mine-records button),
  body[data-home-theme="azure"] #homeView :is(.bottom-nav button,.quick-actions b) {font-size:12px}
  body[data-home-theme="azure"] #localLayer .mine-records button {min-height:80px}
  body[data-home-theme="azure"] #localLayer :is(.service-card,.local-quick button,.mine-records button) {border-radius:13px}
  body[data-home-theme="azure"] #localLayer .service-card b {font-size:19px}
  body[data-home-theme="azure"] #homeView :is(.room-grid strong,.hall-title strong,.activity-heading strong) {font-size:15px}
  body[data-home-theme="azure"] #homeView .room-grid button {gap:0;padding-block:2px 8px}
  body[data-home-theme="azure"] #homeView .home-brand-copy strong {font-size:16px}
}

body[data-home-theme="azure"] #localLayer .finance-layout:has(.local-quick) .local-balance .balance-reload {right:auto;left:7em;top:12%;color:var(--app-accent)}
body[data-home-theme="azure"] #homeView .room-grid button>span:nth-child(2) {width:100%}
body[data-home-theme="azure"] #homeView .room-grid strong {max-width:100%;white-space:normal;line-height:1.25}
/* A single dock for both player navigation templates. Keep their original buttons and labels. */
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav) {
  --dock-height:clamp(62px,8vh,76px);
  --dock-inset:max(4px,env(safe-area-inset-bottom,0px));
  box-sizing:border-box;position:fixed;left:50%;right:auto;bottom:var(--dock-inset);transform:translateX(-50%);
  width:min(calc(100% - 12px),880px);height:var(--dock-height);margin:0;
  padding:2px 6px 4px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:0;overflow:visible;
  border:1px solid #4799cd;border-radius:clamp(15px,3vw,23px);
  background:radial-gradient(ellipse at 50% -30%,#1267ae 0%,transparent 55%),linear-gradient(168deg,#123e71 0%,#071f43 52%,#04162e);
  box-shadow:inset 0 1px 1px #aee5ff88,inset 0 -1px 2px #37bbff66,0 4px 12px #00102899;
}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button {
  --icon-x:0%;--icon-y:0%;
  box-sizing:border-box;position:relative;display:grid;grid-template-rows:minmax(0,1fr) 18px;
  justify-items:center;align-items:end;align-content:stretch;
  gap:1px;margin:0;padding:0 0 3px;min-width:0;min-height:0;height:100%;border:0;background:transparent;
  color:#c5d9ed;line-height:18px;font-size:clamp(12px,1.35vw,15px);font-weight:550;
}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button:nth-child(2) {--icon-x:25%}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button:nth-child(3) {--icon-x:50%}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button:nth-child(4) {--icon-x:75%}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button:nth-child(5) {--icon-x:100%}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button::before {
  content:"";display:block;grid-row:1;width:clamp(31px,5.8vh,43px);aspect-ratio:1;pointer-events:none;
  background:url("./assets/azure-navigation.png") var(--icon-x) var(--icon-y)/500% 200% no-repeat;
}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button:nth-child(3)::before {
  width:clamp(52px,8vh,68px);margin-bottom:-2px;pointer-events:auto;
}
body[data-home-theme="azure"] #homeView .bottom-nav>button>span,
body[data-home-theme="azure"] #localLayer .local-nav>button>img {display:none}
body[data-home-theme="azure"] #homeView .bottom-nav>button>b,
body[data-home-theme="azure"] #localLayer .local-nav>button>span {
  grid-row:2;align-self:center;margin:0;padding:0;font-size:inherit;line-height:18px;color:inherit;font-weight:inherit;
}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button.active {
  --icon-y:100%;color:#ecfaff;font-weight:700;text-shadow:0 0 8px #0aafff;
}
body[data-home-theme="azure"] :is(#homeView .bottom-nav,#localLayer .local-nav)>button.active::after {
  content:"";position:absolute;inset:auto auto -1px 50%;transform:translateX(-50%);width:min(65%,70px);height:2px;
  background:linear-gradient(90deg,transparent,#28b9ff 25%,#e9ffff 50%,#28b9ff 75%,transparent);
  box-shadow:0 1px 6px #08b4ff;pointer-events:none;
}
body[data-home-theme="azure"] #homeView,
body[data-home-theme="azure"] #localLayer .local-scroll:has(>.local-nav) {
  padding-bottom:calc(clamp(62px,8vh,76px) + max(4px,env(safe-area-inset-bottom,0px)) + 20px);
}
body.is-login[data-home-theme="azure"] {color-scheme:light}

/* Homepage shortcuts use the same enamel and brushed-gold artwork as the Azure dock. */
body[data-home-theme="azure"] #homeView .quick-actions .quick-icon,
body[data-home-theme="azure"] #activityToggle::before,
body[data-home-theme="azure"] #activityGrid button:where([data-action="红包聊天室"],[data-action="福利中心"],[data-action="推广赚钱"],:has(img[src$="d1e5f642b8b149b48e348e71a4f7b8e6.gif"]),:has(img[src$="e6a67465c8984a7d9a009ba7583a8379.gif"]))::before {
  content:"";display:block;aspect-ratio:1;flex:none;pointer-events:none;
  background:transparent url("./assets/azure-home-actions.png") var(--shortcut-x,0%) 50% / 800% 100% no-repeat;
}
body[data-home-theme="azure"] #homeView .quick-actions .quick-icon {
  width:clamp(32px,6.8vw,58px);height:auto;max-width:100%;margin-inline:auto;border:0;border-radius:0;filter:none;
}
body[data-home-theme="azure"] #homeView .quick-actions .withdraw {--shortcut-x:14.285714%}
body[data-home-theme="azure"] #homeView .quick-actions .promote,
body[data-home-theme="azure"] #activityGrid [data-action="推广赚钱"] {--shortcut-x:28.571429%}
body[data-home-theme="azure"] #homeView .quick-actions .benefit,
body[data-home-theme="azure"] #activityGrid [data-action="福利中心"] {--shortcut-x:42.857143%}
body[data-home-theme="azure"] #homeView .quick-actions .quick-icon img,
body[data-home-theme="azure"] #activityGrid button:is([data-action="红包聊天室"],[data-action="福利中心"],[data-action="推广赚钱"]) img,
body[data-home-theme="azure"] #activityGrid img:is([src$="d1e5f642b8b149b48e348e71a4f7b8e6.gif"],[src$="e6a67465c8984a7d9a009ba7583a8379.gif"]) {display:none}

body[data-home-theme="azure"] #activityToggle {position:relative;overflow:hidden;column-gap:clamp(3px,1vw,12px)}
body[data-home-theme="azure"] #activityToggle::before {--shortcut-x:57.142857%;width:clamp(26px,6vw,48px)}
body[data-home-theme="azure"] #activityToggle>span {min-width:0}
body[data-home-theme="azure"] #activityGrid {width:100%;max-width:100%;box-sizing:border-box;gap:clamp(4px,1.1vw,12px);grid-template-columns:repeat(auto-fit,minmax(min(16%,110px),1fr))}
body[data-home-theme="azure"] #activityGrid button {
  min-width:0;min-height:clamp(60px,12vw,104px);padding:5px 1px;
  border:1px solid var(--app-card-border);border-radius:12px;color:var(--app-text);
  background:var(--azure-glass);box-shadow:var(--azure-rim);
}
body[data-home-theme="azure"] #activityGrid button::before {width:clamp(32px,7vw,54px);margin:0 auto}
body[data-home-theme="azure"] #activityGrid button span {font-size:clamp(11px,2.4vw,16px);margin-top:1px}
body[data-home-theme="azure"] #activityGrid [data-action="红包聊天室"] {--shortcut-x:71.428571%}
body[data-home-theme="azure"] #activityGrid button:has(img[src$="d1e5f642b8b149b48e348e71a4f7b8e6.gif"]) {--shortcut-x:85.714286%}
body[data-home-theme="azure"] #activityGrid button:has(img[src$="e6a67465c8984a7d9a009ba7583a8379.gif"]) {--shortcut-x:100%}

/* One quiet pass along the lower rim. The artwork and labels stay still. */
@media (prefers-reduced-motion:no-preference) {
  body[data-home-theme="azure"] #activityToggle::after {
    content:"";position:absolute;bottom:0;left:0;width:28%;height:1px;pointer-events:none;
    background:linear-gradient(90deg,transparent,#65ccff 44%,#ffdfa0 64%,transparent);
    box-shadow:0 -1px 4px #61cfff65;animation:azure-activity-glint 11s ease-in-out infinite;
  }
}
@keyframes azure-activity-glint {
  0%,58% {opacity:0;transform:translateX(-105%)}
  66% {opacity:.72}
  88%,100% {opacity:0;transform:translateX(365%)}
}

/* Keep the scrolling text inside its own lane; the speaker is a separate flex item. */
#homeView .announcement>span {flex-shrink:0}
#homeView .announcement-window {display:block;flex:1;min-width:0;overflow:hidden}
#homeView .announcement-window p {width:max-content;max-width:none;white-space:nowrap;text-overflow:clip;overflow:visible}
@media (prefers-reduced-motion:reduce) {
  #homeView .announcement-window {overflow-x:auto;scrollbar-width:none}
  #homeView .announcement-window::-webkit-scrollbar {display:none}
}

body[data-home-theme="azure"] #localLayer .points-card[data-change] > div > span:first-child { color: #c7def4; }
body[data-home-theme="azure"] #localLayer .points-card[data-change] > div > span:last-child { color: #f5faff; }
body[data-home-theme="azure"] #localLayer .points-card[data-change] > div:first-child > span:first-child { color: #f5faff; }
body[data-home-theme="azure"] #localLayer .points-card[data-change][data-change="credit"] > div:first-child > span:first-child { color: #86f5ca; }
body[data-home-theme="azure"] #localLayer .points-card[data-change][data-change="debit"] > div:first-child > span:first-child { color: #ffb5aa; }

body[data-home-theme="azure"] #localLayer #userLedgerRows .points-card > div > span { color: #f5faff; }
