@font-face {
  font-family: Inter;
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('fonts/inter-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --red: #d71d60;
  --red-dark: #bf1856;
  --rose: #fdf2f8;
  --pink: #fff1f4;
  --paper: #fffafb;
  --border: #e9c6d2;
  --gold: #d39248;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--pink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }

.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.admin-bar { background: var(--ink); color: #fff; font-size: .875rem; }
.admin-bar-inner, .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-bar-inner { min-height: 2.25rem; }
.admin-bar-inner span { font-weight: 700; }
.admin-bar :focus-visible { outline-color: #ffadbf; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 3.25rem; justify-content: center; }
.brand { flex: none; }
.brand img { display: block; width: 8rem; height: auto; }

.button, .outline-button, .account-options button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: .625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.button {
  background: var(--red);
  color: white;
  box-shadow: 0 3px 0 var(--red-dark);
  transition: background .18s ease, transform .18s ease;
}
.button:hover { background: var(--red-dark); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-dark); }
.button:disabled { cursor: default; opacity: .65; }
.outline-button, .account-options button { border-color: var(--border); background: var(--paper); }
.outline-button:hover, .account-options button:hover { background: var(--rose); }
.outline-button[aria-pressed='true'], .account-options button[aria-pressed='true'] {
  border-color: var(--red);
  background: var(--rose);
  color: var(--red-dark);
}

.calendar {
  padding-block: clamp(1.6rem, 3.5vw, 3rem) 1.75rem;
  text-align: center;
}
.calendar-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--red-dark);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.calendar-dates::before, .calendar-dates::after, .spark {
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.calendar-dates::before, .calendar-dates::after { content: ''; width: .85rem; }
h1 {
  margin-block: .45rem .3rem;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: 1.1;
  text-wrap: balance;
}
.calendar-tagline { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.45rem); }
.calendar-tagline strong { color: var(--red-dark); }

.scene {
  position: relative;
  isolation: isolate;
  width: min(100%, 48rem);
  margin: .8rem auto .25rem;
  background: radial-gradient(ellipse at center, #fff9ec 0%, transparent 68%);
}
.tree {
  position: relative;
  width: min(100%, 29.5rem);
  margin-inline: auto;
  aspect-ratio: 600 / 620;
}
.tree-art { display: block; width: 100%; height: auto; }
.spark { position: absolute; z-index: -1; width: var(--size); pointer-events: none; opacity: .72; }
.spark-one { --size: 1.5rem; left: 19%; top: 13%; }
.spark-two { --size: .85rem; left: 13%; top: 44%; }
.spark-three { --size: 1.2rem; right: 18%; top: 25%; }
.spark-four { --size: 2rem; right: 12%; top: 58%; }
.mascot {
  position: absolute;
  z-index: 1;
  left: 2%;
  bottom: 1%;
  width: clamp(5.25rem, 24%, 11.5rem);
  height: auto;
  pointer-events: none;
  transform: rotate(-7deg);
  filter: drop-shadow(0 5px 0 #a44d6020);
}

.ornament {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-content: center;
  width: clamp(3.5rem, 15%, 4.75rem);
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1 / 1.04;
  padding: .25rem;
  border: 2px solid #fff4e5;
  border-radius: 48% 48% 49% 49%;
  background: var(--ornament);
  color: var(--ornament-ink, var(--ink));
  opacity: .84;
  box-shadow: inset -4px -5px 0 #56213816, 0 4px 10px #07352838;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
  transition: transform .18s ease, background .18s ease;
}
.ornament::before, .ornament::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.ornament::before { width: .85rem; height: .48rem; top: -.45rem; border-radius: .2rem .2rem 0 0; background: #f1c979; }
.ornament::after { width: 1px; height: .8rem; top: -1.2rem; background: #eac477; }
.ornament[data-door='1'] { --x: 50%; --y: 74%; --tilt: -7deg; --ornament: var(--red); --ornament-ink: #fff; }
.ornament[data-door='2'] { --x: 64%; --y: 48%; --tilt: 6deg; --ornament: #f8c5d9; }
.ornament[data-door='3'] { --x: 36%; --y: 48%; --tilt: -5deg; --ornament: #f478a5; }
.ornament[data-door='4'] { --x: 50%; --y: 25%; --tilt: 6deg; --ornament: #9d174d; --ornament-ink: #fff; }
.ornament[data-available] {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 3px #ffe6a4, inset -4px -5px 0 #56213816, 0 4px 12px #07352842;
}
.ornament[data-available]::before { background: #ffd179; }
.ornament[data-available]:hover { transform: translate(-50%, -50%) rotate(0) scale(1.09); }
.ornament:focus-visible { outline-color: #fff6dc; outline-offset: 4px; }
.ornament-label { position: relative; display: grid; gap: .08rem; font-size: .875rem; font-weight: 700; }
.ornament-label strong { font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 800; }
.ornament[data-photo][data-available] { width: clamp(3.85rem, 17%, 5.25rem); place-content: end center; }
.ornament-photo {
  position: absolute;
  inset: .12rem;
  width: calc(100% - .24rem);
  height: calc(100% - .24rem);
  border-radius: inherit;
  object-fit: cover;
}
.ornament[data-photo][data-available] .ornament-label {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .18rem .35rem;
  border-radius: 1rem;
  background: var(--ornament);
  font-size: .8125rem;
  white-space: nowrap;
}
.ornament[data-photo][data-available] .ornament-label strong { font-size: inherit; }

.calendar-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; color: var(--muted); }
.preview-selector {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .3rem .4rem .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.preview-selector select {
  min-height: 2rem;
  max-width: min(48vw, 15rem);
  padding: .25rem .4rem;
  border: 1px solid #cbd5e1;
  border-radius: .6rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.55rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.14; }
.entry { padding-block: clamp(1.25rem, 3vw, 2rem) 3.25rem; }
.entry-card {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 3.75rem);
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: 0 16px 40px #65223914;
}
.entry-intro > p, .rules-grid p, .rules-note { margin-top: .55rem; color: var(--muted); }
.entry-selection, .entry-availability { display: grid; gap: .25rem; padding: .85rem 1rem; border-radius: .75rem; background: var(--pink); }
.entry-selection { margin-top: 1.1rem; }
.entry-availability p { color: var(--muted); }
.entry-selection span { color: var(--red-dark); font-size: .875rem; font-weight: 700; }
.entry-intro .preview-note { margin-top: .75rem; font-size: .875rem; }
.live-entry-copy { margin-bottom: .85rem; color: var(--muted); }
form .errorlist { margin: .35rem 0; padding-left: 1.2rem; color: var(--red-dark); }
fieldset { display: grid; gap: .85rem; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset h3 { font-size: 1.25rem; line-height: 1.25; }
.account-options, .entry-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.field-row:has(#first-name-field[hidden]) { grid-template-columns: minmax(0, 1fr); }
form label { display: block; font-weight: 600; }
.field-hint { color: var(--muted); font-size: .875rem; font-weight: 400; }
form input:not([type='checkbox']) {
  display: block;
  width: 100%;
  min-height: 2.875rem;
  margin-top: .3rem;
  padding: .55rem .65rem;
  border: 1px solid #cbd5e1;
  border-radius: .65rem;
  background: white;
  color: var(--ink);
  font-weight: 400;
}
form input:not([type='checkbox']):focus { border-color: var(--red); }
input[type='checkbox'] { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--red); }
form .button { justify-self: start; }
.check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .55rem; color: var(--muted); }
.check input { margin-top: .24rem; }
.marketing-box { padding: .85rem; border-radius: .75rem; background: var(--pink); }
.marketing-box p { margin-top: .35rem; color: var(--muted); font-size: .875rem; }
.entry-result {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 50% 0, #fff9ec, var(--pink) 70%);
  text-align: center;
}
.entry-mascot { display: block; width: 5.5rem; height: auto; margin: 0 auto .4rem; }
.entry-result h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); letter-spacing: -.035em; line-height: 1.2; }
.entry-result p { margin-top: .65rem; color: var(--muted); overflow-wrap: anywhere; }
.entry-result .button { margin-top: .9rem; }

.rules { padding-bottom: 3.25rem; }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-block: 1.2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}
.rules-grid li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--paper);
  counter-increment: rule;
}
.rules-grid li::before {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: .55rem;
  border-radius: 50%;
  background: var(--rose);
  color: var(--red-dark);
  content: counter(rule);
  font-size: .875rem;
  font-weight: 800;
}
.rules-grid h3 { font-size: 1.0625rem; line-height: 1.3; }
.rules-grid a, .rules-note a { color: var(--red-dark); overflow-wrap: anywhere; }
.rules-note { margin-top: 1rem; font-size: .875rem; }
.site-footer { padding-block: 1.15rem 1.5rem; border-top: 1px solid var(--border); color: var(--muted); text-align: center; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.terms { width: min(100% - 2rem, 49rem); padding-block: clamp(1.5rem, 5vw, 3rem) 3rem; }
.terms-back { display: inline-block; margin-bottom: 1.35rem; color: var(--red-dark); font-weight: 600; }
.terms-status {
  display: table;
  padding: .28rem .65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--red-dark);
  font-size: .875rem;
  font-weight: 700;
}
.terms h1 { font-size: clamp(2rem, 5vw, 3.35rem); text-wrap: wrap; }
.terms-summary { margin-top: .45rem; color: var(--muted); }
.terms-card {
  margin-top: 1.4rem;
  padding: clamp(1.15rem, 4vw, 2.45rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--paper);
}
.terms-card section + section { margin-top: 1.45rem; padding-top: 1.45rem; border-top: 1px solid var(--border); }
.terms-card h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); letter-spacing: -.025em; }
.terms-card p, .terms-card ol { margin-top: .6rem; color: var(--muted); }
.terms-card ol { margin-bottom: .6rem; padding-left: 1.25rem; }
.terms-card ol li + li { margin-top: .4rem; }
.terms-card a { color: var(--red-dark); overflow-wrap: anywhere; }
.terms-schedule { margin-block: .85rem; border-block: 1px solid var(--border); }
.terms-schedule > div { display: grid; grid-template-columns: minmax(7rem, .3fr) minmax(0, 1fr); gap: .75rem; padding: .75rem 0; }
.terms-schedule > div + div { border-top: 1px solid var(--border); }
.terms-schedule dt, .terms-schedule dd { display: grid; gap: .2rem; align-content: start; margin: 0; }
.terms-schedule span { color: var(--muted); }
.terms-card .terms-pending { color: var(--red-dark); }

@media (max-width: 30rem) {
  .terms-schedule > div { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .terms-schedule dt { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
}

dialog {
  position: fixed;
  width: min(28rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px #2b0c2652;
}
dialog::backdrop { background: #4821359c; backdrop-filter: blur(4px); }
.close-dialog {
  position: absolute;
  z-index: 1;
  top: .65rem;
  right: .65rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
}
.close-dialog:hover { background: var(--rose); }
.giveaway-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.giveaway-content { padding: 2rem 1.4rem 1.5rem; text-align: center; }
.giveaway-date { color: var(--red-dark); font-size: .875rem; font-weight: 700; text-transform: uppercase; }
.giveaway-content h2 { margin-block: .45rem .55rem; }
#giveaway-details { color: var(--muted); }
.giveaway-content .button { margin-top: 1rem; }

@media (max-width: 55rem) {
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .entry-card { grid-template-columns: minmax(0, 1fr); }
  .spark-one { left: 12%; }
  .spark-two { left: 4%; }
  .spark-three { right: 10%; }
  .spark-four { right: 2%; }
  .mascot { left: -3%; bottom: 0; }
}
@media (max-width: 27rem) {
  .calendar { padding-top: 1.3rem; }
  .scene { margin-top: .45rem; }
  .field-row, .rules-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .button, .ornament { transition: none; }
}
