/* ==========================================================
   MAHAU SEASONAL + FUTEBOL
   Camada global. Mantém layout, fonte e identidade-base.
   ========================================================== */

:root {
  --mahau-season-a: rgba(145,72,255,0);
  --mahau-season-b: rgba(205,114,255,0);
  --mahau-season-c: rgba(255,255,255,0);
}

.mahau-seasonal-layer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity .55s ease;
}

html[data-mahau-season]:not([data-mahau-season="normal"]) .mahau-seasonal-layer {
  opacity: 1;
}

.mahau-seasonal-layer::before,
.mahau-seasonal-layer::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: .20;
}

.mahau-seasonal-layer::before {
  width: 34vw;
  height: 34vw;
  min-width: 320px;
  min-height: 320px;
  left: -8vw;
  top: 7vh;
  background: var(--mahau-season-a);
}

.mahau-seasonal-layer::after {
  width: 30vw;
  height: 30vw;
  min-width: 280px;
  min-height: 280px;
  right: -7vw;
  bottom: 5vh;
  background: var(--mahau-season-b);
}

.mahau-seasonal-particle {
  position: absolute;
  width: var(--size, 5px);
  height: var(--size, 5px);
  left: var(--left, 50%);
  top: -20px;
  border-radius: var(--radius, 999px);
  background: var(--particle, rgba(255,255,255,.8));
  box-shadow: 0 0 13px var(--particle, rgba(255,255,255,.6));
  opacity: var(--opacity, .55);
  animation:
    mahauSeasonFall var(--duration, 13s) linear var(--delay, 0s) infinite,
    mahauSeasonTwinkle 2.8s ease-in-out var(--delay, 0s) infinite;
}

@keyframes mahauSeasonFall {
  from { transform: translate3d(0,-8vh,0) rotate(0deg); }
  to { transform: translate3d(var(--drift,20px),110vh,0) rotate(360deg); }
}

@keyframes mahauSeasonTwinkle {
  0%,100% { opacity: calc(var(--opacity, .55) * .55); }
  50% { opacity: var(--opacity, .55); }
}

html[data-mahau-season="halloween"] {
  --mahau-season-a: rgba(142,56,210,.70);
  --mahau-season-b: rgba(255,116,35,.58);
  --mahau-season-c: rgba(255,177,72,.70);
}

html[data-mahau-season="natal"] {
  --mahau-season-a: rgba(154,31,62,.60);
  --mahau-season-b: rgba(255,202,90,.50);
  --mahau-season-c: rgba(255,236,192,.80);
}

html[data-mahau-season="reveillon"] {
  --mahau-season-a: rgba(255,255,255,.55);
  --mahau-season-b: rgba(224,184,86,.62);
  --mahau-season-c: rgba(255,244,195,.85);
}

html[data-mahau-season="carnaval"] {
  --mahau-season-a: rgba(180,62,255,.65);
  --mahau-season-b: rgba(255,73,169,.52);
  --mahau-season-c: rgba(69,220,255,.70);
}

/* Brasil */
html[data-mahau-season="brasil"] {
  --mahau-season-a: rgba(24,174,71,.56);
  --mahau-season-b: rgba(255,220,2,.58);
  --mahau-season-c: rgba(30,69,151,.72);
}

html[data-mahau-season="brasil"] body {
  background-image:
    radial-gradient(circle at 4% 3%, rgba(25,174,71,.07), transparent 27%),
    radial-gradient(circle at 96% 8%, rgba(255,220,2,.055), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(30,69,151,.055), transparent 28%);
}

/* Futebol genérico */
html[data-mahau-season="futebol"] {
  --mahau-season-a: rgba(28,148,73,.48);
  --mahau-season-b: rgba(240,240,240,.32);
  --mahau-season-c: rgba(121,242,166,.56);
}

html[data-mahau-season="futebol"] body {
  background-image:
    radial-gradient(circle at 10% 4%, rgba(33,153,77,.06), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.025), transparent 22%);
}

.mahau-football-badge {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 36px));
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,220,2,.20);
  border-radius: 14px;
  background: rgba(7,9,10,.88);
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  pointer-events: none;
}

.mahau-football-badge .flag { font-size: 1.35rem; }

.mahau-football-badge div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mahau-football-badge small {
  color: #ffdc02;
  font-size: .61rem;
  font-weight: 950;
  letter-spacing: .13em;
}

.mahau-football-badge strong {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
}

@media (prefers-reduced-motion: reduce) {
  .mahau-seasonal-particle {
    animation: none !important;
    opacity: .24;
  }
}

@media (max-width:700px) {
  .mahau-seasonal-layer::before,
  .mahau-seasonal-layer::after { opacity: .14; }

  .mahau-football-badge {
    left: 12px;
    bottom: 12px;
    padding: 9px 11px;
  }
}
