#winter-contest-view {
  --winter-night: #091a34;
  --winter-ice: #c3ecff;
  --winter-text: #f2f8ff;
  --winter-muted: #a7bdd9;
  --winter-line: #b6d6f530;
  padding: 0;
  background: var(--winter-night);
  color: var(--winter-text);
  height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
  color-scheme: dark;
  font-family: system-ui, sans-serif;
}
.winter-contest [hidden] { display: none !important }
.winter-page {
  --winter-gutter: clamp(16px, 5cqi, 26px);
  --winter-ticket-height: clamp(87px, 23cqi, 104px);
  display: grid;
  grid-template:
    "hero" auto
    "summary" auto
    "wallet" minmax(0, 1fr)
    "actions" auto / minmax(0, 1fr);
  width: min(100%, 520px);
  container-type: size;
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  background: var(--winter-night);
}
.winter-page:has(.winter-join:not([hidden])),
#winter-contest-view[data-winter-joined="false"][data-winter-phase="ready"] > article.winter-page:not(:has(.winter-closed:not([hidden]), .winter-results:not([hidden]))),
#winter-contest-view:not([data-winter-joined="true"]) > .winter-opening-page {
  grid-template-rows: auto auto auto auto;
  align-content: start;
}
:is(.winter-stage, .winter-loading-stage) {
  grid-area: hero;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--winter-night);
}
:is(.winter-hero, .winter-loading-hero) {
  display: block;
  width: 100%;
  height: min(66.6667cqi, 39cqb);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 28%;
  transform-origin: 50% 68%;
}
:is(.winter-stage, .winter-loading-stage)::before, :is(.winter-stage, .winter-loading-stage)::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
  inset: auto 0 -1px;
}
:is(.winter-stage, .winter-loading-stage)::before {
  height: 23%;
  background: linear-gradient(0deg, #091a34a6 0%, #091a3442 47%, transparent 95%);
}
:is(.winter-stage, .winter-loading-stage)::after {
  /* Feather the contour while keeping its base exactly the surface color. */
  height: 15%;
  background: var(--winter-night);
  --winter-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 48' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='soft' x='-.1' y='-.4' width='1.2' height='1.8'%3E%3CfeGaussianBlur stdDeviation='1.2 2.7'/%3E%3C/filter%3E%3C/defs%3E%3Cpath fill='white' filter='url%28%23soft%29' d='M-10 27C65 2 103 3 163 18S265 49 336 28S463 3 503 11S598 36 650 16V60H-10Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--winter-wave) center / 100% 100% no-repeat;
  mask: var(--winter-wave) center / 100% 100% no-repeat;
}
.winter-headline {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  white-space: nowrap;
}
.winter-x {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d5f1ff48;
  border-radius: 50%;
  color: #f0f8ff;
  background: #0a2141b8;
  cursor: pointer;
}
:is(.winter-stage, .winter-loading-stage) > .winter-x {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
}
.winter-x span { width: 15px; height: 15px; position: relative }
.winter-x span::before, .winter-x span::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background: currentColor;
  left: calc(50% - 1px);
  border-radius: 2px;
  transform: rotate(45deg);
}
.winter-x span::after { transform: rotate(-45deg) }
.winter-flurries {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  overflow: hidden;
  /* Keep the eyes, typography, and physical certificate unobstructed. */
  --winter-snow-window: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='f' x='-15%25' y='-25%25' width='130%25' height='150%25'%3E%3CfeGaussianBlur stdDeviation='9'/%3E%3C/filter%3E%3Cmask id='m'%3E%3Crect width='600' height='400' fill='white'/%3E%3Cg fill='black' filter='url%28%23f%29'%3E%3Crect x='14' y='71' width='249' height='138' rx='8'/%3E%3Cellipse cx='455' cy='152' rx='82' ry='52'/%3E%3Cpath d='M204 207L370 167L411 283L220 331Z'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Crect width='600' height='400' fill='white' mask='url%28%23m%29'/%3E%3C/svg%3E");
  -webkit-mask: var(--winter-snow-window) center / 100% 100% no-repeat;
  mask: var(--winter-snow-window) center / 100% 100% no-repeat;
  --winter-crystal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cdefs%3E%3Cpath id='a' d='M18 18V2M18 7l-3-3m3 3 3-3m-3 8-5-4m5 4 5-4m-5 8-3-2m3 2 3-2'/%3E%3C/defs%3E%3Cg fill='none' stroke='%23f8fbff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23a' transform='rotate(60 18 18)'/%3E%3Cuse href='%23a' transform='rotate(120 18 18)'/%3E%3Cuse href='%23a' transform='rotate(180 18 18)'/%3E%3Cuse href='%23a' transform='rotate(240 18 18)'/%3E%3Cuse href='%23a' transform='rotate(300 18 18)'/%3E%3C/g%3E%3C/svg%3E");
}
.winter-flurries::before {
  content: "";
  position: absolute;
  inset: -100% 0 0;
  background: radial-gradient(circle at 8% 13%, #f8fbffb0 0 1px, transparent 2px),
    radial-gradient(circle at 38% 52%, #fffbf47a 0 1.1px, transparent 2.5px),
    radial-gradient(circle at 78% 79%, #fff8f693 0 1.5px, transparent 3.1px),
    radial-gradient(circle at 58% 17%, #fff7eb8c 0 2px, transparent 3.5px),
    radial-gradient(circle at 87% 38%, #fff9ef94 0 1.2px, transparent 2.5px),
    radial-gradient(circle at 16% 90%, #fffef6a1 0 1px, transparent 2px);
  background-size: 100% 50%;
  opacity: .73;
}
.winter-flurries i { position: absolute; inset: 0; }
.winter-flurries i::before, .winter-flurries i::after {
  content: "";
  position: absolute;
  left: var(--x);
  top: var(--rest);
  width: var(--size);
  height: var(--size);
  opacity: var(--alpha);
  background: var(--winter-crystal) center / contain no-repeat;
}
.winter-flurries i:nth-child(1)::before { --x: 2%; --rest: 29%; --size: clamp(16px, 5cqi, 25px); --alpha: .82; --drift: 5cqi; --period: 8.7s; --delay: -2.7s; }
.winter-flurries i:nth-child(1)::after { --x: 91%; --rest: 65%; --size: clamp(17px, 5.3cqi, 27px); --alpha: .72; --drift: -4cqi; --period: 8.1s; --delay: -6.4s; }
.winter-flurries i:nth-child(2)::before { --x: 23%; --rest: 78%; --size: clamp(13px, 3.9cqi, 21px); --alpha: .72; --drift: -5cqi; --period: 10.1s; --delay: -7.9s; }
.winter-flurries i:nth-child(2)::after { --x: 53%; --rest: 11%; --size: clamp(10px, 3.5cqi, 17px); --alpha: .66; --drift: 3cqi; --period: 11.6s; --delay: -1.6s; }
.winter-flurries i:nth-child(3)::before { --x: 76%; --rest: 84%; --size: clamp(11px, 3.1cqi, 17px); --alpha: .62; --drift: -3cqi; --period: 12.4s; --delay: -10.5s; }
.winter-flurries i:nth-child(3)::after { --x: 37%; --rest: 20%; --size: clamp(9px, 2.6cqi, 14px); --alpha: .55; --drift: 5cqi; --period: 13.3s; --delay: -3.1s; }
.winter-contest.active .winter-flurries::before { animation: winter-far-snow 18s linear infinite; }
.winter-contest.active .winter-flurries i::before, .winter-contest.active .winter-flurries i::after {
  top: -8%;
  animation: winter-snow var(--period) var(--delay) linear infinite;
}
.winter-contest.active .winter-hero { animation: winter-reveal 600ms cubic-bezier(.16, 1, .3, 1) both }
@keyframes winter-far-snow { to { transform: translateY(50%) } }
@keyframes winter-snow {
  from { transform: translate3d(0, 0, 0) rotate(-23deg) }
  52% { transform: translate3d(var(--drift), 39cqi, 0) rotate(7deg) }
  to { transform: translate3d(0, 78cqi, 0) rotate(42deg) }
}
@keyframes winter-reveal {
  from { transform: scale(1.015) }
  to { transform: scale(1) }
}
:is(.winter-summary, .winter-loading-summary) {
  grid-area: summary;
  min-width: 0;
  padding: clamp(7px, 2cqi, 12px) var(--winter-gutter) clamp(8px, 2.4cqi, 14px);
}
.winter-summary:not(:has(> :not([hidden]))) { display: none; }
.winter-summary > .winter-deadline, .winter-loading-summary > .winter-loading-deadline { margin: 4px 0 0; }
.winter-summary > .winter-ticket-section { margin: 0; }
:is(.winter-actions, .winter-loading-actions) {
  grid-area: actions;
  display: grid;
  gap: 8px;
  padding: 10px var(--winter-gutter) max(12px, env(safe-area-inset-bottom));
  background: var(--winter-night);
}
.winter-actions:not(:has(> :not([hidden]))) { display: none; }
.winter-primary, .winter-invite, .winter-pick button, .winter-retry, .winter-draw {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; font: inherit;
}
.winter-primary, .winter-invite {
  width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 14px; font-size: 15px; font-weight: 720; line-height: 1.25;
  transition: background .16s ease, transform .16s ease;
}
.winter-primary { justify-content: space-between; background: #cef0ff; color: #0a213c; border: 0; }
.winter-join.is-help { justify-content: center; }
.winter-entry-shortfall {
  display: grid;
  gap: 2px;
  margin: 0 0 3px;
  color: var(--winter-muted);
  font-size: 14px;
  line-height: 1.35;
}
.winter-entry-shortfall b { font-weight: 650; color: var(--winter-text); }
.winter-entry-shortfall .winter-coin { width: 15px; height: 15px; }
.winter-help-links { display: grid; gap: 6px; }
.winter-invite { background: transparent; color: #ebf5ff; border: 1px solid #7092b352; justify-content: center; }
.winter-invite b { font-size: 13px; font-weight: 650; color: #a7e4ff; white-space: nowrap; }
.winter-invite svg { width: 18px; height: 18px; }
.winter-primary strong, .winter-balance { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.winter-primary strong, .winter-primary b, .winter-balance b { font-weight: inherit; }
.winter-coin { width: 17px; height: 17px; display: inline-block; vertical-align: middle; object-fit: contain; }
.winter-contest button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.winter-contest button:disabled { opacity: .53; cursor: default; }
.winter-primary:not(:disabled):active, .winter-invite:not(:disabled):active { transform: scale(.985); }
.winter-ticket-section { margin: 0 0 17px; }
:is(.winter-ticket-metrics, .winter-loading-metrics) { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
:is(.winter-ticket-metrics, .winter-loading-metrics) > div { display: grid; gap: 3px; align-content: start; }
:is(.winter-ticket-metrics, .winter-loading-metrics) > div + div { border-left: 1px solid var(--winter-line); padding-left: 16px; }
:is(.winter-ticket-metrics, .winter-loading-metrics) span { color: var(--winter-muted); font-weight: 580; font-size: 13px; }
:is(.winter-ticket-metrics, .winter-loading-metrics) strong { font-size: clamp(24px, 7cqi, 32px); line-height: 1.12; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.winter-ticket-metrics .winter-share.is-pending { font-size: 14px; line-height: 1.3; letter-spacing: normal; }
.winter-stage > .rule-info-trigger {
  position: absolute; z-index: 3; left: 39.5%; top: 22.4%; transform: translate(-15%, -50%);
  color: #fff; width: 44px; height: 44px; margin: 0; background: none;
}
.winter-stage > .rule-info-trigger svg { width: clamp(16px, 4.5cqi, 21px); height: auto; }
:is(.winter-ticket-wallet, .winter-loading-wallet) {
  grid-area: wallet;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 6px var(--winter-gutter) 0;
}
.winter-page:not(:has(> .winter-actions > :not([hidden]))) .winter-ticket-wallet { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.winter-ticket-wallet > .winter-entry-preview { flex: 0 0 auto; margin: 0; }
.winter-tickets-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden auto;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
  scrollbar-color: #58738f transparent;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.winter-tickets-scroll:focus-visible { outline: 2px solid var(--winter-ice); outline-offset: 2px; }
.winter-tickets-scroll:is(.is-scrolled, .has-more) {
  --feed-edge: linear-gradient(to bottom, transparent, #000 var(--winter-top-fade, 0px),
    #000 calc(100% - var(--winter-bottom-fade, 0px)), transparent);
  -webkit-mask-image: var(--feed-edge);
  mask-image: var(--feed-edge);
}
.winter-tickets-list {
  position: relative;
  row-gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.winter-tickets-list > .winter-entry-ticket {
  position: absolute;
  inset-inline: 0;
  width: auto;
  margin: 0;
}
@container (max-height: 530px) {
  :is(.winter-hero, .winter-loading-hero) { height: min(66.6667cqi, 32cqb); }
  :is(.winter-summary, .winter-loading-summary) { padding-block: 4px; }
  :is(.winter-ticket-wallet, .winter-loading-wallet) { padding-top: 3px; }
  :is(.winter-actions, .winter-loading-actions) { gap: 6px; padding-block-start: 7px; }
}
.winter-page.is-entering .winter-ticket-section {
  display: grid; overflow: hidden;
  animation: winter-stats-open .42s cubic-bezier(.2,.8,.2,1) both;
}
.winter-page.is-entering .winter-ticket-metrics { min-height: 0; overflow: hidden; }
.winter-page.is-entering :is(.winter-invite,.winter-ticket-wallet) {
  animation: winter-wallet-in .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes winter-stats-open {
  from { grid-template-rows: 0fr; opacity: 0; }
  to { grid-template-rows: 1fr; opacity: 1; }
}
@keyframes winter-wallet-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .winter-page.is-entering :is(.winter-ticket-section,.winter-invite,.winter-ticket-wallet) { animation: none; }
}
.winter-rules #rule-info-copy > div { display: grid; gap: 8px; }
.winter-deadline { margin: 0; color: var(--winter-muted); font-size: 12px; }
.winter-checkout {
  position: fixed; inset: auto 0 0; margin: 0 auto; box-sizing: border-box;
  width: min(100%, 440px); max-width: 100%; max-height: 92dvh; overflow-y: auto;
  padding: 0; border: 1px solid #a2d4ff30; border-bottom: 0; border-radius: 24px 24px 0 0;
  color: var(--winter-text); background: #0e223c; box-shadow: 0 -12px 50px #01081133;
}
.winter-checkout::backdrop { background: #030e20a8; }
.winter-checkout[open] { animation: winter-sheet-in .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes winter-sheet-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.winter-sheet-body { padding: 16px clamp(16px, 5vw, 24px) max(16px, env(safe-area-inset-bottom)); }
.winter-checkout .winter-preview-head { margin-bottom: 12px; }
.winter-checkout .winter-preview-head h2 { font-size: 22px; line-height: 1.2; margin: 0; }
.winter-sheet-body h2:focus { outline: 0; }
.winter-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 15px; line-height: 1.25; }
.winter-stepper { display: grid; align-items: center; grid-template-columns: 44px 4ch 44px; background: #081a31; border-radius: 12px; }
.winter-stepper button { min-width: 44px; min-height: 44px; padding: 0 7px; border-radius: 10px; border: 0; background: transparent; color: var(--winter-text); font: inherit; font-size: 21px; font-weight: 650; }
.winter-quantity { text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.winter-checkout-note { display: grid; align-items: center; min-height: 36px; margin: 3px 0 5px; }
.winter-checkout-note > p { grid-area: 1 / 1; margin: 0; font-size: 14px; line-height: 18px; }
.winter-checkout-note:has(.winter-checkout-error:not([hidden])) .winter-unit { visibility: hidden; }
.winter-unit { color: var(--winter-muted); }
.winter-unit b { font-weight: inherit; }
.winter-money { white-space: nowrap; }
.winter-money img, .winter-extra-unit img { width: 15px; height: 15px; vertical-align: -.16em; }
.winter-receipt { font-size: 14px; }
.winter-receipt { display: grid; gap: 8px; border-top: 1px solid var(--winter-line); padding: 12px 0 16px; }
.winter-receipt > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.winter-receipt span { color: var(--winter-muted); }
.winter-receipt strong { font-weight: 640; }
.winter-forecast { min-height: 22px; line-height: 22px; }
.winter-forecast strong { position: relative; min-height: 22px; }
.winter-forecast strong.is-loading { width: 42px; }
.winter-forecast strong.is-loading::after { content: ""; position: absolute; inset: 7px 0; border-radius: 4px; background: #35506a; }
.winter-checkout-error { color: #ffc9ce; }
.winter-results h2 { font-size: 16px; margin: 0 0 4px; }
.winter-status { margin: 10px 0 0; color: var(--winter-ice); font-size: 13px }
.winter-status.is-error { color: #ffbac6 }
.winter-retry, .winter-draw {
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid var(--winter-line);
  border-radius: 8px;
  color: var(--winter-text);
  background: #163355;
}
.winter-deadline { margin-top: 13px }
.winter-results { margin-top: 15px; border-top: 1px solid var(--winter-line); padding-top: 12px }
.winter-winners { margin: 0; padding: 0 0 0 23px }
.winter-winners li { padding: 8px 2px; border-bottom: 1px solid var(--winter-line); font-size: 14px }
.winter-invite-preview {
  width: min(calc(100vw - 32px), 402px);
  max-height: 85dvh;
  padding: 0;
  color: var(--winter-text);
  background: var(--winter-night);
  border: 1px solid #8cc9ff80;
  border-radius: 20px;
}
.winter-invite-preview::backdrop { background: #000a }
.winter-preview-body { padding: 12px }
.winter-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; gap: 8px }
.winter-preview-head h2 { font-size: 16px; margin: 0 0 0 3px }
.winter-preview-head .winter-x { width: 34px; height: 34px }
.winter-preview-art { display: block; width: 100%; border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover }
.winter-preview-text { white-space: pre-line; font-size: 14px; line-height: 1.5; margin: 10px 1px }
.winter-preview-instruction {
  width: fit-content;
  max-width: 94%;
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 14px 14px 14px 4px;
  color: #e7f2ff;
  background: #19314d;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.winter-preview-open {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 2px;
  background: transparent;
  border: 0;
  color: #a7e4ff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .17em;
  overflow-wrap: anywhere;
}
.winter-preview-open:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .winter-contest.active .winter-hero, .winter-contest.active .winter-flurries i { animation: none }
  .winter-checkout[open] { animation: none }
  .winter-primary, .winter-invite { transition: none }
}
.winter-glint {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(33.1% 52.2%, 62.4% 43.5%, 67.4% 71.5%, 35.8% 80.4%);
  mix-blend-mode: screen;
}
.winter-glint::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(105deg, transparent 42%, #fff6db19 47%, #fffdf261 50%, #fff6db19 53%, transparent 58%);
}
.winter-contest.active .winter-glint::after { animation: winter-card-glint 6.7s 1.3s ease-in-out infinite }
@keyframes winter-card-glint {
  0%, 74% { opacity: 0; transform: translateX(-24%) }
  82% { opacity: .9 }
  94%, 100% { opacity: 0; transform: translateX(29%) }
}
@media (prefers-reduced-motion: reduce) {
  .winter-contest.active .winter-hero, .winter-contest.active .winter-glint::after,
  .winter-contest.active .winter-flurries::before, .winter-contest.active .winter-flurries i::before,
  .winter-contest.active .winter-flurries i::after { animation: none }
  .winter-contest.active .winter-flurries i::before, .winter-contest.active .winter-flurries i::after { top: var(--rest) }
}

:is(.winter-entry-ticket, .winter-loading-ticket) {
  --stub: clamp(62px, 18cqi, 87px);
  --notch: 7px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  min-height: var(--winter-ticket-height);
  margin: 0 0 13px;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f4ed;
  color: #431529;
  --ticket-edge: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) top,
      transparent calc(100% - .6px), #000) top / 100% 52% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) bottom,
      transparent calc(100% - .6px), #000) bottom / 100% 52% no-repeat;
  -webkit-mask: var(--ticket-edge);
  mask: var(--ticket-edge);
}
.winter-entry-details {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  padding: 14px clamp(16px, 5cqi, 26px);
  background: linear-gradient(110deg, #fcfaf5, #f8f4ec 61%, #eae4de);
}
.winter-entry-details::before {
  /* Fine arcs like the engraving on printed security paper. */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -36% -9% -30% 42%;
  transform: rotate(-14deg);
  background: repeating-radial-gradient(ellipse at 115% 75%, transparent 0 5px, #92727b47 5.2px 5.8px, transparent 6.1px 8px),
    repeating-radial-gradient(ellipse at 117% 100%, transparent 0 6px, #9d858d39 6.1px 6.8px, transparent 7.1px 8.5px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 78%);
  mask-image: linear-gradient(90deg, transparent, #000 78%);
}
.winter-entry-details::after, .winter-ticket-stub::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 5px;
  border: 1px solid #977d704f;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}
.winter-entry-details :is(.winter-entry-label, h2) {
  margin: 0;
  color: #654450;
  font: 650 clamp(14px, 3.8cqi, 17px)/1.2 system-ui, sans-serif;
  letter-spacing: -.025em;
}
.winter-ticket-serial {
  display: grid;
  align-items: center;
  min-width: 0;
  font: 700 clamp(20px, 6.2cqi, 29px)/1.14 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .004em;
  font-variant-numeric: tabular-nums;
}
.winter-ticket-serial > span { grid-area: 1 / 1; white-space: nowrap; }
.winter-ticket-sample {
  color: #6b4751;
  filter: blur(2.6px);
  opacity: .8;
  user-select: none;
  transition: opacity .18s ease-out;
}
.winter-ticket-number { visibility: hidden; }
.winter-entry-ticket.is-issued .winter-ticket-number { visibility: visible; }
.winter-entry-ticket.is-issued .winter-ticket-sample { opacity: 0; }
.winter-ticket-stub {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 15% 0, #b83c5548, transparent 57%),
    linear-gradient(135deg, #831334, #6e0d2f 65%, #541129);
}
.winter-ticket-stub::before {
  content: "";
  position: absolute;
  inset: var(--notch) auto var(--notch) 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, #f8eaddcb 0 2px, transparent 2px 6px);
}
.winter-ticket-stub::after {
  border: 1px solid #ebd8d656;
  border-left: 0;
  border-radius: 0 3px 3px 0;
}
.winter-ticket-stub svg {
  width: clamp(41px, 12cqi, 55px);
  height: auto;
  filter: drop-shadow(0 1px 0 #37091edb);
}
.winter-entry-ticket.is-revealing { animation: winter-ticket-lift .75s cubic-bezier(.2,.7,.25,1) both; }
.winter-entry-ticket.is-revealing .winter-ticket-number { animation: winter-ticket-develop .8s cubic-bezier(.2,.7,.25,1) both; }
.winter-entry-ticket.is-revealing::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, #fff8f1a6 49%, transparent 63%);
  animation: winter-ticket-gleam .85s ease-out both;
}
@keyframes winter-ticket-lift {
  0%, 100% { transform: none; }
  42% { transform: translateY(-2px) rotate(-.35deg); }
}
@keyframes winter-ticket-develop {
  from { opacity: .35; filter: blur(3px); transform: translateY(1px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes winter-ticket-gleam {
  from { transform: translateX(-105%); }
  to { transform: translateX(105%); }
}
@media (prefers-reduced-motion: reduce) {
  .winter-ticket-sample { transition: none; }
  .winter-entry-ticket.is-revealing, .winter-entry-ticket.is-revealing .winter-ticket-number { animation: none; }
  .winter-entry-ticket.is-revealing::after { animation: none; content: none; }
}


#winter-contest-view > .winter-opening-page {
  position: absolute;
  inset: 0;
  z-index: 3;
  align-content: start;
  opacity: 1;
  visibility: visible;
}
#winter-contest-view[data-winter-joined="true"] .winter-loading-actions {
  position: absolute;
  grid-area: auto;
  inset: auto 0 0;
}
#winter-contest-view[data-winter-phase="ready"] > .winter-opening-page {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease-out, visibility 0s .16s;
}
#winter-contest-view:not([data-winter-phase="ready"]) > article.winter-page {
  visibility: hidden;
  pointer-events: none;
}
.winter-loading-hero { background: linear-gradient(155deg, #442332, #71293a 60%, var(--winter-night)); }
#winter-contest-view.active .winter-loading-hero {
  background: #422533 url("./assets/winter-contest/hero.jpg") center 28% / cover no-repeat;
}
.winter-loading-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.winter-loading-summary { --winter-loading-ink: #5e758c; }
.winter-loading-deadline, .winter-loading-metrics :is(span, strong) {
  position: relative;
  color: transparent;
}
.winter-loading-deadline { margin: 0; font-size: 12px; }
.winter-loading-deadline::after, .winter-loading-metrics :is(span, strong)::after {
  content: "";
  position: absolute;
  inset: 23% auto 23% 0;
  width: min(68%, 86px);
  border-radius: 4px;
  background: var(--winter-loading-ink);
}
.winter-loading-metrics strong::after { width: min(56%, 58px); background: #849aaf; }
.winter-loading-deadline::after { width: min(72%, 201px); }
#winter-contest-view:not([data-winter-joined="true"]) :is(.winter-loading-metrics, .winter-loading-invite) { display: none; }
#winter-contest-view[data-winter-has-deadline="false"] .winter-loading-deadline,
#winter-contest-view[data-winter-has-deadline="false"]:not([data-winter-joined="true"]) .winter-loading-summary { display: none; }
.winter-loading-ticket {
  margin: 0;
  height: var(--winter-ticket-height);
  min-height: var(--winter-ticket-height);
  opacity: .88;
}
.winter-loading-ticket > div, .winter-loading-action, .winter-loading-invite {
  display: flex;
  padding: 9px 16px;
  align-items: center;
}
.winter-loading-ticket > div {
  padding: 13px clamp(13px, 4.2cqi, 23px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
}
.winter-loading-ticket i, .winter-loading-action i, .winter-loading-invite i {
  display: block;
  width: min(42%, 78px);
  height: 9px;
  border-radius: 4px;
  background: #c8bebb;
}
.winter-loading-ticket > div i + i { width: min(65%, 128px); height: 17px; }
.winter-loading-ticket > i {
  position: relative;
  width: auto;
  height: 100%;
  border-radius: 0;
  border-left: 1px dashed #9f6678;
  background: #7e4958;
}
.winter-loading-ticket > i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 52%;
  aspect-ratio: 1;
  height: auto;
  margin: auto;
  border: 1px solid #d5bdbe;
  border-radius: 50%;
}
.winter-loading-action, .winter-loading-invite { box-sizing: border-box; min-height: 48px; border-radius: 14px; }
.winter-loading-action { justify-content: space-between; background: #accbdb; }
.winter-loading-action i { background: #86a7ba; }
.winter-loading-action i + i { width: 32px; }
.winter-loading-invite { justify-content: center; border: 1px solid var(--winter-line); }
.winter-loading-invite i { width: 35%; background: #5e758c; }
.winter-opening-page [data-winter-fallback], .winter-opening-page [data-winter-retry] { display: none; }
#winter-contest-view[data-winter-phase="error"] :is(.winter-loading-action, .winter-loading-invite, .winter-loading-announcement) { display: none; }
#winter-contest-view[data-winter-phase="error"] .winter-opening-page :is([data-winter-fallback], [data-winter-retry]) { display: block; }
.winter-opening-page [data-winter-fallback] { margin: 0; font-size: 14px; color: var(--winter-text); }
.winter-opening-page [data-winter-retry] {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #cef0ff;
  color: #0a213c;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}
@media (prefers-reduced-motion: reduce) {
  #winter-contest-view[data-winter-phase="ready"] > .winter-opening-page { transition: none; }
}
