/* Holiday editorial theme. The user's Pinterest brief explicitly extends
   the corporate palette with sky blue, pink, coral and butter yellow.
   Graphik, official logo, blue interactions and shadow-free UI are retained. */
:root {
  --holiday-sky: #91c8e8;
  --holiday-ice: #d8eaf2;
  --holiday-pink: #f0c2cf;
  --holiday-cream: #fbf1d9;
  --holiday-red: #ef4d57;
  --holiday-wine: #74233d;
  --holiday-gold: #f2d17a;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: var(--font-family); }
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#door-sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; z-index: 45; }
@media (prefers-reduced-motion: reduce) { #door-sparkles { display: none; } }
.site-header { padding: var(--space-lg) 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.logo { display: block; width: 150px; height: auto; }
.header-note { font-size: var(--small-size); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-sm); }
.btn-leaderboard, .btn-organizer { font-size: var(--small-size); }
.btn-leaderboard:hover, .btn-organizer:hover { color: var(--text-on-dark); background: var(--primary); }

/* A holiday postcard, not a corporate dashboard. */
.hero-section { background: var(--holiday-sky); position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.hero-inner { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; min-height: 570px; }
.hero-copy-block { position: relative; z-index: 2; padding: var(--space-2xl) 0 var(--space-2xl) var(--space-2xl); }
.hero-kicker { display: flex; align-items: center; gap: var(--space-xs); margin: 0 0 var(--space-lg); font-size: var(--small-size); font-weight: var(--weight-medium); }
.kicker-star { font-size: 28px; }
.hero-title { margin: 0 0 var(--space-lg); font-size: clamp(48px, 6.1vw, 78px); font-weight: var(--weight-bold); letter-spacing: -0.06em; line-height: 1.02; }
.hero-sub { max-width: 370px; margin: 0 0 var(--space-lg); font-size: var(--body-size); line-height: 1.55; }
.hero-cta { display: inline-flex; }
.hero-footnote { margin: var(--space-md) 0 0; font-size: 12px; }
.hero-art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 0; }
.goat-illustration { width: 100%; height: 540px; object-fit: contain; }
.year-label { position: absolute; top: var(--space-lg); left: var(--space-lg); z-index: 2; font-size: 12px; text-align: center; transform: rotate(-8deg); background: var(--holiday-cream); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); }
.year-label strong { font-size: 36px; font-weight: var(--weight-semibold); letter-spacing: -0.06em; line-height: 1.2; }
.hero-silver-star { position: absolute; width: 110px; left: 0; bottom: var(--space-lg); transform: rotate(-14deg); }

/* Real personal progress, wrapped like a little gift. */
.progress-section { margin-top: var(--space-lg); }
.hero-panel { background: var(--holiday-cream); border-radius: var(--radius-md); padding: var(--space-lg) var(--space-xl); display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: var(--space-xl); }
.hero-panel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.hero-stat { display: flex; align-items: center; gap: var(--space-sm); }
.hero-stat-value { font-size: 36px; font-weight: var(--weight-semibold); letter-spacing: var(--heading-letter-spacing); line-height: 1; }
.hero-stat-label { font-size: 12px; max-width: 100px; }
.hero-progress { height: 8px; border-radius: var(--radius-pill); background: var(--bg); overflow: hidden; }
.hero-progress-fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--primary); transition: width 220ms ease; }

