/* Final cascade layer for legacy modules with hard-coded pale surfaces. */
:root[data-theme-mode="dark"] :is(.changelog-version span,.release-content em,.release-icon,.garden-icon,.land-unlock-next,.land-unlock-next>i) {
  background: #20263a !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-ink) !important;
}
:root[data-theme-mode="dark"] :is(.changelog-version,.release-content,.land-unlock-next) :is(p,small,span) {
  color: var(--ui-muted) !important;
}
:root[data-theme-mode="dark"] :is(
  .release-row > aside > span,
  .release-heading > span,
  .guild-shop-unlock,
  .guild-shop-catalog-wrap,
  .plant-safe-badge,
  .plant-ad-speed-icon,
  .spirit-estimate,
  .game2048-copy,
  .game2048-summary > span,
  .minigame-panel-heading,
  .newbie-reward-card,
  .newbie-reward-grid article
) {
  background: var(--ui-surface-soft) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-ink) !important;
}
:root[data-theme-mode="dark"] :is(
  .guild-shop-unlock,
  .guild-shop-catalog-wrap,
  .spirit-estimate,
  .game2048-copy,
  .game2048-summary > span,
  .newbie-reward-card,
  .newbie-reward-grid article
) :is(h2,h3,h4,b,strong,span) {
  color: var(--ui-ink) !important;
}
:root[data-theme-mode="dark"] :is(
  .guild-shop-unlock,
  .guild-shop-catalog-wrap,
  .spirit-estimate,
  .game2048-copy,
  .game2048-summary > span,
  .newbie-reward-card,
  .newbie-reward-grid article
) :is(p,small,label) {
  color: var(--ui-muted) !important;
}
