@font-face {
  font-family: Bricolage;
  src: url("/display.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("/body.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #072721;
  --night-light: #10382d;
  --gold: #f6c97b;
  --paper: #fff6e5;
  --ink: #16372b;
  --muted: #506257;
  --line: #e3d6bc;
  --red: #a82030;
  --red-dark: #841625;
  --display: Bricolage, Georgia, serif;
  --body: DM Sans, system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 52% 0%, #194738 0, transparent 52%), var(--night);
  font: 1rem/1.5 var(--body);
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid #d0902e;
  outline-offset: 4px;
}
h1:focus,
h2:focus {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.string-lights {
  height: 9px;
  background: repeating-linear-gradient(
    128deg,
    #aa2938 0 12px,
    #f8efda 12px 24px,
    #287055 24px 36px,
    #f8efda 36px 48px
  );
  box-shadow: 0 2px 12px #071b1380;
}
.site-shell {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
}
.masthead {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.29em;
  text-decoration: none;
  color: var(--paper);
  font: 700 clamp(1rem, 2.4vw, 1.23rem)/1 var(--display);
}
.brand > span {
  color: var(--gold);
  font-size: 1.65em;
  margin-right: 0.22em;
}
.brand strong {
  color: var(--gold);
  font-weight: 700;
}
.host-link {
  padding: 0.45rem 0.9rem;
  border: 1px solid #dfebd440;
  border-radius: 6px;
  text-decoration: none;
  color: #edf3e7;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.host-link:hover {
  background: #e1eadb18;
  border-color: #f6c97b90;
}
.welcome {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 75px #02110d75;
}
.hero {
  isolation: isolate;
  position: relative;
  min-height: 445px;
  display: flex;
  align-items: center;
  background: #102e26;
  overflow: hidden;
}
.hero-picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/santa.webp") center 56% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      #072821 0%,
      #0a2b23f5 19%,
      #0b2a22c9 35%,
      #0a2a2260 51%,
      transparent 70%
    ),
    linear-gradient(0deg, #122d2665, transparent 22%);
}
.hero-copy {
  max-width: 51%;
  padding: 49px 0 54px clamp(32px, 6vw, 79px);
}
.eyebrow {
  margin: 0;
  color: #5b3d29;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-kicker {
  color: var(--gold);
  margin: 0 0 18px;
  letter-spacing: 0.12em;
}
.hero-kicker span {
  padding-right: 0.34rem;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.04em;
}
.hero h1 {
  font-size: clamp(3.3rem, 7.15vw, 6.45rem);
  line-height: 0.86;
  white-space: nowrap;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-copy > p:last-child {
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  max-width: 26ch;
  color: #f7eddb;
  margin: 25px 0 0;
  line-height: 1.55;
}
.postmark {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  position: absolute;
  top: 23px;
  right: 25px;
  width: 91px;
  height: 91px;
  border: 2px solid;
  border-radius: 50%;
  color: #ffdda1;
  box-shadow: inset 0 0 0 4px #153a2c70;
  transform: rotate(12deg);
  text-transform: uppercase;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: #0e352c78;
  text-align: center;
}
.postmark b {
  font-size: 1.6rem;
  font-family: Georgia, serif;
  line-height: 1;
}
.welcome-bottom {
  color: var(--ink);
  background: var(--paper);
  padding: 23px clamp(24px, 5.5vw, 70px) 29px;
}
.play-intro {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.play-intro h2 {
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.play-intro p {
  max-width: 75ch;
  margin: 6px 0 0;
  color: var(--muted);
}
.question-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 45px;
  height: 45px;
  border-radius: 11px;
  background: #f6e7c8;
  color: #874e13;
  font: 700 1.36rem/1 system-ui;
}
.start-form {
  padding-top: 19px;
}
.start-form label,
.login-form label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.start-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 11px;
}
.elf-reveal {
  margin: 11px 0 0;
  color: var(--ink);
}
.elf-reveal strong {
  color: var(--red);
}
.elf-receipt {
  margin: -8px 0 17px;
  color: var(--muted);
  font-weight: 700;
}
input:not([type="radio"]),
textarea {
  width: 100%;
  color: var(--ink);
  background: #fffdf6;
  border: 1px solid #cfc4ac;
  border-radius: 7px;
  padding: 0.77rem 0.89rem;
  color-scheme: light;
}
input::placeholder,
textarea::placeholder {
  color: #647365;
  opacity: 1;
}
.button {
  min-height: 49px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
}
.button.primary {
  background: var(--red);
  color: #fff8eb;
}
.button.primary:hover:not(:disabled) {
  background: var(--red-dark);
}
.button.primary span {
  color: var(--gold);
}
.button.secondary {
  color: var(--ink);
  border-color: #d6c8ad;
  background: transparent;
}
.button.secondary:hover:not(:disabled) {
  background: #f4e7cb;
}
.button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  text-align: center;
  color: #d4e3d1;
  font-size: 0.82rem;
  padding: 24px 0 29px;
}
.footer span {
  font-size: 0.71rem;
  color: var(--gold);
}
.play,
.done,
.host-main {
  width: min(730px, 100%);
  margin: 8px auto 0;
}
.progress-panel {
  padding: 9px 0 22px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 9px;
  color: #f6efdf;
  font-weight: 700;
  font-size: 0.91rem;
}
.progress-label span:last-child {
  color: var(--gold);
}
.progress-segments {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.progress-segments span {
  height: 6px;
  border-radius: 20px;
  background: #dce9d638;
}
.progress-segments .past {
  background: #d8aa67;
}
.progress-segments .current {
  background: #ffe3ac;
  box-shadow: 0 0 13px #ffe3ac44;
}
.paper {
  background: var(--paper);
  color: var(--ink);
  border-radius: 15px;
  border-top: 5px solid var(--gold);
  box-shadow: 0 20px 60px #02110d6b;
  padding: clamp(23px, 5vw, 50px);
}
.question-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.paper h2 {
  font-size: clamp(1.76rem, 4.35vw, 3.15rem);
  line-height: 1.08;
  text-wrap: pretty;
}
fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
#choices {
  display: grid;
  gap: 9px;
}
.choice {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 58px;
  padding: 9px 14px;
  background: #fffdf5;
  border: 1px solid #d8cbb0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.choice:hover {
  border-color: #6a8875;
  background: #f3f7e9;
}
.choice:has(input:checked) {
  background: #e6efdf;
  border-color: #37674f;
  box-shadow: inset 0 0 0 1px #37674f;
}
.choice:has(input:focus-visible) {
  outline: 3px solid #d0902e;
  outline-offset: 3px;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.letter {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 6px;
  background: #f3ead6;
  color: #694d34;
  font-size: 0.86rem;
}
.choice:has(input:checked) .letter {
  background: #2e6047;
  color: #fffaf0;
}
.play-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 23px;
}
.play-actions .primary {
  min-width: 160px;
}
.story-paper {
  border-top-color: #cf6974;
}
.story-paper .question-icon {
  background: #f4dfd7;
}
#story-help {
  color: #455d50;
  margin: 16px 0;
}
textarea {
  min-height: 135px;
  resize: vertical;
  display: block;
}
.story-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 8px 0 0;
}
.story-note span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.error {
  color: #8f2131;
  font-weight: 700;
  margin: 11px 0 0;
}
.done {
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.done .question-icon {
  width: 65px;
  height: 65px;
  font-size: 1.95rem;
  margin-bottom: 12px;
}
.done h2 {
  margin: 7px 0 20px;
}
.done .score {
  font: 800 3.1rem/1 var(--display);
  color: var(--red);
  margin: 0;
}
.score-label {
  font-weight: 700;
  margin: 0.4rem 0 1rem;
}
.done p:last-child {
  max-width: 39ch;
  margin: 0 auto;
  color: var(--muted);
}
.confetti {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: 13%;
  left: 8%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: #4a825f;
  animation: fall 1s both;
  transform: rotate(34deg);
}
.confetti i:nth-child(2n) {
  background: #d84a59;
  left: 14%;
  top: 26%;
  animation-delay: 0.13s;
}
.confetti i:nth-child(3n) {
  background: #e1ae49;
  left: 22%;
  top: 15%;
  animation-delay: 0.06s;
}
.confetti i:nth-child(4n) {
  left: 80%;
  top: 21%;
  animation-delay: 0.22s;
}
.confetti i:nth-child(5n) {
  left: 92%;
  top: 12%;
  animation-delay: 0.16s;
}
.confetti i:nth-child(7n) {
  left: 86%;
  top: 37%;
  animation-delay: 0.28s;
}
.confetti i:nth-child(10n) {
  left: 8%;
  top: 46%;
  animation-delay: 0.25s;
}
@keyframes fall {
  from {
    opacity: 0;
    transform: translateY(-50px) rotate(-65deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(34deg);
  }
}
.host-main {
  width: min(900px, 100%);
}
.host-main > .paper {
  padding: clamp(22px, 4vw, 39px);
}
.host-heading .eyebrow {
  margin-bottom: 5px;
}
.host-heading p:last-child {
  color: var(--muted);
  margin: 0.65rem 0 0;
}
.login-form {
  margin-top: 1.4rem;
  max-width: 435px;
}
.login-form .button {
  margin-top: 10px;
}
.host-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.host-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
.host-actions .button {
  min-height: 43px;
  padding: 0.5rem 0.72rem;
}
.host-summary {
  padding: 0.7rem 0.95rem;
  margin: 1.3rem 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8edda;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.entries {
  display: grid;
  gap: 12px;
}
.entry {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf5;
  padding: clamp(14px, 3vw, 22px);
  overflow-wrap: anywhere;
}
.entry.winner {
  border: 2px solid #ad761e;
  padding: calc(clamp(14px, 3vw, 22px) - 1px);
}
.entry-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.entry h3 {
  font: 800 1.35rem/1.1 var(--display);
  margin: 0;
  letter-spacing: -0.025em;
}
.entry-time {
  display: block;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.entry-elf {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.entry-score {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.87rem;
}
.entry-story {
  white-space: pre-wrap;
  margin: 0.9rem 0 1rem;
}
.winner-label {
  font-weight: 700;
  color: #744d13;
  margin: 0;
}
@media (max-width: 810px) {
  .site-shell {
    width: calc(100% - 48px);
  }
  .hero {
    min-height: 399px;
  }
  .hero-picture {
    background-position: 61% 56%;
  }
  .hero-copy {
    padding-left: 31px;
  }
}
@media (max-width: 575px) {
  .site-shell {
    width: calc(100% - 28px);
  }
  .masthead {
    height: 63px;
  }
  .hero {
    min-height: 0;
    display: block;
  }
  .hero-copy {
    max-width: none;
    padding: 30px 23px 0;
    min-height: 235px;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 12.5vw, 4.65rem);
  }
  .hero-copy > p:last-child {
    margin-top: 14px;
    max-width: 28ch;
  }
  .hero-kicker {
    margin-bottom: 13px;
  }
  .hero-picture {
    inset: 44% 0 0;
    background-position: 79% 64%;
    background-size: cover;
  }
  .hero::before {
    content: "";
    display: block;
    height: 0;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      #0b2d25 0%,
      #0a2a22 38%,
      #0b2a22bf 49%,
      transparent 71%
    );
  }
  .hero {
    padding-bottom: 147px;
  }
  .postmark {
    top: auto;
    bottom: 12px;
    right: 12px;
    width: 59px;
    height: 59px;
    font-size: 0.37rem;
  }
  .postmark b {
    font-size: 1.15rem;
  }
  .welcome-bottom {
    padding: 18px 18px 21px;
  }
  .start-form {
    padding-top: 15px;
  }
  .start-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .play,
  .done,
  .host-main {
    margin-top: 2px;
  }
  .progress-panel {
    padding-bottom: 14px;
  }
  .play-actions .primary {
    min-width: 0;
  }
  .host-top {
    flex-direction: column;
  }
  .host-actions {
    justify-content: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