/* The advent itself: a collection of illustrated gift tags. */
.main-area { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.calendar-head { position: relative; margin-bottom: var(--space-xl); padding-right: 150px; }
.section-kicker { margin: 0 0 var(--space-sm); font-size: var(--small-size); }
.calendar-title { margin: 0 0 var(--space-md); font-size: var(--h2-size); font-weight: var(--weight-semibold); letter-spacing: -0.045em; line-height: 1.12; }
.calendar-hint { margin: 0; max-width: 650px; font-size: var(--small-size); }
.calendar-bow { position: absolute; right: var(--space-sm); top: 0; width: 130px; transform: rotate(12deg); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-lg); font-size: 12px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-pill); }
.legend-past { background: var(--placeholder); }
.legend-today { background: var(--primary); }
.calendar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md); scroll-margin-top: var(--space-lg); }
.door { --paper: var(--holiday-pink); position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--space-xs); aspect-ratio: 0.84; padding: var(--space-md); border: none; border-radius: var(--radius-md); font-family: var(--font-family); color: var(--text); background: var(--paper); cursor: pointer; overflow: hidden; isolation: isolate; transition: background 220ms ease, color 220ms ease, transform 220ms ease; }
.door[data-paper="pink"] { --paper: var(--holiday-pink); }
.door[data-paper="sky"] { --paper: var(--holiday-sky); }
.door[data-paper="ice"] { --paper: var(--holiday-ice); }
.door[data-paper="cream"] { --paper: var(--holiday-cream); }
.door[data-paper="red"] { --paper: var(--holiday-red); }
.door[data-paper="gold"] { --paper: var(--holiday-gold); }
.door-number { position: relative; z-index: 2; font-size: 36px; font-weight: var(--weight-semibold); letter-spacing: -0.06em; line-height: 1; }
.door-date { position: relative; z-index: 2; font-size: 10px; }
.door-number, .door-date { background: inherit; }
.door-art { position: absolute; z-index: 0; width: 84%; height: calc(100% - 60px); max-height: 68%; object-fit: contain; bottom: 2%; right: 0; transform: rotate(-6deg); transition: transform 220ms ease; }
.door:nth-child(3n) .door-art { transform: rotate(6deg); right: 1%; }
.door[data-art="goat-party"] .door-art { max-height: 72%; }
.door-status { position: absolute; bottom: var(--space-sm); left: var(--space-sm); z-index: 3; background: var(--bg); color: var(--text); border-radius: var(--radius-pill); padding: var(--space-xs) var(--space-sm); font-size: 10px; font-weight: var(--weight-medium); }
.door-mark { position: absolute; top: var(--space-md); right: var(--space-md); z-index: 2; }
.door-check { position: absolute; top: var(--space-sm); right: var(--space-sm); z-index: 3; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--primary); }
.door.is-today { background: var(--primary); color: var(--text-on-dark); }
.door[aria-disabled="true"] { cursor: not-allowed; }
.door.is-expired .door-status { background: var(--surface); }
/* Keep the requested blue hover on EVERY door, including future dates. */
.door:hover, .door:focus-visible { background: var(--primary); color: var(--text-on-dark); transform: translateY(-4px); }
.door:hover .door-art, .door:focus-visible .door-art { transform: rotate(0deg) translateY(-4px); }
.door:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.door.is-opening { transform: scale(0.94); }

