/* Report them to Santa. One concept: the North Pole Bureau of Naughtiness, a festive joke
   bureaucracy. One signature animation: the elf who brings the notice. */

@font-face { font-family: "Grenze Gotisch"; font-weight: 700; font-display: swap;
  src: url(/fonts/grenze-gotisch-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Grenze Gotisch"; font-weight: 700; font-display: swap;
  src: url(/fonts/grenze-gotisch-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Special Elite"; font-weight: 400; font-display: swap;
  src: url(/fonts/special-elite-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Special Elite"; font-weight: 400; font-display: swap;
  src: url(/fonts/special-elite-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap;
  src: url(/fonts/nunito-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap;
  src: url(/fonts/nunito-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap;
  src: url(/fonts/nunito-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap;
  src: url(/fonts/nunito-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap;
  src: url(/fonts/nunito-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap;
  src: url(/fonts/nunito-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0c2230;
  --pine: #0f3b2e;
  --pine-2: #17543f;
  --paper: #fbf4e4;
  --paper-2: #f3e6c8;
  --paper-edge: #e3cf9f;
  --ink: #2b1d16;
  --ink-soft: #6a5444;
  --red: #c8202f;
  --red-dark: #96141f;
  --gold: #f2b33d;
  --gold-dark: #c98b17;
  --snow: #fffaf0;
  --muted: #b9cbc3;
  --radius: 16px;
  --ui: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --decree: "Grenze Gotisch", "Iowan Old Style", Georgia, serif;
  --typed: "Special Elite", "Courier New", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.45;
  color: var(--snow);
  background-color: var(--pine);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.55) 0 1.2px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.45) 0 1px, transparent 1.8px),
    radial-gradient(circle at 40% 42%, rgba(255,255,255,.35) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 88% 64%, rgba(255,255,255,.4) 0 1px, transparent 1.8px),
    radial-gradient(circle at 22% 80%, rgba(255,255,255,.35) 0 1.2px, transparent 2px),
    linear-gradient(180deg, var(--night) 0%, var(--pine) 55%, #0d3428 100%);
  background-size: 210px 230px, 170px 190px, 260px 240px, 190px 210px, 230px 260px, 100% 100%;
  background-attachment: scroll;
}
a { color: var(--gold); }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 20px 16px 40px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

.testmode {
  position: sticky; top: 0; z-index: 60;
  background: repeating-linear-gradient(-45deg, #f2b33d 0 14px, #ffd27a 14px 28px);
  color: #2b1d16; font-weight: 800; font-size: 13px; text-align: center; padding: 4px 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 58px; padding: 12px 18px;
  border: 0; border-radius: var(--radius);
  font-weight: 800; font-size: 18px; line-height: 1.15; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-main { display: block; }
.btn-sub { display: block; font-weight: 700; font-size: 13.5px; opacity: .85; }
.btn-red { background: var(--red); color: var(--snow); box-shadow: 0 4px 0 var(--red-dark); }
.btn-red:active { box-shadow: 0 2px 0 var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--gold-dark); }
.btn-gold:active { box-shadow: 0 2px 0 var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--snow); border: 2px solid rgba(255,250,240,.55); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 2px solid rgba(43,29,22,.35); }
.btn:focus-visible, .linkish:focus-visible, .reaction:focus-visible, .choice:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.linkish { background: none; border: 0; padding: 4px 2px; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---------- The notice ---------- */
.notice {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(201,169,106,.35) 100%),
    var(--paper);
  border-radius: 6px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 2px 0 var(--paper-edge);
  overflow: hidden;
}
.notice::before { /* faint ruled border, like an engraved certificate */
  content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(179,25,46,.35); border-radius: 3px; pointer-events: none;
}
.notice::after {
  content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(201,139,23,.45); border-radius: 2px; pointer-events: none;
}
.example-tag {
  position: absolute; top: 14px; right: 14px; margin: 0; z-index: 2;
  background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}
.lh { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 2px solid var(--ink); }
.seal { width: 52px; height: 52px; flex: none; }
.lh-text p { margin: 0; }
.lh-org { font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.15; }
.lh-dept { font-size: 13.5px; color: var(--ink-soft); }
.notice-title {
  font-family: var(--decree); font-weight: 700; color: var(--red-dark);
  font-size: clamp(30px, 9vw, 40px); line-height: 1.02; text-align: center; margin: 16px 0 8px;
  text-wrap: balance;
}
.case { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-family: var(--typed); font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px solid rgba(43,29,22,.25); padding-bottom: 10px; }
.verdict { margin: 0 0 6px; font-weight: 800; font-size: 15px; text-align: center; color: var(--pine-2); }
.fields { margin: 0; }
.field { padding: 9px 0; border-bottom: 1px dotted rgba(43,29,22,.35); }
.field:last-child { border-bottom: 0; }
.field dt { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.field dd { margin: 2px 0 0; }
.subject { font-family: var(--decree); font-weight: 700; font-size: clamp(40px, 13vw, 58px); line-height: 1; color: var(--ink); overflow-wrap: anywhere; }
.subject-long { font-size: clamp(34px, 10vw, 46px); padding-top: 18px; }
.typed { font-family: var(--typed); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.anon-note { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.field-sentence { display: grid; grid-template-columns: 1fr 96px; grid-template-areas: "dt coal" "dd coal"; column-gap: 10px; align-items: center; }
.field-sentence dt { grid-area: dt; }
.field-sentence dd { grid-area: dd; }
.coal-wrap { grid-area: coal; }
.coal { width: 96px; height: auto; }
.field-subject { position: relative; }
.stamp {
  position: absolute; right: -2px; top: -4px; z-index: 3;
  transform: rotate(-14deg);
  border: 4px solid var(--red); border-radius: 10px; padding: 3px; color: var(--red);
  mix-blend-mode: multiply; opacity: .9; pointer-events: none;
}
.stamp span {
  display: block; border: 2px solid var(--red); border-radius: 6px; padding: 2px 12px 0;
  font-family: var(--decree); font-size: 34px; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase;
}
.santa-note { margin: 8px 0 0; padding: 10px 6px 2px; border-top: 1px dotted rgba(43,29,22,.35); text-align: center; }
.santa-note-label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.santa-note-text {
  display: inline-block; margin-top: 4px; transform: rotate(-2deg);
  font-family: var(--decree); font-weight: 700; font-size: 25px; line-height: 1.1; color: var(--red-dark);
  text-wrap: balance;
}
.notice-compact .santa-note-text { font-size: 22px; }
.fineprint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); text-align: center; }
.notice-compact .subject { font-size: 40px; }
.notice-compact .notice-title { font-size: 28px; }
.notice-compact .stamp span { font-size: 26px; }

/* ---------- Gift page ---------- */
.gift-wrap { padding-top: 18px; }
.banner { background: rgba(242,179,61,.16); border: 1.5px solid rgba(242,179,61,.55); color: var(--snow); padding: 10px 12px; border-radius: 12px; font-size: 15px; margin: 0 0 14px; }
.worth { text-align: center; margin: 26px 4px 22px; }
.worth p { margin: 0; font-size: 19px; }
.worth strong { color: var(--gold); }
.worth-line { margin-top: 8px !important; font-family: var(--decree); font-weight: 700; font-size: clamp(28px, 8.4vw, 36px) !important; line-height: 1.08; color: var(--snow); }
.actions { display: grid; gap: 14px; }
.done-line { margin: 0; padding: 14px 16px; border-radius: var(--radius); background: rgba(255,250,240,.08); border: 1.5px solid rgba(255,250,240,.2); font-weight: 700; text-align: center; }
.done-emoji { margin-right: 4px; }
.hint { margin: 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.giftfoot { margin-top: 30px; text-align: center; color: var(--muted); font-size: 14px; }
.giftfoot p { margin: 6px 0; }
.giftfoot a { color: var(--muted); }
.safety { display: flex; justify-content: center; align-items: center; gap: 8px; }

/* Before the reveal the page sits hidden behind the scene (only when JS runs). */
.js .page-gift:not(.revealed) .gift-wrap { visibility: hidden; }
.page-gift.revealed .notice { animation: unroll .55s cubic-bezier(.2,.9,.25,1.1) both; }
.page-gift.revealed .stamp { animation: stamp .42s cubic-bezier(.3,1.6,.5,1) .55s both; }
.page-gift.revealed .coal { animation: coal-drop .5s cubic-bezier(.3,1.5,.5,1) .95s both; }
.page-gift.revealed .santa-note-text { animation: scrawl .45s ease 1.25s both; }
.page-gift.revealed .worth { animation: rise .5s ease 1.2s both; }
.page-gift.revealed .actions, .page-gift.revealed .giftfoot { animation: rise .5s ease 1.45s both; }
.page-gift.shake .notice { animation: unroll .55s cubic-bezier(.2,.9,.25,1.1) both, thud .25s ease .9s; }

@keyframes unroll { from { clip-path: inset(46% 0 46% 0 round 6px); transform: scale(.94); } to { clip-path: inset(0 0 0 0 round 6px); transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.6); } 70% { opacity: .95; transform: rotate(-14deg) scale(.92); } 100% { opacity: .9; transform: rotate(-14deg) scale(1); } }
@keyframes coal-drop { 0% { opacity: 0; transform: translateY(-70px) rotate(-25deg); } 100% { opacity: 1; transform: none; } }
@keyframes scrawl { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes thud { 0%,100% { transform: none; } 30% { transform: translateY(3px) rotate(.4deg); } 60% { transform: translateY(-1px) rotate(-.3deg); } }

/* ---------- The scene: an elf brings the notice (5 s) ---------- */
.scene { display: none; }
.js .page-gift .scene {
  display: block; position: fixed; inset: 0; z-index: 50; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, #071723 0%, #0c2a3a 55%, #12394a 100%);
  -webkit-tap-highlight-color: transparent;
}
/* JS starts the clock (adds .play) so the CSS timeline and the 5 s reveal timer stay in step. */
.js .page-gift .scene:not(.play), .js .page-gift .scene:not(.play) * { animation-play-state: paused !important; }
/* Snow keeps falling behind the gate, before the clock starts. */
.js .page-gift .scene:not(.play) .snow { animation-play-state: running !important; }
.scene.done { animation: scene-out .32s ease forwards; }

/* ---------- The gate: one tap to open (and to allow sound) ---------- */
.gate {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(180deg, rgba(7,23,35,.55), rgba(7,23,35,.2) 60%, rgba(7,23,35,0));
  cursor: default;
}
.gate-card { width: min(100%, 340px); display: grid; justify-items: center; gap: 16px; text-align: center; margin-bottom: 18vh; }
.gate-seal { display: block; transform: rotate(-8deg); filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.gate-seal .seal { width: 96px; height: 96px; }
.gate-title { margin: 0; font-family: var(--decree); font-weight: 700; font-size: clamp(30px, 9vw, 38px); line-height: 1.05; color: var(--snow); text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.gate-btn { width: 100%; }
.gate-quiet { color: var(--muted); font-size: 15px; font-weight: 700; padding: 6px 10px; }
@keyframes scene-out { to { opacity: 0; visibility: hidden; } }
.sky { position: absolute; inset: 0; }
.moon { position: absolute; top: 9%; right: 12%; width: 74px; height: 74px; border-radius: 50%; background: #fff4d6; box-shadow: 0 0 60px 18px rgba(255,236,190,.25); }
.moon::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: rgba(214,196,150,.45); top: 18px; left: 16px; box-shadow: 26px 20px 0 -4px rgba(214,196,150,.4), 10px 34px 0 -6px rgba(214,196,150,.35); }
.snow { position: absolute; inset: -20% 0 0 0; background-repeat: repeat; }
.snow-a { background-image: radial-gradient(circle, #fff 0 2px, transparent 2.6px); background-size: 90px 110px; opacity: .8; animation: fall 4s linear infinite; }
.snow-b { background-image: radial-gradient(circle, #fff 0 1.3px, transparent 1.8px); background-size: 60px 70px; background-position: 20px 30px; opacity: .55; animation: fall 7s linear infinite; }
@keyframes fall { from { transform: translateY(0); } to { transform: translateY(20%); } }
.hills { position: absolute; left: -10%; right: -10%; bottom: 16%; height: 22%; background: radial-gradient(60% 100% at 25% 100%, #1b4d5c 0 70%, transparent 71%), radial-gradient(70% 100% at 80% 100%, #174555 0 70%, transparent 71%); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(180deg, #f4f8fb, #dde8ee); border-radius: 50% 50% 0 0 / 22px 22px 0 0; }

.walker {
  position: absolute; left: 50%; bottom: calc(20% - 16px); width: min(46vw, 210px);
  transform: translateX(-50%);
  animation: walk-in 2s cubic-bezier(.25,.6,.35,1) .3s both;
}
.walker .elf { width: 100%; height: auto; overflow: visible; }
@keyframes walk-in { from { transform: translateX(calc(-50% - 85vw)); } to { transform: translateX(-50%); } }

.elf-leg-back { transform-origin: 72px 156px; animation: leg .4s ease-in-out .3s 5; }
.elf-leg-front { transform-origin: 90px 156px; animation: leg .4s ease-in-out .3s 5 reverse; }
.elf-torso { animation: bob .2s ease-in-out .3s 10 alternate; }
.elf-hat { transform-origin: 80px 56px; animation: hat .4s ease-in-out .3s 5; }
.elf-sack { transform-origin: 40px 150px; animation: bob .2s ease-in-out .3s 10 alternate, sack-down .45s ease-in 2.3s forwards; }
.elf-arm { transform-origin: 100px 106px; animation: arm-up .5s cubic-bezier(.3,1.4,.5,1) 2.55s forwards; }
.elf-scroll { opacity: 0; animation: show .01s linear 2.55s forwards, hide .01s linear calc(3.6s + var(--x, 0s)) forwards; }
.elf-mouth { transform-origin: 80px 92px; animation: talk .16s ease-in-out var(--talk-at, 2.8s) var(--talk-n, 4) alternate; }
@keyframes leg { 0%,100% { transform: rotate(0); } 25% { transform: rotate(20deg); } 75% { transform: rotate(-20deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes hat { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes sack-down { to { transform: translate(-14px, 46px) rotate(-18deg); } }
@keyframes arm-up { to { transform: rotate(-135deg); } }
@keyframes talk { from { transform: scaleY(1); } to { transform: scaleY(1.7); } }
@keyframes show { to { opacity: 1; } }
@keyframes hide { to { opacity: 0; } }

.bubble {
  position: absolute; left: 62%; top: -18%;
  background: var(--snow); color: var(--ink); font-weight: 800; font-size: 20px;
  padding: 6px 14px; border-radius: 16px; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
  transform: scale(0); transform-origin: 10% 100%;
  animation: pop .3s cubic-bezier(.3,1.6,.5,1) 2.75s forwards, hide .2s ease calc(3.6s + var(--x, 0s)) forwards;
}
.bubble::after { content: ""; position: absolute; left: 14px; bottom: -9px; border: 10px solid transparent; border-top-color: var(--snow); border-bottom: 0; }
@keyframes pop { to { transform: scale(1); } }

.flyscroll {
  position: absolute; left: 50%; top: 50%; width: min(78vw, 360px); height: min(92vw, 430px);
  margin-left: calc(min(78vw, 360px) / -2); margin-top: calc(min(92vw, 430px) / -2);
  opacity: 0; transform: translate(22vw, 18vh) scale(.12) rotate(-30deg);
  animation: fly .8s cubic-bezier(.3,.8,.3,1) calc(3.6s + var(--x, 0s)) forwards;
}
.flyscroll .sheet {
  position: absolute; left: 6%; right: 6%; top: 9%; bottom: 9%;
  background: radial-gradient(140% 120% at 50% 50%, var(--paper) 55%, var(--paper-2) 100%);
  transform: scaleY(.04); transform-origin: 50% 50%;
  animation: unroll-sheet .55s cubic-bezier(.3,.9,.3,1) calc(4.4s + var(--x, 0s)) forwards;
  padding: 18% 12%; display: flex; flex-direction: column; gap: 9%;
}
.flyscroll .sheet i { display: block; height: 7px; border-radius: 4px; background: rgba(43,29,22,.18); }
.flyscroll .sheet i:first-child { height: 16px; width: 70%; margin: 0 auto; background: rgba(150,20,31,.4); }
.flyscroll .sheet i:nth-child(3) { width: 80%; }
.roll { position: absolute; left: 0; right: 0; height: 9%; border-radius: 999px; background: linear-gradient(180deg, #e7d3a6, #fbf4e4 45%, #d6bd85); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.roll-top { top: 46%; animation: roll-top .55s cubic-bezier(.3,.9,.3,1) calc(4.4s + var(--x, 0s)) forwards; }
.roll-bottom { top: 46%; animation: roll-bottom .55s cubic-bezier(.3,.9,.3,1) calc(4.4s + var(--x, 0s)) forwards; }
.wax { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d8323f, #9e1624 70%); box-shadow: 0 2px 6px rgba(0,0,0,.35); animation: wax-off .3s ease-in calc(4.35s + var(--x, 0s)) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(22vw, 18vh) scale(.12) rotate(-30deg); } 100% { opacity: 1; transform: none; } }
@keyframes unroll-sheet { to { transform: scaleY(1); } }
@keyframes roll-top { to { top: 0; } }
@keyframes roll-bottom { to { top: 91%; } }
@keyframes wax-off { to { transform: translateY(40px) scale(.6) rotate(40deg); opacity: 0; } }

.skip { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: rgba(43,29,22,.55); font-weight: 700; font-size: 14px; opacity: 0; animation: show .3s ease 1s forwards; }

/* ---------- Embedded demo (inside the home page phone) ---------- */
.embed { overflow-x: hidden; scrollbar-width: none; }
.embed::-webkit-scrollbar { display: none; }
.embed .gift-wrap { padding-bottom: 40px; }
.embed .skip { display: none; }

/* ---------- Sheets (bottom dialogs) ---------- */
dialog.sheet {
  color-scheme: light;
  width: 100%; max-width: 520px; max-height: 88vh; max-height: 88dvh;
  margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(0,0,0,.35);
  overflow: auto;
}
dialog.sheet[open] { animation: sheet-up .28s cubic-bezier(.2,.9,.3,1); }
dialog.sheet::backdrop { background: rgba(5,15,22,.62); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-body { padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h2:focus { outline: none; }
.sheet-head h2 { margin: 0; font-family: var(--decree); font-size: 32px; line-height: 1; color: var(--red-dark); }
.sheet-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(43,29,22,.08); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet-sub { margin: -6px 0 0; color: var(--ink-soft); font-size: 15.5px; }
.reactions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reaction { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; border: 2px solid rgba(43,29,22,.15); background: #fff; font-weight: 800; font-size: 15px; color: var(--ink); cursor: pointer; text-align: center; line-height: 1.2; }
.reaction:active { transform: scale(.97); }
.r-emoji { font-size: 30px; line-height: 1; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
dialog .choices { gap: 6px; }
dialog .choice { padding: 10px 12px; font-size: 15.5px; }
.choices legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(43,29,22,.14); background: #fff; cursor: pointer; font-weight: 700; font-size: 16px; }
.choice input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--red); background: #fff6f4; }
.field-label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.sheet input[type="text"], .sheet input:not([type]), .sheet textarea, .form input[type="text"], .form input[type="email"], .form input:not([type]), .form textarea {
  width: 100%; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(43,29,22,.2); background: #fff; color: var(--ink);
}
.sheet input:focus, .sheet textarea:focus, .form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--red); margin: 0; flex: none; }
.form-error { margin: 0; color: var(--red); font-weight: 800; font-size: 15px; min-height: 0; }
.form-error:empty { display: none; }
.pay-row { display: grid; gap: 12px; }
.custom-wrap[hidden] { display: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--snow); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: calc(100% - 32px); text-align: center;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Plain pages ---------- */
.plain { text-align: center; padding-top: 18vh; }
.plain-title { font-family: var(--decree); font-size: 42px; line-height: 1.05; margin: 0 0 10px; }
.plain-sub { color: var(--muted); margin: 0 0 24px; }
.sitefoot { text-align: center; color: var(--muted); font-size: 14px; padding: 10px 16px 30px; }
.sitefoot p { margin: 6px 0; }
.sitefoot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .js .page-gift .scene * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .walker { animation: none; }
  .page-gift.revealed .notice, .page-gift.revealed .stamp, .page-gift.revealed .coal,
  .page-gift.revealed .worth, .page-gift.revealed .actions, .page-gift.revealed .giftfoot,
  .page-gift.revealed .santa-note-text { animation-duration: .2s; animation-delay: 0s; }
}

/* ---------- Shared page parts ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-title { font-family: var(--decree); font-weight: 700; font-size: clamp(36px, 10.5vw, 46px); line-height: 1.04; margin: 6px 0 8px; text-wrap: balance; }
.page-sub { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.section-title { font-family: var(--decree); font-weight: 700; font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
.help { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.optional { font-weight: 700; color: var(--muted); font-size: 14px; }
.btn-small { min-height: 46px; font-size: 16px; padding: 10px 14px; }
.form-card { background: rgba(255,250,240,.06); border: 1.5px solid rgba(255,250,240,.16); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
.form { display: grid; gap: 12px; }
.form-ok { margin: 0; color: var(--gold); font-weight: 800; }
.form-ok:empty { display: none; }
.form input[type="text"], .form input[type="email"], .form input:not([type]) { background: var(--snow); }

/* ---------- Home ---------- */
.home { padding-top: 28px; }
.hero { text-align: center; margin-bottom: 28px; }
.hero-kicker { margin: 0 0 6px; color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero-title { font-family: var(--decree); font-weight: 700; font-size: clamp(50px, 15vw, 68px); line-height: .98; margin: 0 0 14px; text-wrap: balance; }
.hero-sub { margin: 0 0 22px; font-size: 18px; color: #e3ece8; }
/* The live demo in a phone */
.demo { margin: 0 0 96px; }
.demo-cap { margin: 0 0 12px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 700; }
.phone {
  position: relative; width: max-content; margin: 0 auto; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2a3138, #0b0f14 40%, #1a1f25);
  box-shadow: 0 24px 50px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-1.5deg);
}
.phone-screen { position: relative; width: 300px; height: 650px; border-radius: 36px; overflow: hidden; background: #071723; }
.phone-screen::before { content: ""; position: absolute; z-index: 2; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; }
.phone-screen iframe { position: absolute; top: 0; left: 0; width: 375px; height: 812px; border: 0; transform: scale(.8); transform-origin: 0 0; pointer-events: none; }
.phone-tap { position: absolute; inset: 0; border-radius: 46px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.phone-tap span { position: absolute; left: 50%; bottom: -62px; transform: translateX(-50%) rotate(1.5deg); white-space: nowrap; }
.phone-tap span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(12,34,48,.86); color: var(--snow); font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); border: 1.5px solid rgba(255,250,240,.25);
}
.phone-tap span::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--gold); }
.phone-tap:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 359px) {
  .phone-screen { width: 256px; height: 555px; border-radius: 32px; }
  .phone-screen iframe { transform: scale(.6827); }
}

/* Try it on a friend */
.try { margin: 0 0 38px; text-align: center; }
.try-sub { margin: 0 0 14px; color: #e3ece8; font-size: 17px; }
.try-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.try-form input { min-width: 0; }
.try-form .btn { width: auto; padding-left: 20px; padding-right: 20px; }

/* Photos */
.lands { margin: 0 0 36px; }
.lands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.land { margin: 0; }
.land img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: #10303a; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.land figcaption { margin-top: 8px; font-family: var(--typed); font-size: 14px; line-height: 1.3; color: #e3ece8; }
.lands-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.how { margin: 0 0 34px; }
.how p { margin: 0 0 12px; color: #e3ece8; font-size: 17.5px; }
.prices { margin: 0 0 20px; }
.prices-note { color: var(--muted); font-size: 15px; margin: 14px 0 18px; }

/* Send page: the notice fills in as they type */
.live .notice { margin-top: 4px; }
.send .live-watch { margin-top: 16px; }

/* ---------- Send ---------- */
.send .step { margin: 0 0 26px; }
.step-title { display: block; font-family: var(--decree); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 0 0 10px; padding: 0; }
.send input[type="text"], .send input[type="email"], .send input:not([type]) { width: 100%; font-size: 18px; }
.choice-dark { background: rgba(255,250,240,.07); border-color: rgba(255,250,240,.18); color: var(--snow); }
.choice-dark:has(input:checked) { border-color: var(--gold); background: rgba(242,179,61,.14); }
.choice-dark input { accent-color: var(--gold); }
.choice.is-disabled { opacity: .45; cursor: not-allowed; }
.choice.more[hidden] { display: none; }
.more-btn { justify-self: start; background: none; border: 0; padding: 6px 2px; color: var(--gold); font-weight: 800; font-size: 16px; text-decoration: underline; cursor: pointer; }
.more-btn[hidden] { display: none; }
.pay-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.pay-label small { display: block; font-weight: 700; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pay-price { font-weight: 800; color: var(--gold); white-space: nowrap; }
.name-wrap { margin: 0 0 4px 0; }
.name-wrap[hidden] { display: none; }
.check-dark { color: var(--snow); margin: 4px 0 4px; }
.check-dark input { accent-color: var(--gold); }
.send .form-error { color: #ffb3a8; }
.send .btn { margin-top: 4px; }

/* ---------- Status ---------- */
.share { margin: 0 0 22px; }
.linkbox { margin: 0 0 12px; }
.linkfield { width: 100%; font-family: var(--typed); font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 2px dashed rgba(242,179,61,.6); background: rgba(255,250,240,.08); color: var(--snow); }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.share-apps { margin-top: 10px; }
.status-card { color-scheme: light; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 18px 16px; margin: 0 0 18px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.status-card .section-title { color: var(--red-dark); }
.status-card .help { color: var(--ink-soft); }
.status-card .btn-ghost { color: var(--ink); border-color: rgba(43,29,22,.3); }
.srows { list-style: none; margin: 0; padding: 0; }
.srow { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dotted rgba(43,29,22,.3); }
.srow:last-child { border-bottom: 0; }
.srow-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(43,29,22,.25); display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.srow-done .srow-mark { background: var(--pine-2); border-color: var(--pine-2); }
.srow-text { display: grid; gap: 1px; min-width: 0; }
.srow-label { font-weight: 800; }
.srow-detail { color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
.srow-detail a { color: var(--red-dark); font-weight: 800; }
.srow-detail time { white-space: nowrap; }
.pending { padding-top: 10vh; text-align: center; }
.wallet-mini { display: grid; gap: 12px; margin: 0 0 26px; }
.wallet-mini p { margin: 0; text-align: center; color: #e3ece8; }
.wallet-mini strong { color: var(--gold); font-size: 22px; }
.preview-mini { margin: 0 0 10px; transform: rotate(.8deg); }

/* ---------- Wallet ---------- */
.credits { text-align: center; margin: 4px 0 24px; }
.credits-n { margin: 0; font-family: var(--decree); font-size: 96px; line-height: .9; color: var(--gold); }
.credits-label { margin: 2px 0 16px; color: var(--muted); font-weight: 800; }
.sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sent a, .admin-item { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255,250,240,.07); border: 1.5px solid rgba(255,250,240,.16); color: var(--snow); text-decoration: none; }
.sent-name { font-weight: 800; }
.sent-crime { color: #e3ece8; font-size: 15px; }
.sent-meta { color: var(--muted); font-size: 14px; }

/* ---------- Legal and admin ---------- */
.prose h2 { font-size: 20px; margin: 22px 0 6px; color: var(--gold); }
.prose p { margin: 0 0 10px; color: #e3ece8; }
.kbox { text-align: center; margin: 0 0 18px; }
.k-n { margin: 0; font-family: var(--decree); font-size: 64px; color: var(--gold); line-height: 1; }
.stats { width: 100%; border-collapse: collapse; margin: 0 0 26px; }
.stats th, .stats td { text-align: left; padding: 8px 4px; border-bottom: 1px dotted rgba(255,250,240,.25); }
.stats td { text-align: right; font-weight: 800; }

/* ---------- Price tiles ----------
   Packs side by side so the price per report compares at a glance. The best-value pack is drawn
   on notice paper with a rubber stamp, the same stamp language as the notice itself. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 20px; align-items: stretch; }
.tiles-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.24fr); }
.tiles-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-width: 0; margin: 0; padding: 22px 4px 12px; gap: 1px;
  border-radius: 14px; border: 2px solid rgba(255,250,240,.2); background: rgba(255,250,240,.07);
  color: var(--snow); font: inherit; text-align: center; line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
label.tile, button.tile { cursor: pointer; transition: transform .12s ease; }
label.tile:active, button.tile:active { transform: translateY(2px); }
.tile-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tile:focus-within, button.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.tile-count { font-weight: 800; font-size: 15px; white-space: nowrap; }
.pile { width: 100%; max-width: 76px; height: auto; margin: 6px 0 4px; }
.pile .lump { stroke: rgba(255,250,240,.32); stroke-width: .9; stroke-linejoin: round; }
.tile-price { font-weight: 800; font-size: 25px; line-height: 1.1; color: var(--gold); letter-spacing: -.01em; }
.tile-each { font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tile-save { font-weight: 800; font-size: 13.5px; color: var(--gold); white-space: nowrap; }
label.tile:has(input:checked) { border-color: var(--gold); background: rgba(242,179,61,.16); box-shadow: inset 0 0 0 1px var(--gold); }

.tile-best {
  color: var(--ink); border-color: var(--paper-edge);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.7), transparent 60%), var(--paper);
  box-shadow: 0 5px 0 rgba(0,0,0,.22);
}
.tile-best .pile .lump { stroke: none; }
.tile-best .tile-price { color: var(--ink); font-size: 29px; }
.tile-best .tile-each { color: var(--red-dark); font-weight: 800; font-size: 14.5px; }
.tile-best .tile-save { color: var(--red); font-size: 15.5px; }
label.tile-best:has(input:checked) { border-color: var(--gold); background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.7), transparent 60%), var(--paper); box-shadow: 0 0 0 3px var(--gold), 0 5px 0 rgba(0,0,0,.22); }
.tile-stamp {
  position: absolute; top: -20px; left: 50%; z-index: 2;
  transform: translateX(-50%) rotate(-6deg);
  background: var(--paper); border: 3px solid var(--red); border-radius: 8px; padding: 2px;
  color: var(--red); white-space: nowrap; pointer-events: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.tile-stamp span {
  display: block; border: 1.5px solid var(--red); border-radius: 5px; padding: 1px 6px 0;
  font-family: var(--decree); font-weight: 700; font-size: 17px; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase;
}
.tile-buy { margin-top: auto; padding-top: 10px; }
.tile-buy span { display: block; min-width: 64px; padding: 7px 14px; border-radius: 10px; border: 2px solid rgba(255,250,240,.55); font-weight: 800; font-size: 15px; }
.tile-best .tile-buy span { background: var(--red); border-color: var(--red); color: var(--snow); box-shadow: 0 3px 0 var(--red-dark); }
.help, .prices-note { text-wrap: pretty; }
@media (max-width: 359px) {
  .tiles { gap: 6px; }
  .tile-count { font-size: 14px; }
  .tile-price { font-size: 22px; }
  .tile-best .tile-price { font-size: 25px; }
  .tile-each, .tile-save { font-size: 12.5px; }
  .tile-best .tile-each, .tile-best .tile-save { font-size: 13.5px; }
  .tile-stamp span { font-size: 15px; padding: 1px 5px 0; }
}

/* Status page: take it down */
.takedown-row { margin: 12px 0 0; text-align: center; }
.status-card .takedown-row .linkish { color: #6a5444; }

/* Home: questions */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1.5px solid rgba(255,250,240,.18); border-radius: 14px; background: rgba(255,250,240,.04); }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 800; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 16px 16px; color: var(--muted); }
