/* The campaign is enabled by its date controller. No root attribute = normal site. */
html[data-seasonal] {
  --seasonal-night: #20102d;
  --seasonal-deep: #120b20;
  --seasonal-accent: #ffb45b;
  --seasonal-accent-light: #ffd399;
  --seasonal-halo: #ec702b26;
  --seasonal-border: #ffc58340;
  --brand-chrome: #241035;
}
html[data-seasonal="bonfire"] {
  --seasonal-night: #1c1530;
  --seasonal-deep: #100e21;
  --seasonal-accent: #ffc26b;
  --seasonal-accent-light: #ffe1aa;
  --seasonal-halo: #f49a3a2e;
  --brand-chrome: #21152f;
}

.seasonal-strip,
.seasonal-reminder-wrap,
.seasonal-scene,
.seasonal-dialog,
.seasonal-halloween,
.seasonal-bonfire { display: none; }
html:not([data-seasonal="halloween"]) .seasonal-halloween,
html:not([data-seasonal="bonfire"]) .seasonal-bonfire { display: none !important; }
html[data-seasonal="halloween"] .seasonal-halloween,
html[data-seasonal="bonfire"] .seasonal-bonfire { display: initial; }
:is(.seasonal-strip, .seasonal-reminder-wrap, .seasonal-dialog)[hidden] { display: none !important; }