/* Gift-paper modal, same tasks and mechanics. */
.modal-overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: var(--space-lg); background: rgba(0,0,0,.58); }
.modal { position: relative; width: min(560px,100%); max-height: 86vh; border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; }
.modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(120deg, var(--holiday-red) 0 16px, var(--holiday-cream) 16px 32px, var(--holiday-sky) 32px 48px, var(--holiday-cream) 48px 64px); }
.modal-scroll { max-height: 86vh; overflow-y: auto; padding: var(--space-xl); display: grid; gap: var(--space-md); }
.modal-title { margin: 0; font-size: var(--h3-size); font-weight: var(--weight-semibold); letter-spacing: var(--heading-letter-spacing); padding-right: var(--space-xl); }
.modal-text { margin: 0; font-size: var(--body-size); line-height: 1.5; }
.welcome-intro { display: grid; gap: var(--space-md); }
.content-heading { margin: 0; font-size: var(--body-size); font-weight: var(--weight-semibold); line-height: 1.5; }
.day-reward-note { margin: 0; font-size: var(--small-size); line-height: 1.5; }
.content-steps.welcome-rules { gap: var(--space-xs); font-size: var(--small-size); }
.reward-deadline-note { margin: 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: var(--small-size); line-height: 1.5; }
#day-body button:disabled, #day-body fieldset:disabled { cursor: default; }
#day-body .control-row:has(input:disabled) { cursor: default; }
.content-steps { margin: 0; padding-left: 1.5em; display: grid; gap: var(--space-md); font-size: var(--body-size); line-height: 1.5; }
.content-steps li { margin: 0; padding-left: var(--space-xs); overflow-wrap: anywhere; }
/* Keep the two Secret Santa lists visually closer without changing other doors. */
#day-body[data-day="7"] > ol.content-steps + .content-heading { margin-top: calc(-1 * var(--space-xs)); }
.content-inline-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.content-inline-link:hover, .content-inline-link:focus-visible { color: var(--primary); }
#login-form .form-block + .form-block { margin-top: var(--space-md); }
.login-note { margin-top: var(--space-md); font-size: var(--small-size); }
.modal-close { position: absolute; top: var(--space-md); right: var(--space-md); z-index: 2; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; border-radius: var(--radius-pill); background: var(--holiday-cream); color: var(--text); cursor: pointer; }
.modal-close:hover { background: var(--primary); color: var(--text-on-dark); }
.day-head { display: flex; align-items: center; gap: var(--space-md); padding-right: var(--space-lg); }
.day-head-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--holiday-pink); }
.day-head-copy { display: grid; gap: var(--space-xs); }
.day-number { font-size: var(--small-size); }
.day-title { margin: 0; font-size: var(--h3-size); font-weight: var(--weight-semibold); letter-spacing: var(--heading-letter-spacing); line-height: 1.15; }
.quiz-question { margin: 0; font-size: var(--body-size); }
.quiz-options { display: grid; gap: var(--space-sm); margin: 0; }
.quiz-attempt-note { margin: 0; font-size: var(--small-size); line-height: 1.5; }
.quiz-result { display: grid; gap: var(--space-md); min-width: 0; }
.quiz-score, .quiz-feedback.is-legacy { margin: 0; padding: var(--space-md); border-radius: var(--radius-md); background: var(--surface); font-size: var(--body-size); }
.poll-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.poll-fieldset legend { padding: 0; margin-bottom: var(--space-md); font-weight: var(--weight-medium); }
.poll-fieldset .poll-legend-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#poll-other-block { margin-top: var(--space-md); }
.poll-other-input { min-height: 88px; max-height: 180px; resize: vertical; margin: var(--space-xs) 0; }
.poll-own-text { display: block; margin-top: var(--space-xs); overflow-wrap: anywhere; }
.poll-other-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.poll-other-list li { margin: 0; padding: var(--space-md); border-radius: var(--radius-md); background: var(--surface); font-size: var(--small-size); line-height: 1.5; overflow-wrap: anywhere; }
.poll-options { display: grid; gap: var(--space-md); margin: 0; }
.poll-options .control-row { align-items: flex-start; }
.poll-options input { flex: none; }
.poll-thanks { margin: 0; padding: var(--space-md); background: var(--holiday-ice); border-radius: var(--radius-md); }
.poll-results { display: grid; gap: var(--space-md); min-width: 0; }
.poll-results h4 { margin: 0; font-size: var(--body-size); font-weight: var(--weight-semibold); }
.poll-total, .poll-note, .poll-demo-note { margin: 0; font-size: var(--small-size); line-height: 1.5; }
.poll-demo-note { padding: var(--space-sm); background: var(--holiday-cream); border-radius: var(--radius-sm); }
.poll-form-note, .poll-fieldset .actions { margin-top: var(--space-md); }
.poll-result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-lg); }
.poll-result { display: grid; gap: var(--space-sm); }
.poll-result-label { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-md); font-size: var(--small-size); line-height: 1.5; }
.poll-percent { font-size: var(--body-size); font-weight: var(--weight-semibold); }
.poll-choice { display: block; font-size: var(--small-size); font-weight: var(--weight-medium); margin-top: var(--space-xs); }
.poll-track { height: 10px; background: var(--surface); border-radius: var(--radius-pill); overflow: hidden; }
.poll-fill { height: 100%; width: 0; background: var(--primary); border-radius: inherit; }
.quiz-feedback { border-radius: var(--radius-md); padding: var(--space-md); font-size: var(--body-size); }
.quiz-feedback.is-correct { background: var(--primary); color: var(--text-on-dark); }
.quiz-feedback.is-wrong, .form-error { background: var(--holiday-pink); color: var(--text); }
/* Award details remain in the state; the transient notification replaces in-door badges. */
.day-done { display: none; }
.challenge-hashtag { justify-self: start; border: none; background: var(--holiday-cream); border-radius: var(--radius-pill); padding: var(--space-sm) var(--space-md); color: var(--text); font-size: var(--small-size); cursor: pointer; }
.prize-promo { display: grid; gap: var(--space-xs); background: var(--holiday-cream); border: none; border-radius: var(--radius-md); padding: var(--space-md); color: var(--text); text-align: left; cursor: pointer; }
.prize-promo-code { font-size: var(--body-size); font-weight: var(--weight-medium); margin: 0; }
.prize-promo-hint, .prize-draw-note { margin: 0; font-size: var(--small-size); }
.form-error { padding: var(--space-sm); border-radius: var(--radius-sm); }
.leaderboard-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.leaderboard-item { display: flex; align-items: center; gap: var(--space-md); border-radius: var(--radius-md); background: var(--holiday-cream); padding: var(--space-md); }
.leaderboard-item.is-me { background: var(--primary); color: var(--text-on-dark); }
.leaderboard-place { width: 24px; font-weight: var(--weight-medium); }
.leaderboard-name { flex: 1; display: grid; min-width: 0; overflow-wrap: anywhere; }
.leaderboard-team { font-size: var(--small-size); }
.leaderboard-points { font-weight: var(--weight-medium); }
.toasts { pointer-events: none; position: fixed; bottom: var(--space-lg); left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: var(--space-sm); width: min(440px,calc(100% - 32px)); }
.toast { border-radius: var(--radius-md); background: var(--primary); color: var(--text-on-dark); padding: var(--space-md) var(--space-lg); font-size: var(--small-size); text-align: center; }
.toast.is-wrong { background: #c72430; }

.modal.is-gratitude { width: min(1180px,100%); max-height: 94vh; }
.modal.is-gratitude .modal-scroll { max-height: 94vh; }
.gratitude-entry { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-block: var(--space-2xl); padding: var(--space-xl); background: var(--holiday-cream); border-radius: var(--radius-lg); }
/* Keep the two entry cards close without changing spacing when only one is visible. */
#gratitude-entry:not([hidden]):has(+ #photobooth-entry:not([hidden])) { margin-bottom: var(--space-md); }
#gratitude-entry:not([hidden]) + #photobooth-entry:not([hidden]) { margin-top: var(--space-md); }
.gratitude-entry[hidden] { display: none; }
.gratitude-entry h2 { font-size: var(--h3-size); margin: 0 0 var(--space-xs); }
.gratitude-entry p { margin: 0; font-size: var(--small-size); }
@media (max-width: 720px) { .gratitude-entry { align-items: flex-start; flex-direction: column; padding: var(--space-lg); } }
.manual-award-note { margin: 0; padding: var(--space-md); background: var(--holiday-cream); border-radius: var(--radius-md); font-size: var(--body-size); line-height: 1.5; }
.santa-reminder { display: grid; gap: var(--space-xs); background: var(--holiday-cream); border-radius: var(--radius-md); padding: var(--space-md); }
.santa-reminder.is-inline { background: var(--holiday-ice); }
.santa-reminder h4, .santa-reminder p { margin: 0; font-size: var(--small-size); line-height: 1.5; }
.santa-reminder h4 { font-weight: 600; }
.site-footer { padding-bottom: var(--space-xl); }
.footer-card { position: relative; background: var(--holiday-pink); border-radius: var(--radius-lg); padding: var(--space-2xl); overflow: hidden; }
.footer-card h2 { max-width: calc(100% - 240px); margin: 0 0 var(--space-lg); font-size: clamp(36px, 4.1vw, 52px); font-weight: var(--weight-semibold); letter-spacing: -0.05em; line-height: 1.08; }
.footer-card > p:not(.section-kicker) { max-width: min(360px, calc(100% - 240px)); margin: 0; font-size: var(--small-size); }
.footer-star { position: absolute; right: 10%; top: var(--space-lg); width: 200px; transform: rotate(12deg); }
.footer-year { position: absolute; right: var(--space-2xl); bottom: var(--space-lg); font-size: 52px; font-weight: var(--weight-semibold); letter-spacing: -0.06em; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-lg); }
.footer-text { margin: 0; font-size: 12px; }

