/* Herfst overlay — alleen actief met html.theme-autumn.
   Uit: config.js → autumnTheme: false */

html.theme-autumn{
  --bg-0:#0e0c0a;
  --bg-1:#17130f;
  --panel:rgba(36,28,20,0.88);
  --stone:#3a3228;
  --stone-dark:#1a1610;
  --ink:#f5efe6;
  --ink-dim:#a89878;
  --pro:#e8a04a;
  --legend:#d95a2a;
  --gold:#f0c14b;
  --ok:#9bcf5a;
  --lava:#e07030;
  --lava-hot:#f0a050;
  --ember:#d97840;
  --chorus:#c9a06e;
  --au-amber:#e8a04a;
  --au-rust:#c45a28;
  --au-leaf:#c46b2a;
  --au-moss:#6a8a3a;
}

html.theme-autumn body.home{
  background:var(--bg-0);
}

html.theme-autumn .sky{
  background:
    radial-gradient(ellipse 1000px 480px at 50% -8%, rgba(232,160,74,0.18), transparent 60%),
    radial-gradient(ellipse 700px 420px at 100% 100%, rgba(196,90,40,0.12), transparent 58%),
    radial-gradient(ellipse 600px 380px at 0% 70%, rgba(106,138,58,0.08), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,220,160,0.015) 0 2px, transparent 2px 4px),
    var(--bg-0);
}

html.theme-autumn .sky::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 180px 80px at 78% 14%, rgba(255,210,140,0.22), transparent 70%),
    radial-gradient(circle 2px at 18% 30%, rgba(255,220,170,0.25), transparent 3px),
    radial-gradient(circle 1.5px at 42% 18%, rgba(255,200,140,0.2), transparent 3px),
    radial-gradient(circle 1px at 66% 40%, rgba(255,220,170,0.18), transparent 2px);
  opacity:0.85;
  pointer-events:none;
}

html.theme-autumn .brand .borrel{
  color:var(--au-amber);
  text-shadow:0 0 16px rgba(232,160,74,0.3);
}
html.theme-autumn .brand .buurt{
  color:var(--au-rust);
  text-shadow:0 0 16px rgba(196,90,40,0.28);
}
html.theme-autumn .home-center .brand{
  position:relative;
}
html.theme-autumn .home-center .brand::after{
  content:"HERFST";
  display:block;
  margin-top:10px;
  font-family:'Press Start 2P', monospace;
  font-size:clamp(8px, 1.6vw, 11px);
  letter-spacing:3px;
  color:var(--au-leaf);
  text-shadow:0 0 10px rgba(196,107,42,0.35);
  animation:auPulse 3s ease-in-out infinite;
}

html.theme-autumn .status-pill,
html.theme-autumn .visitors-pill{
  border-color:#4a3a28;
  box-shadow:inset 0 1px 0 rgba(255,200,120,0.06), 0 4px 0 rgba(0,0,0,0.4);
}
html.theme-autumn .ip-card{
  border-color:#3a2e22;
  background:rgba(28,22,16,0.86);
}
html.theme-autumn .ip-card:hover,
html.theme-autumn .ip-card.is-selected,
html.theme-autumn .ip-card:focus-visible{
  border-color:var(--au-amber);
  box-shadow:0 0 0 1px rgba(232,160,74,0.25), 0 6px 0 rgba(0,0,0,0.4);
}
html.theme-autumn .ip-card.secondary:hover,
html.theme-autumn .ip-card.secondary.is-selected,
html.theme-autumn .ip-card.secondary:focus-visible{
  border-color:var(--au-rust);
  box-shadow:0 0 0 1px rgba(196,90,40,0.28), 0 6px 0 rgba(0,0,0,0.4);
}

html.theme-autumn .promo-card{
  background:rgba(24,18,12,0.72);
  border-color:#3a2e22;
}
html.theme-autumn .vote-stall:hover,
html.theme-autumn .vote-stall.is-selected,
html.theme-autumn .vote-stall:focus-visible{
  border-color:var(--au-amber);
  box-shadow:inset 0 2px 0 rgba(232,160,74,0.1), 0 8px 0 rgba(0,0,0,0.4), 0 0 28px rgba(232,160,74,0.18);
}
html.theme-autumn .info-stall:hover,
html.theme-autumn .info-stall.is-selected,
html.theme-autumn .info-stall:focus-visible{
  border-color:var(--au-moss);
  box-shadow:inset 0 2px 0 rgba(106,138,58,0.1), 0 8px 0 rgba(0,0,0,0.4), 0 0 28px rgba(106,138,58,0.16);
}
html.theme-autumn .shop-stall:hover,
html.theme-autumn .shop-stall.is-selected,
html.theme-autumn .shop-stall:focus-visible{
  border-color:var(--gold);
  box-shadow:inset 0 2px 0 rgba(240,193,75,0.1), 0 8px 0 rgba(0,0,0,0.4), 0 0 28px rgba(240,193,75,0.16);
}
html.theme-autumn .discord-stall:hover,
html.theme-autumn .discord-stall.is-selected,
html.theme-autumn .discord-stall:focus-visible{
  border-color:#7a9a4a;
  box-shadow:inset 0 2px 0 rgba(122,154,74,0.1), 0 8px 0 rgba(0,0,0,0.4), 0 0 28px rgba(122,154,74,0.16);
}
html.theme-autumn .krant-stall:hover,
html.theme-autumn .krant-stall.is-selected,
html.theme-autumn .krant-stall:focus-visible{
  border-color:var(--au-rust);
  box-shadow:inset 0 2px 0 rgba(196,90,40,0.1), 0 8px 0 rgba(0,0,0,0.4), 0 0 28px rgba(196,90,40,0.16);
}
html.theme-autumn .tracker-stall:hover,
html.theme-autumn .tracker-stall.is-selected,
html.theme-autumn .tracker-stall:focus-visible{
  border-color:var(--au-amber);
  box-shadow:inset 0 2px 0 rgba(232,160,74,0.1), 0 8px 0 rgba(0,0,0,0.4), 0 0 28px rgba(232,160,74,0.16);
}

