/* Autumn palette and surfaces. Theme configuration owns all artwork paths. */
body.theme-autumn {
  --theme-accent: #84d2df;
  --theme-warm: #f4b166;
  --theme-purple: #c09be7;
  --theme-ink: #090913;
  --asc-glyph-texture: none;
  --gaming-gradient: linear-gradient(130deg, #40213f, #8f4527 60%, #c17a32);
  --gaming-glow: 0 0 24px #ac63332e;
  --stone-gradient: linear-gradient(135deg, #12101c, #171723);
}
.theme-autumn .site-parallax__texture { opacity: .86; }
.theme-autumn .site-parallax__light { background: radial-gradient(ellipse at 50% 12%, #07091326 10%, #08091380 68%), linear-gradient(90deg, #06091110, #0b091728 50%, #06091110); }

/* These decorations are rendered only on the autumn homepage, inside its z=0 backdrop. */
body.theme-autumn.controller-home.action-index :is(.home-autumn-glow, .home-spider-eyes) {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
}
body.theme-autumn.controller-home.action-index .home-autumn-glow {
  mix-blend-mode: screen;
  opacity: .7;
  animation: home-ember-flicker 4.7s ease-in-out infinite;
}
body.theme-autumn.controller-home.action-index .home-spider-eyes { opacity: 1; }
body.theme-autumn.controller-home.action-index .home-logo-eyes { position: absolute; inset: 0; pointer-events: none; background: center / contain no-repeat; }
body.theme-autumn.controller-home.action-index .home-fireflies { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
body.theme-autumn.controller-home.action-index .home-firefly {
  position: absolute;
  left: var(--fly-x);
  top: var(--fly-y);
  width: var(--fly-size);
  height: var(--fly-size);
  animation: home-firefly-drift var(--fly-duration) var(--fly-delay) ease-in-out infinite alternate;
}
body.theme-autumn.controller-home.action-index .home-firefly__light {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #d0ffc0;
  box-shadow: 0 0 5px 2px #99ed6780, 0 0 15px 5px #68cd4930;
  opacity: .6;
  animation: home-firefly-pulse var(--fly-pulse) var(--fly-delay) ease-in-out infinite;
}
@keyframes home-ember-flicker {
  0%, 100% { opacity: .58; }
  18%, 47%, 78% { opacity: .9; }
  29%, 61%, 88% { opacity: .68; }
}
@keyframes home-firefly-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--fly-dx), var(--fly-dy), 0); }
}
@keyframes home-firefly-pulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .75; }
}
@media (max-width: 640px) {
  body.theme-autumn.controller-home.action-index .home-firefly:nth-child(n+10) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-autumn.controller-home.action-index .home-autumn-glow { animation: none; opacity: .7; }
  body.theme-autumn.controller-home.action-index .home-fireflies { display: none; }
  body.theme-autumn.controller-home.action-index :is(.home-firefly, .home-firefly__light) { animation: none; }
}
body.theme-autumn .asc-nav-inner {
  background: linear-gradient(105deg, #121321f5, #1d1222f2 58%, #201812f5) !important;
  border: 1px solid #bb825444 !important;
  border-bottom-color: #cb915976 !important;
  box-shadow: 0 8px 30px #03040ba1, 0 1px 24px #b7732317;
}
.theme-autumn .asc-nav-brand__mark { filter: drop-shadow(0 0 9px #bc77384a); }
.theme-autumn .asc-nav-link:hover, .theme-autumn .asc-nav-link.is-active { color: #f5bd7d !important; }
.theme-autumn .asc-nav-link::after { background: linear-gradient(90deg, transparent, #f1ad66, #bc8cd9, transparent) !important; }
.theme-autumn :is(.asc-mobile-menu, .asc-nav-user__menu) { background: #15101ff5 !important; border-color: #9d6b4759 !important; }
.theme-autumn .asc-mobile-menu a:hover { background: #bd87431a; color: #f5bd7d; }
body.theme-autumn :is(.asc-primary-button, .asc-nav-play, .asc-mobile-menu__play, .gaming-btn-primary, .grunge-button, .discord-cta-btn, .discord-btn-hero, .store-discount-banner__button, .alt-payment-cta__button, .vote-site-action, .vote-site-login-action, .asc-update-read-link, a[class*="bg-gradient-to-"][class*="py-"], a[href^="/downloads/"], button[type="submit"], input[type="submit"]) {
  color: #fff2de !important;
  background: linear-gradient(120deg, #382340, #8b4529 58%, #a65f2c) !important;
  border: 1px solid #d9a36596 !important;
  box-shadow: inset 0 1px 0 #ffe4b32b, 0 5px 18px #03040b73, 0 0 22px #cd73201f !important;
}
body.theme-autumn :is(.asc-primary-button, .asc-nav-play, .asc-mobile-menu__play, .gaming-btn-primary, .grunge-button, .discord-cta-btn, .discord-btn-hero, .store-discount-banner__button, .alt-payment-cta__button, .vote-site-action, .vote-site-login-action, .asc-update-read-link, a[class*="bg-gradient-to-"][class*="py-"], a[href^="/downloads/"], button[type="submit"], input[type="submit"]):hover {
  background: linear-gradient(120deg, #503057, #a7542f 58%, #bb7536) !important;
  border-color: #f0ba7f !important;
  box-shadow: inset 0 1px 0 #ffe4b347, 0 6px 22px #03040b73, 0 0 24px #dc8c313b !important;
}
body.theme-autumn :is(.asc-secondary-button, .asc-icon-button, .asc-nav-cart, .asc-nav-toggle, .asc-nav-user__button, .asc-watch-arrow) {
  color: #e2d6ed !important;
  background: linear-gradient(120deg, #191b2ef2, #35213bf2) !important;
  border-color: #a885bf80 !important;
  box-shadow: inset 0 1px 0 #dfc6f216, 0 0 20px #8754b21a !important;
}
body.theme-autumn :is(.asc-secondary-button, .asc-icon-button, .asc-nav-cart, .asc-nav-toggle, .asc-nav-user__button, .asc-watch-arrow):hover { border-color: #e1b77d !important; color: #fff2df !important; }
body.theme-autumn :is(.gaming-panel, .gaming-panel-secondary, .asc-community-inner, .store-discount-banner, .asc-news-card, .asc-news-article, .asc-update-card) {
  background: linear-gradient(125deg, #101a25ed, #24162de8) !important;
  border-color: #a885bf42 !important;
  box-shadow: 0 12px 38px #03040b66, inset 0 1px 0 #dbb7990a;
}
body.theme-autumn :is(.gaming-panel, .gaming-panel-secondary):hover { border-color: #bb945f73 !important; }
.theme-autumn :is(.asc-update-tab, .asc-updates-empty) { background-color: #100f1dd6; }
.theme-autumn .asc-update-tab[aria-selected="true"] { background: linear-gradient(115deg, #1c3342ed, #35203beb); }
.theme-autumn .asc-update-tab::after { background: linear-gradient(90deg, #63bbc8, #bd90d8, #d98c44); }
.theme-autumn .asc-update-tab[aria-selected="true"] .asc-update-tab__number { color: #f0b87e; text-shadow: 0 0 18px #d98c4433; }
.theme-autumn .asc-update-copy h3 { text-shadow: 0 2px 8px #070813; }
.theme-autumn :is(.asc-update-meta, .asc-kicker) { color: #d1abe9; }
.theme-autumn .asc-section-title span { background: linear-gradient(90deg, transparent, #b8854f88, #9370bd99); }
.theme-autumn .asc-community-inner { border-color: #be885552 !important; }
.theme-autumn .asc-media-tile { border-color: #ad82ce45 !important; }
.theme-autumn .asc-media-tile:hover { border-color: #df9a51a6 !important; box-shadow: 0 0 24px #b0653726; }
body.theme-autumn footer { background: #100e19f2 !important; border-color: #bc895344 !important; }
body.theme-autumn :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea) { background-color: #101320; border-color: #8f779a6b; }
body.theme-autumn :is(input, select, textarea):focus-visible { outline-color: #c69bdf; border-color: #c69bdf; }
.theme-autumn :is(.asc-nav-cart, .asc-nav-toggle)::before { background: none !important; }
@media (prefers-reduced-motion: reduce) {
  .theme-autumn .home-rune-node { animation: none !important; }
}

body.theme-site > main > section { background: transparent !important; }
.theme-autumn .asc-updates-pagination a, .theme-autumn .asc-updates-pagination span { background: #1b1525; border-color: #9c769d52; }
.theme-autumn .asc-updates-pagination [aria-current] { background: #6b3e35; border-color: #d4a362; color: #fff1de; }
/* Legacy navbar rules contain an ID selector inside :not(); match it locally. */
body.theme-autumn .asc-site-nav :is(.asc-nav-cart, .asc-nav-toggle:not(#mobileMenuButton), .asc-nav-user__button) {
  background: linear-gradient(120deg, #191b2ef2, #35213bf2) !important;
  border-color: #a885bf80 !important;
  box-shadow: inset 0 1px 0 #dfc6f216, 0 0 20px #8754b21a !important;
}

/* Keep the planner's category colours and interaction geometry; skin its surfaces. */
body.theme-autumn .treeeyesonly-page {
  --toe-muted: #b7adc5;
  --toe-border: #a885bf59;
  --toe-border-hot: #e3ac70;
  --toe-shadow: 0 18px 46px #03040b94, 0 0 28px #8b559b1f;
  --asc-glyph-texture: none;
  background: transparent;
}
body.theme-autumn .toe-board { background: transparent; }
body.theme-autumn .toe-bg-image { opacity: .22; }
body.theme-autumn .toe-bg-vignette { fill: #09091333; stroke: #af86c14d; }
body.theme-autumn.controller-treeeyesonly .site-parallax__foreground { opacity: .38; }
body.theme-autumn :is(.toe-header, .toe-command-bar, .toe-sidebar, .toe-stats-sidebar, .toe-tooltip, .toe-help-panel, .toe-admin-card, .toe-confirm-card, .toe-countdown-card) {
  background: linear-gradient(125deg, #101522f5, #25182ef2);
  border-color: var(--toe-border);
}
body.theme-autumn .toe-header { border-bottom-color: #cb915976; }
body.theme-autumn .toe-header::before {
  background: radial-gradient(ellipse at 8% 50%, #cb873322, transparent 30%), radial-gradient(ellipse at 75% 50%, #a071c52e, transparent 55%);
}
body.theme-autumn .toe-logo-link img { filter: drop-shadow(0 0 9px #bc77384a); }
body.theme-autumn .toe-title-block h1 { color: #fff0db; text-shadow: 0 2px 8px #03040b, 0 0 24px #b684cf55; }
body.theme-autumn :is(.toe-search-shell, .toe-stat-group, .toe-effect-category, .toe-build-name) { background: #100f1dbf; border-color: #a885bf42; }
body.theme-autumn .toe-search-shell input { background: transparent; }
body.theme-autumn .toe-search-shell:focus-within { border-color: #c69bdf; box-shadow: 0 0 0 2px #c69bdf26; }
body.theme-autumn .toe-sidebar__header { border-bottom-color: #bb89553d; }
body.theme-autumn .treeeyesonly-page button {
  color: #f3e8fa;
  background: linear-gradient(120deg, #202037, #493052);
  border-color: #a885bf80;
  box-shadow: inset 0 1px 0 #dfc6f221, 0 5px 16px #03040b66, 0 0 18px #8754b21a;
}
body.theme-autumn .treeeyesonly-page button:hover {
  color: #fff2de;
  background: linear-gradient(120deg, #39243f, #75412f);
  border-color: #e3ac70;
  box-shadow: 0 0 20px #dc8c312e;
}
body.theme-autumn .treeeyesonly-page button[aria-pressed="true"],
body.theme-autumn .treeeyesonly-page button[data-action="share"] {
  color: #fff2de;
  background: linear-gradient(120deg, #503052, #99582d);
  border-color: #d9a365;
}
body.theme-autumn .treeeyesonly-page :is(button, a):focus-visible { outline: 2px solid #e3ac70; outline-offset: 3px; }
body.theme-autumn .toe-toast { background: #211729f5; border-color: #d9a36580; }
body.theme-autumn .toe-countdown-bg { opacity: .18; }