@media (max-width: 960px) {
  .hero-title { font-size: 58px; }
  .hero-copy-block { padding-left: var(--space-xl); }
  .hero-inner { min-height: 500px; }
  .hero-panel { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero-progress { max-width: 100%; }
  .calendar-grid { grid-template-columns: repeat(4,1fr); }
  .header-note { display: none; }
}
@media (max-width: 640px) {
  .site-header { padding: var(--space-md) 0; }
  .header-row { gap: var(--space-sm); }
  .logo { width: 120px; }
  .btn-leaderboard, .btn-organizer { padding: var(--space-sm); font-size: 11px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy-block { padding: var(--space-xl) var(--space-lg) 0; }
  .hero-kicker { font-size: 11px; gap: var(--space-xs); margin-bottom: var(--space-md); }
  .hero-title { font-size: clamp(43px,10.9vw,64px); }
  .hero-sub { font-size: 16px; margin-bottom: var(--space-md); }
  .hero-footnote { font-size: 10px; }
  .hero-art { height: 340px; }
  .goat-illustration { width: 100%; height: 340px; }
  .year-label { top: var(--space-sm); left: var(--space-lg); padding: var(--space-sm); }
  .year-label strong { font-size: 28px; }
  .hero-silver-star { width: 70px; left: var(--space-md); bottom: var(--space-xl); }
  .hero-panel { padding: var(--space-lg); }
  .hero-panel-row { gap: var(--space-sm); }
  .hero-stat { display: grid; gap: var(--space-xs); }
  .hero-stat-value { font-size: 30px; }
  .hero-stat-label { font-size: 10px; }
  .main-area { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
  .calendar-head { padding-right: 0; }
  .calendar-heading { padding-right: var(--space-2xl); }
  .calendar-title { font-size: 32px; }
  .section-kicker { font-size: 12px; max-width: 220px; }
  .calendar-bow { width: 64px; top: var(--space-md); right: 0; }
  .calendar-hint { font-size: 12px; }
  .calendar-legend { gap: var(--space-sm); font-size: 10px; }
  .calendar-grid { grid-template-columns: repeat(3,1fr); gap: var(--space-xs); }
  .door { padding: var(--space-sm); aspect-ratio: 0.8; border-radius: var(--radius-sm); }
  .door-number { font-size: 28px; }
  .door-mark { top: var(--space-xs); right: var(--space-xs); }
  .door-status { font-size: 9px; padding: calc(var(--space-xs) / 2) var(--space-xs); bottom: var(--space-xs); left: var(--space-xs); }
  .modal-overlay { padding: var(--space-sm); }
  .modal-scroll { padding: var(--space-xl) var(--space-lg); }
  .day-title { font-size: 23px; }
  .footer-card { padding: var(--space-xl) var(--space-lg); }
  .footer-card h2 { max-width: none; font-size: 36px; position: relative; z-index: 1; }
  .footer-card > p:not(.section-kicker) { max-width: 220px; }
  .footer-star { width: 88px; top: auto; right: var(--space-lg); bottom: var(--space-xl); }
  .footer-year { position: static; display: block; margin-top: var(--space-2xl); font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door, .door-art, .hero-progress-fill { transition: none; }
  .door:hover, .door:focus-visible { transform: none; }
}