html.theme-autumn .vote-cta-home{color:var(--au-amber);}
html.theme-autumn .info-cta{color:var(--au-moss);}
html.theme-autumn .shop-cta{color:var(--gold);}
html.theme-autumn .discord-cta{color:#9ab86a;}
html.theme-autumn .krant-cta{color:var(--au-rust);}
html.theme-autumn .tracker-cta{color:var(--au-amber);}

html.theme-autumn .creator-name{color:#f0e0c8;}
html.theme-autumn .creator-role{color:#c4a878;}
html.theme-autumn .creator-skin{
  filter:drop-shadow(0 10px 0 rgba(0,0,0,0.4)) drop-shadow(0 0 12px rgba(232,160,74,0.14));
}
html.theme-autumn .social-btn{
  background:rgba(28,22,16,0.86);
  border-color:#3a2e22;
}
html.theme-autumn .menu-hint{color:#a88868;}
html.theme-autumn .menu-hint kbd{
  border-color:#4a3a28;
  background:rgba(40,30,20,0.9);
}

/* FX layer */
.au-layer{
  display:none;
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  overflow:hidden;
}
html.theme-autumn .au-layer{display:block;}

.au-leaf{
  position:absolute;
  top:-28px;
  width:14px;
  height:14px;
  color:#c46b2a;
  animation:auLeafFall linear infinite;
  filter:drop-shadow(0 2px 0 rgba(0,0,0,0.25));
  opacity:0.85;
}
.au-leaf svg{width:100%;height:100%;display:block;}
.au-leaf.tone-amber{color:#e8a04a;}
.au-leaf.tone-rust{color:#c45a28;}
.au-leaf.tone-gold{color:#f0c14b;}
.au-leaf.tone-brown{color:#8a5a32;}
.au-leaf.tone-moss{color:#7a9a40;}

.au-ground{
  position:absolute;
  left:0;right:0;bottom:8px;
  display:flex;
  justify-content:center;
  gap:clamp(40px, 10vw, 120px);
  opacity:0.88;
}
.au-acorn{
  width:22px;
  height:26px;
  animation:auBob 3.4s ease-in-out infinite;
  filter:drop-shadow(0 4px 0 rgba(0,0,0,0.3));
}
.au-acorn:nth-child(2){animation-delay:0.7s;transform:scale(0.88);}
.au-acorn:nth-child(3){animation-delay:1.3s;transform:scale(1.06);}
.au-acorn svg{width:100%;height:100%;display:block;}

.au-mist{
  position:absolute;
  left:0;right:0;bottom:0;
  height:28%;
  background:linear-gradient(180deg, transparent, rgba(40,28,16,0.35));
  opacity:0.7;
}

@keyframes auPulse{
  0%,100%{opacity:0.78;transform:translateY(0);}
  50%{opacity:1;transform:translateY(-1px);}
}
@keyframes auLeafFall{
  0%{transform:translate3d(0,-10px,0) rotate(0deg); opacity:0;}
  8%{opacity:0.9;}
  100%{transform:translate3d(var(--au-drift, 40px), 110vh, 0) rotate(var(--au-spin, 360deg)); opacity:0.15;}
}
@keyframes auBob{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-4px);}
}

@media (max-width:720px){
  .au-ground{gap:24px;bottom:4px;}
  .au-acorn{width:18px;height:22px;}
  .au-leaf{width:12px;height:12px;}
  html.theme-autumn .home-center .brand::after{letter-spacing:2px;margin-top:8px;}
}

html.prefs-no-motion.theme-autumn .home-center .brand::after,
html.prefs-no-motion.theme-autumn .au-leaf,
html.prefs-no-motion.theme-autumn .au-acorn{
  animation:none !important;
}
html.prefs-no-motion.theme-autumn .au-leaf{opacity:0;}
