/* SF ALPHA / HAATOols: automatic monthly website themes.
   Loaded AFTER the original styles. Isolated from app logic and permissions.
   January New Year | February Valentine | March Bloom | April Summer
   May Fiesta | June Rainy | July Ocean | August Starry | September Harvest
   October Mystic | November Halloween | December Christmas. */

html[data-season="january"] {
  --season-fx-accent:#f4d27c;--season-fx-accent2:#94bdff;--season-fx-particle:#f4d68b;
  --season-bg:#0b1730; --season-panel:#1c2b47; --season-accent:#f4d27c;
  --season-accent2:#94bdff; --season-contrast:#182039; --season-particle:#f4d68b;
}
html[data-season="february"] {
  --season-fx-accent:#ff91bf;--season-fx-accent2:#ffd0d9;--season-fx-particle:#ffb8d2;
  --season-bg:#24101f; --season-panel:#422336; --season-accent:#ff91bf;
  --season-accent2:#ffd0d9; --season-contrast:#3b1427; --season-particle:#ffb8d2;
}
html[data-season="march"] {
  --season-fx-accent:#84e5b7;--season-fx-accent2:#f6add1;--season-fx-particle:#f4b5d4;
  --season-bg:#10241f; --season-panel:#1d3c32; --season-accent:#84e5b7;
  --season-accent2:#f6add1; --season-contrast:#143328; --season-particle:#f4b5d4;
}
html[data-season="april"] {
  --season-fx-accent:#ffbe6b;--season-fx-accent2:#ff7f71;--season-fx-particle:#ffcf82;
  --season-bg:#2a1b17; --season-panel:#503025; --season-accent:#ffbe6b;
  --season-accent2:#ff7f71; --season-contrast:#3b2118; --season-particle:#ffcf82;
}
html[data-season="may"] {
  --season-fx-accent:#f7d57c;--season-fx-accent2:#77e2cb;--season-fx-particle:#efb877;
  --season-bg:#181e30; --season-panel:#273955; --season-accent:#f7d57c;
  --season-accent2:#77e2cb; --season-contrast:#293044; --season-particle:#efb877;
}
html[data-season="june"] {
  --season-fx-accent:#79cffa;--season-fx-accent2:#b3e5fc;--season-fx-particle:#96dbff;
  --season-bg:#102333; --season-panel:#1b3949; --season-accent:#79cffa;
  --season-accent2:#b3e5fc; --season-contrast:#173142; --season-particle:#96dbff;
}
html[data-season="july"] {
  --season-fx-accent:#76e9dd;--season-fx-accent2:#9bd9fb;--season-fx-particle:#9beeff;
  --season-bg:#082730; --season-panel:#16424a; --season-accent:#76e9dd;
  --season-accent2:#9bd9fb; --season-contrast:#0c353b; --season-particle:#9beeff;
}
html[data-season="august"] {
  --season-fx-accent:#adc8ff;--season-fx-accent2:#79b9ed;--season-fx-particle:#d0daff;
  --season-bg:#11192f; --season-panel:#243457; --season-accent:#adc8ff;
  --season-accent2:#79b9ed; --season-contrast:#20294b; --season-particle:#d0daff;
}
html[data-season="september"] {
  --season-fx-accent:#ffd17c;--season-fx-accent2:#dfa86e;--season-fx-particle:#e8a650;
  --season-bg:#2a1e14; --season-panel:#423422; --season-accent:#ffd17c;
  --season-accent2:#dfa86e; --season-contrast:#40291a; --season-particle:#e8a650;
}
html[data-season="october"] {
  --season-fx-accent:#8cd3e9;--season-fx-accent2:#80cadc;--season-fx-particle:#9dd8eb;
  --season-bg:#142734; --season-panel:#244252; --season-accent:#8cd3e9;
  --season-accent2:#80cadc; --season-contrast:#173543; --season-particle:#9dd8eb;
}
html[data-season="november"] {
  --season-fx-accent:#a3d5d5;--season-fx-accent2:#6bb7c4;--season-fx-particle:#81c6cd;
  --season-bg:#13252e; --season-panel:#23434a; --season-accent:#a3d5d5;
  --season-accent2:#6bb7c4; --season-contrast:#173941; --season-particle:#81c6cd;
}
html[data-season="december"] {
  --season-fx-accent:#ff6474;--season-fx-accent2:#ed4c5c;--season-fx-particle:#edfbff;
  --season-bg:#2a0e19; --season-panel:#4c1d2a; --season-accent:#ff6474;
  --season-accent2:#ed4c5c; --season-contrast:#401420; --season-particle:#edfbff;
}

