.holiday-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.holiday-santa {
  --holiday-outline: url("/textures/santa-ball.webp?v=768389d52796de449865c484");
  --winter-surface: linear-gradient(116deg, #0b2b3fe6 8%, #194e5bac 58%, #244d5d7d),
    url("/textures/satin-wave.webp?v=8a9b612b5bcf5adc6ff9b9c6") 4% 18% / cover no-repeat #123b49;
  --winter-lines: #d7f4e76b;
}

.holiday-tournament {
  --holiday-outline: url("/textures/tournament-cup.webp?v=156eb5e06ac35d75aef01213");
  --winter-surface: linear-gradient(64deg, #16243ee0 12%, #3840619c 64%, #46355086),
    url("/textures/smoked-pearl.webp?v=faa887906e7a72511d285861") 92% 78% / cover no-repeat #2e344e;
  --winter-lines: #d7e9ff7a;
}

.holiday-cards .holiday-tile, .holiday-hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #b8d4ed80;
  border-radius: 20px;
  background: var(--winter-surface);
  box-shadow: inset 0 2px 1px #ffffff73, inset 1px 0 1px #ffffff38, inset 0 -1px 1px #bdd7ea33, 0 6px 16px -12px #14365c99;
  color: #f8fbff;
  text-decoration: none;
}

.holiday-cards .holiday-tile {
  container-type: inline-size;
  min-height: 148px;
  padding: 19px clamp(18px, 3vw, 32px);
}

.holiday-scenery, .holiday-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.holiday-lines {
  position: absolute;
  inset: -37% -12% -42% 53%;
  transform: rotate(-22deg);
  opacity: .28;
}

.holiday-santa .holiday-lines {
  border: 1px solid var(--winter-lines);
  border-radius: 50%;
}
.holiday-santa .holiday-lines::before, .holiday-santa .holiday-lines::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--winter-lines);
  border-radius: inherit;
}
.holiday-santa .holiday-lines::after { inset: -29px; }

.holiday-tournament .holiday-lines {
  border: 2px solid var(--winter-lines);
  outline: 1px solid var(--winter-lines);
  outline-offset: 9px;
  background: linear-gradient(to bottom, transparent 47%, var(--winter-lines) 47%, var(--winter-lines) calc(47% + 1px), transparent calc(47% + 1px)),
    linear-gradient(to right, transparent 24%, var(--winter-lines) 24%, var(--winter-lines) calc(24% + 1px), transparent calc(24% + 1px));
}

.holiday-object {
  position: absolute;
  inset-inline-end: clamp(8px, 4%, 40px);
  bottom: 5%;
  width: 40%;
  height: 90%;
  display: grid;
  place-items: center;
  container-type: size;
}
.holiday-object-body {
  position: relative;
  width: min(100cqw, 100cqh);
  aspect-ratio: 1;
}
.holiday-art, .holiday-object-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.holiday-art {
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 4px #071b345e);
}

