/* Seasonal decoration never changes the chart canvas or its palette. */
body.hw-season {
  background-color: #22162f;
  background-image: url("assets/halloween-pumpkins.svg?v=2026-2");
}
.hw-season .topbar, .hw-season .privacy-section, .hw-season .copyright-notice { color: #fff4e8; }
.hw-season .brand-byline, .hw-season .brand-tagline, .hw-season .copyright-details, .hw-season .privacy-section p { color: #d2bfdc; }
.hw-season main > p > a { color: #dfc3f8; }
.hw-season .work-card, .hw-season .chart-card, .hw-season .upload-card { background: #fffaff; }
.hw-season .social-section { background: #fffaff; }
.hw-season .language-switch { background: #fffaff; }
.hw-shell { position: relative; }
.hw-haunted { border-radius: 10px; background: #f1e8f8; outline: 1px solid #d5c4e2; padding: 12px; margin: 0 -4px 16px; }
.hw-stage { position: relative; pointer-events: none; z-index: 1; }
.hw-stage:empty { display: none; }
.hw-actor { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 0; width: 100%; animation: hw-arrive 4s both; transform-origin: 75% 100%; }
.hw-ghost { padding: 0; border: 0; background: none; width: 140px; height: 193px; flex: 0 0 140px; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 8px 5px #21162f35); animation: hw-float 2.6s ease-in-out infinite; }
.hw-ghost svg { display: block; width: 100%; height: 100%; }
.hw-bubble { flex: 1; min-width: 0; margin: 0; padding: 12px; background: #261b35; color: #fff9eb; border: 2px solid #c2a4dd; box-shadow: 3px 3px 0 #ff9950; font-size: 14px; line-height: 1.65; text-align: left; position: relative; overflow-wrap: anywhere; }
.hw-bubble::after { content: ''; position: absolute; top: 50%; right: -7px; width: 10px; height: 10px; background: #261b35; border-right: 2px solid #c2a4dd; border-top: 2px solid #c2a4dd; transform: rotate(45deg); }
.hw-skip { position: absolute; top: 0; right: 0; border: 1px solid #c2a4dd; background: #261b35; color: #fff9eb; width: 32px; height: 32px; pointer-events: auto; cursor: pointer; z-index: 1; }
.hw-retreated { justify-content: flex-end; padding: 6px 0; animation: hw-retreat .6s both; }
.hw-retreated .hw-bubble { display: none; }
.hw-retreated .hw-ghost { width: 96px; height: 132px; flex-basis: 96px; }
.hw-catching { animation: none; }
.hw-catching .hw-ghost { animation: hw-catch .38s both; }
.hw-catching .hw-bubble, .hw-catching .hw-skip { visibility: hidden; }
.hw-catching::after { content: '✦ · ✧ · ✦'; color: #ffbc76; font-size: 28px; position: absolute; right: 12px; bottom: 70px; animation: hw-spark .38s both; }
.hw-entry { border: 1px solid #8a689d; border-radius: 3px; background: #f3eafa; color: #523361; padding: 6px 10px; font-size: 12px; margin-top: 8px; cursor: pointer; }
.hw-result { text-align: center; margin: 16px; padding: 20px; border: 2px solid #baa0d2; background: #261b35; color: #fff9eb; box-shadow: 4px 4px 0 #ff9950; }
.hw-result[hidden], .hw-entry[hidden] { display: none; }
.hw-result-portrait { width: 144px; margin: 8px auto 12px; }
.hw-result h3 { color: #ffbc76; margin: 0 0 8px; font-size: 18px; }
.hw-result p { margin: 6px 0; line-height: 1.6; }
.hw-result .hw-persona-heading { color: #c8b3e6; font-size: 14px; }
.hw-persona-name { font-size: 34px; line-height: 1.2; margin: 12px 0; color: #fff9eb; }
.hw-result .hw-persona-tag { color: #ffbc76; font-size: 15px; font-weight: 600; }
.hw-result .hw-persona-description { white-space: pre-line; font-size: 15px; margin: 18px 0; }
.hw-result .hw-result-quote { color: #dac8ed; background: #1c142b; border: 1px solid #685079; padding: 14px 12px; font-size: 14px; }
.hw-result .hw-actions { justify-content: center; }
.hw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.hw-actions button, .hw-report button, .hw-test button, .hw-test select { border: 1px solid #a68bbd; padding: 10px 12px; background: #342441; color: #fff9eb; cursor: pointer; border-radius: 3px; }
.hw-actions .hw-primary, .hw-primary { background: #ffbc76; color: #2b1c32; border: 1px solid #ffbc76; font-weight: 700; }
.hw-report { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 18px; border: 2px solid #baa0d2; border-radius: 6px; background: #261b35; color: #fff9eb; box-shadow: 8px 8px 0 #130f1c; }
.hw-report::backdrop { background: #130f1cd9; }
.hw-report h2 { margin: 0 95px 18px 0; font-size: 21px; }
.hw-report-close { position: absolute; top: 12px; right: 12px; }
.hw-report-image { display: block; width: 100%; height: auto; }
.hw-download { display: block; text-align: center; text-decoration: none; padding: 13px; margin-top: 16px; border-radius: 3px; }
.hw-save-help { font-size: 13px; color: #dac8ed; line-height: 1.6; margin-bottom: 0; }
.hw-test { width: min(980px, calc(100% - 32px)); margin: 0 auto 16px; padding: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #30213d; border: 1px dashed #c2a4dd; color: #fff9eb; font-size: 13px; }
.hw-test span { flex-basis: 100%; color: #ffbc76; }
.hw-season button:focus-visible, .hw-report a:focus-visible, .hw-test select:focus-visible { outline: 3px solid #e28b39; outline-offset: 3px; }
@keyframes hw-arrive { 0% { opacity: 0; transform: translateY(60px) scale(.2); } 16% { opacity: 1; transform: translateY(24px) scale(.55) rotate(-8deg); } 32% { transform: translateY(-16px) scale(1.1) rotate(8deg); } 48% { transform: translateY(4px) rotate(-8deg); } 68% { transform: translateY(-10px) rotate(5deg); } 100% { transform: translateY(0); } }
@keyframes hw-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes hw-catch { to { transform: scale(.05) rotate(35deg); opacity: 0; } }
@keyframes hw-spark { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes hw-retreat { from { transform: translateX(-24px); } to { transform: translateX(0); } }
@media (max-width: 480px) { .hw-ghost { width: 124px; height: 171px; flex-basis: 124px; } .hw-bubble { font-size: 13px; padding: 10px; } .hw-result { padding: 16px 12px; } .hw-result-portrait { width: 128px; } .hw-result h3 { font-size: 18px; } .hw-result p { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .hw-actor, .hw-ghost, .hw-catching .hw-ghost, .hw-catching::after { animation: none; } }