/* Rich month-specific palette across the whole staff UI and sign-in screen.
   Existing alert/red status indicators, HAATO gold shimmer and gold Export glow
   intentionally remain unchanged. */
html[data-season] { color-scheme:dark; }
html[data-season] body {
  background: radial-gradient(ellipse at 16% 6%, color-mix(in srgb,var(--season-accent) 16%,transparent), transparent 51%),
              radial-gradient(ellipse at 96% 100%, color-mix(in srgb,var(--season-accent2) 16%,transparent),transparent 44%),
              var(--season-bg);
  color:#f2f0f8;
  transition: background-color .65s ease, color .4s ease;
}
html[data-season] body::before {
  background:radial-gradient(circle,var(--season-accent),transparent 67%);
  opacity:.15;
}
html[data-season] body::after {
  background:radial-gradient(circle,var(--season-accent2),transparent 70%);
  opacity:.15;
}
html[data-season] .video-background { background:var(--season-bg); }
html[data-season] .video-background::after {
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--season-bg) 88%,transparent),
    color-mix(in srgb,var(--season-bg) 79%,transparent));
}
html[data-season] .card {
  border-color:color-mix(in srgb,var(--season-accent) 19%,transparent);
  background:linear-gradient(148deg,
    color-mix(in srgb,var(--season-panel) 92%,transparent),
    color-mix(in srgb,var(--season-bg) 94%,#131622));
  box-shadow:0 24px 72px #0006, inset 0 1px color-mix(in srgb,var(--season-accent) 12%,transparent);
}
html[data-season] .top-tabs {
  background:color-mix(in srgb,var(--season-bg) 89%,transparent);
  border-color:color-mix(in srgb,var(--season-accent) 25%,transparent);
}
html[data-season] .tab-button:not(.active):not([aria-selected="true"]) {
  color:color-mix(in srgb,var(--season-accent) 42%,#ccd8e6);
}
html[data-season] .tab-button:hover:not(.active):not([aria-selected="true"]) {
  background:color-mix(in srgb,var(--season-accent) 15%,transparent);
  color:#fff;
}
html[data-season] .tab-button.active,
html[data-season] .tab-button[aria-selected="true"] {
  background:linear-gradient(112deg,var(--season-accent),var(--season-accent2));
  color:var(--season-contrast);
  box-shadow:0 10px 28px color-mix(in srgb,var(--season-accent) 18%,transparent);
}
/* Button skins always follow the CURRENT MONTH, even over AMOLED, Steam,
   Valorant, Linear Light, Slate, etc.  --season-fx-* is independent of
   --season-accent, which appearance palettes legitimately change for layouts.
   Only generic primary buttons get this; custom button CSS (gold, repair,
   inventory actions, danger) can override with more specific rules. */
html[data-season] :is(button.primary,input.primary) {
  background:linear-gradient(112deg,var(--season-fx-accent),var(--season-fx-accent2));
  color:var(--season-contrast);
  border-color:color-mix(in srgb,var(--season-fx-accent) 75%,transparent);
  box-shadow:0 10px 28px color-mix(in srgb,var(--season-fx-accent) 18%,transparent);
}
html[data-season] .eyebrow,
html[data-season] .card-title,
html[data-season] .card > form::before,
html[data-season] .card > section::before {
  color:var(--season-accent);
}
html[data-season] .eyebrow span { color:color-mix(in srgb,var(--season-accent) 46%,#8195ae); }
html[data-season] .intro,html[data-season] .card p { color:#c6c6d4; }
html[data-season] .progress {border-color:color-mix(in srgb,var(--season-accent) 27%,transparent);background:color-mix(in srgb,var(--season-bg) 84%,transparent)}
html[data-season] .progress-track span {background:linear-gradient(90deg,var(--season-accent),var(--season-accent2));}
html[data-season] .progress-heading strong:last-child,
html[data-season] .claims-count {color:var(--season-accent);}
html[data-season] .table-wrap {background:color-mix(in srgb,var(--season-bg) 90%,transparent);border-color:color-mix(in srgb,var(--season-accent) 16%,transparent);}
html[data-season] .table-wrap th {color:var(--season-accent);}
html[data-season] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-season] textarea,html[data-season] select {
  background-color:color-mix(in srgb,var(--season-bg) 86%,#070c18);
  border-color:color-mix(in srgb,var(--season-accent) 25%,#364157);
  color:#fff;
}
html[data-season] input:focus-visible,
html[data-season] textarea:focus-visible,
html[data-season] select:focus-visible,
html[data-season] button:focus-visible {
  outline-color:var(--season-accent);
}
html[data-season] input:focus,html[data-season] textarea:focus {
  border-color:var(--season-accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--season-accent) 20%,transparent);
}
html[data-season] .music-controls,
html[data-season] .music-toggle {
  background:color-mix(in srgb,var(--season-panel) 96%,#152535);
  border-color:color-mix(in srgb,var(--season-accent) 40%,transparent);
  color:#f6f2fa;
}
/* Deliberately exclude critical UI: #session-countdown (state green/yellow/red),
   the golden HAATO lettering, and #ticket-export-expanded gold highlight. */

/* December is deliberately red, rather than the gold/pink hue of other seasons. */
html[data-season="december"] .tab-button.active,
html[data-season="december"] .tab-button[aria-selected="true"] {
  background:linear-gradient(110deg,#f15d6d,#c52b44);
  color:#fffaf5;
  text-shadow:0 1px 2px #6117268c;
}
html[data-season="december"] :is(button.primary,input.primary){
  background:linear-gradient(110deg,#f15d6d,#c52b44);
  color:#fffaf5;
  text-shadow:0 1px 2px #6117268c;
  border-color:#f15d6d;
}
/* Monthly artwork is part of the main paint stack: above opaque palette backgrounds,
   below all app content, dialogs and inputs. It never catches mouse or touch events. */
.seasonal-atmosphere {
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  opacity:1;
  filter:none;
  user-select:none;
  contain:layout paint;
}
html[data-season] main { position:relative; z-index:2; isolation:isolate; }
/* Keep decorative artwork behind the tab contents without hiding it under
   opaque Linear/Steam/Valorant main backgrounds. */
html[data-season] main > :is(.tab-view,#tabs-unavailable,.staff-header-line,.eyebrow,.intro,.cards) { position:relative; z-index:1; }
/* Respect the higher existing mobile drawer, modal and fixed-toolbar stacking levels. */
html[data-season] body.modal-open #seasonal-atmosphere { opacity:.16; }

.seasonal-halo {
  position:absolute;
  width:min(58vw,670px);
  height:min(58vw,670px);
  right:-17vw;
  bottom:-20vh;
  background:radial-gradient(circle,
    color-mix(in srgb,var(--season-fx-accent2) 25%,transparent),
    color-mix(in srgb,var(--season-fx-accent) 7%,transparent) 40%,transparent 73%);
  filter:blur(35px);
}
.seasonal-hero {
  position:absolute;
  right:max(0px,1vw);
  bottom:5vh;
  width:clamp(190px,25vw,360px);
  color:var(--season-fx-accent);
  opacity:.84;
  filter:drop-shadow(0 0 22px color-mix(in srgb,var(--season-fx-accent) 42%,transparent));
  animation:seasonal-hero-breathe 8s ease-in-out infinite alternate;
}
.seasonal-hero svg {width:100%;height:auto;display:block;overflow:visible;}
.seasonal-hero--november { width:clamp(190px,24vw,340px);right:1.4vw;bottom:2vh;filter:drop-shadow(0 0 22px #ff8c3e66); }
.seasonal-hero--december {
  top:5vh; bottom:auto; right:2vw;
  width:clamp(360px,54vw,780px);
  opacity:.92;
  filter:drop-shadow(0 0 20px #fce1aa55);
  animation:seasonal-santa-flight 26s ease-in-out infinite alternate;
}
.seasonal-hero--january{right:1vw;bottom:6vh;}
.seasonal-hero--october {bottom:5vh;opacity:.55;}
.seasonal-hero--august{top:5vh;bottom:auto;width:clamp(140px,17vw,250px);}

.seasonal-particles {position:absolute;inset:0;overflow:hidden;}
.seasonal-particle {
  position:absolute;
  left:var(--x);
  top:var(--y);
  display:block;
  width:var(--size);
  height:var(--size);
  opacity:var(--opacity);
  color:var(--season-fx-particle);
  pointer-events:none;
  will-change:transform;
}
.seasonal-particle svg {display:block;width:100%;height:100%;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--season-fx-accent) 44%,transparent));}

.seasonal-atmosphere[data-effect="snow"] .seasonal-particle,
.seasonal-atmosphere[data-effect="rain"] .seasonal-particle,
.seasonal-atmosphere[data-effect="leaves"] .seasonal-particle,
.seasonal-atmosphere[data-effect="petals"] .seasonal-particle,
.seasonal-atmosphere[data-effect="confetti"] .seasonal-particle {
  top:-15vh;
  animation:seasonal-fall var(--duration) linear var(--delay) infinite;
}
.seasonal-atmosphere[data-effect="rain"] .seasonal-particle {opacity:.4;}
.seasonal-atmosphere[data-effect="bats"] .seasonal-particle {
  left:-12vw;
  animation:seasonal-bat-flight var(--duration) linear var(--delay) infinite;
}
.seasonal-atmosphere[data-effect="hearts"] .seasonal-particle,
.seasonal-atmosphere[data-effect="bubbles"] .seasonal-particle,
.seasonal-atmosphere[data-effect="spirits"] .seasonal-particle {
  top:102vh;
  animation:seasonal-rise var(--duration) linear var(--delay) infinite;
}
.seasonal-atmosphere[data-effect="fireworks"] .seasonal-particle,
.seasonal-atmosphere[data-effect="sunlight"] .seasonal-particle,
.seasonal-atmosphere[data-effect="stars"] .seasonal-particle {
  animation:seasonal-twinkle var(--duration) ease-in-out var(--delay) infinite;
}
@keyframes seasonal-fall {
  from {transform:translate3d(0,-15vh,0) rotate(-20deg);}
  to {transform:translate3d(var(--sway),132vh,0) rotate(70deg);}
}
@keyframes seasonal-rise {
  from {transform:translate3d(0,12vh,0) rotate(-10deg);}
  to {transform:translate3d(var(--sway),-135vh,0) rotate(50deg);}
}
@keyframes seasonal-bat-flight {
  0% {transform:translate3d(-12vw,0,0) scale(.9) rotate(-10deg);}
  25% {transform:translate3d(33vw,-35px,0) scale(1.1) rotate(9deg);}
  52% {transform:translate3d(73vw,30px,0) rotate(-8deg);}
  78% {transform:translate3d(107vw,-20px,0) rotate(12deg);}
  100% {transform:translate3d(138vw,3px,0) rotate(-10deg);}
}
@keyframes seasonal-twinkle {
  0%,100% {transform:scale(.55) rotate(-12deg);opacity:.1;}
  45% {transform:scale(1.1) rotate(20deg);opacity:var(--opacity);}
}
@keyframes seasonal-hero-breathe {
  0% {transform:translate3d(0,0,0) rotate(-2deg);}
  100% {transform:translate3d(-12px,-18px,0) rotate(3deg);}
}
@keyframes seasonal-santa-flight {
  0% {transform:translate3d(6vw,14px,0) rotate(2deg);}
  50% {transform:translate3d(-12vw,-30px,0) rotate(-3deg);}
  100% {transform:translate3d(-29vw,-10px,0) rotate(1deg);}
}

@media(max-width:760px) {
  .seasonal-hero {width:clamp(155px,47vw,280px);opacity:.43;right:-4vw;bottom:7vh;}
  .seasonal-hero--november{width:clamp(180px,44vw,260px);opacity:.55;}
  .seasonal-hero--december{top:8vh;bottom:auto;width:clamp(270px,88vw,550px);opacity:.66;}
  .seasonal-particle:nth-child(n+23) {display:none;}
  .seasonal-atmosphere[data-effect="snow"] .seasonal-particle:nth-child(n+30) {display:none;}
}
@media(prefers-reduced-motion:reduce) {
  .seasonal-atmosphere *,
  .seasonal-atmosphere *::before,
  .seasonal-atmosphere *::after {animation:none!important;transition:none!important;}
  .seasonal-particles {display:none;}
  .seasonal-hero {transform:none!important;opacity:.5;}
  html[data-season] body {transition:none;}
}
