/* the hidden attribute always wins over a component display */
[hidden] { display: none !important; }
/* Friends Advent Calendar — "holiday post office".
   The one loud idea: a wall of 24 little brass-numbered mailboxes, and the airmail stripe.
   Everything else stays quiet. */
:root {
  --pine: #12352b;
  --pine-2: #1a4538;
  --snow: #fbf8f2;
  --ink: #1d2a26;
  --ink-soft: #56645f;
  --mist: #cfe0d8;
  --brass: #c99a3d;
  --brass-hi: #f2d896;
  --red: #e23b2e;
  --blue: #2e5bd6;
  --line: #e6dfd1;

  /* mailbox enamel — set per calendar finish */
  --door: #f1e8d8; --door-2: #e2d4bd; --door-ink: #1d2a26;
  --cabinet: #7a4d27; --cabinet-2: #55331a;

  /* read by the story picture */
  --bg1: #12352b; --bg2: #1a4538; --frame: #7a4d27; --wall: #55331a;
  --door-a: #f1e8d8; --door-b: #e9dcc6; --door-c: #f1e8d8; --door-d: #e9dcc6;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --airmail: repeating-linear-gradient(-45deg, var(--red) 0 9px, var(--snow) 9px 14px, var(--blue) 14px 23px, var(--snow) 23px 28px);
  color-scheme: dark;
}
[data-style="aurora"] {
  --door: #357560; --door-2: #285c4b; --door-ink: #fbf8f2; --cabinet: #d3ccbd; --cabinet-2: #aaa192;
  --door-a: #357560; --door-b: #2d6754; --door-c: #357560; --door-d: #2d6754; --frame: #d3ccbd; --wall: #aaa192;
}
[data-style="peppermint"] {
  --door: #c02a33; --door-2: #9e1f28; --door-ink: #fbf8f2; --cabinet: #f4efe6; --cabinet-2: #d6cdbd;
  --door-a: #c02a33; --door-b: #ab232c; --door-c: #c02a33; --door-d: #ab232c; --frame: #f4efe6; --wall: #d6cdbd;
}

