@font-face {
  font-family: Explora;
  src: url("Explora-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

body { margin: 0; background: #ebece7; }
.noel-site {
  --noel-pine: #183d33;
  --noel-ink: #243c32;
  --noel-muted: #52655b;
  --noel-cream: #f6f1e6;
  --noel-paper: #fffdf7;
  --noel-gold: #f4d894;
  --noel-script: 'Explora', 'Segoe Script', 'Apple Chancery', cursive;
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
}
.noel-site *, .noel-site *::before, .noel-site *::after { box-sizing: border-box; }
.noel-site [hidden] { display: none !important; }
.noel-site h1, .noel-site h2, .noel-site p { margin: 0; }
.noel-site button, .noel-site input { font: inherit; }
.noel-site button { cursor: pointer; }
.noel-site button:disabled { cursor: default; }
.noel-site :focus-visible { outline: 3px solid #a76525; outline-offset: 4px; }
.noel-site {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden; background: var(--noel-cream); color: var(--noel-ink);
}
.noel-site.noel-site-participant { display: flex; flex-direction: column; }
.noel-site .noel-mast {
  min-height: 57px; padding: 4px clamp(16px,5vw,44px); display: flex; justify-content: space-between; align-items: center;
  gap: 10px; background: #122e27; border-bottom: 1px solid #ebd09240; color: #fff5d9;
}
.noel-site .noel-brand { font: 650 1.1rem/1.2 system-ui, sans-serif; white-space: nowrap; }
.noel-site-participant .noel-brand { font: 400 2rem/1 var(--noel-script); }
.noel-site .noel-brand span { color: var(--noel-gold); font: 1rem system-ui; vertical-align: .1em; margin-right: .25em; }
.noel-site .noel-mast button { min-height: 44px; border: 0; background: transparent; color: inherit; text-decoration: underline; font-size: .85rem; }
.noel-site h1 { font: 400 clamp(3.25rem,9vw,5.1rem)/.93 var(--noel-script); -webkit-text-stroke: .26px; }
.noel-site .noel-participant {
  position: relative; isolation: isolate; text-align: center; flex: 1; display: grid; align-content: center;
  padding: clamp(26px,6vh,52px) 14px 18px; color: #fff6df;
  background: radial-gradient(ellipse at 50% 59%,#305c4b 0,#1b4137 54%,#102e27 100%);
}
.noel-site .noel-participant::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 12% 26%,#ebd99d 0 1.2px,transparent 2.6px),
              radial-gradient(circle at 24% 65%,#ebd99d 0 1.4px,transparent 2.8px),
              radial-gradient(circle at 36% 42%,#ebd99d 0 1px,transparent 2.4px),
              radial-gradient(circle at 68% 34%,#ebd99d 0 1.2px,transparent 2.6px),
              radial-gradient(circle at 80% 54%,#ebd99d 0 1.4px,transparent 2.8px),
              radial-gradient(circle at 91% 29%,#ebd99d 0 1px,transparent 2.4px),
              radial-gradient(circle at 78% 83%,#ebd99d 0 1.2px,transparent 2.6px);
  opacity: .68;
}
.noel-site #noel-instruction {
  color: #ffefd0; margin: 9px auto 0; max-width: 21em;
  font: 400 clamp(1.95rem,5.2vw,2.65rem)/.98 var(--noel-script); -webkit-text-stroke: .38px;
}
.noel-site .noel-stage { position: relative; display: grid; justify-items: center; align-items: end; grid-template-columns: minmax(0, 1fr); min-height: 235px; margin-top: 10px; }
.noel-site .noel-parcel {
  grid-area: 1 / 1; position: relative; width: min(232px,90%); height: 193px; margin: 0 0 7px;
  padding: 0; border: 0; border-radius: 14px; background: transparent;
}
.noel-site .noel-parcel:focus-visible { outline-color: var(--noel-gold); }
.noel-site .noel-box { position: absolute; inset: 0; transform-origin: 50% 96%; transition: transform .2s ease; }
.noel-site .noel-parcel:not(:disabled) .noel-box { animation: noel-invite 1.8s 1s 2 both; }
.noel-site .noel-parcel:not(:disabled):is(:hover,:focus-visible) .noel-box { animation: none; transform: translateY(-5px) rotate(-2deg); }
.noel-site .noel-base {
  position: absolute; inset: auto 13px 0; height: 117px; border-radius: 3px 3px 11px 11px;
  box-shadow: 0 17px 23px #061a1370, inset 0 -2px #731d33;
  background: linear-gradient(90deg,transparent 42%,#e7bf6e 42%,#ffe5a7 50%,#dca956 58%,transparent 58%),
              repeating-linear-gradient(135deg,#a73145 0 13px,#b83e51 13px 15px);
}
.noel-site .noel-lid {
  position: absolute; inset: auto 0 103px; height: 35px; z-index: 2; border-radius: 6px;
  background: linear-gradient(90deg,transparent 43%,#e6bc68 43%,#ffe6a9 50%,#dca956 57%,transparent 57%),
              linear-gradient(#ce5362,#a12b3e);
  box-shadow: 0 6px 8px #661a2b9e, inset 0 1px #f0a5a2;
  transition: transform .52s cubic-bezier(.2,.72,.24,1), opacity .37s .12s;
}
.noel-site .noel-lid::before, .noel-site .noel-lid::after {
  content: ""; position: absolute; bottom: 33px; width: 54px; height: 34px; border: 7px solid #efd084;
  box-shadow: 0 1px 0 #ffedb8, inset 0 1px #ffedb8;
}
.noel-site .noel-lid::before { right: 49%; border-radius: 57% 55% 22% 58%; transform: rotate(18deg); }
.noel-site .noel-lid::after { left: 49%; border-radius: 55% 57% 58% 22%; transform: rotate(-18deg); }
.noel-site .noel-knot { position: absolute; bottom: 29px; left: 50%; transform: translateX(-50%); z-index: 1; width: 21px; height: 15px; border-radius: 7px; background: #ffdfa0; }
.noel-site .noel-tag {
  position: absolute; z-index: 3; top: 107px; left: 52%; padding: 1px 12px 4px;
  transform: rotate(-8deg); transform-origin: 12% 0; border-radius: 2px 4px 4px 2px; white-space: nowrap;
  border: 1px solid #e8cc91; background: #fff1d1; color: #652c35;
  box-shadow: 0 3px 6px #48152168; font: 400 1.9rem/.98 var(--noel-script); -webkit-text-stroke: .25px;
}
.noel-site .noel-stage.is-open { min-height: 275px; }
.noel-site .noel-result {
  grid-area: 1 / 1; align-self: start; z-index: 4; margin-top: 8px;
  width: min(350px,calc(100% - 16px)); padding: 18px clamp(13px,4vw,24px) 20px;
  color: var(--noel-ink); background: var(--noel-paper);
  border: 1px solid #e9d197; border-radius: 11px; box-shadow: 0 12px 26px #0c211a85;
  animation: noel-reveal .52s .13s both;
}
.noel-site .noel-recipient { font-size: .98rem; }
.noel-site .wish-continue {
  display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none;
  width: 100%; margin-top: 14px; padding-block: 9px; text-align: center;
}
.noel-site .noel-result strong { display: block; font: 400 clamp(3.5rem,9vw,4.5rem)/.96 var(--noel-script); -webkit-text-stroke: .3px; color: #9b2639; overflow-wrap: anywhere; }
.noel-site .noel-stage.is-open .noel-lid { transform: translate(-50px,-60px) rotate(-21deg); opacity: 0; }
.noel-site .noel-stage.is-open .noel-tag { opacity: 0; transition: opacity .2s; }
.noel-site .noel-screen { max-width: 700px; margin: 0 auto; padding: 25px clamp(14px,4vw,26px) 30px; }
.noel-site .noel-screen h1 { font: 650 clamp(1.65rem,5vw,2.6rem)/1.12 system-ui, sans-serif; letter-spacing: -.035em; -webkit-text-stroke: 0; }
.noel-site .noel-login { min-height: 340px; display: grid; place-items: center; }
.noel-site .noel-login .noel-paper { width: min(100%,450px); }
.noel-site .noel-login h1 { margin-bottom: 18px; }
.noel-site .noel-paper { padding: clamp(13px,4vw,21px); background: var(--noel-paper); border: 1px solid #dcd9cd; border-radius: 11px; }
.noel-site .noel-screen .noel-intro { margin: 6px 0 14px; color: var(--noel-muted); }
.noel-site .noel-section { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.noel-site .noel-section h2 { font: 650 1.18rem/1.2 system-ui, sans-serif; }
.noel-site .noel-section span { color: var(--noel-muted); font-size: .88rem; }
.noel-site label { display: block; font-weight: 600; margin-bottom: 5px; }
.noel-site input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; background: #fff; color: var(--noel-ink); border: 1px solid #b0bcb1; border-radius: 7px; }
.noel-site .noel-inline { display: flex; gap: 7px; }
.noel-site .noel-primary, .noel-site .noel-secondary, .noel-site .noel-quiet {
  min-height: 44px; padding: 7px 11px; border: 1px solid transparent; border-radius: 7px; font-weight: 600;
}
.noel-site .noel-primary { background: var(--noel-pine); color: #fff8e6; }
.noel-site .noel-primary:disabled { opacity: .55; }
.noel-site .noel-secondary { background: #eaf0e7; color: #274c3d; border-color: #d0dbd0; }
.noel-site .noel-quiet { background: transparent; color: var(--noel-muted); }
.noel-site .noel-login .noel-primary, .noel-site .noel-under { margin-top: 12px; }
.noel-site .noel-list { list-style: none; padding: 0; margin: 10px 0 0; }
.noel-site .noel-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid #e0ddd2; }
.noel-site .noel-list strong { overflow-wrap: anywhere; }
.noel-site .noel-list button { flex: none; font-size: .87rem; }
.noel-site .noel-feedback:not(:empty) { margin: 7px 0; }
.noel-site .noel-confirm { margin-top: 9px; padding: 12px; background: #fff6e6; border: 1px solid #e3ccb0; border-radius: 8px; }
.noel-site .noel-confirm p { margin-bottom: 7px; }
@keyframes noel-invite {
  0%, 54%, 100% { transform: translateY(0) rotate(0); }
  15% { transform: translateY(-6px) rotate(-3deg); }
  28% { transform: translateY(-4px) rotate(3deg); }
  42% { transform: translateY(0) rotate(-1deg); }
}
@keyframes noel-reveal {
  from { transform: translateY(71px) scale(.76); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.noel-site .noel-instruction-hidden { visibility: hidden; }
.noel-site .noel-gift-error { color: #ffdfaa; margin: 8px auto; }
.noel-site .noel-auth input + label, .noel-site .noel-auth small + label { margin-top: 12px; }
.noel-site .noel-auth small { display: block; margin-top: 5px; color: var(--noel-muted); }
.noel-site .noel-auth h1 + p { margin: -5px 0 14px; }
.noel-site .notice, .noel-site .alert { padding: 8px 11px; margin: 0 0 12px; border-radius: 7px; }
.noel-site .notice { background: #e4efe5; color: #234738; }
.noel-site .alert { background: #f9e7e7; color: #85293a; }
.noel-site summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; }
.noel-site summary::-webkit-details-marker { display: none; }
.noel-site .noel-list li { flex-wrap: wrap; }
.noel-site .noel-list strong { flex: 1; min-width: 0; }
.noel-site .noel-list noscript { flex: 1 0 100%; }
.noel-site .noel-confirm button { margin: 2px 3px 2px 0; }
.noel-site .noel-mast form { margin: 0; }

@media (max-width: 600px) {
  .noel-site .noel-screen { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .noel-site *, .noel-site *::before, .noel-site *::after { animation: none !important; transition: none !important; }
}

.noel-site .wish-page { width: 100%; max-width: 720px; flex: 1; margin: auto; padding: 24px clamp(12px,4vw,32px) 28px; }
@media (min-width: 768px) {
  .noel-site .wish-page { max-width: none; }
  .noel-site .wish-page, .noel-site .noel-mast { padding-inline: clamp(28px,4vw,72px); }
}
.noel-site .wish-heading { margin-bottom: 19px; }
.noel-site .wish-heading h1 { font-size: clamp(2.85rem,7vw,4.25rem); }
.noel-site .wish-heading p { margin-top: 7px; color: var(--noel-muted); }
.noel-site .wish-heading strong { color: #8c2c3a; }
.noel-site .wish-paper { min-width: 0; padding: clamp(12px,3vw,22px); background: var(--noel-paper); border: 1px solid #dfdbcf; border-radius: 12px; }
.noel-site .wish-incoming { background: #f0f2e9; border-color: #d9e1d3; }
.noel-site .wish-paper h2 { font-size: clamp(1.13rem,2.6vw,1.36rem); font-weight: 670; line-height: 1.25; letter-spacing: -.025em; }
.noel-site .wish-help { color: var(--noel-muted); font-size: .92rem; margin-top: 7px; }
.noel-site .wish-items { list-style: none; padding: 0; margin: 10px 0 0; }
.noel-site .wish-items:empty { margin: 0; }
.noel-site .wish-items li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #dedfd3; }
.noel-site .wish-items li > span { overflow-wrap: anywhere; }
.noel-site .wish-form { margin-top: 13px; }
.noel-site .wish-form label { display: grid; gap: 5px; font-size: .91rem; font-weight: 650; }
.noel-site .wish-form input { min-width: 0; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid #a9b9ad; border-radius: 7px; color: var(--noel-ink); background: #fff; font-size: 16px; }
.noel-site .wish-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.noel-site .wish-quiet, .noel-site .wish-switch a {
  min-height: 44px; padding: 6px 12px; border: 1px solid transparent; border-radius: 8px; font-weight: 650;
}
.noel-site .wish-quiet { flex: none; color: var(--noel-pine); background: #edf1e9; font-size: .84rem; }
.noel-site .wish-delete { background: #f8eae7; color: #8a2b38; }
.noel-site .wish-message:not(:empty) { margin-top: 8px; font-size: .91rem; }
.noel-site .wish-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 10px; border: 1px solid #d4ded2; background: #e8ede4; }
.noel-site .wish-switch a { background: transparent; color: var(--noel-pine); padding-inline: 6px; }
.noel-site .wish-switch a[aria-current="page"], .noel-site .wish-switch a[aria-selected="true"] { background: var(--noel-pine); color: #fff9e8; }
.noel-site .wish-switch a, .noel-site .wish-quiet {
  display: inline-flex; justify-content: center; align-items: center; text-decoration: none;
}
.noel-site .wish-switch a { text-align: center; overflow-wrap: anywhere; }
.noel-site .noel-back {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff5d9; font-size: .88rem; text-underline-offset: 3px;
}
.noel-site .wish-form label { margin-bottom: 5px; }
.noel-site .noel-reset { margin-top: 13px; }
.noel-site .noel-danger-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #842b38; text-underline-offset: 3px;
}
.noel-site .noel-reset-dialog {
  width: min(440px,calc(100% - 24px)); max-width: none;
  padding: 20px; border: 1px solid #dfc9c1; border-radius: 12px;
  color: var(--noel-ink); background: var(--noel-paper);
  box-shadow: 0 14px 42px #18271f47;
}
.noel-site .noel-reset-dialog::backdrop { background: #14271bb0; }
.noel-site .noel-reset-dialog h2 { font-size: 1.3rem; line-height: 1.25; }
.noel-site .noel-reset-dialog p { margin-top: 8px; }
.noel-site .noel-reset-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.noel-site .noel-reset-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.noel-site .noel-danger-button {
  min-height: 44px; padding: 7px 11px; border: 1px solid transparent; border-radius: 7px;
  background: #8d2638; color: #fffaf0; font-weight: 650;
}