/* Warm details keep the HYEHOST violet and the content's existing contrast. */
html[data-seasonal] body { background-color: #faf5f4; }
html[data-seasonal] .site-header {
  background: linear-gradient(110deg, var(--seasonal-night), #32173e 65%, #381d3d);
  box-shadow: 0 8px 25px #180b282b, inset 0 -1px var(--seasonal-border);
}
html[data-seasonal] .site-footer {
  background: radial-gradient(ellipse at 82% 0, #a4512424, transparent 42%), linear-gradient(180deg, #281335, var(--seasonal-deep));
}
html[data-seasonal] .nav-link.active::after { background: var(--seasonal-accent); }
html[data-seasonal] .mobile-toggle { border-color: var(--seasonal-border); }
html[data-seasonal] .btn-primary {
  background: linear-gradient(130deg, #ffcc8a, #ffae53) !important;
  border-color: #ffbc70 !important;
  color: #29172f !important;
  box-shadow: 0 9px 24px -14px #dd782799;
}
html[data-seasonal] .btn-primary:hover {
  background: linear-gradient(130deg, #ffdbac, #ffc078) !important;
  border-color: #ffd39c !important;
  color: #21112a !important;
}
html[data-seasonal] :is(.mascot-hero, .page-hero, .page-hero-glow) {
  isolation: isolate;
  background: radial-gradient(ellipse at 82% 23%, var(--seasonal-halo), transparent 44%), linear-gradient(120deg, var(--seasonal-night), #351649 56%, var(--seasonal-deep));
}
html[data-seasonal] :is(.mascot-hero, .page-hero, .page-hero-glow) > :is(.container, .mascot-band-inner) { z-index: 1; }
html[data-seasonal] :is(.page-hero, .page-hero-glow) .grad {
  background: none !important;
  color: var(--seasonal-accent-light) !important;
  -webkit-text-fill-color: var(--seasonal-accent-light) !important;
}
html[data-seasonal] .mascot-copy :is(h1, h2) > span,
html[data-seasonal] .mascot-typed-heading { color: var(--seasonal-accent-light); }
html[data-seasonal] .mascot-typed-heading::after { background: var(--seasonal-accent-light); }
html[data-seasonal] :is(.mascot-hero, .page-hero, .page-hero-glow) .btn-light,
html[data-seasonal] :is(.mascot-hero, .page-hero, .page-hero-glow) .btn-white {
  background: #fff8ee;
  border-color: #fff8ee;
  color: #381743;
}
html[data-seasonal] :is(.mascot-hero, .page-hero, .page-hero-glow) .btn-outline {
  color: #fff5e8;
  border-color: #ffe3bd70;
  background-color: #ffffff0b;
}
html[data-seasonal] .mascot-text-link { color: #fff1db; }
html[data-seasonal] .mascot-text-link:hover { color: var(--seasonal-accent-light); }
html[data-seasonal="halloween"] .mascot-service-cloud { visibility: hidden; }
html[data-seasonal="halloween"] .mascot-hero .seasonal-homepage-art {
  object-position: center;
  transform: scale(.98);
  transform-origin: center;
  animation: none;
  filter: drop-shadow(0 18px 28px #10092166);
}

/* Non-interactive scenery stays behind the hero's content. */
html[data-seasonal] .seasonal-scene {
  display: block;
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 850px);
  color: var(--seasonal-accent-light);
  opacity: .2;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
html[data-seasonal="halloween"] .seasonal-scene > .seasonal-halloween,
html[data-seasonal="bonfire"] .seasonal-scene > .seasonal-bonfire { display: block; width: 100%; height: 100%; }
.seasonal-scene svg { display: block; width: 100%; height: auto; margin-top: 35px; }

/* The strip is part of document flow; the popup opens only on request. */
html[data-seasonal] .seasonal-strip {
  display: block;
  position: relative;
  color: #fff6eb;
  background: radial-gradient(ellipse at 12% 0, #c36c3521, transparent 45%), #2c1839;
  border-bottom: 1px solid var(--seasonal-border);
}
.seasonal-strip-inner {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding-block: 18px;
}
.seasonal-emblem {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #ffd49a38;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffc57619, #bd7cff12);
  color: var(--seasonal-accent-light);
  box-shadow: inset 0 1px #ffffff0d;
}
.seasonal-emblem svg { width: 38px; height: 38px; }
.seasonal-kicker {
  display: block;
  margin: 0 0 5px;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--seasonal-accent-light);
}
.seasonal-strip-copy { min-width: 0; }
.seasonal-strip-copy > strong { display: block; font-size: 1.13rem; line-height: 1.45; font-weight: 750; color: #fff5e9; }
.seasonal-strip-copy > p { margin: 5px 0 0; color: #e5d8eb; font-size: .81rem; line-height: 1.55; }
.seasonal-strip-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seasonal-topup,
.seasonal-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: .83rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.seasonal-topup { color: #29172f; background: #ffc47b; border-color: #ffcd91; box-shadow: 0 6px 18px #0d051c1c; }
.seasonal-topup:hover { color: #21112a; background: #ffdaa6; border-color: #ffe1b8; }
.seasonal-details { color: #fff2df; border-color: #ffdfa04d; background: #ffffff07; }
.seasonal-details:hover { color: #fff; background: #ffffff13; border-color: #ffdfa099; }
:is(.seasonal-strip, .seasonal-dialog, .seasonal-reminder-wrap) :is(a, button):focus-visible {
  outline: 3px solid #e6b5ff;
  outline-offset: 4px;
}
.seasonal-dialog :is(a, button):focus-visible { outline-color: #782ca7; }

/* Native dialog: clear credit totals, short steps and a readable terms block. */
html[data-seasonal] .seasonal-dialog[open] { display: block; }
.seasonal-dialog {
  position: fixed;
  width: min(1050px, calc(100% - 48px));
  max-width: 1050px;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #f3c18b6b;
  border-radius: 24px;
  background: #fffaf6;
  color: #2a2037;
  box-shadow: 0 28px 120px #0902119c;
}
.seasonal-dialog::backdrop { background: #11091ad9; backdrop-filter: blur(5px); }
.seasonal-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #decfe3;
  border-radius: 50%;
  color: #3b214b;
  background: #fffaf5ed;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 4px 12px #24123512;
}
.seasonal-dialog-close:hover { background: #f4e9f4; }
.seasonal-dialog-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
.seasonal-dialog-art {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 28px 20px;
  background: radial-gradient(ellipse at center, #5c2c685e, transparent 66%), #191026;
}
.seasonal-dialog-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border: 1px solid #eac6ff26; border-radius: 15px; box-shadow: 0 18px 50px #07020f4d; }
html[data-seasonal="halloween"] .seasonal-dialog-art img.seasonal-halloween,
html[data-seasonal="bonfire"] .seasonal-dialog-art img.seasonal-bonfire { display: block; }
.seasonal-dialog-copy { min-width: 0; padding: 42px 34px 34px; }
.seasonal-dialog-copy .seasonal-kicker { color: #8b4520; padding-right: 20px; margin-bottom: 10px; }
.seasonal-dialog-copy h2 { max-width: 20ch; margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.16; color: #2c153a; letter-spacing: -.035em; }
.seasonal-bonus { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; color: #6b2b16; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.seasonal-bonus small { max-width: 9ch; color: #6c4d58; font-size: .8rem; line-height: 1.4; font-weight: 650; letter-spacing: 0; }
.seasonal-dialog-copy > p { margin: 0 0 18px; color: #59475e; font-size: .91rem; line-height: 1.65; }
.seasonal-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.seasonal-examples > div { min-width: 0; padding: 13px 8px; border: 1px solid #ead5c9; border-radius: 11px; background: #fff; text-align: center; }
.seasonal-examples dt { color: #6d5a70; font-size: .68rem; font-weight: 600; line-height: 1.4; }
.seasonal-examples dd { margin: 6px 0 0; color: #48233f; font-size: 1.13rem; font-weight: 800; line-height: 1.4; }
.seasonal-examples dd small { display: block; margin-top: 3px; color: #766379; font-size: .62rem; font-weight: 500; }
.seasonal-how { display: grid; gap: 9px; margin: 0 0 18px; padding-left: 21px; color: #4e3d56; font-size: .84rem; line-height: 1.55; list-style: decimal; }
.seasonal-how li { padding-left: 3px; }
.seasonal-how li::marker { color: #8d4426; font-weight: 800; }
.seasonal-dialog-copy .seasonal-terms { padding: 12px 14px; border: 1px solid #ecd9ce; border-radius: 10px; color: #6a536c; background: #f7eee9; font-size: .74rem; line-height: 1.6; }
.seasonal-dialog-copy > .seasonal-topup { width: 100%; }

/* A compact, dismissible desktop reminder; no automatic modal interruption. */
html[data-seasonal] .seasonal-reminder-wrap { display: block; position: fixed; z-index: 80; left: 20px; bottom: 22px; width: 234px; }
.seasonal-reminder {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #ffd1a36b;
  border-radius: 16px;
  color: #fff9f0;
  background: linear-gradient(135deg, #3a1f43, #21112f);
  box-shadow: 0 14px 34px #18092f38;
  text-align: left;
}
.seasonal-reminder:hover { border-color: #ffd1a3bd; background: #382044; }
.seasonal-reminder-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 42px; color: var(--seasonal-accent-light); }
.seasonal-reminder-icon svg { width: 34px; height: 34px; }
.seasonal-reminder > span:not(.seasonal-reminder-icon) { min-width: 0; font-size: .9rem; line-height: 1.4; font-weight: 750; }
.seasonal-reminder small { display: block; margin-top: 3px; color: #e2cce8; font-size: .67rem; font-weight: 500; line-height: 1.5; }
.seasonal-reminder-close { position: absolute; top: -11px; right: -8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 2px solid #fff6ed; border-radius: 50%; color: #fff; background: #43224f; font-size: 1.1rem; line-height: 1; box-shadow: 0 4px 10px #18092f2b; }
body:has(.hh-pref-panel) .seasonal-reminder-wrap { display: none; }

@media (max-width: 1080px) {
  .seasonal-strip-inner { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; }
  .seasonal-emblem { width: 54px; height: 54px; border-radius: 16px; }
  .seasonal-strip-actions { gap: 7px; }
  .seasonal-strip-actions :is(.seasonal-topup, .seasonal-details) { padding-inline: 13px; font-size: .78rem; }
  .seasonal-dialog { width: calc(100% - 40px); }
  .seasonal-dialog-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .seasonal-dialog-copy { padding: 42px 26px 26px; }
}
@media (max-width: 900px) {
  html[data-seasonal] .seasonal-reminder-wrap { display: none; }
  .seasonal-strip-inner { grid-template-columns: 50px minmax(0, 1fr); gap: 12px 16px; }
  .seasonal-emblem { grid-row: 1 / 3; width: 50px; height: 54px; }
  .seasonal-strip-actions { grid-column: 2; }
  .seasonal-strip-copy > strong { font-size: 1.05rem; }
  .seasonal-dialog-grid { grid-template-columns: 1fr; }
  .seasonal-dialog-art { padding: 0; background: #191026; }
  .seasonal-dialog-art img { max-height: 280px; width: 100%; aspect-ratio: 3 / 2; border: 0; border-radius: 0; object-fit: contain; box-shadow: none; }
  .seasonal-dialog-copy { padding: 26px 30px 30px; }
  .seasonal-dialog-copy h2 { max-width: none; }
}
@media (max-width: 560px) {
  .seasonal-strip-inner { padding: 16px 20px; grid-template-columns: 44px minmax(0, 1fr); gap: 11px 13px; }
  .seasonal-emblem { grid-row: 1; width: 44px; height: 48px; border-radius: 13px; }
  .seasonal-emblem svg { width: 29px; height: 29px; }
  .seasonal-kicker { font-size: .6rem; letter-spacing: .08em; }
  .seasonal-strip-copy > strong { font-size: .94rem; line-height: 1.4; }
  .seasonal-strip-copy > p { font-size: .73rem; line-height: 1.55; }
  .seasonal-strip-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .seasonal-strip-actions :is(.seasonal-topup, .seasonal-details) { width: 100%; font-size: .77rem; padding: 11px 10px; }
  .seasonal-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .seasonal-dialog-close { top: 10px; right: 10px; width: 36px; height: 36px; }
  .seasonal-dialog-art img { max-height: 230px; }
  .seasonal-dialog-copy { padding: 24px 20px; }
  .seasonal-dialog-copy h2 { font-size: 1.7rem; }
  .seasonal-bonus { font-size: 2.7rem; }
  .seasonal-examples { gap: 6px; }
  .seasonal-examples > div { padding: 11px 5px; }
  .seasonal-examples dd { font-size: 1.03rem; }
  .seasonal-examples dt { font-size: .65rem; }
  html[data-seasonal] .seasonal-scene { width: 80%; opacity: .15; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-seasonal] :is(.seasonal-scene, .seasonal-scene *, .seasonal-homepage-art, .seasonal-reminder, .seasonal-topup, .seasonal-details) { animation: none !important; transition: none !important; }
}
@media print {
  .seasonal-strip, .seasonal-dialog, .seasonal-reminder-wrap, .seasonal-scene { display: none !important; }
}