/* Plus finishes */
[data-style="midnight"] {
  --door: #26335c; --door-2: #1c2648; --door-ink: #e9eefc; --cabinet: #b9c0cc; --cabinet-2: #8e96a5;
  --door-a: #26335c; --door-b: #212d52; --door-c: #26335c; --door-d: #212d52; --frame: #b9c0cc; --wall: #8e96a5;
}
[data-style="frost"] {
  --door: #e6eef3; --door-2: #cddbe4; --door-ink: #1f3340; --cabinet: #5d7f93; --cabinet-2: #456577;
  --door-a: #e6eef3; --door-b: #d9e5ec; --door-c: #e6eef3; --door-d: #d9e5ec; --frame: #5d7f93; --wall: #456577;
}
[data-style="gingerbread"] {
  --door: #b0703f; --door-2: #94592f; --door-ink: #fff6ea; --cabinet: #f3e6d3; --cabinet-2: #dcc8ad;
  --door-a: #b0703f; --door-b: #a1653a; --door-c: #b0703f; --door-d: #a1653a; --frame: #f3e6d3; --wall: #dcc8ad;
}
[data-style="gingerbread"] .door .tag { box-shadow: 0 0 0 2px #fff6ea; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; font-family: var(--display); font-size: 17px; line-height: 1.55; color: var(--snow);
  background: var(--pine); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.airmail-bar { height: 8px; background: var(--airmail); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; }
.brand { min-width: 0; }
.brand > span { overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 2px; flex: none; }
.top nav a, .top nav button { background: none; border: 0; color: var(--mist); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.top nav a:hover, .top nav button:hover { color: var(--snow); background: rgba(255,255,255,.08); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: .95; font-weight: 800; font-stretch: 78%; font-variation-settings: "wdth" 78; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 82; }
h3 { font-size: 1.18rem; line-height: 1.2; font-weight: 700; }
.lede { font-size: clamp(1.06rem, 2.2vw, 1.22rem); color: var(--mist); max-width: 36ch; margin: 0 0 1.3em; }
.small { font-size: .92rem; color: var(--ink-soft); }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: transform .08s, filter .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 3px 0 #a3261c; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #b9b0a0; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 15px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-danger { color: #b3261e; }
label { display: block; font-weight: 700; font-size: .95rem; margin: 16px 0 6px; }
input[type=text], input[type=password], input[type=url], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
.err { color: #b3261e; font-size: .92rem; min-height: 1.3em; margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-top: 12px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
.chip[aria-pressed=true] { border-color: var(--ink); }
.chip i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 28px 0 80px; }
.hero.hero-v2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 410px); grid-template-areas: "head head" "wall panel" "up up"; grid-template-rows: auto auto auto; column-gap: 48px; row-gap: 18px; align-items: start; padding: 20px 0 72px; }
.hero-v2 .hero-head { grid-area: head; }
.hero-v2 .hero-panel { grid-area: panel; display: grid; align-self: stretch; }
.hero-v2 .hero-panel > :not([hidden]) { height: 100%; }
.hero-v2 .home-up { grid-area: up; }
.hero-v2 .hero-wall { grid-area: wall; }
.hero-v2 h1 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.02; letter-spacing: -.02em; }
.hero-v2 h1 .eyebrow { display: block; margin-bottom: 8px; font-size: 1rem; letter-spacing: 0; font-weight: 600; color: var(--brass-hi); }
.hero-v2 h1 [data-hero-title] { display: block; }
@media (max-width: 860px) { .hero.hero-v2 { grid-template-columns: 1fr; grid-template-areas: "head" "panel" "wall" "up"; } .hero-v2 .hero-panel { align-self: start; } .hero-v2 .hero-panel > :not([hidden]) { height: auto; } }
.quick { display: flex; gap: 6px; max-width: 470px; background: var(--snow); border-radius: 999px; padding: 6px; }
.quick input[type=text] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.05rem; padding: 10px 16px; border-radius: 999px; }
.quick input::placeholder { color: #8a948f; }
.quick .btn { flex: none; }
.finish { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--mist); font-size: .95rem; }
.finish button { width: 32px; height: 32px; border-radius: 9px; padding: 0; border: 0; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); outline-offset: 3px; }
.finish button[aria-pressed=true] { outline: 3px solid var(--brass-hi); }
.hero details { margin-top: 14px; color: var(--mist); font-size: .92rem; max-width: 470px; }
.hero details summary { cursor: pointer; }
.hero details input { margin-top: 10px; }
.hero .err { color: #ffb0a6; }
.fine { font-size: .9rem; color: #a6c0b5; margin: 14px 0 0; }

/* ======================================================================
   The mailbox wall
   ====================================================================== */
.house { position: relative; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, var(--cabinet), var(--cabinet-2)); box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.18); }
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-content: start; }
#demo-wall { aspect-ratio: 6 / 4.95; }
.door-slot { position: relative; aspect-ratio: 4 / 5; perspective: 700px; }
.inside { position: absolute; inset: 0; border-radius: 8px; background: #1b130d; box-shadow: inset 0 5px 10px rgba(0,0,0,.7); display: grid; place-items: center; overflow: hidden; }
.inside .letter-mini { width: 72%; aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--snow); border: 4px solid transparent; border-image: var(--airmail) 8; transform: rotate(-5deg); }
.door {
  position: absolute; inset: 0; border: 0; padding: 0; border-radius: 8px; transform-origin: left center; color: var(--door-ink);
  background: linear-gradient(180deg, var(--door), var(--door-2));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.16), 0 2px 0 rgba(0,0,0,.28);
  transition: transform .8s cubic-bezier(.25,.9,.25,1), filter .15s;
}
.door:hover { filter: brightness(1.05); }
.door .plate {
  position: absolute; left: 50%; top: 9%; translate: -50% 0; min-width: 48%; padding: 0 5px; border-radius: 4px; text-align: center;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #3a2a0c; font-weight: 800; font-size: clamp(.78rem, 2.4vw, 1.05rem); line-height: 1.4;
  box-shadow: 0 1px 0 rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.6); font-variant-numeric: tabular-nums;
}
.door .slit { position: absolute; left: 16%; right: 22%; top: 40%; height: 7%; border-radius: 99px; background: #23170f; box-shadow: inset 0 2px 3px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.35); }
.door .env { position: absolute; left: 24%; right: 30%; top: 32%; height: 11%; background: var(--snow); border-top: 3px solid transparent; border-image: var(--airmail) 6; transform: rotate(-3deg); box-shadow: 0 -1px 2px rgba(0,0,0,.2); }
.door.empty .env { display: none; }
.door .key { position: absolute; left: 50%; top: 56%; translate: -50% 0; width: 7%; aspect-ratio: 1 / 1.7; border-radius: 50% 50% 25% 25%; background: rgba(0,0,0,.35); }
/* the little red flag goes up when there's mail */
.door .flag { position: absolute; right: 5%; top: 24%; width: 5px; height: 30%; border-radius: 2px; background: var(--red); transform-origin: 50% 100%; transform: scaleY(0); box-shadow: 0 1px 1px rgba(0,0,0,.35); transition: transform .45s cubic-bezier(.3,1.7,.5,1); }
.door .flag::before { content: ""; position: absolute; right: 0; top: 0; width: 240%; height: 36%; background: var(--red); border-radius: 2px 0 0 2px; }
.door:not(.empty) .flag { transform: none; }
.door .tag {
  position: absolute; left: 8%; right: 8%; bottom: 7%; background: var(--snow); color: var(--ink); border-radius: 2px;
  font-family: var(--hand); font-weight: 600; font-size: clamp(.82rem, 2.5vw, 1.05rem); line-height: 1.3; padding: 0 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.door.empty .tag { background: transparent; box-shadow: none; color: color-mix(in srgb, var(--door-ink) 55%, transparent); }
.door .lock { position: absolute; left: 6%; top: 6%; font-size: .6rem; opacity: .7; }
.door.today { box-shadow: 0 0 0 3px var(--brass-hi), 0 0 22px rgba(242,216,150,.6); }
.door.today .plate { animation: plate 1.6s ease-in-out infinite; }
@keyframes plate { 50% { filter: brightness(1.3); } }
.door-slot.opened .door { transform: rotateY(-102deg); box-shadow: -4px 4px 10px rgba(0,0,0,.4); }
/* landing: the flags go up one by one, once */
.demo .door:not(.empty) .flag { animation: flagup .5s cubic-bezier(.3,1.7,.5,1) both; animation-delay: calc(var(--i) * 70ms + 300ms); }
@keyframes flagup { from { transform: scaleY(0); } }
@media (max-width: 560px) { .wall { grid-template-columns: repeat(4, 1fr); gap: 7px; } .house { padding: 10px; } #demo-wall { aspect-ratio: 4 / 7.45; } }

/* ---------- paper surfaces ---------- */
.card { background: var(--snow); color: var(--ink); border-radius: 20px; padding: 22px; }
.card h3 { color: var(--ink); }
.card a:not(.btn) { color: var(--blue); }
.card details summary { cursor: pointer; color: var(--ink-soft); font-size: .92rem; margin-top: 12px; }
.panel { border-top: 1px solid rgba(255,255,255,.16); padding: 18px 2px 4px; }
.panel .small { color: var(--mist); }
.panel .btn-ghost { color: var(--snow); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
.panel .btn-ghost:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.panel details summary { cursor: pointer; color: var(--mist); font-size: .92rem; margin-top: 12px; }
.panel .btn-danger { color: #ffb0a6; }
.code-pill { font-weight: 800; letter-spacing: .14em; background: #efe7d7; color: var(--ink); border-radius: 6px; padding: 3px 9px; font-variant-numeric: tabular-nums; }

/* ---------- calendar page ---------- */
.cal-head { padding: 10px 0 24px; }
.cal-head h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.meter { display: flex; align-items: center; gap: 12px; color: var(--mist); font-weight: 600; }
.meter .bar { width: min(220px, 45%); height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--airmail); border-radius: 99px; }
.cal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 36px; align-items: start; padding-bottom: 56px; }
.side { display: grid; gap: 14px; position: sticky; top: 16px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.share-grid .btn { padding: 12px 10px; }
.share-grid .btn-primary { grid-column: 1 / -1; }
.banner { display: flex; gap: 14px; align-items: center; margin: 0 0 22px; padding: 14px 18px; border-radius: 16px; background: var(--pine-2); color: #e4efe9; max-width: 720px; }
.banner b { color: var(--brass-hi); }
.banner .env-ico { flex: none; width: 46px; height: 32px; background: var(--snow); border: 4px solid transparent; border-image: var(--airmail) 8; transform: rotate(-4deg); }
.golden-note { color: var(--brass-hi); font-weight: 700; margin: 10px 0 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--brass-hi); animation: spin 1s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
@media (max-width: 900px) {
  .hero, .cal-grid { grid-template-columns: 1fr; gap: 32px; }
  .side { position: static; }
}

/* ---------- modal: a sheet that rises from the bottom on phones ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-end; justify-content: center; background: rgba(6,22,17,.6); backdrop-filter: blur(3px); }
.modal.on { display: flex; }
.modal > .card { width: min(500px, 100%); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; position: relative; border-radius: 24px 24px 0 0; padding: 0; animation: rise .28s cubic-bezier(.2,.9,.3,1); }
.modal .mbody { overflow-y: auto; overscroll-behavior: contain; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .modal { align-items: center; padding: 16px; } .modal > .card { border-radius: 24px; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.modal .x { z-index: 2; position: absolute; right: 12px; top: 12px; border: 0; background: #efe7d7; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.modal h3 { font-size: 1.45rem; padding-right: 40px; }
.count { text-align: right; font-size: .82rem; color: var(--ink-soft); }
.reveal-sticker { font-size: 2.6rem; text-align: center; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* the airmail letter (opened notes, note ideas) */
.letter { position: relative; background: #fffdf8; color: #2a2522; padding: 18px 18px 16px; border: 8px solid transparent; border-image: var(--airmail) 12; font-family: var(--hand); font-size: 1.55rem; line-height: 1.22; white-space: pre-wrap; word-break: break-word; }
.letter .stamp { float: right; margin: -4px -2px 8px 12px; width: 52px; height: 60px; display: grid; place-items: center; color: #2a2522; background: #fff; outline: 2px dashed #d2c4ad; outline-offset: -5px; transform: rotate(4deg); }
.letter .sig { display: block; text-align: right; font-size: 1.2rem; color: #6a5f57; margin-top: 8px; }
.modal .letter { min-height: 150px; }

/* ---------- landing sections ---------- */
.block { padding: 76px 0; }
.block + .block { border-top: 1px solid rgba(255,255,255,.09); }
.block > .lede { max-width: 56ch; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brass); color: #3a2a0c; font-weight: 800; margin-bottom: 14px; }
.steps p, .feat p { color: var(--mist); margin: 0; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 32px; }
.prose { max-width: 680px; }
.prose p, .prose li { color: #d8e6df; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .45em; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.ideas .letter { font-size: 1.35rem; }
.ideas .letter:nth-child(even) { transform: rotate(1deg); }
.ideas .letter:nth-child(odd) { transform: rotate(-.8deg); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.13); padding: 16px 0; max-width: 760px; }
.faq summary { font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass-hi); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--mist); margin: .6em 0 0; max-width: 64ch; }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--snow); color: var(--ink); padding: 40px 36px; border: 12px solid transparent; border-image: var(--airmail) 16; }
.cta-band h2 { margin: 0; }
.cta-band p { color: var(--ink-soft); margin: .4em 0 0; }
@media (max-width: 900px) { .steps, .feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .feat { grid-template-columns: 1fr; gap: 26px; } .cta-band { grid-template-columns: 1fr; padding: 28px 20px; } .block { padding: 56px 0; } }

/* ---------- footer, toast, misc ---------- */
footer { padding: 32px 0 48px; color: #a6c0b5; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.09); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
footer a { color: var(--mist); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 80; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; transition: opacity .2s, transform .2s; transform: translateY(8px); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: none; }
.mine-list a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 12px 14px; border-radius: 12px; background: #f1eadc; margin-top: 8px; color: var(--ink) !important; font-weight: 700; }
.legal { max-width: 700px; padding: 24px 0 64px; }
.legal p, .legal li { color: #d8e6df; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal a { color: var(--brass-hi); }

/* ---------- paid extras ---------- */
.door.gold, html.golden .door:not(.empty) { background: linear-gradient(135deg, #fff1b5, #dcae4c 30%, #a8771f 55%, #f6dc8e 75%, #b4842a); background-size: 220% 220%; animation: foil 5s ease-in-out infinite; --door-ink: #3a2a0c; }
@keyframes foil { 50% { background-position: 100% 50%; } }
html.golden .house { box-shadow: 0 0 0 4px var(--brass), 0 30px 60px rgba(0,0,0,.35); }
.btn-gold { background: linear-gradient(180deg, #ffe08a, #dfa83a); color: #3a2606; box-shadow: 0 3px 0 #a87a22; }
.upsell { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; background: #fbf0d4; border-radius: 16px; padding: 14px; margin-top: 14px; }
.upsell h3 { font-size: 1.08rem; margin: 0 0 4px; }
.upsell .small { margin: 0 0 10px; }
.door-mini { width: 58px; aspect-ratio: 4/5; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #3a2a0c; }
.door-mini.gold { background: linear-gradient(135deg, #fff1b5, #dcae4c 35%, #a8771f 60%, #f6dc8e); background-size: 220% 220%; animation: foil 4s ease-in-out infinite; }
.card.upsell-card { background: #fbf0d4; }

@media (max-width: 640px) {
  .top nav [data-enter-code], .top nav a[href="#how"], .top nav a[href="#faq"] { display: none; }
  .top nav a, .top nav button { padding: 7px 10px; font-size: .9rem; }
}
@media (max-width: 480px) {
  .top { gap: 6px; }
  .brand { font-size: .95rem; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .top nav a, .top nav button { padding: 6px 8px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- share sheet: the link as your friends will see it ---------- */
.big-send { margin-top: 14px; font-size: 1.08rem; padding: 16px 22px; }

/* friend → make your own, right inside the sheet */
.mine-cta { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--pine); color: var(--snow); }
.mine-cta h3 { color: var(--snow); font-size: 1.3rem; margin: 0 0 4px; font-variation-settings: "wdth" 82; }
.mine-cta p { color: var(--mist); font-size: .92rem; margin: 0 0 12px; }
.mine-cta .quick { max-width: none; }

/* ---------- Plus ---------- */
.plus-teaser { display: flex; gap: 6px; margin: 10px 0 12px; }
.plus-teaser i, .swatch-lock { width: 30px; height: 36px; border-radius: 6px; position: relative; box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); display: inline-block; }
.plus-teaser i::after, .swatch-lock::after { content: ""; position: absolute; left: 50%; top: 38%; translate: -50% 0; width: 52%; height: 12%; border-radius: 9px; background: rgba(0,0,0,.45); }
.finish-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.offer-walls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 6px; }
.offer-walls div { border-radius: 10px; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.offer-walls i { aspect-ratio: 4/5; border-radius: 3px; position: relative; }
.offer-walls i::before { content: ""; position: absolute; left: 25%; right: 25%; top: 12%; height: 16%; border-radius: 2px; background: #d9b25a; }
.offer-walls small { grid-column: 1 / -1; text-align: center; font-weight: 700; font-size: .8rem; margin-top: 2px; }
.ow-midnight { background: #b9c0cc; } .ow-midnight i { background: #26335c; } .ow-midnight small { color: #1c2648; }
.ow-frost { background: #5d7f93; } .ow-frost i { background: #e6eef3; } .ow-frost small { color: #fff; }
.ow-gingerbread { background: #f3e6d3; } .ow-gingerbread i { background: #b0703f; } .ow-gingerbread small { color: #6b3f1f; }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.perks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.perks li > span:first-child { font-size: 1.2rem; line-height: 1.3; }
.perks b { display: block; }
.perks small { color: var(--ink-soft); font-size: .88rem; }
.price-note { text-align: center; font-size: .86rem; color: var(--ink-soft); margin: 10px 0 0; }
.panel.plus-on h3::after { content: "Plus"; margin-left: 8px; font-size: .72rem; vertical-align: 3px; padding: 2px 8px; border-radius: 99px; background: var(--brass); color: #3a2a0c; }
.headline-form { display: flex; gap: 8px; margin-top: 8px; }
.headline-form input { flex: 1; min-width: 0; padding: 9px 12px; }

/* ---------- keepsake letter book ---------- */
.book { position: fixed; inset: 0; z-index: 60; overflow: auto; background: #efe7d7; color: var(--ink); padding: 24px 16px 60px; }
.book-inner { max-width: 640px; margin: 0 auto; }
.book-cover { text-align: center; padding: 28px 16px 24px; border: 12px solid transparent; border-image: var(--airmail) 16; background: var(--snow); margin-bottom: 22px; }
.book-cover h1 { color: var(--ink); font-size: clamp(2rem, 7vw, 3.2rem); }
.book-cover p { color: var(--ink-soft); margin: 0; }
.book .letter { margin: 0 0 18px; break-inside: avoid; font-size: 1.45rem; }
.book .letter .day { display: block; font-family: var(--display); font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.book-bar { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; z-index: 2; }
@media print {
  body > *:not(.book) { display: none !important; }
  .book { position: static; padding: 0; background: #fff; }
  .book-bar { display: none; }
  .book .letter { transform: none !important; }
}

/* ---------- Wax Seal finish ---------- */
:root { --foil: linear-gradient(135deg, #f6e3a6 0%, #d6ab52 28%, #a7782c 52%, #e9c97a 74%, #b8893a 100%); }
[data-style="wax"] {
  --door: #8a242c; --door-2: #5c141b; --door-ink: #f8e4da; --cabinet: #3a1a14; --cabinet-2: #22100c;
  --door-a: #8a242c; --door-b: #7a1f27; --door-c: #8a242c; --door-d: #7a1f27; --frame: #3a1a14; --wall: #22100c;
  --bg1: #2a0e12; --bg2: #3a1418;
}
html[data-style="wax"] body { background: radial-gradient(130% 70% at 50% 0, #3d1519, #1c090c 70%); }
[data-style="wax"] .house { box-shadow: inset 0 0 0 2px #7a5426, 0 30px 60px rgba(0,0,0,.55); }
[data-style="wax"] .door .plate { background: var(--foil); }
[data-style="wax"] .door:not(.empty) .tag { background: var(--foil); color: #3a2708; box-shadow: 0 1px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5); }
[data-style="wax"] .door .env, [data-style="wax"] .door .flag, [data-style="wax"] .door .slit, [data-style="wax"] .door .key { display: none; }
[data-style="wax"] .door.empty { background: linear-gradient(170deg, #4a1b1f, #34111a); box-shadow: inset 0 0 0 1.5px rgba(214,171,82,.28); }
.door .seal { display: none; position: absolute; left: 50%; top: 49%; translate: -50% -50%; width: 46%; aspect-ratio: 1; background: url(/seal.svg) center / contain no-repeat; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
[data-style="wax"] .door:not(.empty) .seal { display: block; }

/* ---------- upgrade entry in the owner panel ---------- */
.up-env { margin-top: 4px; border-radius: 22px; background: #5a1219; color: var(--snow); overflow: hidden; position: relative; text-align: center; padding-bottom: 20px; }
.up-env .flap { height: 104px; background: linear-gradient(160deg, #96303a, #5a1219); clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%); }
.up-env .wseal { position: absolute; left: 50%; top: 66px; translate: -50% 0; width: 72px; height: 72px; background: url(/seal.svg) center / contain no-repeat; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.up-env h3 { color: var(--snow); font-size: 1.45rem; line-height: 1.05; margin: 44px 18px 0; font-variation-settings: "wdth" 85; padding: 0; }
.up-env p { color: #ecd2c9; font-size: .92rem; margin: 8px auto 14px; max-width: 30ch; padding: 0 12px; }
.mini-stamps { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.mini-stamps span { width: 84px; padding: 5px; background: radial-gradient(circle, transparent 2.6px, var(--c) 3px) 0 0 / 9px 9px; }
.mini-stamps b { display: block; background: var(--c); color: var(--t); font-size: .7rem; line-height: 1.2; padding: 6px 2px 5px; font-weight: 700; }
.mini-stamps b strong { display: block; font-size: 1.05rem; font-weight: 800; }
.btn-foil { background: var(--foil); color: #2b1d07; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #7b5619; }
.btn-foil:hover { filter: brightness(1.05); }
.up-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(125,29,36,.35); box-shadow: inset 0 0 0 1px rgba(233,201,122,.25); color: #f3dfd6; font-size: .92rem; text-align: left; width: 100%; border: 0; }
.up-line i { flex: 0 0 34px; height: 34px; background: url(/seal.svg) center / contain no-repeat; }
.up-line b { color: #f6e3a6; white-space: nowrap; margin-left: auto; }
.panel.tier h3 .badge { margin-left: 8px; font-size: .72rem; vertical-align: 3px; padding: 2px 9px; border-radius: 99px; background: var(--foil); color: #3a2a0c; }

/* ---------- postage offer sheet ---------- */
.modal > .card.postage { background: #3a2f27; color: var(--snow); }
.postage .x { background: #52443a; color: #f0e4d2; }
.postage h3 { color: var(--snow); font-size: 1.8rem; font-variation-settings: "wdth" 80; }
.postage .sub { color: #cbbfae; font-size: .9rem; margin: 4px 0 14px; }
.perf { padding: 7px; background: radial-gradient(circle, transparent 4px, var(--c) 4.5px) 0 0 / 13px 13px; margin-bottom: 12px; position: relative; }
.stamp { background: var(--c); padding: 15px; outline: 1px solid var(--line); outline-offset: -6px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.stamp .nm { font-weight: 800; font-size: 1.35rem; font-variation-settings: "wdth" 85; line-height: 1; }
.stamp .val { font-weight: 800; font-size: 1.9rem; font-variation-settings: "wdth" 75; line-height: .9; text-align: right; }
.stamp .val small { display: block; font-size: .64rem; font-weight: 600; opacity: .75; font-variation-settings: "wdth" 100; margin-top: 3px; }
.stamp .val s { display: block; font-size: .8rem; opacity: .6; font-weight: 600; }
.stamp ul { grid-column: 1 / -1; list-style: none; padding: 0; margin: 10px 0 0; font-size: .86rem; line-height: 1.38; }
.stamp li { display: flex; gap: 8px; padding: 3px 0; }
.stamp li::before { content: "✓"; font-weight: 800; flex: 0 0 auto; opacity: .85; }
.stamp .btn { grid-column: 1 / -1; margin-top: 12px; padding: 12px; font-size: .98rem; }
.s-first { --c: #f4ecdc; --line: rgba(18,53,43,.25); color: var(--ink); }
.s-first .val { color: var(--pine); }
.s-first .btn { background: var(--pine); color: var(--snow); box-shadow: 0 3px 0 #0a1f19; }
.s-first .owned { grid-column: 1 / -1; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--pine); }
.s-wax { --c: #7d1d24; --line: rgba(246,220,207,.35); color: #f8e4da; }
.ribbon { position: absolute; right: 22px; top: -5px; z-index: 2; background: var(--foil); color: #2b1d07; font-size: .7rem; font-weight: 800; padding: 5px 10px 8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.postage .fine { font-size: .76rem; color: #b5a793; text-align: center; margin: 2px 0 0; }

/* ---------- photo + voice in the fill form ---------- */
.attach { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.attach.one { grid-template-columns: 1fr; }
.attach > button, .attach > label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 14px; border: 1.5px dashed #c9b893; background: #fbf6ea; color: var(--ink); font-weight: 700; font-size: .9rem; cursor: pointer; min-height: 52px; text-align: center; }
.attach input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attach .has { border-style: solid; border-color: var(--brass); background: #fff4d8; }
.attach-prev { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.attach-prev img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.attach-prev audio { height: 36px; flex: 1; min-width: 0; }
.attach-prev .rm { border: 0; background: none; color: #b3261e; font-weight: 700; font-size: .85rem; padding: 6px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e23b2e; animation: recblink 1s steps(2) infinite; }
@keyframes recblink { 50% { opacity: .2; } }
.tier-hint { font-size: .82rem; color: #8a6a3a; margin: 6px 0 0; }

/* ---------- letter with photo + voice ---------- */
.letter .polaroid { float: right; width: 46%; max-width: 190px; background: #fff; padding: 6px 6px 8px; margin: 2px -4px 10px 12px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.35); transform: rotate(3deg); }
.letter .polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.letter .polaroid.loading img { visibility: hidden; }
.voice { clear: both; display: flex; align-items: center; gap: 10px; margin-top: 12px; background: #f3e8d6; border-radius: 999px; padding: 6px 14px 6px 6px; font-family: var(--display); }
.voice .play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #7d1d24; display: grid; place-items: center; flex: 0 0 auto; }
.voice .play::after { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.voice.on .play::after { border: 0; width: 10px; height: 12px; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.voice .bar { flex: 1; height: 6px; border-radius: 9px; background: #e2d2b8; overflow: hidden; }
.voice .bar i { display: block; height: 100%; width: 0; background: #7d1d24; }
.voice small { font-size: .78rem; font-weight: 700; color: #6b4a3a; min-width: 30px; text-align: right; }
.book .letter .polaroid { width: 38%; }

/* ---------- breaking the seal ---------- */
.seal-stage { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 45%, rgba(74,26,31,.92), rgba(16,6,8,.96)); animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } }
.seal-stage .sv { position: relative; width: min(56vw, 230px); aspect-ratio: 1; }
.seal-stage .half { position: absolute; inset: 0; background: url(/seal.svg) center / contain no-repeat; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)); }
.seal-stage .half.l { clip-path: polygon(0 0, 52% 0, 44% 38%, 56% 60%, 46% 100%, 0 100%); }
.seal-stage .half.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 46% 100%, 56% 60%, 44% 38%); }
.seal-stage p { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; color: #f3dcd2; font-weight: 700; font-size: 1.05rem; }
.seal-stage p small { display: block; color: #c79d93; font-weight: 600; font-size: .85rem; margin-top: 4px; }
.seal-stage.press .sv { animation: press .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes press { 40% { transform: scale(.92); } }
.seal-stage.break .half.l { animation: hl .7s cubic-bezier(.2,.8,.3,1) forwards; }
.seal-stage.break .half.r { animation: hr .7s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes hl { to { transform: translate(-46%, 30%) rotate(-28deg); opacity: 0; } }
@keyframes hr { to { transform: translate(46%, 26%) rotate(24deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .seal-stage.break .half { animation-duration: .01s !important; } .seal-stage.press .sv { animation: none; } }
.letter:has(.polaroid) > .stamp { display: none; }
.attach > label span, .attach > button { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- hero tour: what's behind the doors ---------- */
.demo .inside { container-type: size; background: radial-gradient(120% 90% at 50% 30%, #2b1d14, #120c08); }
.door-slot.opened .door > * { opacity: 0; transition: opacity .25s .15s; }
.demo .door-slot.opened .door { box-shadow: -6px 4px 12px rgba(0,0,0,.45); }
.pk { position: relative; }
.door-slot.opened .pk { animation: peek .55s .3s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes peek { from { transform: translateY(18%) scale(.82); opacity: 0; } }
.pk-letter { width: 82cqw; padding: 7cqw 6cqw 5cqw; background: #fffaf0; color: #2a2320; font-family: var(--hand); border-top: 4cqw solid transparent; border-image: var(--airmail) 8; rotate: -3deg; box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.6); }
.pk-letter p { margin: 0; font-size: 13.5cqw; line-height: 1.02; font-weight: 600; }
.pk-letter span { display: block; text-align: right; font-size: 11cqw; color: #7d1d24; margin-top: 2cqw; }
.pk-photo { width: 68cqw; background: #fff; padding: 4cqw 4cqw 13cqw; rotate: 4deg; box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.6); }
.pk-photo i { display: block; aspect-ratio: 1; background: linear-gradient(155deg, #9fc3dd 0 40%, transparent 40%), linear-gradient(200deg, transparent 52%, #f7fbff 52%), linear-gradient(#dce9f2, #eef4f8); position: relative; }
.pk-photo i::before { content: ""; position: absolute; left: 22%; bottom: 10%; width: 24%; height: 38%; border-radius: 40% 40% 8% 8%; background: #b13a3a; box-shadow: 28cqw 2cqw 0 -1cqw #2d5a8a; }
.pk-photo i::after { content: ""; position: absolute; left: 27%; bottom: 46%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #f1c9a5; box-shadow: 28cqw 3cqw 0 0 #e3b48e; }
.pk-photo span { position: absolute; left: 0; right: 0; bottom: 2cqw; text-align: center; font: 600 10cqw var(--hand); color: #444; white-space: nowrap; }
.pk-voice { width: 86cqw; display: flex; align-items: center; gap: 4cqw; padding: 5cqw 7cqw 5cqw 5cqw; border-radius: 99px; background: #f3e8d6; box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.6); }
.pk-voice b { flex: 0 0 20cqw; aspect-ratio: 1; border-radius: 50%; background: #7d1d24; display: grid; place-items: center; }
.pk-voice b::after { content: ""; border-left: 6cqw solid #fff; border-top: 4cqw solid transparent; border-bottom: 4cqw solid transparent; margin-left: 1.5cqw; }
.pk-voice .w { flex: 1; height: 18cqw; display: flex; align-items: center; gap: 1.6cqw; }
.pk-voice .w i { flex: 1; height: var(--h); border-radius: 2px; background: #7d1d24; transform-origin: center; }
.door-slot.opened .pk-voice .w i { animation: wave .9s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.02s); }
@keyframes wave { to { transform: scaleY(.35); } }
.pk-voice em { font: 700 8.5cqw var(--display); font-style: normal; color: #6b4a3a; }
.pk-seal { width: 84cqw; aspect-ratio: 3 / 2; rotate: -4deg; perspective: 400px; }
.pk-seal > * { position: absolute; }
.pk-seal .e-back { inset: 0; background: #ddcfb2; box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.6); }
.pk-seal .e-letter { left: 7%; right: 7%; top: 6%; height: 88%; z-index: 1; background: #fffaf0; padding: 5cqw 6cqw; font-family: var(--hand); color: #2a2320; border-top: 3cqw solid transparent; border-image: var(--airmail) 8; transition: transform .8s cubic-bezier(.2,.9,.3,1.1); }
.pk-seal .e-letter p { margin: 0; font-size: 8.4cqw; line-height: 1.05; font-weight: 600; }
.pk-seal .e-letter span { display: block; text-align: right; font-size: 7.5cqw; color: #7d1d24; margin-top: 1cqw; }
.pk-seal .e-front { inset: 0; z-index: 2; background: #f3ead8; clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }
.pk-seal .e-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49.6%, rgba(0,0,0,.06) 50%, transparent 50.4%), linear-gradient(-135deg, transparent 49.6%, rgba(0,0,0,.06) 50%, transparent 50.4%); }
.pk-seal .e-flap { left: 0; right: 0; top: 0; height: 60%; z-index: 3; background: linear-gradient(#ebdfc6, #e2d3b4); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .6s .35s cubic-bezier(.4,0,.2,1), z-index 0s .65s; }
.pk-seal .seal-l, .pk-seal .seal-r { left: 50%; top: 58%; translate: -50% -50%; width: 30cqw; aspect-ratio: 1; z-index: 4; background: url(/seal.svg) center / contain no-repeat; filter: drop-shadow(0 1.5cqw 2cqw rgba(0,0,0,.4)); transition: transform .5s cubic-bezier(.2,.8,.3,1), opacity .5s .1s; }
.pk-seal .seal-l { clip-path: polygon(0 0, 52% 0, 44% 38%, 56% 60%, 46% 100%, 0 100%); }
.pk-seal .seal-r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 46% 100%, 56% 60%, 44% 38%); }
.door-slot.opened .pk-seal .seal-l, .door-slot.opened .pk-seal .seal-r { animation: sealpop .5s .75s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes sealpop { from { scale: 1.6; opacity: 0; } }
.pop.unseal .pk-seal .seal-l { transform: translate(-40%, 25%) rotate(-35deg); opacity: 0; }
.pop.unseal .pk-seal .seal-r { transform: translate(40%, 20%) rotate(30deg); opacity: 0; }
.pop.unseal .pk-seal .e-flap { transform: rotateX(180deg); z-index: 0; }
.pop.unseal .pk-seal .e-letter { transform: translateY(-82%); transition-delay: .9s; z-index: 1; }
.pop .pk-seal .e-letter { transition-delay: 0s; }
.pk-ticket { width: 84cqw; padding: 6cqw 6cqw 6cqw 12cqw; background: var(--foil); color: #3a2708; rotate: 3deg; box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.6); -webkit-mask: radial-gradient(circle 4cqw at 0 50%, transparent 98%, #000) , linear-gradient(#000, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 4cqw at 0 50%, transparent 98%, #000); }
.pk-ticket small { display: block; font-weight: 800; font-size: 9cqw; letter-spacing: .5px; opacity: .75; }
.pk-ticket b { display: block; font-family: var(--hand); font-size: 15cqw; line-height: 1; font-weight: 700; }

/* the hero door's contents pop out toward you */
.house { isolation: isolate; }
.house::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 90% at 50% 50%, rgba(8,4,2,.5), rgba(8,4,2,.82)); opacity: 0; transition: opacity .6s; pointer-events: none; z-index: 1; }
.house.popping::after { opacity: 1; }
.pop { position: fixed; z-index: 70; container-type: size; display: grid; place-items: center; pointer-events: none; transform-origin: 50% 50%; transform-style: preserve-3d; perspective: 600px; will-change: transform; }
.pop-in { display: grid; place-items: center; width: 100%; height: 100%; filter: drop-shadow(0 6cqw 6cqw rgba(0,0,0,.45)); }
.pop-in .pk { animation: none !important; }
.pop-shadow { position: absolute; left: 14%; right: 14%; bottom: 6%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); z-index: -1; filter: blur(2px); }
.pop.playing .pk-voice .w i { animation: wave .45s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.01s); }
.pop .pk-voice .w i { animation: none; }
.pop-hint { position: absolute; left: 50%; top: 100%; translate: -50% 0; margin-top: 8%; white-space: nowrap; font: 700 12cqw var(--display); color: #fff; background: rgba(125,29,36,.92); padding: 3cqw 8cqw; border-radius: 99px; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.4); animation: hintpulse 1.2s ease-in-out infinite; }
@keyframes hintpulse { 50% { scale: 1.06; } }
.pop.playing .pk-voice b::after { border: 0; width: 6cqw; height: 8cqw; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
@media (prefers-reduced-motion: reduce) { .pop { display: none; } }

.pop-back { position: fixed; inset: 0; z-index: 69; pointer-events: none; background: radial-gradient(75% 65% at 50% 50%, rgba(12,30,24,.28), rgba(5,14,11,.62)); opacity: 0; transition: opacity .5s; }
.pop-back.on { opacity: 1; }

.demo .door-slot { cursor: pointer; }
.demo .door:hover { filter: brightness(1.06); }

/* ---------- stamp art + letter papers + the fill-a-door letter ---------- */
svg.art { display: block; width: 100%; height: 100%; }
.inside .letter-mini svg.art { width: 46%; height: auto; }
.letter .stamp { padding: 0; grid-template-columns: auto; gap: 0; }
.letter .stamp svg.art { width: 38px; height: 38px; max-width: none; }

/* papers: every .letter can wear one; airmail is the original */
.letter.pp-kraft { background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 1px, transparent 2px) 0 0 / 9px 11px, linear-gradient(170deg, #d6b07d, #c49a64); color: #3b2816; border: 8px solid #b88a55; border-image: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.letter.pp-kraft .sig { color: #5c4126; }
.letter.pp-tartan { border: 10px solid transparent; border-image: none; color: #2a2522;
  background: linear-gradient(#fffaf0, #fffaf0) padding-box,
    repeating-linear-gradient(0deg, rgba(23,74,50,.6) 0 5px, transparent 5px 9px, rgba(255,214,107,.7) 9px 10px, transparent 10px 16px) border-box,
    repeating-linear-gradient(90deg, rgba(23,74,50,.6) 0 5px, transparent 5px 9px, rgba(255,214,107,.7) 9px 10px, transparent 10px 16px) border-box,
    #b8262f border-box; }
.letter.pp-night { color: #f4f0e6; border: 8px solid #26355c; border-image: none;
  background: radial-gradient(circle, rgba(255,255,255,.75) 0 1.2px, transparent 1.6px) 0 0 / 23px 19px, radial-gradient(circle, rgba(255,255,255,.4) 0 1px, transparent 1.4px) 11px 9px / 31px 27px, linear-gradient(180deg, #1c2747, #2b3d6b); }
.letter.pp-night .sig { color: #c6d2ee; }
.letter.pp-peppermint { border-image: repeating-linear-gradient(45deg, #d8323b 0 7px, #fff 7px 14px) 12; background: #fffdf8; }
.letter.pp-pine { color: #2a2522; border: 8px solid #1f4a3a; border-image: none; outline: 1.5px solid #d4a94a; outline-offset: -5px;
  background: repeating-linear-gradient(180deg, transparent 0 calc(1.22em - 1px), rgba(31,74,58,.16) calc(1.22em - 1px) 1.22em) 0 .4em, #f8f1e2; }

/* the fill-a-door sheet */
.fill-submit { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); z-index: 1; margin: 18px -22px 0; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(251,248,242,0), var(--snow) 26%); }
.fill-submit .err:empty { display: none; }
/* the chosen paper peeks out of the mailbox slit, and lines the letter behind an opened door */
.door .env.ppm-kraft, .inside .letter-mini.ppm-kraft { background: #c9a06a; border-image: none; border-color: #9c6f3c; }
.door .env.ppm-night, .inside .letter-mini.ppm-night { background: #25365f; border-image: none; border-color: #3d5490; }
.door .env.ppm-pine, .inside .letter-mini.ppm-pine { background: #f8f1e2; border-image: none; border-color: #1f4a3a; }
.door .env.ppm-tartan, .inside .letter-mini.ppm-tartan { background: #fffaf0; border-image: repeating-linear-gradient(90deg, #b8262f 0 4px, #1f5a3d 4px 7px, #e8c46a 7px 8px) 6; }
.door .env.ppm-peppermint, .inside .letter-mini.ppm-peppermint { background: #fffdf8; border-image: repeating-linear-gradient(45deg, #d8323b 0 5px, #fff 5px 10px) 6; }
.modal .letter.compose { margin-top: 16px; padding: 14px 16px 12px; min-height: 0; white-space: normal; transition: background .25s, color .25s; }
.compose:focus-within { box-shadow: 0 10px 24px -14px rgba(40,30,20,.55); }
.compose-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.compose .dear { font-size: 1.45rem; padding-top: 6px; }
.compose .stamp { float: none; flex: 0 0 auto; margin: -2px -2px 0 0; }
.compose .stamp.thud { animation: thud .35s cubic-bezier(.2,1.5,.4,1); }
@keyframes thud { 0% { transform: rotate(4deg) scale(1.35); opacity: .4; } 100% { transform: rotate(4deg) scale(1); } }
.compose textarea { display: block; width: 100%; min-height: 120px; margin: 6px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; line-height: 1.22; resize: none; overflow: hidden; outline: none; }
.compose textarea::placeholder, .compose .sig input::placeholder { color: currentColor; opacity: .45; }
.compose .sig { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; margin-top: 4px; }
.compose .sig input { width: 9.5em; padding: 0 2px; border: 0; border-bottom: 1.5px dashed currentColor; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: 1.2rem; outline: none; }
.compose .sig input:focus { border-bottom-style: solid; }
.compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }
.compose-foot .check { margin-top: 8px; font-size: .92rem; }
.compose-foot .count { padding-top: 8px; }

/* door picker: a little copy of the mailbox wall */
.pick-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, var(--cabinet), var(--cabinet-2)); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 6px 14px -8px rgba(0,0,0,.45); }
.pick { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 5px; color: var(--door-ink); cursor: pointer;
  background: linear-gradient(180deg, var(--door), var(--door-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.16), 0 1px 0 rgba(0,0,0,.28);
  transition: transform .15s cubic-bezier(.2,1.4,.4,1), box-shadow .15s, filter .15s; }
.pick:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); }
.pick .plate { position: absolute; left: 50%; top: 12%; translate: -50% 0; min-width: 62%; padding: 0 3px; border-radius: 3px; text-align: center;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #3a2a0c; font-weight: 800; font-size: .78rem; line-height: 1.35; font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.6); }
.pick .slit { position: absolute; left: 20%; right: 20%; top: 58%; height: 7%; border-radius: 99px; background: #23170f; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
.pick .flag { position: absolute; right: 12%; top: 46%; width: 3px; height: 30%; border-radius: 2px; background: var(--red); }
.pick .flag::before { content: ""; position: absolute; right: 0; top: 0; width: 260%; height: 38%; background: var(--red); border-radius: 2px 0 0 2px; }
.pick.filled { cursor: not-allowed; filter: saturate(.5) brightness(.82); opacity: .6; }
.pick[aria-checked=true] { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--snow), 0 0 0 4px var(--red), 0 8px 14px -6px rgba(0,0,0,.55); z-index: 1; }
.pick[aria-checked=true] .slit { background: var(--red); box-shadow: none; }
.pick-cap { margin: 8px 0 0; text-align: center; }
@media (max-width: 420px) { .pick-wall { grid-template-columns: repeat(6, 1fr); } }

.stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stickers button { position: relative; padding: 14%; aspect-ratio: 1; border: 0; border-radius: 4px; background: #fff; outline: 2px dashed #e1d6c2; outline-offset: -5px; box-shadow: 0 1px 0 #e6dfd1, 0 2px 6px -3px rgba(60,40,20,.25); transition: transform .15s cubic-bezier(.2,1.4,.4,1); cursor: pointer; }
.stickers button:hover { transform: translateY(-2px); }
.stickers button[aria-pressed=true] { outline-color: var(--red); outline-style: solid; background: #fff6f3; transform: rotate(-4deg) translateY(-2px); box-shadow: 0 8px 14px -8px rgba(160,40,30,.55); }
/* a red postmark lands on the chosen stamp */
.stickers button[aria-pressed=true]::after { content: ""; position: absolute; right: -9px; top: -9px; width: 30px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23d0342c' stroke-width='2'%3E%3Ccircle cx='15' cy='15' r='11.5'/%3E%3Ccircle cx='15' cy='15' r='7.5' stroke-width='1.2'/%3E%3Cpath d='M10.5 15.5l3 3 6-7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: postmark .3s cubic-bezier(.2,1.6,.4,1); }
@keyframes postmark { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } }

.papers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.papers button { display: grid; gap: 5px; justify-items: center; padding: 0; border: 0; background: none; color: var(--ink-soft); font: 600 .74rem/1.15 var(--display); text-align: center; cursor: pointer; }
.papers .letter { display: block; width: 100%; min-height: 0; aspect-ratio: 4 / 3; padding: 0; border-width: 5px; transition: transform .15s; box-shadow: 0 2px 6px -3px rgba(60,40,20,.35); }
.papers .letter.pp-airmail { border-image-slice: 12; }
.papers .letter.pp-tartan { border-width: 6px; }
.papers button[aria-pressed=true] { color: var(--ink); }
.papers button[aria-pressed=true] .letter { transform: translateY(-3px) rotate(-3deg); box-shadow: 0 0 0 2px var(--snow), 0 0 0 4px var(--red), 0 8px 14px -8px rgba(0,0,0,.5); }
@media (max-width: 420px) { .stickers { gap: 6px; } .papers { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; } .papers .letter { aspect-ratio: 5 / 3; } }

/* daily reminder */
.remind { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; margin-top: 12px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.07); }
.remind .bell { width: 24px; height: 24px; color: var(--snow); }
.remind b { display: block; color: var(--snow); }
.remind span { display: block; font-size: .9rem; color: var(--mist); }
.remind-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.btn-cream { background: #f6eedd; color: var(--ink); box-shadow: 0 3px 0 #cdbb98; padding: 12px 10px; font-size: .92rem; text-align: center; }
.btn-cream:hover { filter: brightness(1.03); }
@media (prefers-reduced-motion: reduce) { .compose .stamp.thud, .stickers button[aria-pressed=true]::after { animation: none; } }
.book .letter.pp-night .day { color: #c6d2ee; }
@media print { .letter.pp-night { color: #2a2522; background: #fff; border-color: #25365f; } .letter.pp-night .sig, .book .letter.pp-night .day { color: #56645f; } }

/* ---------- share sheet ---------- */
.share-sheet .share-sub { margin: 0; }
/* the message itself is the hero: a postcard you can rewrite before it goes out */
.modal .letter.share-card { margin: 16px 0 0; padding: 14px 16px 12px; min-height: 0; white-space: normal; transform: rotate(-.6deg); box-shadow: 0 12px 22px -16px rgba(40,30,20,.6); }
.share-card textarea { display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: 1.4rem; line-height: 1.22; resize: none; overflow: hidden; outline: none; }
.share-card:focus-within { transform: none; }
.share-card .share-link { display: block; margin-top: 8px; font: 600 .82rem/1.3 var(--display); color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tones { display: flex; gap: 6px; margin-top: 12px; }
.tones button { padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink-soft); font: 600 .86rem var(--display); cursor: pointer; }
.tones button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: var(--snow); }
.share-sheet .big-send { margin-top: 16px; }
.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.card a.route { display: grid; justify-items: center; gap: 4px; padding: 11px 4px 9px; border-radius: 4px; background: #fff; outline: 2px dashed #e1d6c2; outline-offset: -4px; color: var(--ink); text-decoration: none; font: 600 .76rem/1.1 var(--display); box-shadow: 0 1px 0 #e6dfd1; transition: transform .15s cubic-bezier(.2,1.4,.4,1); }
.card .route svg { width: 26px; height: 26px; color: var(--rc); }
.card .route:hover, .card .route:focus-visible { transform: rotate(-3deg) translateY(-2px); outline-color: var(--rc); outline-style: solid; }
.copy-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 10px; }
.copy-row .btn { padding: 11px 8px; font-size: .9rem; }
.story-strip { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #d8ccb6; }
.story-thumb { width: 92px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #12352b, #1a4538); box-shadow: 0 8px 16px -10px rgba(0,0,0,.5); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-strip b { display: block; }
.story-strip .small { margin: 2px 0 10px; }
.story-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 360px) { .routes { gap: 6px; } .card a.route { font-size: .7rem; } }

/* ---------- welcome back (home page, owners only) ---------- */
.back-wrap { max-width: 470px; margin: 0 0 26px; }
.back-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 16px 14px; border-radius: 18px; background: var(--snow); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0,0,0,.7); transition: transform .15s; }
.back-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--airmail); }
.back-card:hover { transform: translateY(-2px); }
.back-card:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; }
.back-door { position: relative; display: block; width: 46px; height: 56px; border-radius: 8px; background: linear-gradient(180deg, var(--door), var(--door-2)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 0 0 3px var(--cabinet); }
.back-door b { position: absolute; left: 50%; top: 7px; translate: -50% 0; min-width: 26px; padding: 1px 4px; border-radius: 4px; background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #3a2a0c; font-size: .8rem; font-weight: 800; text-align: center; line-height: 1.3; }
.back-door i { position: absolute; left: 18%; right: 18%; top: 31px; height: 5px; border-radius: 99px; background: #23170f; }
.back-card.ready .back-door::after { content: ""; position: absolute; right: -9px; top: 6px; width: 4px; height: 20px; border-radius: 2px; background: var(--red) }
.back-txt { min-width: 0; display: grid; gap: 1px; }
.back-txt small { color: var(--ink-soft); font-size: .84rem; font-weight: 600; }
.back-txt strong { font-size: 1.08rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-txt span { color: var(--ink-soft); font-size: .88rem; line-height: 1.3; }
.back-card.ready .back-txt span { color: #b3261e; font-weight: 700; }
.back-more { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--mist); font: 600 .9rem var(--display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* the letter behind an opened door is the thing you tap to read */
button.letter-mini { padding: 0; cursor: pointer; font: inherit; color: inherit; transition: transform .2s cubic-bezier(.2,1.4,.4,1), box-shadow .2s; }
.door-slot.opened button.letter-mini { animation: letterpeek .5s .35s cubic-bezier(.3,1.5,.5,1) both; box-shadow: 0 6px 12px -6px rgba(0,0,0,.8); }
.door-slot.opened button.letter-mini:hover, .door-slot.opened button.letter-mini:focus-visible { transform: rotate(-2deg) translateY(-6%) scale(1.08); box-shadow: 0 10px 16px -6px rgba(0,0,0,.9); outline: none; }
.door-slot.opened button.letter-mini:focus-visible { box-shadow: 0 0 0 3px var(--brass-hi), 0 10px 16px -6px rgba(0,0,0,.9); }
@keyframes letterpeek { from { transform: rotate(-5deg) translateY(30%) scale(.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .door-slot.opened button.letter-mini { animation: none; } }

/* read letters: the mailbox has been emptied. No envelope in the slit, flag down, a postmark where the letter was. */
:root { --postmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23c4362c' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='15.5' stroke-width='2.4'/%3E%3Ccircle cx='20' cy='20' r='11' stroke-width='1.2' stroke-dasharray='2 2.4'/%3E%3Cpath d='M13.5 20.5l4.5 4.5 8.5-9.5' stroke-width='3'/%3E%3C/svg%3E"); }
.door-slot.read .door .env { display: none; }
.door-slot.read .door:not(.empty) .flag { transform: scaleY(0); }
.door-slot.read .door::after { content: ""; position: absolute; left: 50%; top: 63%; width: 34%; aspect-ratio: 1; translate: -50% -50%; rotate: -14deg; background: var(--postmark) center / contain no-repeat; opacity: .85; mix-blend-mode: multiply; pointer-events: none; }
.door-slot.read .door { filter: saturate(.8) brightness(.97); }
.door-slot.read.opened .door::after, .door-slot.read.opened .door { filter: none; }
.door-slot.read.opened .door::after { opacity: 0; }
[data-style="wax"] .door-slot.read .door .seal { filter: grayscale(.8) brightness(.9); opacity: .55; }
/* inside an opened door, the letter you've read carries the same postmark */
.door-slot.read .letter-mini { position: relative; }
.door-slot.read .letter-mini::after { content: ""; position: absolute; right: -10%; top: -18%; width: 42%; aspect-ratio: 1; background: var(--postmark) center / contain no-repeat; rotate: 12deg; pointer-events: none; }

/* a photo or voice note travels with the letter: show it on the mailbox */
.door .media-badges { position: absolute; left: 6%; bottom: 25%; display: flex; gap: 3px; z-index: 1; }
.door .media-badges i { display: grid; place-items: center; width: clamp(16px, 2.2vw, 22px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--snow); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.door .media-badges svg { width: 62%; height: 62%; }
.door-slot.opened .door .media-badges { opacity: 0; }
[data-style="wax"] .door-slot.read .door::after { mix-blend-mode: normal; filter: brightness(0) invert(.94) sepia(.25); opacity: .9; }

/* attachments the calendar hasn't unlocked yet: visible, so friends know they exist */
.attach > button.locked { flex-direction: column; gap: 2px; border-style: dashed; border-color: #d8ccb6; background: #f4efe4; color: #8b8378; cursor: not-allowed; }
.attach > button.locked small { font-size: .72rem; font-weight: 700; color: #a08447; }
.attach > button.locked small::before { content: "\1F512  "; }
.attach-note { margin: 8px 0 0; }
/* papers: three to a row so every name fits */
.papers { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.papers .letter { aspect-ratio: 5 / 3; }

/* postage choice on the create form */
.tier-pick { margin-top: 16px; color: var(--mist); font-size: .95rem; }
.tier-pick > span { display: block; margin-bottom: 8px; }
.tier-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 470px; }
.tier-opts button { display: grid; gap: 2px; padding: 10px 8px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: var(--snow); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.tier-opts button b { font-size: .95rem; }
.tier-opts button small { font-size: .78rem; color: var(--mist); line-height: 1.3; }
.tier-opts button em { font-style: normal; font-weight: 700; color: var(--brass-hi); }
.tier-opts button:hover { border-color: rgba(255,255,255,.35); }
.tier-opts button[aria-pressed=true] { border-color: var(--brass-hi); background: rgba(232,196,110,.12); box-shadow: 0 0 0 1px var(--brass-hi); }
.tier-opts button[data-tier=owner_wax][aria-pressed=true] { border-color: #d96b5f; background: rgba(160,40,40,.22); box-shadow: 0 0 0 1px #d96b5f; }
.attach > button.locked:not([aria-disabled]) { cursor: pointer; }
.attach > button.locked:not([aria-disabled]):hover { border-color: var(--brass); background: #fbf1da; color: var(--ink); }

/* the friend who paid to unlock photos/voice for everyone: a brass-trimmed door with a rosette (owner's view) */
.door.patron { box-shadow: inset 0 0 0 2px #e9c35a, inset 0 0 0 4px rgba(122,82,14,.55), inset 0 2px 0 rgba(255,255,255,.35), 0 2px 0 rgba(0,0,0,.28), 0 0 14px -2px rgba(242,201,92,.75); }
.door.patron .tag { background: linear-gradient(180deg, #fff6dc, #f6e3ad); box-shadow: 0 0 0 1px #c99a33, 0 1px 0 rgba(0,0,0,.2); }
.door .patron-ribbon { position: absolute; right: 4%; bottom: 21%; width: 30%; aspect-ratio: 1; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); animation: rosette .7s .2s cubic-bezier(.3,1.6,.5,1) both; }
.door .patron-ribbon svg { width: 100%; height: 100%; display: block; }
.door-slot.opened .door .patron-ribbon { opacity: 0; }
@keyframes rosette { from { transform: scale(.2) rotate(-40deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .door .patron-ribbon { animation: none; } }
.gifted { display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 12px; font-weight: 600; }
.patron-dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fbe39a, #e2b13e 60%, #9a6a14); box-shadow: 0 0 0 2px #a81f2a; }

/* Guide pages (SEO) */
.guide-head { padding-bottom: 24px; }
.guide-head h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.02; margin: 0 0 14px; }
.code-inline { margin: 22px 0 8px; max-width: 470px; }
.code-inline input { text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }
.code-inline .err { color: #ffb0a6; min-height: 1.2em; }
.prose #create-form { margin: 18px 0 8px; max-width: 470px; }
.prose #create-form .err { color: #ffb0a6; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--snow); text-decoration: none; font-size: .92rem; }
.jump a:hover { background: rgba(255,255,255,.16); }
.idea-cat { scroll-margin-top: 20px; }
.idea-cat + .idea-cat { margin-top: 56px; }
ul.ideas { list-style: none; padding: 0; }
.activity-list { columns: 3 220px; column-gap: 32px; padding-left: 1.4em; margin: 22px 0; color: #d8e6df; }
.activity-list li { break-inside: avoid; margin: 0 0 10px; }
.prose ol li { margin-bottom: 6px; }
footer .links.guides { margin-top: 10px; }
footer .links a[aria-current] { color: var(--snow); }
.crumbs { padding-top: 14px; font-size: .86rem; color: var(--mist); }
.crumbs a { color: var(--mist); }
.crumbs + .hero { padding-top: 12px; }
.crumbs + .guide-head { padding-top: 28px; }
.updated { color: var(--mist); margin: -4px 0 0; }
table.compare { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: .95rem; }
table.compare th, table.compare td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
table.compare thead th { color: var(--brass); font-weight: 700; }
table.compare tbody th { color: #d8e6df; font-weight: 600; }
table.compare td { color: #d8e6df; }
@media (max-width: 520px) { table.compare { font-size: .84rem; } table.compare th, table.compare td { padding: 8px 5px; } }

/* ---------- homepage create panel ---------- */
.make-card, .back-panel { background: var(--snow); color: var(--ink); border-radius: 22px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.65); }
.make-card h2, .back-panel h2 { margin: 0; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.01em; }
.make-sub { margin: -6px 0 0; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.stepper li { display: flex; align-items: center; gap: 6px; }
.stepper i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b7ad9b; display: grid; place-items: center; font-size: .75rem; }
.stepper li.on { color: var(--ink); }
.stepper li.on i { background: var(--pine); border-color: var(--pine); color: var(--snow); }
.make-card #create-form { display: grid; gap: 12px; }
.make-card #create-form .lbl { font-size: .9rem; font-weight: 700; margin-bottom: -6px; }
.make-card #create-form input[type=text] { height: 52px; font-size: 1.05rem; }
.make-card .finish { margin-top: 0; color: var(--ink); font-weight: 700; font-size: .9rem; }
.make-card .finish button { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px #cfc6b4; }
.make-card .finish button[aria-pressed=true] { outline: 3px solid var(--pine); }
.make-card .err { margin: 0; min-height: 0; color: #b3261e; }
.btn-make { min-height: 54px; font-size: 1.05rem; border-radius: 14px; background: #d23125; }
.make-card .fine { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.make-alt { border-top: 1px dashed #d8cfbe; padding-top: 12px; font-size: .9rem; color: var(--ink-soft); }
.make-alt button, .back-panel .linkish { border: 0; background: none; padding: 10px 0; font: inherit; font-weight: 700; color: var(--pine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.home-up { background: #fdf3dc; color: #2a2016; border-radius: 22px; padding: 22px; display: grid; justify-items: center; gap: 12px; text-align: center; box-shadow: inset 0 0 0 1.5px #e2c27a, 0 5px 0 var(--brass); }
.home-up[hidden] { display: none; }
.home-up h3 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.home-up p { margin: 0; font-size: .92rem; line-height: 1.5; color: #5a4a36; }
.home-up .up-fine { font-size: .8rem; }
.up-art { display: flex; align-items: flex-end; gap: 6px; }
.up-art i { position: relative; width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg,#fbf3e2,#efdfc2 50%,#f7ead2); box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), 0 6px 12px -6px rgba(120,80,10,.6); }
.up-art i:nth-child(2) { height: 66px; }
.up-art i::before { content: ""; position: absolute; top: 9px; left: 25%; right: 25%; height: 5px; border-radius: 4px; background: rgba(90,58,10,.4); }
.up-art i::after { content: ""; position: absolute; left: 50%; top: 58%; translate: -50% -50%; width: 26px; height: 20px; border-radius: 3px; background: #6f9fb8; box-shadow: 0 0 0 3px #fbf8f2; }
.home-up.wax .up-art i { background: var(--foil); }
.home-up.wax .up-art i::after { width: 24px; height: 24px; border-radius: 50%; background: #8a242c; box-shadow: inset 0 0 0 3px #b9454e; }
.up-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; background: #f3e2b8; border-radius: 12px; padding: 4px; }
.up-tabs button { min-height: 44px; border-radius: 9px; border: 0; background: transparent; color: #2a2016; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.up-tabs button em { font-style: normal; }
.up-tabs button[aria-pressed=true] { background: #fffaf0; box-shadow: 0 1px 3px rgba(90,58,10,.3); }
.up-add { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid #b9861f; background: #fffaf0; color: #3a2508; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.up-add[aria-pressed=true] { background: #f3d98f; }

/* returning owner */
.back-panel .bp-today { display: flex; align-items: center; gap: 12px; }
.back-panel .bp-today .bp-door { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--door, #f1e8d8); color: var(--door-ink, var(--ink)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.back-panel .bp-today b { display: block; font-size: 1.15rem; line-height: 1.2; }
.back-panel .bp-today span { font-size: .88rem; color: var(--ink-soft); }
.back-panel .meter2 { display: grid; gap: 6px; font-size: .88rem; }
.back-panel .meter2 > div { display: flex; justify-content: space-between; }
.back-panel .meter2 .bar { height: 10px; border-radius: 99px; background: #ece4d4; overflow: hidden; }
.back-panel .meter2 .bar i { display: block; height: 100%; border-radius: 99px; background: #3f8f5a; }
.back-panel .btn { min-height: 52px; border-radius: 14px; }
.back-panel .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bp-warn { display: flex; align-items: center; gap: 10px; background: #fbeee9; border-radius: 12px; padding: 4px 12px; font-size: .84rem; color: #6b1f26; }
.bp-warn span { flex: 1; padding: 8px 0; }
.bp-warn a { color: #8a242c; font-weight: 700; padding: 10px 0; }
.bp-more { border-top: 1px dashed #d8cfbe; padding-top: 10px; display: grid; gap: 2px; font-size: .9rem; color: var(--ink-soft); }
.bp-more small { font-size: .82rem; font-weight: 700; }
.bp-more a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; }
.bp-more a span span { font-weight: 500; color: var(--ink-soft); }
#demo-wall.mine .door { cursor: pointer; }

/* ---------- the two kinds of link ---------- */
.tag-pill { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; border-radius: 999px; padding: 4px 10px; }
.tag-friends { color: #1f4fbf; background: #e3ebfb; }
.tag-you { color: #3a1a14; background: var(--brass-hi); }
.share-card2 { background: #fffdf8; color: var(--ink); border-radius: 18px; padding: 18px; display: grid; gap: 12px; border-top: 8px solid transparent; border-image: var(--airmail) 8; }
.kh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kh h4 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.kh svg { width: 22px; height: 22px; flex: none; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; min-width: 0; height: 48px; font-size: .92rem; }
.link-row .btn { flex: none; border-radius: 12px; }
.waxcard { background: #5c141b; color: #f8e4da; border-radius: 18px; padding: 18px; display: grid; gap: 12px; box-shadow: inset 0 0 0 1.5px #8a242c; }
.waxcard p { margin: 0; font-size: .9rem; line-height: 1.5; }
.waxcard b.w { color: #fff; }
.wb-opts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wb-opt { position: relative; display: grid; align-content: start; gap: 4px; text-align: left; min-height: 104px; padding: 14px; border-radius: 14px; border: 2px solid rgba(248,228,218,.45); background: transparent; color: #f8e4da; font: inherit; cursor: pointer; }
.wb-opt b { font-size: 1rem; color: #fff; }
.wb-opt span { font-size: .8rem; line-height: 1.4; color: #e7b9a9; }
.wb-opt svg { width: 22px; height: 22px; stroke: var(--brass-hi); }
.wb-opt::after { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(248,228,218,.6); }
.wb-opt[aria-checked=true] { border-color: var(--brass-hi); background: rgba(242,216,150,.12); }
.wb-opt[aria-checked=true]::after { border-color: var(--brass-hi); background: radial-gradient(circle, var(--brass-hi) 0 4px, transparent 5px); }
.wb-or { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 32px; height: 32px; border-radius: 50%; background: var(--brass-hi); color: #3a1a14; display: grid; place-items: center; font-size: .7rem; font-weight: 800; box-shadow: 0 0 0 4px #5c141b; pointer-events: none; }
.wb-pane { background: rgba(0,0,0,.22); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.wb-pane[hidden] { display: none; }
.wb-pane small { font-size: .82rem; line-height: 1.45; color: #e7b9a9; }
.wb-pane small b { color: #fff; }
.wb-url { font-size: .84rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-wax { min-height: 46px; border-radius: 12px; padding: 0 12px; border: 1.5px solid rgba(248,228,218,.45); background: transparent; color: #f8e4da; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-wax.fill { background: var(--brass-hi); color: #3a1a14; border-color: var(--brass-hi); }
.wb-pw { display: flex; gap: 8px; }
.wb-pw input { flex: 1; min-width: 0; height: 46px; background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1.5px solid rgba(248,228,218,.4) !important; }
.wb-pw input::placeholder { color: #d9a99b; }
.wb-done { display: flex; align-items: center; gap: 10px; background: rgba(63,143,90,.3); border-radius: 12px; padding: 10px 14px; font-size: .9rem; font-weight: 700; color: #d6f0de; }
.wb-done[hidden] { display: none; }
.wb-err { color: #ffb0a6; font-size: .85rem; min-height: 0; }
.ready-sheet h3 { display: flex; align-items: center; gap: 10px; }
.ready-sheet .ready-sub { margin: 4px 0 14px; color: var(--ink-soft); font-size: .95rem; }
.ready-sheet .stack { display: grid; gap: 14px; }
.ready-go { min-height: 52px; border-radius: 14px; margin-top: 14px; }
.ready-note { text-align: center; font-size: .84rem; color: var(--ink-soft); margin: 8px 0 0; }
.panel .backed { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: #bfe6cb; }
.panel .notbacked { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: #3a1a14; background: var(--brass-hi); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 3px; }
@media (max-width: 420px) { .wb-opts { grid-template-columns: 1fr; } .wb-or { top: 50%; } }
.make-card[hidden], .back-panel[hidden], .hero-v2:has(.hero-panel[data-back]) .home-up { display: none; }
.linkish { border: 0; background: none; padding: 10px 0; font: inherit; font-weight: 700; color: var(--pine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ss-code { margin: 16px 0 0; text-align: center; }
.ss-foot { display: flex; gap: 8px; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; margin: 12px 0 0; color: var(--ink-soft); }
.ss-foot svg { width: 18px; height: 18px; flex: none; }
.ss-foot .linkish { color: #8a242c; padding: 6px 0; }
.restore { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 14px; display: grid; gap: 10px; }
.restore h4 { margin: 0; font-size: 1.05rem; }
.restore form { display: grid; gap: 6px; }
.restore form[hidden] { display: none; }
.restore label { font-size: .9rem; font-weight: 700; }
.restore .small { margin: 0; }
.wb-manual { height: 44px; font-size: .82rem; background: #fff !important; color: var(--ink) !important; }
/* The card shell never scrolls (focus or scrollIntoView could shift it under its pinned close button); only .mbody does. */
.modal > .card { overflow: clip; }
/* Narrow phones: the password field gets its own row so the placeholder fits. */
@media (max-width: 400px) { .wb-pw { flex-wrap: wrap; } .wb-pw input { flex: 1 0 100%; } .wb-pw button { flex: 1; } }
/* Less empty space under the hero wall on phones. */
@media (max-width: 860px) { .hero.hero-v2 { padding-bottom: 28px; } }

/* More letters behind one door */
.pick.stack { cursor: pointer; opacity: 1; }
.pick.stack .stack-n { position: absolute; right: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #2f6b4f; color: #fff; font: 700 .7rem/18px var(--body, system-ui); }
.pick.stack[aria-checked="true"] { outline: 3px solid #d23125; outline-offset: 1px; }
.letter-stack { display: grid; gap: 18px; }
.letter-stack .one-letter + .one-letter { border-top: 1px dashed rgba(0,0,0,.15); padding-top: 18px; }
/* Song or video link inside a letter */
.song-card { clear: both; display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #1d2a26; color: #f6efe2; text-decoration: none; font-family: var(--body, system-ui); }
.song-card i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #d23125; color: #fff; font-style: normal; font-size: 1rem; flex: none; }
.song-card b { display: block; font-size: .95rem; }
.song-card small { display: block; opacity: .75; font-size: .8rem; }
#fill-form .opt { font-weight: 500; opacity: .6; font-size: .85em; margin-left: 4px; }
#fill-form .link-hint { margin: 6px 0 0; }
#fill-form .link-hint.bad { color: #b3261e; }

/* Starting late: still 24 doors */
.late-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; padding: 32px; border-radius: 22px; background: linear-gradient(135deg, rgba(212,175,95,.16), rgba(212,175,95,.04)); border: 1px solid rgba(212,175,95,.35); }
.late-head .eyebrow { margin: 0 0 6px; color: var(--brass-hi); font-weight: 700; }
.late-head h2 { margin: 0 0 12px; }
.late-head p:last-child { color: var(--mist); margin: 0; }
.late-rules { margin: 0; display: grid; gap: 16px; }
.late-rules div { padding-left: 14px; border-left: 3px solid var(--brass); }
.late-rules dt { font-weight: 800; margin-bottom: 2px; }
.late-rules dd { margin: 0; color: var(--mist); }
@media (max-width: 760px) { .late-card { grid-template-columns: 1fr; padding: 22px; gap: 20px; } }
.pick.stack { filter: none; }
.song-card b, .song-card small { color: inherit; }
.song-card:hover { filter: brightness(1.12); }
.card a.song-card, a.song-card { color: #f6efe2; }

/* What friends can put behind a door */
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.in-card { position: relative; padding: 22px 20px 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.in-card h3 { margin: 10px 0 6px; }
.in-card p { margin: 0; color: var(--mist); }
.in-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f6efe2; font-size: 1.3rem; color: #1d2a26; }
.in-tag { position: absolute; top: 18px; right: 18px; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #f4ecdc; color: #1d2a26; }
.in-tag.free { background: #2f6b4f; color: #fff; }
.in-tag.wax { background: #7d1d24; color: #f6dccf; }
.in-tag.gold { background: linear-gradient(135deg, #f3d68a, #c99a3d); color: #3a2a0c; }
/* Pricing */
.table-scroll { overflow-x: auto; margin-top: 24px; }
.price-table th small { display: block; font-weight: 600; opacity: .75; }
.price-table td { text-align: center; }
/* Who it's for */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.who-card { display: block; padding: 22px 20px; border-radius: 18px; background: #f6efe2; color: #1d2a26; text-decoration: none; transition: transform .15s; }
.who-card:hover { transform: translateY(-3px); }
.who-card span { font-size: 1.6rem; }
.who-card h3 { margin: 8px 0 4px; }
.who-card p { margin: 0; color: #5a524b; font-size: .95rem; }
@media (max-width: 900px) { .inside-grid { grid-template-columns: 1fr 1fr; } .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .inside-grid { grid-template-columns: 1fr; } }
/* Door-by-door ideas */
.day-ideas .day { display: block; font-family: var(--body, system-ui); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #a3302a; margin-bottom: 4px; }
.tag-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-tabs button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--snow); padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.tag-tabs button[aria-pressed="true"] { background: var(--snow); color: #1d2a26; }
.day-ideas .letter.dim { opacity: .28; }
.table-scroll table { min-width: 620px; }
.table-scroll { -webkit-overflow-scrolling: touch; }

/* Door 25: a wide Christmas Day door across the bottom row */
.door-slot.d25 { grid-column: 1 / -1; aspect-ratio: auto; height: clamp(96px, 13vw, 130px); }
.door-slot.d25 .xmas { position: absolute; left: 50%; bottom: 34%; translate: -50% 0; font: 700 .72rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #a3302a; pointer-events: none; z-index: 2; }
.door-slot.has-pub .tag { background: #2f6b4f; color: #fff; }
.pub-note { margin: 8px 0 0; color: #2f6b4f; }
.pub-check { margin-top: 12px; }
.pub-check .opt { display: block; font-weight: 500; opacity: .6; font-size: .82em; margin-top: 2px; }
.d25-toggle { margin-top: 14px; }

/* Backdrop picker: each tile is a small, live version of its backdrop */
.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.theme-row button { position: relative; height: 58px; border-radius: 12px; border: 2px solid rgba(255,255,255,.08); cursor: pointer; overflow: hidden; display: flex; align-items: flex-end; padding: 0; isolation: isolate; transition: transform .2s, border-color .2s; }
.theme-row button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.theme-row button::before, .theme-row button::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.theme-row button span { position: relative; z-index: 2; width: 100%; padding: 14px 8px 5px; font: 700 .7rem/1.2 var(--display); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); text-align: left; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.theme-row button[aria-pressed="true"] { border-color: var(--brass-hi, #e8c26a); box-shadow: 0 0 0 2px rgba(232,194,106,.35); }
.th-plain { background: radial-gradient(120% 90% at 30% 0, #2f5a49, var(--pine) 70%); }
.th-snow { background: linear-gradient(#2c5670, #10232f); }
.th-snow::before { background: url(/bg/snow-far.svg) 0 0 / 120px 120px; animation: fa-fall-sm 9s linear infinite; }
.th-snow::after { background: url(/bg/snow-near.svg) 0 0 / 150px 150px; animation: fa-fall-md 6s linear infinite; }
.th-fireside { background: linear-gradient(#3b1512, #2a0d0b); }
.th-fireside::before { background: radial-gradient(100% 95% at 50% 120%, #ffc56a, #e2552f 40%, rgba(160,40,30,.6) 62%, transparent 85%); animation: fa-flicker 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.th-fireside::after { background: url(/bg/embers.svg) 0 0 / 120px 120px; animation: fa-rise-sm 5s linear infinite; mask-image: linear-gradient(to top, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 95%); }
.th-gingerbread { background: radial-gradient(circle at 50% 0, #fff 0 5px, transparent 5.5px) 0 0 / 14px 9px repeat-x, linear-gradient(#a8693a, #6e3f1f); }
.th-gingerbread::before { top: 8px; background: url(/bg/sprinkles.svg) 0 0 / 130px 130px; animation: fa-fall-sm 12s linear infinite; }
.th-aurora { background: linear-gradient(#0a1328, #0d1d3a); }
.th-aurora::before { inset: -30% -40%; background: linear-gradient(100deg, transparent 25%, rgba(70,255,170,.75) 42%, rgba(120,90,255,.6) 58%, transparent 74%); filter: blur(8px); animation: fa-aurora 7s ease-in-out infinite alternate; }
.th-aurora::after { background: url(/bg/stars.svg) 0 0 / 140px 140px; animation: fa-twinkle 3s ease-in-out infinite alternate; }
.th-village { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 480 120'%3E%3Cpath fill='%23081221' d='M0 120V78l30-22 30 22v-8h22V52l26-20 26 20v18h34V60l20-16 20 16v20h30V48l34-26 34 26v32h26V66l22-18 22 18v14h34V58l28-22 28 22v62z'/%3E%3Cg fill='%23f6d27a'%3E%3Crect x='96' y='62' width='8' height='9'/%3E%3Crect x='232' y='58' width='8' height='9'/%3E%3Crect x='402' y='70' width='8' height='9'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / 120px 30px, linear-gradient(#14264a, #24406f); }
.th-village::before { background: url(/bg/snow-far.svg) 0 0 / 120px 120px; animation: fa-fall-sm 10s linear infinite; }

/* Backdrops (calendar page): a still sky on the page, a moving layer or two fixed behind everything */
html[data-theme] body::before, html[data-theme] body::after { content: ""; position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none; }
html[data-theme="snow"] body { background: radial-gradient(120% 60% at 50% 0, #2c5670, transparent 70%), linear-gradient(180deg, #1f3f55, #10232f 70%, #0b1a25); min-height: 100vh; }
html[data-theme="snow"] body::before { top: -240px; background: url(/bg/snow-far.svg) 0 0 / 240px 240px; animation: fa-fall-far 16s linear infinite; }
html[data-theme="snow"] body::after { top: -360px; background: url(/bg/snow-near.svg) 0 0 / 360px 360px; animation: fa-fall-near 10s linear infinite; }

html[data-theme="fireside"] body { background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 120px), linear-gradient(180deg, #3b1512, #5a1d16 55%, #2a0d0b); min-height: 100vh; }
html[data-theme="fireside"] body::before { background: radial-gradient(70% 50% at 50% 110%, rgba(255,170,70,.6), rgba(200,70,40,.25) 50%, transparent 75%); transform-origin: 50% 100%; animation: fa-flicker 3.2s ease-in-out infinite; }
html[data-theme="fireside"] body::after { background: url(/bg/embers.svg) 0 0 / 300px 300px; animation: fa-rise 14s linear infinite; mask-image: linear-gradient(to top, #000 15%, transparent 80%); -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 80%); }

html[data-theme="gingerbread"] body { background: radial-gradient(circle at 10px 10px, rgba(255,255,255,.14) 0 3px, transparent 3.5px) 0 0 / 56px 56px, radial-gradient(90% 70% at 50% 0, #8e552e, transparent 70%), linear-gradient(180deg, #7a4626, #5a321a); min-height: 100vh; }
html[data-theme="gingerbread"] body::before { top: -320px; background: url(/bg/sprinkles.svg) 0 0 / 320px 320px; opacity: .6; animation: fa-fall-sprinkle 26s linear infinite; }

html[data-theme="aurora"] body { background: url(/bg/stars.svg) 0 0 / 420px 420px, linear-gradient(180deg, #0a1328, #0d1d3a 60%, #08101f); min-height: 100vh; }
html[data-theme="aurora"] body::before { left: -25%; right: -25%; bottom: 35%; background: linear-gradient(100deg, transparent 22%, rgba(70,255,170,.32) 38%, rgba(90,220,255,.18) 48%, rgba(140,90,255,.3) 58%, transparent 74%); filter: blur(40px); animation: fa-aurora-big 18s ease-in-out infinite alternate; }
html[data-theme="aurora"] body::after { background: url(/bg/stars.svg) 210px 140px / 420px 420px; animation: fa-twinkle 4.5s ease-in-out infinite alternate; }

html[data-theme="village"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='120' viewBox='0 0 480 120'%3E%3Cpath fill='%23081221' d='M0 120V78l30-22 30 22v-8h22V52l26-20 26 20v18h34V60l20-16 20 16v20h30V48l34-26 34 26v32h26V66l22-18 22 18v14h34V58l28-22 28 22v62z'/%3E%3Cg fill='%23f6d27a'%3E%3Crect x='96' y='62' width='8' height='9'/%3E%3Crect x='232' y='58' width='8' height='9'/%3E%3Crect x='252' y='58' width='8' height='9'/%3E%3Crect x='402' y='70' width='8' height='9'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / 480px 120px,
    linear-gradient(180deg, #14264a, #1d3560 70%, #24406f);
  min-height: 100vh;
}
html[data-theme="village"] body::before { top: -240px; background: url(/bg/snow-far.svg) 0 0 / 240px 240px; animation: fa-fall-far 18s linear infinite; }
html[data-theme="village"] body::after { top: -360px; background: url(/bg/snow-near.svg) 0 0 / 360px 360px; opacity: .8; animation: fa-fall-near 12s linear infinite; }

@keyframes fa-fall-far { to { transform: translate3d(0, 240px, 0); } }
@keyframes fa-fall-near { to { transform: translate3d(0, 360px, 0); } }
@keyframes fa-fall-sprinkle { to { transform: translate3d(0, 320px, 0); } }
@keyframes fa-fall-sm { to { background-position: 0 120px; } }
@keyframes fa-fall-md { to { background-position: 0 150px; } }
@keyframes fa-rise { to { background-position: 0 -300px; } }
@keyframes fa-rise-sm { to { background-position: 0 -120px; } }
@keyframes fa-flicker { 0%, 100% { opacity: .85; transform: scale(1); } 22% { opacity: 1; transform: scale(1.04, 1.07); } 41% { opacity: .78; transform: scale(.99, .97); } 63% { opacity: .95; transform: scale(1.02, 1.05); } 80% { opacity: .82; transform: scale(1, .99); } }
@keyframes fa-aurora { from { transform: translateX(-18%) skewX(-10deg); opacity: .75; } to { transform: translateX(18%) skewX(8deg); opacity: 1; } }
@keyframes fa-aurora-big { 0% { transform: translateX(-10%) skewX(-12deg) scaleY(.9); opacity: .7; } 50% { opacity: 1; } 100% { transform: translateX(10%) skewX(10deg) scaleY(1.1); opacity: .8; } }
@keyframes fa-twinkle { from { opacity: .25; } to { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { html[data-theme] body::before, html[data-theme] body::after, .theme-row button::before, .theme-row button::after { animation: none !important; } }
/* Each backdrop dresses the cabinet's roof */
html[data-theme] .cal-grid .house { position: relative; }
html[data-theme="snow"] .cal-grid .house::before, html[data-theme="village"] .cal-grid .house::before {
  content: ""; position: absolute; left: -8px; right: -8px; top: -14px; height: 26px; border-radius: 16px 16px 10px 10px; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 10% 100%, #fff 0 9px, transparent 10px) 0 0 / 34px 26px repeat-x, linear-gradient(#fff, #eef3f7);
  box-shadow: 0 4px 8px rgba(0,0,0,.18);
}
html[data-theme="gingerbread"] .cal-grid .house::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 18px; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 0, #fff 0 8px, transparent 9px) 0 0 / 22px 18px repeat-x;
}
html[data-theme="fireside"] .cal-grid .house::before {
  content: ""; position: absolute; left: -10px; right: -10px; top: -16px; height: 28px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle, #d23125 0 5px, transparent 6px) 12px 14px / 64px 28px repeat-x,
    radial-gradient(circle, #f3d68a 0 4px, transparent 5px) 44px 16px / 64px 28px repeat-x,
    radial-gradient(ellipse at 50% 0, #2f6b4f 0 30%, #1f4d38 60%, transparent 62%) 0 0 / 32px 28px repeat-x;
}
html[data-theme="aurora"] .cal-grid .house { box-shadow: 0 0 0 1px rgba(120,255,200,.25), 0 30px 80px rgba(70,255,170,.18), 0 30px 60px rgba(0,0,0,.4); }

/* keep door 25's parts at the size of a normal door, centred */
.door-slot.d25 .door .plate { min-width: 0; width: clamp(64px, 14%, 110px); }
.door-slot.d25 .door .slit { left: 38%; right: 38%; top: 34%; }
.door-slot.d25 .door .env { left: 40%; right: 41%; top: 27%; }
.door-slot.d25 .door .key { display: none; }
.door-slot.d25 .door .tag { left: 36%; right: 36%; }
.door-slot.d25 .door .lock { left: 2%; }
@media (max-width: 560px) { .door-slot.d25 .door .plate, .door-slot.d25 .door .tag { left: 50%; right: auto; translate: -50% 0; width: 38%; } .door-slot.d25 .door .slit { left: 30%; right: 30%; } .door-slot.d25 .door .env { left: 33%; right: 34%; } }
html[data-theme="village"] body { padding-bottom: 110px; }

/* Questions and comments (homepage, just above the footer) */
.qa { max-width: 760px; }
.qa h2 { margin-bottom: 18px; }
.qa-count { font-size: .7em; opacity: .55; font-variant-numeric: tabular-nums; }
.qa-card { background: #f6efe2; color: #1d2a26; border-radius: 18px; padding: 22px 22px 20px; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px -24px rgba(0,0,0,.6); }
.qa-card label { display: block; font-weight: 700; font-size: .92rem; color: #4a433c; margin: 0 0 6px; }
.qa-card input[type=text], .qa-card textarea { width: 100%; margin-bottom: 14px; background: #fff; border: 1px solid #e2d6c0; color: #1d2a26; }
.qa-card textarea { min-height: 96px; resize: vertical; }
@media (max-width: 560px) { .qa-card textarea { min-height: 128px; } }
.qa-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qa-card .qa-msg { margin: 0; color: #6b6158; flex: 1 1 200px; }
.qa-card .qa-msg.ok { color: #2f6b4f; font-weight: 700; }
.qa-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qa-list { list-style: none; margin: 24px 0 0; padding: 0; }
.qa-item { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
.qa-item:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.qa-item p { margin: 0; }
.qa-meta { font-size: .9rem; color: var(--mist); }
.qa-meta b { color: var(--snow); font-weight: 700; }
.qa-text { font-size: 1.08rem; margin-top: 4px !important; }
.qa-reply { margin-top: 12px; padding: 10px 0 2px 14px; border-left: 3px solid #c8371e; }
.qa-reply p + p { margin-top: 4px; }

/* Hero: the optional upgrade as one band under the wall and the panel */
.home-up { justify-items: stretch; text-align: left; }
@media (min-width: 861px) {
  .home-up { grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px); align-items: center; column-gap: 26px; padding: 20px 24px; }
  .home-up .up-art { grid-row: 1 / span 2; }
  .home-up .up-txt { grid-column: 2; }
  .home-up .up-act { grid-column: 3; grid-row: 1 / span 2; display: grid; gap: 8px; }
  .home-up .up-fine { grid-column: 2; grid-row: 2; }
  .home-up .up-txt { grid-row: 1; }
}
.home-up .up-txt { display: grid; gap: 4px; }
.home-up .up-act { display: grid; gap: 8px; width: 100%; }
@media (max-width: 860px) { .home-up { text-align: center; justify-items: center; } }
/* honeypot fields stay hidden whatever form they sit in */
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
/* wall and side panel share one top and one bottom edge */
@media (min-width: 861px) { .hero-v2 .hero-wall { align-self: stretch; display: flex; } .hero-v2 .hero-wall .house { flex: 1; } }
.door-slot.read .door .flag { visibility: hidden; }

/* Mailbox finish swatches: each one is a tiny mailbox door in its finish */
.finish-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 6px; }
.finish-row button { --sw: #f1e8d8; --plate: linear-gradient(180deg, #f3dc9c, #b98a37); --slit: rgba(30,20,12,.62);
  width: 40px; height: 54px; padding: 0; border: 0; position: relative; cursor: pointer; border-radius: 10px 10px 8px 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sw) 72%, #fff) 0%, var(--sw) 42%, color-mix(in srgb, var(--sw) 78%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.14), 0 4px 10px -3px rgba(0,0,0,.5);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.3), box-shadow .18s; outline-offset: 4px; }
.finish-row button:hover { transform: translateY(-2px); }
.finish-row button:active { transform: translateY(0) scale(.97); }
.finish-row button[aria-pressed=true] { outline: 2.5px solid var(--brass-hi); }
.finish-row button.previewing { outline: 2.5px dashed var(--brass-hi); }
.finish-row .sw-face { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.finish-row .sw-face::before { content: ""; position: absolute; left: 50%; top: 9px; width: 20px; height: 6px; translate: -50% 0; border-radius: 2px; background: var(--plate); box-shadow: 0 1px 0 rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.55); }
.finish-row .sw-face::after { content: ""; position: absolute; left: 50%; top: 24px; width: 22px; height: 3.5px; translate: -50% 0; border-radius: 3px; background: var(--slit); box-shadow: 0 1px 0 rgba(255,255,255,.25); }
.finish-row .sw-cabin { --sw: #efe5d2; }
.finish-row .sw-aurora { --sw: #357560; --slit: rgba(5,20,14,.7); }
.finish-row .sw-peppermint { --sw: #c02a33; --slit: rgba(40,4,8,.7); }
.finish-row .sw-midnight { --sw: #263463; --slit: rgba(2,6,20,.8); }
.finish-row .sw-midnight .sw-face { background: radial-gradient(circle at 24% 66%, #fff 0 .9px, transparent 1.4px), radial-gradient(circle at 70% 58%, rgba(255,255,255,.8) 0 .7px, transparent 1.2px), radial-gradient(circle at 56% 82%, rgba(255,255,255,.7) 0 .6px, transparent 1.1px), radial-gradient(circle at 82% 80%, #f3dc9c 0 1px, transparent 1.5px), radial-gradient(120% 60% at 50% 100%, rgba(120,140,255,.25), transparent 70%); }
.finish-row .sw-frost { --sw: #dde9f1; --plate: linear-gradient(180deg, #fff, #b9c9d6); --slit: rgba(40,60,80,.55); }
.finish-row .sw-frost .sw-face { background: linear-gradient(125deg, transparent 38%, rgba(255,255,255,.85) 47%, transparent 55%), radial-gradient(90% 50% at 50% 100%, rgba(255,255,255,.9), transparent 70%), radial-gradient(circle at 30% 70%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 68% 78%, #fff 0 .8px, transparent 1.3px); }
.finish-row .sw-gingerbread { --sw: #aa6a38; --slit: rgba(40,18,6,.7); }
.finish-row .sw-gingerbread .sw-face { background: radial-gradient(circle at 50% 0, #fffaf0 0 3.2px, transparent 3.7px) 1px 0 / 6.5px 5px repeat-x, repeating-linear-gradient(90deg, rgba(255,250,240,.9) 0 3px, transparent 3px 6px) 50% 40px / 24px 2px no-repeat; }
.finish-row .sw-wax { --sw: #7f1f28; --plate: var(--foil, linear-gradient(180deg, #f3dc9c, #b98a37)); }
.finish-row .sw-wax .sw-face::after { top: 22px; width: 22px; height: 22px; border-radius: 50%; background: url(/seal.svg) center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.finish-row .sw-lock { position: absolute; right: -6px; top: -6px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(145deg, #f8e2a6, #c4923a 60%, #9c6d22); box-shadow: 0 0 0 2px rgba(12,18,34,.85), 0 2px 4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.7); }
.finish-row .sw-lock svg { width: 10px; height: 10px; }
.finish-row button.locked:hover .sw-lock { animation: fa-lock-nudge .5s ease-in-out; }
@keyframes fa-lock-nudge { 30% { rotate: -14deg; } 60% { rotate: 10deg; } }
.wall-preview { position: absolute; left: 50%; top: -14px; translate: -50% 0; z-index: 6; padding: 6px 14px; border-radius: 999px; font: 700 .8rem/1 var(--display); color: #3a2708; background: linear-gradient(180deg, #f8e2a6, #d4a24c); box-shadow: 0 6px 16px -6px rgba(0,0,0,.6); white-space: nowrap; pointer-events: none; animation: rise .3s cubic-bezier(.2,.9,.3,1); }
/* the upgrade sheet slides in beside the wall so the preview stays in view */
.modal.beside { background: rgba(6,22,17,.22); backdrop-filter: none; }
@media (min-width: 900px) { .modal.beside { justify-content: flex-end; padding-right: max(24px, 4vw); } }
.cal-grid .house { position: relative; }
.code-copy { margin-left: 6px; vertical-align: middle; font: 700 .78rem/1 var(--display); padding: 6px 10px; border-radius: 6px; border: 1.5px solid #d8ccb6; background: #fffdf8; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.code-copy:hover { border-color: var(--ink); }
.code-copy.done { background: #e3f1e6; border-color: #7bb58c; color: #24603a; }
@media (max-width: 899px) { .modal.beside > .card { max-height: 56vh; } }