.calendar-ornament {
  display: inline-block;
  background: url("/holiday-ornament.svg?v=03b12a809bfae6e4617a9290") center / contain no-repeat;
  pointer-events: none;
}
#app .calendar-day.calendar-holiday {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  padding: 3px 1px 1px 2px;
  color: #fff8df;
  border: 1px solid #9e8560;
  background: radial-gradient(ellipse at 88% 100%, #387e82, transparent 67%),
    linear-gradient(135deg, #163344, #245962);
  box-shadow: inset 0 1px 0 #fff5;
  text-shadow: 0 1px 2px #143547;
}
.calendar-day.calendar-holiday > span { z-index: 1; font-weight: 750; line-height: 1; }
.calendar-day.calendar-holiday .calendar-ornament {
  place-self: end;
  width: min(100%, 38px);
  height: 100%;
  max-height: 40px;
  background-position: right bottom;
}
.calendar-sport-marks {
  position: absolute;
  display: flex;
  gap: 1px;
  bottom: 4px;
  left: 3px;
}
.calendar-sport-marks i { width: 3px; height: 4px; border-radius: 2px; }
.calendar-sport-marks .training { background: #62d5ff; }
.calendar-sport-marks .game { background: #ffbd65; }
.calendar-sport-marks .kvl { background: #acbcff; }

.calendar-game-link, #app .calendar-holiday-upcoming button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  border-radius: 16px;
  border: 1px solid #48636c;
  background: radial-gradient(ellipse at 5% 0, #467c85, transparent 73%), #193e4b;
  box-shadow: inset 0 1px 1px #ffffff40;
}
.calendar-game-tournament {
  border-color: #4e6580;
  background: radial-gradient(ellipse at 5% 0, #4e708c, transparent 73%), #283b56;
}
.calendar-game-link:focus-visible, #app .calendar-holiday-upcoming button:focus-visible {
  outline: 3px solid #1985be; outline-offset: 2px;
}
.calendar-game-art {
  width: 48px;
  aspect-ratio: 1;
  background: url("/textures/santa-ball.webp?v=768389d52796de449865c484") center / contain no-repeat;
}
.calendar-game-tournament .calendar-game-art { background-image: url("/textures/tournament-cup.webp?v=156eb5e06ac35d75aef01213"); }
.calendar-game-copy { display: grid; gap: 3px; }
.calendar-game-copy strong { font: 700 22px/1.05 "Fira Sans Extra Condensed", sans-serif; }
.calendar-game-copy time { font-size: 13px; color: #e0f0f4; }
.calendar-game-arrow { font-size: 21px; line-height: 1; color: #d0e7f0; }
#fields .calendar-game-link { padding: 9px 12px; margin-block: 6px; }
#fields .calendar-game-art { width: 37px; }
#fields .calendar-game-copy strong { font-size: 21px; }
#app .calendar-holiday-upcoming { display: block; margin-top: 8px; }
#app .calendar-holiday-upcoming button { min-height: 52px; padding: 7px 12px; gap: 8px; }
#app .calendar-holiday-upcoming .calendar-ornament { width: 32px; aspect-ratio: 1; }
#app .calendar-holiday-upcoming .calendar-upcoming-details { display: grid; gap: 2px; }
#app .calendar-holiday-upcoming .calendar-upcoming-label { font: inherit; font-size: 12px; color: #d9eaee; }
#app .calendar-holiday-upcoming time { font: inherit; }
#app .calendar-holiday-upcoming strong { white-space: normal; font-size: 15px; line-height: 1.15; }

/* The studio softboxes travel over the moving silhouette, including the openings
   of the trophy handles. The lower reflection is narrower than the one on its rim. */
@media (prefers-reduced-motion: no-preference) {
  .holiday-santa .holiday-object-body {
    transform-origin: 50% 85%;
    animation: holiday-ball-rock 6.8s cubic-bezier(.42,0,.38,1) -.85s infinite;
  }
  .holiday-tournament .holiday-object-body {
    transform-origin: 50% 92%;
    animation: holiday-cup-turn 8s cubic-bezier(.42,0,.36,1) -2.5s infinite;
  }
  .holiday-object-light {
    overflow: hidden;
    -webkit-mask: var(--holiday-outline) center / contain no-repeat;
    mask: var(--holiday-outline) center / contain no-repeat;
    pointer-events: none;
  }
  .holiday-object-light::before, .holiday-object-light::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .holiday-santa .holiday-object-light::before {
    background:
      radial-gradient(ellipse 9% 15% at 45% 25%, #ffecd9bd, transparent 75%),
      radial-gradient(ellipse 8% 27% at 47% 66%, #edfcffc9, #b5eaff63 36%, transparent 83%);
    animation: holiday-ball-reflect 6.8s cubic-bezier(.42,0,.38,1) -.85s infinite;
  }
  .holiday-santa .holiday-object-light::after {
    background: radial-gradient(ellipse 13% 4% at 59% 84%, #c0f7ff9e, transparent 85%);
    animation: holiday-ball-reflect 6.8s cubic-bezier(.42,0,.38,1) -2.8s infinite reverse;
  }
  .holiday-tournament .holiday-object-light::before {
    background:
      radial-gradient(ellipse 7% 20% at 44% 31%, #f7ffffcf, transparent 86%),
      radial-gradient(ellipse 13% 4% at 43% 48%, #e6faffef, transparent 83%),
      radial-gradient(ellipse 4% 14% at 51% 73%, #e6faffdb, transparent 76%);
    animation: holiday-cup-reflect 8s cubic-bezier(.42,0,.36,1) -2.5s infinite;
  }
  .holiday-tournament .holiday-object-light::after {
    background: radial-gradient(ellipse 6% 11% at 79% 40%, #fff0d5bb, transparent 76%),
      radial-gradient(ellipse 12% 3% at 49% 93%, #f7ffffb3, transparent 87%);
    animation: holiday-cup-reflect 8s cubic-bezier(.42,0,.36,1) -1.1s infinite reverse;
  }
}
@keyframes holiday-ball-rock {
  0%, 100% { transform: perspective(420px) translate3d(-2%, 1%, 0) rotateY(-11deg) rotate(-6deg); }
  46% { transform: perspective(420px) translate3d(2%, -2%, 0) rotateY(10deg) rotate(5deg); }
  74% { transform: perspective(420px) translate3d(.2%, -.3%, 0) rotateY(1deg) rotate(-.5deg); }
}
@keyframes holiday-cup-turn {
  0%, 100% { transform: perspective(370px) rotateY(-13deg) rotate(-1.6deg); }
  48% { transform: perspective(370px) rotateY(15deg) rotate(1.8deg); }
}
@keyframes holiday-ball-reflect {
  0%, 100% { transform: translateX(-21%) rotate(-14deg); opacity: .24; }
  44% { transform: translateX(17%) rotate(8deg); opacity: .87; }
  72% { opacity: .56; }
}
@keyframes holiday-cup-reflect {
  0%, 100% { transform: translateX(-21%) skewX(-8deg); opacity: .28; }
  51% { transform: translateX(17%) skewX(4deg); opacity: .92; }
}
body[data-holiday-effects="off"] .holiday-hero .holiday-object-body {
  animation: none;
}
body[data-holiday-effects="off"] .holiday-hero .holiday-object-light { display: none; }

.holiday-tile-copy, .holiday-hero-copy {
  position: relative;
  z-index: 1;
  width: 55%;
  min-width: 0;
}

.holiday-tile-title, .holiday-hero-copy h1 {
  display: block;
  margin: 0;
  color: inherit;
  font-family: "Fira Sans Extra Condensed", Onest, sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.holiday-tile-title {
  font-size: clamp(25px, 8.25cqw, 39px);
  line-height: 1.02;
}

.holiday-cards .holiday-tile:focus-visible {
  outline: 3px solid var(--blue, #1f5bff);
  outline-offset: 3px;
}

.holiday-snow {
  -webkit-mask-image: linear-gradient(110deg, #0005, #000b 54%, #000);
  mask-image: linear-gradient(110deg, #0005, #000b 54%, #000);
}

.holiday-snow::before, .holiday-snow::after {
  content: "";
  position: absolute;
  inset: -150px -12px 0;
  background-image:
    radial-gradient(circle at 13px 16px, #fffffbdc 1px, transparent 1.7px),
    radial-gradient(circle at 66px 82px, #ffffffa3 .8px, transparent 1.4px),
    radial-gradient(circle at 149px 43px, #ffffffb3 1.5px, transparent 2.2px),
    radial-gradient(circle at 119px 102px, #ffffff90 .6px, transparent 1.3px);
  background-size: 174px 112px;
  animation: holiday-snowfall 8s linear infinite;
}

.holiday-snow::after {
  --fall-height: 149px;
  background-position: 54px 28px;
  background-size: 231px 149px;
  animation-duration: 12s;
  animation-delay: -3s;
  opacity: .65;
}

@keyframes holiday-snowfall {
  from { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(5px, calc(var(--fall-height, 112px) / 2), 0); }
  to { transform: translate3d(0, var(--fall-height, 112px), 0); }
}

.holiday-hero {
  --hero-object-size: clamp(82px, 24vw, 134px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hero-object-size);
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(14px, 1.8vw, 22px) clamp(16px, 3vw, 34px);
}
.holiday-hero.holiday-santa {
  --winter-surface: radial-gradient(ellipse at 87% 37%, #61918169, transparent 45%),
    linear-gradient(112deg, #102f31 5%, #1c4945 66%, #29594e);
}
.holiday-hero.holiday-tournament {
  --winter-surface: radial-gradient(ellipse at 87% 37%, #7aa4c769, transparent 45%),
    linear-gradient(112deg, #172b46 5%, #263f5d 66%, #35526c);
}
.holiday-hero-copy { grid-area: 1 / 1; width: auto; }
.holiday-hero-copy h1 { font-size: clamp(28px, 8vw, 46px); line-height: 1.02; }
.holiday-hero-copy p {
  max-width: 44ch;
  margin: 8px 0 0;
  color: #f2f5f2;
  font: 400 clamp(13px, 1.4vw, 15px)/1.4 Onest, sans-serif;
  overflow-wrap: anywhere;
}
.holiday-hero .holiday-scenery {
  grid-area: 1 / 2;
  position: relative;
  inset: auto;
  width: var(--hero-object-size);
  height: var(--hero-object-size);
  overflow: visible;
}
.holiday-hero .holiday-scenery::before {
  content: "";
  position: absolute;
  inset: 85% 8% -2%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #081c2bb3, transparent 67%);
}
.holiday-hero .holiday-object {
  width: 100%;
  height: 100%;
  inset: 0;
}
.holiday-hero .holiday-art {
  filter: drop-shadow(0 2px 2px #0c253955);
}
.holiday-hero .holiday-lines { display: none; }
.holiday-hero .holiday-snow { inset: 0; }

.holiday-page, [data-holiday-screen] { min-width: 0; }
.holiday-layout { display: grid; gap: 14px; margin-top: 16px; }
.holiday-panel.card { min-width: 0; padding: clamp(17px, 2.5vw, 26px); }
.holiday-panel :is(h2, h3) { margin: 0; overflow-wrap: anywhere; }
.holiday-panel p { overflow-wrap: anywhere; }
.holiday-panel > :last-child, .holiday-picker > :last-child { margin-bottom: 0; }
.holiday-rules { padding-inline-start: 1.35em; margin: 0; line-height: 1.5; }
.holiday-rules li { padding-inline-start: .2em; }
.holiday-rules li + li { margin-top: .55em; }
.holiday-rules li::marker { color: #286352; font-weight: 600; }
.holiday-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.holiday-count, .holiday-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 10px;
  background: #eaf1f5;
  color: #294962;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.holiday-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.holiday-actions button { min-height: 44px; }
.holiday-actions button[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -3px; }
.holiday-note { color: var(--muted); line-height: 1.5; }
.holiday-list { list-style: none; margin: 0; padding: 0; }
.holiday-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.holiday-row + .holiday-row { border-top: 1px solid var(--line, #e4eaf0); }
.holiday-row small { color: var(--muted); }
.holiday-person > div > small { display: block; margin-top: 2px; font-size: 12px; }
.holiday-initial {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #23574c;
  background: #e6f3ec;
  font: 600 12px/1 Onest, sans-serif;
}
[data-holiday-screen="tournament"] .holiday-initial { color: #254d75; background: #e7eff8; }
.holiday-avatar .avatar { width: 100%; height: 100%; font-size: inherit; }
#app .holiday-panel.card.holiday-recipient {
  background: #e7f3ed;
  border: 1px solid #bddecd;
  color: #154b3a;
  border-radius: 16px;
  padding: 16px;
  overflow-wrap: anywhere;
}
.holiday-recipient :is(p, small) { color: #335e4e; }
.holiday-recipient [data-holiday-recipient] {
  display: block;
  color: #194c40;
  font: 600 clamp(24px, 3vw, 34px)/1.15 Onest, sans-serif;
}
.santa-wishes { display: grid; gap: 2px; margin: 0; padding-inline-start: 1.25rem; }
.santa-wishes li { min-width: 0; padding-inline-start: 3px; overflow-wrap: anywhere; }
.santa-wishes li::marker { color: currentColor; font-size: .8em; }
.santa-wishes li > span { display: inline-block; padding-block: 6px; }
.santa-wishes a {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-block: 4px;
  color: #155648;
  text-decoration: none;
}
.santa-wishes a span { text-decoration: underline; text-underline-offset: 3px; }
.santa-wishes a small { font-size: .75em; }
.santa-wishes a i { font-style: normal; }
.santa-wishes a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.santa-wish-empty { margin: .4em 0; }
[data-recipient-wishlist] { margin-block-start: 15px; }
[data-recipient-wishlist] h3 { margin: 0 0 5px; font: 650 1rem/1.35 Onest, sans-serif; }
.santa-wish-editor, .santa-wish-editor [data-wish-row] { min-width: 0; margin: 0; padding: 0; border: 0; }
.santa-wish-editor [hidden] { display: none !important; }
.santa-wish-editor > .holiday-note:first-child { margin-top: 0; }
.santa-wish-editor > .holiday-note[autofocus]:focus { outline: none; }
.santa-wish-editor [data-wish-row] { margin: 8px 0 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; }
.santa-wish-editor legend { padding-inline: 4px; color: #23584b; font-weight: 700; }
.santa-wish-editor :is(input, button) { min-height: 44px; }
.santa-wish-editor input { width: 100%; min-width: 0; font-size: 16px; }
.santa-wish-editor [data-wish-remove] { margin-top: 4px; }
.santa-wish-editor [data-wish-status] { margin: 8px 0 0; }
.santa-wish-editor [data-wish-conflict] { margin-top: 12px; padding: 12px; border: 1px solid #aa8051; border-radius: 12px; }
.santa-wish-editor [data-wish-conflict] p { margin: 6px 0; }
#modal:has([data-wish-conflict]:not([hidden])) #submit { display: none; }
.holiday-picker [hidden] { display: none !important; }
.holiday-picker [data-add-guest] { margin-top: 10px; }
.holiday-guest-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.holiday-guest-row input { width: 100%; min-width: 0; }
.holiday-pick-group { min-width: 0; margin: 16px 0 0; border: 0; padding: 0; }
.holiday-pick-group legend { padding: 0 0 5px; font-weight: 650; }
.holiday-pick-row { min-width: 0; gap: 10px; padding-block: 2px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.holiday-pick-row input { flex: none; }
.holiday-pick-row label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 44px; margin: 0; cursor: pointer; }
.holiday-pick-row label small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; }
.holiday-pick-row:has(input:disabled) { opacity: .65; }
.holiday-pick-row:has(input:disabled) label { cursor: default; }
.holiday-layout > [role="alert"] { grid-column: 1 / -1; }

@media (min-width: 860px) {
  .holiday-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 640px) {
  .holiday-cards { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
  .holiday-cards .holiday-tile { min-height: 106px; padding: 15px 21px; border-radius: 19px; }
  .holiday-tile-title { font-size: 29px; }
  .holiday-tile-copy { width: 60%; }
  .holiday-tile .holiday-object { width: 31%; inset-inline-end: 4%; }
}
@media (max-width: 385px) {
  .holiday-tile-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-snow::before, .holiday-snow::after { animation: none; }
}
@media (forced-colors: active) {
  .holiday-scenery { display: none; }
  .holiday-cards .holiday-tile, .holiday-hero, .holiday-recipient { border: 1px solid CanvasText; }
  .holiday-cards .holiday-tile:focus-visible { outline-color: Highlight; }
}

/* The recipient card shares the sealed glass letter from the postal short. */
#app [data-holiday-screen="santa"] .card.holiday-panel.holiday-recipient:is(.is-opened,.is-sealed) {
  --letter-pad: clamp(18px, 3.2vw, 29px);
  --letter-ink: #fff6df;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(70px, 22%, 124px);
  column-gap: clamp(9px, 2vw, 20px);
  padding: var(--letter-pad);
  border: 1px solid #b2ad83;
  border-radius: 20px;
  color: var(--letter-ink);
  background: radial-gradient(ellipse at 100% 0, #62917f99, transparent 49%), linear-gradient(138deg, #244d43, #133a34 48%, #0a2929);
  box-shadow: inset 0 1px 0 #f2ffe660, inset 0 0 0 4px #082b292e, 0 8px 22px -15px #001d1bba;
}
#app .card.holiday-panel.holiday-recipient:is(.is-opened,.is-sealed)::before {
  content: ""; position: absolute; inset: 5px; width: auto; height: auto; z-index: -1; border-radius: 15px;
  border: 1px solid #ddd2a342; pointer-events: none; opacity: 1; mask: none; -webkit-mask: none; background: none;
}
#app .card.holiday-panel.holiday-recipient:is(.is-opened,.is-sealed)::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 51%; height: 125px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(146deg, transparent 0 18px, #ddcc9824 18px 19px, transparent 19px 34px);
  mask-image: linear-gradient(230deg,#000,transparent 75%); -webkit-mask-image: linear-gradient(230deg,#000,transparent 75%);
}
#app .holiday-recipient .santa-letter-art {
  display: block; pointer-events: none; grid-column: 2; grid-row: 1 / 3;
  width: 100%; aspect-ratio: 1.37; align-self: center;
  background: url("/textures/santa-letter.webp?v=dfdadad4e39b78a1557e3212") center / contain no-repeat;
  filter: drop-shadow(0 8px 6px #06232280);
}
#app .holiday-recipient.is-opened .santa-letter-art {
  aspect-ratio: 480 / 455;
  background-image: url("/textures/santa-letter-open.webp?v=5caa798e2b350492d27e45d1");
}
#app .holiday-recipient:is(.is-sealed,.is-opened) > .holiday-panel-head { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 5px; }
#app .holiday-recipient .holiday-panel-head h2 {
  color: #e8d7a4; font: 650 .76rem/1.4 Onest,sans-serif; letter-spacing: .055em; text-transform: uppercase;
}
#app .holiday-recipient [data-holiday-recipient] {
  grid-column: 1; grid-row: 2; align-self: start; margin: 0; color: #fff9e9;
  font: 650 clamp(1.55rem,5.7cqw,2.45rem)/1.1 Onest,sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere;
}
#app .holiday-recipient.is-sealed > .holiday-note { grid-column: 1; grid-row: 2; align-self: start; margin: 0; color: #edf2e3; line-height: 1.45; }
#app .holiday-recipient [data-recipient-wishlist] {
  grid-column: 1 / -1; min-width: 0; position: relative; margin: clamp(16px,4cqw,22px) 0 0; padding: 14px 0 0; border-top: 1px solid #c9cfab59;
}
#app .holiday-recipient [data-recipient-wishlist] h3 { margin: 0; color: #f7e9ca; font: 650 .94rem/1.35 Onest,sans-serif; text-transform: none; }
#app .holiday-recipient .santa-wish-empty { margin: 5px 0 0; font-size: .89rem; color: #d2e1d6; }
#app .holiday-recipient .santa-wishes { margin-top: 5px; color: #f7f7e8; }
#app .holiday-recipient .santa-wishes li::marker { color: #e7cb9b; }
#app .holiday-recipient .santa-wishes a, #app .holiday-recipient .santa-wishes small { color: #d8ebd9; }
#app .holiday-recipient .holiday-actions { grid-column: 1 / -1; margin-top: 17px; gap: 8px; }
#app .holiday-recipient .holiday-actions button { min-width: 0; min-height: 44px; padding: 9px 12px; font-size: .925rem; line-height: 1.25; }
@container (min-width: 470px) {
  #app .holiday-recipient.is-sealed .santa-letter-art { grid-row: 1 / 4; }
  #app .holiday-recipient.is-sealed .holiday-actions { grid-column: 1; grid-row: 3; }
}
@container (max-width: 340px) {
  #app .holiday-recipient .holiday-actions button { flex: 1 1 130px; }
}
@container (max-width: 275px) {
  #app .holiday-recipient .holiday-actions button { flex-basis: 100%; }
}
#app .holiday-recipient .holiday-actions .secondary { color: #fffaeb; background: linear-gradient(155deg,#52776c,#345c54); border: 1px solid #9eb3a080; box-shadow: inset 0 1px #ffffff24,0 2px 4px #061a1926; }
#app [data-holiday-screen="santa"] .holiday-recipient .holiday-actions .primary { color: #273c34; background: linear-gradient(135deg,#fff3ce,#dfc898); border: 1px solid #f3dfae; }
#app .holiday-recipient .holiday-actions button:focus-visible { outline: 2px solid #ffe0a0; outline-offset: 3px; }
@media (forced-colors: active) {
  #app [data-holiday-screen="santa"] .card.holiday-panel.holiday-recipient:is(.is-opened,.is-sealed) { background: Canvas; color: CanvasText; border-color: CanvasText; }
  #app .holiday-recipient .santa-letter-art { display: none; }
}
#modal [data-santa-roster],
#modal [data-santa-roster] * {
  -webkit-user-select: none;
  user-select: none;
}
@media (prefers-reduced-motion:no-preference) {
  .holiday-tile[aria-busy="true"]::after {
    content:""; pointer-events:none; position:absolute; bottom:0; left:10%; width:80%; height:2px;
    background:linear-gradient(90deg,transparent,#e9f6e7,transparent); opacity:0;
    animation:santa-card-loading 1.2s ease-in-out .3s infinite;
  }
  @keyframes santa-card-loading {
    0%,100% { opacity:0; transform:scaleX(.25); }
    55% { opacity:.85; transform:scaleX(.85); }
  }
}

/* The same game palette follows the player into its sheets and brief notices. */
#modal:has([data-holiday-sheet="santa"]), .santa-letter-dialog,
body:is([data-route="santa"], [data-route="profile-santa"]) #toast {
  --sheet-surface: #163731;
  --sheet-header: #285446;
  --sheet-well: #102c29;
  --sheet-ink: #fff8e8;
  --sheet-muted: #cadcd0;
  --sheet-accent: #f2d7a0;
  --sheet-edge: #a6bea166;
  --sheet-control-edge: #8fae9d;
  --sheet-action: #ddc29a;
  --sheet-art: url("/textures/santa-globe-gift.webp?v=1fd32990b615cebc9dc23424");
}
#modal:has([data-holiday-sheet="tournament"]), body[data-route="tournament"] #toast {
  --sheet-surface: #152c45;
  --sheet-header: #264865;
  --sheet-well: #0f2339;
  --sheet-ink: #f4f8ff;
  --sheet-muted: #c5d6e7;
  --sheet-accent: #c7e4fb;
  --sheet-edge: #a1c2dd66;
  --sheet-control-edge: #829eb7;
  --sheet-action: #b4d1e7;
  --sheet-art: url("/textures/tournament-cup.webp?v=156eb5e06ac35d75aef01213");
}

#modal[open]:has([data-holiday-sheet]) {
  --ink: var(--sheet-ink);
  --muted: var(--sheet-muted);
  --line: var(--sheet-edge);
  --sheet-pad: clamp(16px, 4vw, 26px);
  --sheet-gap: max(10px, env(safe-area-inset-bottom));
  --sheet-max-height: min(750px, calc(min(100dvh, var(--holiday-viewport-height, 100dvh)) - env(safe-area-inset-top) - var(--sheet-gap) - 16px));
  position: fixed;
  inset: 0 0 var(--holiday-viewport-bottom, 0px);
  margin: auto;
  width: min(508px, calc(100% - 20px));
  height: fit-content;
  max-height: var(--sheet-max-height);
  padding: 0;
  overflow: hidden;
  color: var(--sheet-ink);
  background: var(--sheet-surface);
  border: 1px solid var(--sheet-edge);
  border-radius: 22px;
  box-shadow: inset 0 1px #ffffff35, 0 16px 60px #03101973;
  color-scheme: dark;
}
#modal[open]:has([data-holiday-sheet])::backdrop {
  background: #05151dd1;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
#modal[open]:has([data-holiday-sheet]) #form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  max-height: calc(var(--sheet-max-height) - 2px);
}
#modal[open]:has([data-holiday-sheet]) .modal-top {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  margin: 0;
  padding: 13px var(--sheet-pad);
  color: var(--sheet-ink);
  border: 0;
  border-bottom: 1px solid var(--sheet-edge);
  border-radius: 0;
  background:
    linear-gradient(100deg, transparent 12%, var(--sheet-header) 74%),
    url("/textures/tournament-flurries.webp?v=69acb233b7598f4fb44f45e5") 14% 42% / 360px auto no-repeat,
    linear-gradient(118deg, var(--sheet-header), var(--sheet-surface));
}
#modal[open]:has([data-holiday-sheet]) .modal-top::before {
  content: "";
  position: static;
  width: clamp(40px, 10vw, 54px);
  height: clamp(46px, 12vw, 60px);
  background: var(--sheet-art) center / contain no-repeat;
}
#modal[open]:has([data-holiday-sheet]) #modal-title {
  margin: 0;
  font: 700 clamp(22px, 5.8vw, 31px)/1.06 "Fira Sans Extra Condensed", Onest, sans-serif;
  color: var(--sheet-ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
#modal[open]:has([data-holiday-sheet]) #modal-title:focus { outline: none; }
#modal[open]:has([data-holiday-sheet]) [data-close] {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--sheet-edge);
  border-radius: 50%;
  color: var(--sheet-ink);
  background: var(--sheet-well);
  box-shadow: inset 0 1px #ffffff1f;
  font: 400 27px/1 Onest, sans-serif;
}
#modal[open]:has([data-holiday-sheet]) #fields {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 16px var(--sheet-pad);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 10px;
  scrollbar-color: var(--sheet-control-edge) var(--sheet-surface);
  overflow-wrap: anywhere;
}
#modal[open]:has([data-holiday-sheet]) :is(.holiday-note, .holiday-row small, .holiday-pick-row label small) {
  color: var(--sheet-muted);
}
#modal [data-holiday-sheet] > .holiday-note,
#modal [data-holiday-sheet] [data-santa-participation],
#modal [data-santa-roster] > .holiday-note { margin: 0; line-height: 1.5; }
#modal [data-holiday-sheet] [data-santa-participation]:focus { outline: none; }
#modal[open]:has([data-holiday-sheet]) :is(label, .holiday-pick-group legend) { color: var(--sheet-ink); }
#modal[open]:has([data-holiday-sheet]) .holiday-picker-summary {
  margin: 14px 0 5px;
  padding: 0;
  color: var(--sheet-accent);
  background: none;
  font-size: 14px;
  font-weight: 650;
}
#modal [data-holiday-sheet] .holiday-picker > .holiday-note { margin-top: 0; }
#modal [data-holiday-sheet] > label:first-child,
#modal [data-holiday-sheet] [data-wish-row] legend + label { margin-top: 3px; }
#modal [data-holiday-sheet] .santa-wish-editor legend,
#modal [data-holiday-sheet] .santa-wishes a { color: var(--sheet-accent); }
#modal [data-holiday-sheet] [data-wish-row] { background: var(--sheet-well); }
#modal [data-holiday-sheet] [data-wish-conflict] { border-color: var(--sheet-accent); }

#modal[open]:has([data-holiday-sheet]) input:not([type="checkbox"]) {
  background: var(--sheet-well);
  color: var(--sheet-ink);
  border: 1px solid var(--sheet-control-edge);
  border-radius: 10px;
  box-shadow: inset 0 1px 3px #0002;
  font-size: 16px;
}
#modal[open]:has([data-holiday-sheet]) input::placeholder { color: var(--sheet-muted); opacity: .85; }
#modal[open]:has([data-holiday-sheet]) input[type="checkbox"] {
  background: var(--sheet-well);
  border-color: var(--sheet-control-edge);
}
#modal[open]:has([data-holiday-sheet]) input[type="checkbox"]:checked {
  background: var(--sheet-accent);
  border-color: var(--sheet-accent);
}
#modal[open]:has([data-holiday-sheet]) input[type="checkbox"]:checked::after { border-color: var(--sheet-well); }
#modal[open]:has([data-holiday-sheet]) .holiday-pick-row:has(input:focus-visible) {
  outline: 1px solid var(--sheet-accent);
  outline-offset: 3px;
}
#modal[open]:has([data-holiday-sheet]) :is(.field-error, #form-error) { color: #ffcab9; }
#modal[open]:has([data-holiday-sheet]) input:is([aria-invalid="true"], :user-invalid) { border-color: #ffab98; }
#modal[open]:has([data-holiday-sheet]) #form-error { margin: 0 var(--sheet-pad) 12px; }
#modal[open]:has([data-holiday-sheet]) #form-error:empty { margin: 0; }
#modal[open]:has([data-holiday-sheet]) :is(.secondary, .text-button, .primary) {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--sheet-edge);
  color: var(--sheet-ink);
  background: var(--sheet-header);
  box-shadow: none;
}
#modal[open]:has([data-holiday-sheet]) .text-button { color: var(--sheet-accent); border-color: transparent; background: transparent; }
#modal[open]:has([data-holiday-sheet]) :is(.primary, #submit) {
  color: var(--sheet-well);
  background: linear-gradient(165deg, var(--sheet-ink), var(--sheet-action));
  border: 1px solid var(--sheet-accent);
  box-shadow: inset 0 1px #fff8;
  font-weight: 700;
}
#modal[open]:has([data-holiday-sheet]) #submit {
  width: auto;
  min-height: 46px;
  margin: 8px var(--sheet-pad) 18px;
}
#modal[open]:has([data-holiday-sheet]) button:disabled { opacity: .55; }
#modal[open]:has([data-holiday-sheet]) :is(button, input, a, [data-wish-conflict]):focus-visible {
  outline: 2px solid var(--sheet-accent);
  outline-offset: 3px;
}
@media (hover: hover) {
  #modal[open]:has([data-holiday-sheet]) button:enabled:hover { filter: brightness(1.1); }
}
@media (max-width: 767px) {
  #modal[open]:has([data-holiday-sheet]) {
    top: auto;
    margin-bottom: var(--sheet-gap);
    width: calc(100% - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)));
  }
}
@media (max-height: 500px) {
  #modal[open]:has([data-holiday-sheet]) .modal-top { padding-block: 5px; }
  #modal[open]:has([data-holiday-sheet]) #fields { padding-block: 10px; }
  #modal[open]:has([data-holiday-sheet]) #submit { margin-bottom: 10px; }
}
body:is([data-route="santa"], [data-route="profile-santa"], [data-route="tournament"]) #toast {
  width: max-content;
  max-width: min(460px, calc(100% - 24px));
  background: var(--sheet-well);
  color: var(--sheet-ink);
  border: 1px solid var(--sheet-edge);
  border-inline-start: 3px solid var(--sheet-accent);
  box-shadow: 0 6px 24px #05101855;
}
@media (forced-colors: active) {
  #modal[open]:has([data-holiday-sheet]), .santa-letter-dialog,
  body:is([data-route="santa"], [data-route="profile-santa"], [data-route="tournament"]) #toast {
    --sheet-surface: Canvas; --sheet-header: Canvas; --sheet-well: Canvas;
    --sheet-ink: CanvasText; --sheet-muted: CanvasText; --sheet-accent: Highlight;
    --sheet-edge: ButtonText; --sheet-control-edge: ButtonText; --sheet-action: ButtonFace;
  }
  #modal[open]:has([data-holiday-sheet]) .modal-top { grid-template-columns: 1fr auto; background: Canvas; }
  #modal[open]:has([data-holiday-sheet]) .modal-top::before { display: none; }
  #modal[open]:has([data-holiday-sheet]) :is(.primary, #submit, [data-close]) { color: ButtonText; background: ButtonFace; }
  #modal[open]:has([data-holiday-sheet]) input[type="checkbox"]:checked::after { border-color: CanvasText; }
}
