* {
  box-sizing: border-box;
}

:root {
  --parchment: #fffdfa;
  --gold: #f4b740;
  --gold-bright: #ffc94d;
  --gold-soft: #ffc94d33;
  --pink: #ff6f91;
  --coral: #ff5a66;
  --coral-bright: #ff8364;
  --teal: #2bb3a3;
  --ink: #3a2e2e;
  --ink-soft: #6b5b57;
  --ink-faint: rgba(58, 46, 46, 0.6);
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 201, 77, 0.25), transparent 40%),
    radial-gradient(circle at 92% 12%, rgba(255, 111, 145, 0.2), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(43, 179, 163, 0.18), transparent 50%),
    linear-gradient(160deg, #fff6e9 0%, #fdeedd 35%, #e3f6f2 70%, #d7f0fb 100%);
  background-attachment: fixed;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  color: var(--ink);
  padding: 40px 20px;
}

.mascots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-size: 42px;
}

.mascot {
  position: absolute;
  filter: drop-shadow(0 6px 10px rgba(58, 46, 46, 0.2));
  animation: mascot-bob 3.2s ease-in-out infinite;
}

.mascot-santa { top: 4%; left: 4%; animation-delay: 0s; }
.mascot-bell { top: 5%; right: 5%; animation-delay: 0.6s; }
.mascot-snowman { bottom: 5%; left: 5%; animation-delay: 1.1s; }
.mascot-reindeer { bottom: 4%; right: 4%; animation-delay: 1.7s; }

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@media (max-width: 480px) {
  .mascots {
    display: none;
  }
}

.snowfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  color: rgba(130, 190, 220, 0.85);
  font-size: 22px;
}

.snowfall span {
  position: absolute;
  top: -10%;
  animation: snow-fall linear infinite;
}

.snowfall span:nth-child(1) { left: 6%; animation-duration: 11s; animation-delay: 0s; font-size: 16px; }
.snowfall span:nth-child(2) { left: 22%; animation-duration: 14s; animation-delay: 2s; font-size: 22px; }
.snowfall span:nth-child(3) { left: 40%; animation-duration: 9s; animation-delay: 1s; font-size: 14px; }
.snowfall span:nth-child(4) { left: 62%; animation-duration: 13s; animation-delay: 3.5s; font-size: 20px; }
.snowfall span:nth-child(5) { left: 80%; animation-duration: 10s; animation-delay: 0.5s; font-size: 16px; }
.snowfall span:nth-child(6) { left: 92%; animation-duration: 15s; animation-delay: 4s; font-size: 18px; }

@keyframes snow-fall {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) translateX(24px); opacity: 0; }
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.sticker-badge {
  display: inline-block;
  margin: 0 0 24px;
  padding: 10px 18px;
  background: #fff8e0;
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 0 6px 14px rgba(58, 46, 46, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--coral);
}

.scrapbook {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2px 10px;
  margin: 0 0 30px;
  padding: 10px 0;
}

.scrap-photo {
  width: 42%;
  max-width: 180px;
  background: #fff;
  padding: 8px 8px 22px;
  border-radius: 3px;
  box-shadow: 0 12px 24px rgba(58, 46, 46, 0.25);
}

.scrap-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
}

.scrap-photo:nth-child(1) { transform: rotate(-6deg); margin-top: 6px; }
.scrap-photo:nth-child(2) { transform: rotate(5deg); margin-top: 22px; }
.scrap-photo:nth-child(3) { transform: rotate(-4deg); margin-top: 16px; }
.scrap-photo:nth-child(4) { transform: rotate(6deg); margin-top: 4px; }
.scrap-photo:nth-child(5) { transform: rotate(-5deg); margin-top: 20px; }
.scrap-photo:nth-child(6) { transform: rotate(4deg); margin-top: 8px; }
.scrap-photo:nth-child(7) { transform: rotate(-3deg); margin-top: 14px; }
.scrap-photo:nth-child(8) { transform: rotate(5deg); margin-top: 2px; }

.scrapbook.scrapbook-single .scrap-photo {
  width: 72%;
  max-width: 260px;
  transform: rotate(-3deg) !important;
  margin-top: 4px !important;
}

h1 {
  margin: 0 0 10px;
  font-family: "Mountains of Christmas", Georgia, "Iowan Old Style", serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--coral);
}

p.subtitle {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input[type="tel"],
input[type="text"] {
  width: 100%;
  padding: 15px 18px;
  font-size: 19px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid var(--gold);
  background: #fffdf6;
  color: var(--ink);
  margin-bottom: 18px;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 8px 18px rgba(58, 46, 46, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="tel"]:focus,
input[type="text"]:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 8px 18px rgba(58, 46, 46, 0.12);
}

input::placeholder {
  color: #c6b8a4;
}

button {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--pink) 50%, var(--gold-bright));
  color: #fff;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 22px rgba(255, 90, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 26px rgba(255, 90, 102, 0.42);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.status-message {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

.total-banner {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: rotate(-1.5deg);
  box-shadow: 0 6px 14px rgba(255, 90, 102, 0.35);
}

.gift-card {
  margin: 0 0 26px;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fffdf6;
  border: 2px dashed var(--gold);
  box-shadow: 0 10px 22px rgba(58, 46, 46, 0.14);
}

.gift-card:nth-child(odd) { transform: rotate(-0.6deg); }
.gift-card:nth-child(even) { transform: rotate(0.6deg); }

.brand-banner {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--teal), #58d6c4);
  color: #fff;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(43, 179, 163, 0.35);
}

.copy-all-btn {
  margin-top: 6px;
  padding: 12px;
  font-size: 13px;
}

.reveal .field {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 14px rgba(58, 46, 46, 0.1);
}

.reveal .field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.copy-icon-btn {
  all: unset;
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border-radius: 10px;
  background: var(--parchment);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(58, 46, 46, 0.15);
  cursor: pointer;
}

.copy-icon-btn:hover {
  background: #fff;
}

.reveal .field-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "SF Mono", Menlo, monospace;
  color: var(--ink);
  word-break: break-word;
}

.warning {
  margin-top: 18px;
  font-size: 13px;
  color: var(--coral);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.link-button {
  background: none;
  box-shadow: none;
  border: none;
  color: var(--ink-soft);
  text-decoration: underline;
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
  margin-top: 8px;
}

.link-button:hover:not(:disabled) {
  transform: none;
}

.signature {
  margin: 26px 0 0;
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink-soft);
}
