/* Seasonal header and logo treatment; scoring surfaces and brand colours are untouched. */
body.hc-app-seasonal .app > .top {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  min-height: 214px; padding: 22px 16px 16px; margin-bottom: 12px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.28);
  background-color: #061d45;
  background-image: linear-gradient(90deg,rgba(0,13,39,.12),rgba(0,13,39,.05)),var(--hc-season-image);
  background-size: cover,200% auto; background-position: center,left center;
}
body.hc-app-seasonal .top .brand,
body.hc-app-seasonal .top .brand.wide,
body.hc-app-seasonal .top .brand.org-branded {
  z-index: 2; position: relative; width: 100%; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 0; min-height: 128px;
}
/* A broad, soft halo gives both black and white transparent logos separation. */
body.hc-app-seasonal .top .brand::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(94%,360px); height: 114px; left: 50%; top: -5px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse,rgba(255,255,255,.88) 0%,rgba(255,250,219,.5) 35%,rgba(255,255,255,.13) 62%,transparent 74%);
  filter: blur(9px);
}
body.hc-app-seasonal .top .brand .logo {
  display: block; width: auto; height: 88px; max-width: min(100%,330px);
  max-height: 100px; object-fit: contain; object-position: center;
  border: 0; border-radius: 0; background: transparent;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 9px rgba(255,255,255,.65));
}
body.hc-app-seasonal .top .brand h1 { color: #fff; text-shadow: 0 1px 5px #00152c; }
body.hc-app-seasonal .top .brand p,
body.hc-app-seasonal .top .org-switch { color: #fff; text-shadow: 0 1px 4px #00152c,0 1px 9px #00152c; }
body.hc-app-seasonal .top .brand .powered-by {
  flex-basis: auto; padding: 3px 9px; border-radius: 20px;
  color: #061d45; background: rgba(255,255,255,.94); text-shadow: none;
}
body.hc-app-seasonal .top .tools { position: relative; z-index: 2; justify-content: center; }
body.hc-app-seasonal .top .icon-btn { background: #fff; color: #10223e; border-color: rgba(255,255,255,.75); }
.hc-season-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hc-season-particle { position: absolute; color: #ffdf85; font: 20px/1 system-ui; opacity: .55; }
.hc-firework { display: none; position: absolute; width: 105px; height: 105px; overflow: visible; }
.hc-firework line { stroke: #ffe69d; stroke-width: 1.6; stroke-linecap: round; }
body[data-hc-season="valentine"] .hc-season-particle { color: #ff9bc9; font-size: 25px; }
body[data-hc-season="halloween"] .hc-season-particle { color: #ffad32; }
body[data-hc-season="christmas"] .hc-season-particle { color: #ffe993; font-size: 10px; filter: drop-shadow(0 0 5px #ffe993); }
body[data-hc-season="thanksgiving"] .hc-season-particle { color: #ffa344; }
body.hc-app-seasonal-motion .hc-season-particle { animation: hc-season-glow 3.8s ease-in-out infinite; }
body.hc-app-seasonal-motion[data-hc-season="newyear"] .hc-season-particle { animation: hc-season-confetti 6s linear infinite; }
body.hc-app-seasonal-motion[data-hc-season="newyear"] .hc-firework { display: block; animation: hc-season-burst 4.5s ease-out infinite; }
@keyframes hc-season-glow { 0%,100% { opacity: .3; filter: drop-shadow(0 0 1px currentColor); } 50% { opacity: .95; filter: drop-shadow(0 0 8px currentColor); } }
@keyframes hc-season-burst { 0% { transform: scale(.12); opacity: 0; } 12% { opacity: .8; } 45%,100% { transform: scale(1.15); opacity: 0; } }
@keyframes hc-season-confetti { 0% { transform: translateY(-65px) rotate(0); opacity: 0; } 15%,70% { opacity: .8; } 100% { transform: translateY(180px) rotate(260deg); opacity: 0; } }
body[data-hc-season="remembrance"] .hc-season-decor { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hc-season-decor *, .hc-season-decor *::before, .hc-season-decor *::after { animation: none !important; }
  .hc-firework { display: none !important; }
}
@media (max-width:380px) {
  body.hc-app-seasonal .app > .top { padding-inline: 10px; }
  body.hc-app-seasonal .top .brand .logo { max-width: 95%; height: 80px; }
}

/* Full-app seasonal palettes. Team identity colours remain distinct. */
body.hc-app-seasonal {
  --ground:#071627; --surface:#14283e; --sunken:#0c1e31;
  --ink:#f6f3eb; --muted:#c4cdd6; --line:#45566a;
  --action:#f6c45d; --on-action:#201600; --focus:#ffe098;
  --hc-accent:#f6c45d; --hc-aura:#174b75; --hc-pattern:rgba(255,221,145,.08);
  color-scheme:dark; min-height:100vh;
  background-color:var(--ground);
  background-image:radial-gradient(ellipse at 10% 10%,var(--hc-aura),transparent 55%),radial-gradient(ellipse at 100% 75%,var(--hc-aura),transparent 60%),radial-gradient(circle,var(--hc-pattern) 1px,transparent 2px);
  background-size:auto,auto,28px 28px; background-attachment:fixed;
  color:var(--ink);
}
body.hc-app-seasonal[data-hc-season="halloween"] { --ground:#100b20; --surface:#251a36; --sunken:#1b1028; --ink:#fff4df; --muted:#d8c6df; --line:#654573; --action:#ffb34b; --on-action:#261300; --focus:#ffc76e; --hc-accent:#ffac42; --hc-aura:#492157; --hc-pattern:rgba(255,165,60,.12); }
body.hc-app-seasonal[data-hc-season="christmas"] { --ground:#071b17; --surface:#12352c; --sunken:#09261f; --ink:#fff6e3; --muted:#c3dbce; --line:#496e58; --action:#ffd376; --on-action:#332000; --focus:#ffe2a3; --hc-accent:#efc366; --hc-aura:#612b32; }
body.hc-app-seasonal[data-hc-season="newyear"] { --ground:#0c1025; --surface:#1b2242; --sunken:#11172f; --ink:#fff8e9; --muted:#d2cce0; --line:#605477; --action:#f4cc76; --on-action:#2d2006; --hc-accent:#f4cc76; --hc-aura:#40285c; }
body.hc-app-seasonal[data-hc-season="valentine"] { --ground:#260e20; --surface:#422039; --sunken:#32152a; --ink:#fff0f5; --muted:#eac3d4; --line:#865370; --action:#ffb6d1; --on-action:#46132b; --focus:#ffd3e4; --hc-accent:#ffb6d1; --hc-aura:#6c244b; }
body.hc-app-seasonal[data-hc-season="patrick"] { --ground:#061e16; --surface:#133c2b; --sunken:#0a2c1f; --ink:#f3ffe9; --muted:#c1ddbf; --line:#4e7856; --action:#e7d177; --on-action:#272108; --hc-accent:#e7d177; --hc-aura:#23643c; }
body.hc-app-seasonal[data-hc-season="canada"] { --ground:#280c12; --surface:#48202a; --sunken:#34131d; --ink:#fff7f2; --muted:#e8c7cb; --line:#8f515c; --action:#fff1df; --on-action:#751d2d; --hc-accent:#ffb6ad; --hc-aura:#791e32; }
body.hc-app-seasonal[data-hc-season="easter"] { --ground:#f1eafa; --surface:#fffbff; --sunken:#e9def2; --ink:#392743; --muted:#66516f; --line:#c4afce; --action:#77508a; --on-action:#fff; --focus:#77508a; --hc-accent:#77508a; --hc-aura:#ccebdc; --hc-pattern:rgba(118,72,139,.12); color-scheme:light; }
body.hc-app-seasonal[data-hc-season="thanksgiving"] { --ground:#25160c; --surface:#402818; --sunken:#301d10; --ink:#fff2dc; --muted:#e3c7a6; --line:#89613e; --action:#ffc274; --on-action:#382006; --hc-accent:#ffc274; --hc-aura:#6b351d; }
body.hc-app-seasonal[data-hc-season="remembrance"] { --ground:#131816; --surface:#242c27; --sunken:#191f1b; --ink:#f2f0e6; --muted:#c4cac0; --line:#596357; --action:#e6cfa3; --on-action:#2b2418; --hc-accent:#d09b88; --hc-aura:#293d32; --hc-pattern:transparent; }
body.hc-app-seasonal .app { padding-top:16px; }
body.hc-app-seasonal .app>.top { border-color:var(--hc-accent); box-shadow:0 10px 40px #0004; }
body.hc-app-seasonal .panel {
  border:1px solid var(--hc-accent);
  box-shadow:0 6px 20px #0004,inset 0 0 0 1px #ffffff1f;
  background-image:radial-gradient(ellipse at 100% 0%,#ffffff30,transparent 70%),linear-gradient(0deg,#0003,transparent);
}
body.hc-app-seasonal .panel::after { border-color:var(--on-soft); border-style:solid; opacity:.65; }
body.hc-app-seasonal .entry { background:var(--surface); border-color:var(--line); box-shadow:0 4px 15px #0002; }
body.hc-app-seasonal .entry .tally { border-color:var(--line); }
body.hc-app-seasonal .sb.plus { box-shadow:0 0 0 1px var(--hc-accent),0 3px 8px #0003; }
body.hc-app-seasonal .seg button { background:var(--sunken); border-color:var(--line); color:var(--ink); }
body.hc-app-seasonal .seg button[aria-checked="true"] { background:var(--action); color:var(--on-action); border-color:var(--action); box-shadow:0 3px 16px #0003; }
body.hc-app-seasonal .pr-banner,body.hc-app-seasonal .card { background:var(--surface); border-color:var(--line); color:var(--ink); }
body.hc-app-seasonal .history { padding:16px; border-radius:18px; background:var(--surface); border:1px solid var(--line); box-shadow:0 4px 18px #0002; }
body.hc-app-seasonal .history h2 { color:var(--hc-accent); }
body.hc-app-seasonal .bar { background:var(--surface); border-top:2px solid var(--hc-accent); box-shadow:0 -5px 26px #0004; color:var(--ink); }
body.hc-app-seasonal .primary { background:var(--action); color:var(--on-action); box-shadow:0 3px 14px #0003; }
body.hc-app-seasonal .sheet { background:var(--surface); border-top:2px solid var(--hc-accent); }
body.hc-app-seasonal a { color:var(--action); }
body.hc-app-seasonal::before {
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:linear-gradient(180deg,transparent,var(--ground) 90%),var(--hc-season-art);
  background-size:cover; background-position:center; opacity:.34;
}
body.hc-app-seasonal .panel::before { content:'✦'; position:absolute; right:8px; bottom:24px; font:100px/1 Georgia,serif; opacity:.09; pointer-events:none; }
body.hc-app-seasonal[data-hc-season="halloween"] .panel::before,
body.hc-app-seasonal[data-hc-season="thanksgiving"] .panel::before { content:'❧'; }
body.hc-app-seasonal[data-hc-season="valentine"] .panel::before { content:'♥'; }
body.hc-app-seasonal[data-hc-season="remembrance"] .panel::before { content:''; }
body.hc-app-seasonal .top .icon-btn { background:var(--surface); color:var(--ink); border-color:var(--hc-accent); }
body.hc-app-seasonal .top .org-switch { color:#ffe0a0; }
body.hc-app-seasonal .pr-banner { border-style:solid; }
