

html[data-theme="halloween"] {
  --focus: #ff8a1e;
  --gold: #ff8a1e;
  --theme-hover: #e86a16;
  --theme-hover-2: #e86a16;
  --theme-ink: #1a0a02;
  --theme-ink-2: #1a0a02;
  --theme-line: #ffb067;
  --theme-glow: rgba(232, 106, 22, .42);
}
html[data-theme="christmas"] {
  --focus: #e7c56a;
  --gold: #e7c56a;
  --theme-hover: #8f1d32;
  --theme-hover-2: #1a6440;
  --theme-ink: #fff8f4;
  --theme-ink-2: #f3fff6;
  --theme-line: #e7c56a;
  --theme-glow: rgba(143, 29, 50, .4);
  --warn: #c45c6a;
}


html[data-theme="christmas"] .ax {
  --accent: #e7c56a;
  --accent-h: #f0d78c;
  --blue: #c9a227;
  --blue-h: #e7c56a;
  --green: #1f7a48;
  --red: #8f1d32;
  --danger: #8f1d32;
  --amber: #e7c56a;
  --adm-gold: #e7c56a;
  --adm-edge-hot: rgba(143, 29, 50, .32);
}
html[data-theme="christmas"] .ax-pane.ax-admin {
  --adm-gold: #e7c56a;
  --adm-edge-hot: rgba(231, 197, 106, .32);
  background-image:
    radial-gradient(70% 50% at 100% 0%, rgba(143, 29, 50, .08), transparent 55%),
    radial-gradient(55% 40% at 0% 100%, rgba(26, 100, 64, .07), transparent 50%);
}
html[data-theme="christmas"] #adm-stats {
  --st-gold: #e7c56a;
  --st-teal: #2d9b6f;
  --st-rose: #c45c6a;
  --st-glow: rgba(143, 29, 50, .16);
  --st-edge-hot: rgba(231, 197, 106, .32);
}
html[data-theme="christmas"] .adm-nav button.on {
  background: linear-gradient(180deg, rgba(143, 29, 50, .28), rgba(26, 100, 64, .12));
  border-color: rgba(231, 197, 106, .4);
  color: #f8e7b0;
  box-shadow: 0 0 18px rgba(143, 29, 50, .14);
}
html[data-theme="christmas"] .adm-ranges button.on,
html[data-theme="christmas"] .st-ranges button.on,
html[data-theme="christmas"] .adm-metrics button.on,
html[data-theme="christmas"] .st-metrics button.on {
  background: linear-gradient(180deg, rgba(143, 29, 50, .3), rgba(26, 100, 64, .14));
  border-color: rgba(231, 197, 106, .4);
  color: #f8e7b0;
}
html[data-theme="christmas"] .st-kicker,
html[data-theme="christmas"] .adm-head .st-kicker {
  color: #e7c56a;
}
html[data-theme="christmas"] .st-kpi:hover,
html[data-theme="christmas"] .adm-user.on,
html[data-theme="christmas"] .adm-q-row:has(input:checked) {
  border-color: rgba(231, 197, 106, .4);
}
html[data-theme="christmas"] .adm-sw input { accent-color: #8f1d32; }

html[data-theme="halloween"] .ocean {
  background: #0a0a0a;
}
html[data-theme="christmas"] .ocean {
  background:
    radial-gradient(90% 55% at 50% -10%, rgba(143, 29, 50, .14), transparent 52%),
    radial-gradient(70% 40% at 100% 100%, rgba(26, 100, 64, .1), transparent 45%),
    #0a0a0a;
}
html[data-theme="halloween"] .dust { background: #ff9a3c99; box-shadow: 0 0 6px #ff6a0088; }
html[data-theme="christmas"] .dust { background: #ffffffd0; box-shadow: 0 0 6px #fff; }
html[data-theme="halloween"] .moon { filter: none; }
html[data-theme="christmas"] .moon { filter: none; }
html[data-theme="halloween"] .rule { background: linear-gradient(90deg, rgba(232, 106, 22, .55), transparent 70%); }
html[data-theme="christmas"] .rule { background: linear-gradient(90deg, rgba(231, 197, 106, .55), transparent 70%); }
html[data-theme="halloween"] .strip:hover { border-color: rgba(232, 106, 22, .45); }
html[data-theme="christmas"] .strip:hover { border-color: rgba(231, 197, 106, .4); }
html[data-theme="halloween"] .gate-box { border-color: rgba(232, 106, 22, .35); }
html[data-theme="christmas"] .gate-box { border-color: rgba(231, 197, 106, .35); }

html[data-theme="christmas"] .btn--silver,
html[data-theme="christmas"] .ax-cta:not(.ax-cta--go):not(.ax-cta--stop):not(.ax-cta--alt) {
  box-shadow: 0 0 0 1px rgba(231, 197, 106, .08);
}
html[data-theme] .btn--silver:hover:not(:disabled),
html[data-theme] .ax-cta:hover:not(:disabled):not(.ax-cta--go):not(.ax-cta--stop),
html[data-theme] .chat-form button:hover:not(:disabled),
html[data-theme] #chat-tip button:hover:not(:disabled),
html[data-theme] .fair-change:hover:not(:disabled) {
  background: var(--theme-hover);
  border-color: var(--theme-line);
  color: var(--theme-ink);
  box-shadow: none;
}
html[data-theme] .btn--outline:hover:not(:disabled),
html[data-theme] .ax-sub:hover:not(:disabled),
html[data-theme] .ax-cta--alt:hover:not(:disabled),
html[data-theme] .ax-bet > button:hover:not(:disabled),
html[data-theme] .bj-acts button:hover:not(:disabled),
html[data-theme] .ax-games button:hover:not(.on),
html[data-theme] .ax-mode button:hover:not(.on):not(:disabled) {
  background: var(--theme-hover-2);
  border-color: var(--theme-line);
  color: var(--theme-ink-2);
  box-shadow: none;
}
html[data-theme] .rw-card.ready .ax-cta:hover:not(:disabled),
html[data-theme] .ax-cta--go:hover:not(:disabled) {
  background: #E0C15A;
  color: #0a0a0a;
  box-shadow: none;
}
html[data-theme] .ax-cta--stop:hover:not(:disabled) {
  background: #71717a;
  color: #fff;
  box-shadow: none;
}

html[data-theme="halloween"] .ax-box {
  box-shadow: none;
  border: 1px solid rgba(232, 106, 22, .28);
}
html[data-theme="christmas"] .ax-box {
  box-shadow: none;
  border: 1px solid rgba(231, 197, 106, .28);
}
html[data-theme] .ax-box::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}
html[data-theme="halloween"] .ax-box::before { background: linear-gradient(90deg, transparent, #e86a16, transparent); }
html[data-theme="christmas"] .ax-box::before { background: linear-gradient(90deg, #1a6440, #e7c56a, #8f1d32); }

html[data-theme="christmas"] header.ax-top {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(231, 197, 106, .12);
}
html[data-theme="christmas"] .ax-games button.on,
html[data-theme="christmas"] .ax-more button.on {
  color: #f8e7b0;
  background: rgba(143, 29, 50, .22);
}
html[data-theme="christmas"] .ax-bal-btn,
html[data-theme="christmas"] .pod.slot0 .pod-step {
  border-color: rgba(231, 197, 106, .45);
}

.season {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
html[data-theme="halloween"] .season,
html[data-theme="christmas"] .season { display: block; }
.season-hallow,
.season-xmas { display: none; position: absolute; inset: 0; }
html[data-theme="halloween"] .season-hallow,
html[data-theme="christmas"] .season-xmas { display: block; }

.season-web {
  position: absolute;
  top: 0;
  left: 0;
  width: 168px;
  height: 168px;
  opacity: .55;
  background:
    repeating-radial-gradient(circle at 0 0, transparent 0 16px, rgba(232, 226, 236, .55) 16px 17px),
    repeating-conic-gradient(from 0deg at 0 0, transparent 0 15deg, rgba(232, 226, 236, .45) 15deg 15.6deg);
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 0 120px, transparent 166px);
  mask-image: radial-gradient(circle at 0 0, #000 0 120px, transparent 166px);
}
.season-mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  background: linear-gradient(transparent, rgba(28, 8, 16, .28));
}
.season-bat {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--s, 48px);
  height: auto;
  color: #160910;
  opacity: .88;
  filter: none;
  animation: season-drift var(--dur) ease-in-out var(--delay) infinite;
}
.season-holly {
  position: absolute;
  top: 72px;
  right: 18px;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
}

.season-lights {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-evenly;
  height: 36px;
  pointer-events: none;
}
.season-lights::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 8px;
  border-top: 2px solid rgba(30, 90, 58, .85);
}
.season-lights i {
  position: relative;
  width: 11px;
  height: 15px;
  margin-top: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 46%, #14080a);
  box-shadow: none;
  animation: season-twinkle 2.2s ease-in-out var(--d) infinite;
}
.season-lights i:nth-child(odd) { margin-top: 18px; }
.season-lights i::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -4px;
  height: 4px;
  border-radius: 1px;
  background: #1c3d2c;
}

.season-dot,
.season-flake {
  position: absolute;
  top: 0;
  left: var(--x);
  animation: season-fall var(--dur) linear var(--delay) infinite;
}
.season-dot {
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  opacity: var(--o, .5);
}
html[data-theme="halloween"] .season-dot { background: #ff8a1e; box-shadow: 0 0 6px #ff6a00; }
html[data-theme="christmas"] .season-dot { background: #fff; box-shadow: 0 0 5px rgba(255, 255, 255, .8); }
.season-flake {
  width: var(--s);
  height: var(--s);
  opacity: var(--o, .45);
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.season-holly--l { left: 8px; right: auto; transform: scaleX(-1); }
.season-snow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16vh;
  background: linear-gradient(transparent, rgba(214, 230, 246, .1));
}

@keyframes season-fall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  100% { transform: translate3d(var(--dx, 12px), 108vh, 0) rotate(360deg); }
}
@keyframes season-twinkle {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
@keyframes season-drift {
  0% { transform: translate3d(0, -10vh, 0) rotate(-14deg); }
  50% { transform: translate3d(var(--dx, 20px), 46vh, 0) rotate(12deg); }
  100% { transform: translate3d(0, 108vh, 0) rotate(-8deg); }
}

@media (max-width: 900px) {
  .season-bat, .season-holly, .season-mist { display: none; }
  .season-web { width: 96px; height: 96px; }
  .season-lights i { width: 8px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .season-bat, .season-dot, .season-flake { display: none; }
  .season-lights i { animation: none; }
}
