/* Seasonal look (portal/seasonal.py picks the season by date). */
:root { --s-gold: #d9b45a; --s-gold-hi: #f6e3a6; --s-gold-lo: #9c7a2e; --s-ink: #0c1a14; --s-cream: #efe3c2; }

.season-sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }
.season-scrim { position: fixed; inset: 0; pointer-events: none; z-index: 44; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(ellipse at 50% 45%, rgba(6,14,10,.78), rgba(6,14,10,.55) 60%, rgba(6,14,10,.35)); }
.season-scrim.on { opacity: 1; }
/* Room under the portal header so the garland never covers the page. */
.season-has-garland body > main:not(#main) { padding-top: calc(1.5rem + 36px); }
.season-garland { position: absolute; left: 0; top: 100%; margin-top: -10px; pointer-events: none; z-index: 3; }

/* Christmas greeting pill */
.season-pill { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 120px); padding: 9px 9px 9px 16px; border-radius: 999px; color: #f8f1de;
  background: linear-gradient(180deg, #13281f, var(--s-ink)); border: 1px solid rgba(217,180,90,.75);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(246,227,166,.18);
  font: italic 500 15px/1.3 Georgia, "Times New Roman", serif; letter-spacing: .01em;
  animation: season-in .9s cubic-bezier(.2,.8,.2,1) both; }
.season-pill[hidden] { display: none; }
.season-pill .season-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-icon { width: 18px; height: 18px; flex: none; background: var(--s-gold);
  -webkit-mask: var(--s-icon) center / contain no-repeat; mask: var(--s-icon) center / contain no-repeat;
  --s-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M20.7 7 3.3 17M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M3.6 10.4l3.4-.9-.9-3.4M20.4 13.6l-3.4.9.9 3.4M6.1 17.9l.9-3.4-3.4-.9M17.9 6.1l-.9 3.4 3.4.9'/%3E%3C/svg%3E"); }
.season-pill button { flex: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--s-gold-hi); border: 1px solid rgba(217,180,90,.45); font: 400 17px/1 system-ui, sans-serif; }
.season-pill button:hover, .season-pill button:focus-visible { background: var(--s-gold); color: var(--s-ink); outline: none; }
.season-pause::before { content: ""; width: 8px; height: 9px; background: linear-gradient(90deg, currentColor 0 2.5px, transparent 2.5px 5.5px, currentColor 5.5px 8px); }
.season-pause[aria-pressed="true"]::before { width: 0; height: 0; background: none; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
@keyframes season-in { from { transform: translateY(16px); opacity: 0; } }

/* ---------- New Year banner (31 Dec countdown, 1 Jan greeting) ---------- */
.season-band { position: relative; z-index: 2; overflow: hidden; color: #f8f1de;
  background: linear-gradient(180deg, #10241b, var(--s-ink)); border-bottom: 1px solid rgba(217,180,90,.65);
  box-shadow: inset 0 1px 0 rgba(217,180,90,.4); animation: season-fade .8s ease both; }
.season-band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--s-gold-hi), transparent); opacity: .7; }
.season-band .bin { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.season-band .serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; }
.season-band .caps { font: 600 10px/1.2 Quicksand, system-ui, sans-serif; letter-spacing: .26em; text-transform: uppercase; color: rgba(239,227,194,.62); }
.season-band .gold { background: linear-gradient(180deg, var(--s-gold-hi), var(--s-gold) 55%, var(--s-gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.season-band .star { display: inline-block; width: 12px; height: 12px; background: var(--s-gold); vertical-align: middle;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes season-fade { from { opacity: 0; } }

/* flip clock */
.season-clock { display: flex; align-items: flex-start; gap: 8px; --tw: 30px; --th: 42px; --tf: 26px; }
.season-clock .grp { display: grid; justify-items: center; gap: 6px; }
.season-clock .grp > div { display: flex; gap: 3px; }
.season-clock .colon { font: 700 calc(var(--tf) * .8)/var(--th) Quicksand, sans-serif; color: rgba(217,180,90,.6); }
.season-tile { position: relative; width: var(--tw); height: var(--th); border-radius: 5px; overflow: hidden; perspective: 200px;
  background: linear-gradient(180deg, #1f3d30 0 50%, #172f26 50%); box-shadow: inset 0 0 0 1px rgba(217,180,90,.28), 0 3px 6px rgba(0,0,0,.45); }
.season-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
.season-tile span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 var(--tf)/1 Quicksand, sans-serif; color: var(--s-gold-hi); }
.season-tile span.in { animation: season-drop .45s cubic-bezier(.3,1.3,.5,1) both; }
.season-tile span.out { animation: season-away .45s ease both; }
@keyframes season-drop { from { transform: translateY(-100%) rotateX(70deg); opacity: 0; } }
@keyframes season-away { to { transform: translateY(70%) rotateX(-70deg); opacity: 0; } }

/* Layout: centre (slim) */
.season-band.centre .bin { display: flex; align-items: center; justify-content: center; gap: 26px; padding-top: 10px; padding-bottom: 10px; }
.season-band.centre .t { font-size: 18px; color: var(--s-cream); }
.season-band.centre .season-clock { --tw: 24px; --th: 34px; --tf: 21px; }
.season-band.centre .season-clock .caps { font-size: 8.5px; }
.season-band.centre .hny { font-size: 24px; display: flex; align-items: center; gap: 14px; padding: 4px 0; }

/* Layout: split (three columns) */
.season-band.split .bin { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.season-band.split .l .big { font-size: 30px; line-height: 1.1; color: var(--s-gold-hi); }
.season-band.split .l .caps { margin-top: 6px; }
.season-band.split .r { text-align: right; font-size: 16px; line-height: 1.45; color: var(--s-cream); }
.season-band.split .r b { display: block; font: 600 10px/1.2 Quicksand, sans-serif; font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: var(--s-gold); margin-top: 6px; }
.season-band.split .season-clock { --tw: 34px; --th: 48px; --tf: 30px; }
.season-band.split .yr { font: 700 54px/1 Quicksand, system-ui, sans-serif; letter-spacing: .08em; }

/* Layout: showcase (tall, centred, gold dust) */
.season-band.showcase { background:
    radial-gradient(circle at 12% 30%, rgba(217,180,90,.16), transparent 38%),
    radial-gradient(circle at 88% 70%, rgba(217,180,90,.13), transparent 42%),
    linear-gradient(180deg, #10241b, #091510); }
.season-band.showcase::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(rgba(246,227,166,.55) .8px, transparent 1.4px) 0 0 / 46px 46px,
              radial-gradient(rgba(246,227,166,.35) .6px, transparent 1.2px) 23px 19px / 61px 61px; }
.season-band.showcase .bin { display: grid; justify-items: center; gap: 10px; padding-top: 24px; padding-bottom: 22px; text-align: center; z-index: 1; }
.season-band.showcase .season-clock { --tw: 44px; --th: 62px; --tf: 40px; gap: 12px; }
.season-band.showcase .head { font-size: 22px; color: var(--s-cream); display: flex; align-items: center; gap: 14px; }
.season-band.showcase .hny { font-size: 52px; line-height: 1.05; }
.season-band.showcase .hny .yr { font: 700 1em/1 Quicksand, system-ui, sans-serif; font-style: normal; letter-spacing: .06em; }

@media (max-width: 860px) {
  .season-band .bin { padding: 0 16px; }
  .season-band.split .bin { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .season-band.split .r { display: none; }
  .season-band.split .l .big { font-size: 22px; }
  .season-band.split .yr { font-size: 40px; }
}
@media (max-width: 640px) {
  .season-pill { font-size: 14px; left: 10px; bottom: 10px; max-width: calc(100vw - 96px); border-radius: 22px; }
  .season-pill .season-text { white-space: normal; }
  .season-band.centre .bin { flex-direction: column; gap: 8px; }
  .season-band.centre .t { font-size: 15px; }
  .season-band.centre .hny { font-size: 20px; }
  .season-band.split .season-clock { --tw: 28px; --th: 40px; --tf: 25px; }
  .season-band.showcase .season-clock { --tw: 32px; --th: 46px; --tf: 29px; gap: 8px; }
  .season-band.showcase .head { font-size: 17px; }
  .season-band.showcase .hny { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .season-pill, .season-band, .season-tile span.in, .season-tile span.out { animation: none; }
  .season-scrim { transition: none; }
}
@media print { .season-sky, .season-scrim, .season-pill, .season-garland, .season-band { display: none !important; } }
