/* ============================================================
   Pal Advent — clone of adventwithfriends.com
   ============================================================ */

:root {
  --night: #0c1433;
  --night-2: #17224c;
  --night-3: #0a1129;
  --cream: #fbf3e7;
  --cream-2: #fffaf1;
  --panel: #fff8ee;
  --ink: #2c1720;
  --ink-soft: #4d3a3f;
  --muted: #6f5b58;
  --red: #c02a33;
  --red-2: #e0453f;
  --red-deep: #9d1f2a;
  --gold: #e3ba63;
  --gold-2: #c99937;
  --line: #e7d8c2;
  --wood: #6d4526;
  --plum: #4a1222;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(60, 30, 20, .08), 0 2px 6px rgba(60, 30, 20, .06);
  --shadow-md: 0 6px 18px rgba(60, 25, 20, .12), 0 2px 6px rgba(60, 25, 20, .07);
  --shadow-lg: 0 22px 48px rgba(6, 10, 30, .38), 0 6px 16px rgba(6, 10, 30, .28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------------- top bar ---------------- */
.top {
  position: relative;
  z-index: 20;
  background: var(--night);
  color: #fdf6ea;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: 0 1 auto; min-width: 0;
  color: #fdf6ea; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em;
}
.brand-ic { font-size: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.top-nav { display: flex; align-items: center; gap: 26px; }
.top-nav a { color: rgba(253, 246, 234, .82); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-nav a:hover { color: #fff; }

/* ---------------- night sky ---------------- */
.app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: radial-gradient(120% 90% at 50% 0%, #23306a 0%, #16214c 42%, #0c1433 78%);
  color: #fdf6ea;
  padding: 46px 0 0;
}
.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow {
  position: absolute; inset: -10% 0 auto 0; height: 70%;
  background: radial-gradient(50% 50% at 50% 40%, rgba(255, 214, 140, .13), transparent 70%);
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 18px 24px, rgba(255,250,232,.95) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 140px 90px, rgba(255,250,232,.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 220px 40px, rgba(255,244,214,.9) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 90px 170px, rgba(255,250,232,.7) 50%, transparent 51%),
    radial-gradient(1.7px 1.7px at 300px 150px, rgba(255,250,232,.85) 50%, transparent 51%);
  background-size: 340px 240px, 340px 240px, 340px 240px, 340px 240px, 340px 240px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  opacity: .8;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: .95; } }
.lights { position: absolute; top: 0; left: 0; width: 100%; height: 74px; z-index: 2; }
.snow {
  position: absolute; inset: 0;
  background-image: radial-gradient(1.6px 1.6px at 20px 30px, rgba(255,255,255,.75), transparent),
    radial-gradient(1.4px 1.4px at 90px 120px, rgba(255,255,255,.55), transparent),
    radial-gradient(1.8px 1.8px at 160px 70px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 220px 160px, rgba(255,255,255,.5), transparent);
  background-size: 260px 200px;
  opacity: .5;
  animation: drift 26s linear infinite;
}
.snow.s2 { background-size: 380px 300px; opacity: .3; animation-duration: 44s; animation-direction: reverse; }
@keyframes drift { from { background-position: 0 0; } to { background-position: 260px 620px; } }
.scene-svg {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 190px;
  display: none;
}
body[data-scene="gingerbread"] .scene-gingerbread,
body[data-scene="snowy"] .scene-snowy,
body[data-scene="candycane"] .scene-candycane,
body[data-scene="golden"] .scene-golden { display: block; }
.scene-svg .aurora-a, .scene-svg .aurora-b { mix-blend-mode: screen; }

.hero-in {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) 392px;
  gap: 40px; align-items: start;
  padding-bottom: 26px;
}
.stage { min-width: 0; }
.hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.hd h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  color: #fdf6ea;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  margin: 0;
}
.hd h1 small {
  display: block; margin-top: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0; color: var(--gold); text-shadow: none;
}
.hdr { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; padding-top: 6px; }
.help-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(20, 28, 60, .55);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fdf6ea; border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.help-pill:hover { background: rgba(40, 52, 96, .8); transform: translateY(-1px); }
.help-pill i {
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--gold); color: #3a2410;
  font-style: normal; font-weight: 800; font-size: 13px;
}
.link { background: none; border: 0; color: var(--gold); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; padding: 8px 2px; }
.link:hover { text-decoration: underline; }

/* ---------------- the calendar frame ---------------- */
.frame {
  position: relative;
  padding: 13px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .09) 0 2px, rgba(255, 216, 170, .045) 2px 5px, transparent 5px 9px),
    linear-gradient(155deg, #6b4529 0%, #563720 26%, #35200f 58%, #55351e 100%);
  box-shadow:
    var(--shadow-lg),
    inset 0 2px 0 rgba(255, 226, 184, .4),
    inset 0 -3px 7px rgba(0, 0, 0, .5),
    inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.frame::before {
  content: '';
  position: absolute; inset: 7px; border-radius: 11px;
  border: 1px solid rgba(255, 226, 184, .18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.grid {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 18px 20px 20px;
  border-radius: 9px;
  background:
    radial-gradient(120% 90% at 50% 0%, #58182b 0%, #471121 55%, #380c1a 100%);
  box-shadow: inset 0 3px 14px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 214, 150, .1);
}
.frame-cap {
  display: block; width: fit-content; margin: 16px auto 0;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(14, 22, 52, .62);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(5px);
  font-size: 13px; color: rgba(253, 246, 234, .82); font-weight: 600;
}

/* ---------------- wrapped gift door ---------------- */
.door {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border: 0; padding: 0;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), filter .22s;
  -webkit-tap-highlight-color: transparent;
}
.door:hover { transform: translateY(-3px) rotate(-.6deg); filter: brightness(1.06); z-index: 2; }
.door:active { transform: translateY(-1px) scale(.99); }
.door:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.paper {
  position: absolute; inset: 0;
  border-radius: 7px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .38),
    inset 0 2px 2px rgba(255, 255, 255, .28),
    inset 0 -10px 16px rgba(0, 0, 0, .28),
    0 3px 6px rgba(0, 0, 0, .3);
}
.paper::before {
  content: ''; position: absolute; inset: 0;
  background-image: inherit; opacity: .96;
}
.paper::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(255,255,255,.22) 0%, transparent 26%, transparent 62%, rgba(0,0,0,.18) 100%);
}
/* ribbon cross */
.ribbon {
  position: absolute; left: 0; right: 0; top: 44%; height: 13%;
  background: linear-gradient(180deg, #f3d289 0%, #e0b45c 45%, #b98a34 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  z-index: 1;
}
.ribbon::before {
  content: ''; position: absolute; left: 43.5%; top: -160%; width: 13%; height: 420%;
  background: linear-gradient(90deg, #f3d289 0%, #e0b45c 50%, #b98a34 100%);
  box-shadow: 0 0 3px rgba(0, 0, 0, .3);
}
.bow { position: absolute; left: 50%; top: -3%; width: 76%; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.32)); }

/* six wrapping papers */
.g1 .paper { background-color: #e7c383; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 3px, transparent 3px 11px), repeating-linear-gradient(0deg, rgba(176,128,52,.35) 0 2px, transparent 2px 12px); }
.g2 .paper { background-color: #7fb0c6; background-image: radial-gradient(rgba(255,255,255,.85) 1.6px, transparent 1.8px), radial-gradient(rgba(30,70,90,.25) 1.6px, transparent 1.8px); background-size: 12px 12px, 12px 12px; background-position: 0 0, 6px 6px; }
.g3 .paper { background-color: #4f8f61; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px 13px), repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 2px, transparent 2px 13px), repeating-linear-gradient(90deg, rgba(20,70,40,.25) 0 5px, transparent 5px 26px); }
.g4 .paper { background-color: #6f68a8; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 4px, transparent 4px 14px), repeating-linear-gradient(90deg, rgba(30,25,70,.3) 0 2px, transparent 2px 28px); }
.g5 .paper { background-color: #c8546a; background-image: radial-gradient(rgba(255,255,255,.75) 1.5px, transparent 1.7px); background-size: 9px 9px; }
.g6 .paper { background-color: #6d8fd0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 3px, transparent 3px 12px), repeating-linear-gradient(-45deg, rgba(20,45,110,.28) 0 3px, transparent 3px 12px); }

/* number tag */
.tag {
  position: absolute; left: 50%; top: 58%;
  transform: translate(-50%, -50%) rotate(-4deg);
  min-width: 46%;
  padding: 3px 7px 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fffaee, #f2e2c6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(150, 105, 50, .35);
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(15px, 2.1vw, 24px);
  color: #7a2d1d; line-height: 1; letter-spacing: -.02em;
  text-align: center;
  z-index: 4;
}
.tag::before {
  content: ''; position: absolute; left: 50%; top: -5px; width: 7px; height: 7px;
  border-radius: 50%; background: #b98a34; transform: translateX(-50%);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
}

/* ---------------- calendar page doors ---------------- */
.cal-grid { padding: 16px; gap: 10px; }
.door.empty {
  background: rgba(255, 240, 220, .035);
  border: 1.5px dashed rgba(255, 226, 186, .42);
  border-radius: 7px;
  display: grid; place-items: center;
  aspect-ratio: 1 / 1.08;
  color: #f6e7c9;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(17px, 2.3vw, 28px);
}
.door.empty:hover { background: rgba(255, 240, 220, .09); border-color: rgba(255, 226, 186, .7); }
.door.empty.locked { opacity: .55; cursor: default; }
.door.empty.locked:hover { background: rgba(255, 240, 220, .035); border-color: rgba(255, 226, 186, .42); transform: none; }
.door.empty .lock { position: absolute; bottom: 6px; font-size: 10px; opacity: .75; }
.door.today::after {
  content: ''; position: absolute; inset: -5px; border-radius: 11px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(227, 186, 99, .14), 0 0 16px rgba(227, 186, 99, .32);
  animation: todayGlow 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes todayGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(227,186,99,.14), 0 0 16px rgba(227,186,99,.28); }
  50% { box-shadow: 0 0 0 4px rgba(227,186,99,.28), 0 0 30px rgba(227,186,99,.55); }
}
.door.filled { aspect-ratio: 1 / 1.12; }
.door.filled .tag { font-size: clamp(13px, 1.8vw, 20px); }
.door.filled .sticker-chip {
  position: absolute; right: -4px; top: -6px; z-index: 6;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff6e6; font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
  transform: rotate(8deg);
}
.door .who {
  position: absolute; left: 4px; right: 4px; bottom: 4px; z-index: 5;
  font-family: var(--sans); font-size: 10px; font-weight: 700; color: #ffeccd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center; padding: 1px 5px; border-radius: 99px;
  background: rgba(28, 8, 14, .55);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.door.opened .paper { box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), 0 0 0 2px rgba(227, 186, 99, .55), 0 4px 10px rgba(0,0,0,.4); }

/* ---------------- right panel ---------------- */
.panel { position: relative; z-index: 4; color: var(--ink); }
.card {
  background: var(--panel);
  color: var(--ink);
  font-size: 15.5px;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.msg { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: #3b2a2c; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: #5b4440; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid #e6d6bf; border-radius: 10px;
  background: #fffdf8; color: var(--ink);
  font: inherit; font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(120, 80, 40, .06);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(224, 69, 63, .13);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip {
  min-width: 0;
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid #e2d1b8; background: #fffdf8;
  font-size: 14px; font-weight: 600; color: #4a3630; cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: #c9a97e; }
.chip.on { border-color: var(--red); background: #fff1ec; color: var(--red-deep); box-shadow: 0 0 0 1px var(--red) inset; }
.pwset { margin: -4px 0 14px; }
.pwset summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: #7a5c3c;
  list-style: none; padding: 4px 0;
}
.pwset summary::-webkit-details-marker { display: none; }
.pwset summary::before { content: '▸ '; color: var(--gold-2); }
.pwset[open] summary::before { content: '▾ '; }
.pwset .field { margin: 10px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid #e2d1b8; background: #fffdf8; color: #4a3630;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #fff7ea; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(90, 50, 30, .12); }
.btn:active { transform: translateY(0); }
.btn.go {
  background: linear-gradient(180deg, var(--red-2), var(--red-deep));
  color: #fff; border-color: #8f1a25;
  box-shadow: 0 6px 16px rgba(160, 25, 40, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn.go:hover { background: linear-gradient(180deg, #ea514a, #a8212d); box-shadow: 0 9px 22px rgba(160, 25, 40, .4), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.wide { width: 100%; }
.btn.big { padding: 14px 22px; font-size: 16.5px; }
.hcode { margin: 14px 0 0; text-align: center; font-size: 13px; color: #7a625c; line-height: 1.5; }
.hcode a { font-weight: 600; }
.horig { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: #9a8074; }

/* welcome back */
.back { margin-top: 14px; }
.back-h { margin: 0 0 6px; font-family: var(--serif); font-size: 20px; }
.back-cal { background: var(--panel); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.back-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.back-url { font-size: 11.5px; color: #8b7168; word-break: break-all; margin: 4px 0 2px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row .btn { flex: 1 1 auto; padding: 9px 14px; font-size: 14px; }

/* owner panel bits */
.ready { background: linear-gradient(180deg, #fff0f2, #ffe6ea); border-radius: 14px; padding: 14px 15px; margin-bottom: 14px; border: 1px solid #f3ccd3; }
.ready-h { margin: 0 0 4px; font-family: var(--serif); font-size: 18px; color: #8c1f2c; }
.ready p { margin: 0; font-size: 14px; color: #6d4147; }
.lights-24 { display: flex; gap: 3px; margin: 14px 0 8px; }
.lights-24 i { flex: 1; height: 12px; border-radius: 50% 50% 45% 45%; background: rgba(140, 110, 90, .22); }
.lights-24 i.on { background: linear-gradient(180deg, #ffe4a3, #e8b455); box-shadow: 0 0 7px rgba(232, 180, 85, .75); }
.fill-count { margin: 0 0 12px; font-size: 13.5px; color: #6d5850; text-align: center; }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.share-mini {
  border: 1px solid #e6d6bf; background: #fffdf8; border-radius: 10px;
  padding: 9px 4px; font-size: 11.5px; font-weight: 600; color: #5b4640;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: all .15s;
}
.share-mini { text-decoration: none; }
.share-mini:hover { background: #fff4e4; border-color: #cdb08a; transform: translateY(-1px); }
.share-mini span:first-child { font-size: 15px; }
.share-links { display: flex; gap: 12px; justify-content: center; margin-top: 10px; font-size: 12.5px; font-weight: 600; }
.share-links a { color: #8a6a4c; }
.pw-card { margin-top: 16px; border: 1.5px dashed #dfbd7a; border-radius: 13px; padding: 13px 14px; background: #fffcf3; }
.pw-card h4 { margin: 0 0 4px; font-family: var(--sans); font-size: 13.5px; }
.pw-card p { margin: 0 0 9px; font-size: 12.5px; color: #7a6252; line-height: 1.45; }
.pw-box, .code-box { display: flex; gap: 7px; }
.pw-box input, .code-box input {
  flex: 1; min-width: 0; padding: 9px 11px; border-radius: 8px;
  border: 1px solid #e6d6bf; background: #fff; font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px; letter-spacing: .04em; color: #4a3630;
}
.code-box input { font-weight: 700; }
.pw-card .btn { margin-top: 8px; }
.hint { font-size: 11.5px; color: #9a8074; margin: 8px 0 0; }
.remind { margin-top: 14px; background: #fffdf6; border: 1px solid #ecdfc8; border-radius: 12px; padding: 12px 14px; }
.remind a { display: block; font-family: var(--serif); font-size: 16px; font-weight: 700; color: #7b3b22; text-decoration: none; }
.remind a:hover { text-decoration: underline; }
.remind p { margin: 4px 0 0; font-size: 11.5px; color: #8c7364; }
.panel-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.danger-link { background: none; border: 0; padding: 6px 0; color: #a3413a; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* owner login hint card (friend view) */
.login-card { margin-top: 14px; background: #fffdf6; border: 1px solid #ecdfc8; border-radius: 12px; padding: 13px 14px; }
.login-card h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; }
.login-card p { margin: 0 0 8px; font-size: 12.5px; color: #7a6252; }

/* ---------------- how it works ---------------- */
.how { background: var(--cream); padding: 68px 0 74px; position: relative; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 14px;
}
.kicker span { width: 26px; height: 2px; background: var(--red); display: inline-block; }
.how h2, .why h2 { font-size: clamp(30px, 3.7vw, 46px); color: #241016; margin-bottom: 12px; max-width: 740px; }
.lede { font-size: 17px; color: var(--muted); max-width: 700px; margin-bottom: 40px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps li { min-width: 0; }
.steps h3 { font-size: 22px; margin: 22px 0 8px; color: #241016; display: flex; gap: 9px; align-items: baseline; }
.steps h3 .num {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: #f3ddc2; color: #8a4a24; font-size: 13px; font-weight: 800;
  font-family: var(--sans); transform: translateY(-2px);
}
.steps > li > p { margin: 0; color: #5f4a46; font-size: 15px; line-height: 1.6; }

/* phone mockups */
.phone {
  position: relative;
  aspect-ratio: 9 / 16.9;
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(160deg, #1b2340, #0b1024 60%);
  box-shadow: 0 18px 34px rgba(40, 20, 15, .28), inset 0 0 0 1px rgba(255,255,255,.12);
  overflow: hidden;
}
.phone::before {
  content: ''; position: absolute; left: 50%; top: 9px; width: 34%; height: 7px;
  transform: translateX(-50%); border-radius: 99px; background: #05070f; z-index: 3;
}
.ph-screen {
  position: relative; height: 100%; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #101a3c 0%, #1a2654 55%, #223059 100%);
  padding: 20px 8px 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ph-kicker { margin: 0; font-family: var(--serif); font-size: 11px; font-weight: 700; color: #fdf6ea; letter-spacing: -.01em; }
.ph-sub { margin: 1px 0 6px; font-size: 6.8px; color: #e9c98d; font-weight: 600; }
.ph-frame {
  border: 3px solid #7a5230; border-radius: 4px; padding: 3px;
  background: #4a1222;
}
.ph-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.mg { display: block; aspect-ratio: 1 / 1.1; border-radius: 1.5px; background-color: #d9b071; }
.mg-0 { background-color: #e7c383; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 4px); }
.mg-1 { background-color: #7fb0c6; background-image: radial-gradient(rgba(255,255,255,.9) .7px, transparent .8px); background-size: 4px 4px; }
.mg-2 { background-color: #4f8f61; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.4) 0 1px, transparent 1px 4px); }
.mg-3 { background-color: #6f68a8; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, transparent 1px 4px); }
.mg-4 { background-color: #c8546a; background-image: radial-gradient(rgba(255,255,255,.8) .7px, transparent .8px); background-size: 4px 4px; }
.mg-5 { background-color: #6d8fd0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 1px, transparent 1px 4px); }
.mg { position: relative; }
.mg::before, .mg::after { content: ''; position: absolute; background: rgba(233, 196, 106, .95); }
.mg::before { left: 45%; top: 0; width: 10%; height: 100%; }
.mg::after { top: 45%; left: 0; height: 10%; width: 100%; }
.mg.on { filter: saturate(1.15) brightness(1.06); box-shadow: 0 0 0 1px rgba(255, 226, 150, .85); }
.ph-panel { flex: 1 1 auto; margin-top: 6px; background: #fffaf1; border-radius: 7px 7px 0 0; padding: 7px 7px 10px; box-shadow: 0 -2px 8px rgba(0,0,0,.16); overflow: hidden; }
.ph-label { display: block; font-size: 5.8px; font-weight: 700; color: #6b544a; margin-bottom: 2px; }
.ph-input { border: 1px solid #e3d3ba; border-radius: 3px; padding: 4px 5px; font-size: 6.3px; color: #4a3630; background: #fff; margin-bottom: 4px; }
.ph-input.tall { min-height: 18px; line-height: 1.35; }
.ph-chips { display: flex; gap: 2px; margin-bottom: 4px; }
.ph-chips b { flex: 1; text-align: center; font-size: 5px; padding: 3px 1px; border: 1px solid #e2d1b8; border-radius: 3px; background: #fffdf8; font-weight: 700; }
.ph-chips b.on { border-color: var(--red); background: #fff1ec; color: var(--red-deep); }
.ph-btn {
  background: linear-gradient(180deg, var(--red-2), var(--red-deep)); color: #fff;
  text-align: center; font-size: 6.4px; font-weight: 800; padding: 6px 3px; border-radius: 99px;
  box-shadow: 0 2px 5px rgba(160,25,40,.3);
}
.ph-note { margin: 0 0 3px; font-family: var(--serif); font-size: 7.6px; font-weight: 700; color: #4a2a24; }
.ph-note.hot { color: #a3232c; }
.ph-note2 { margin: 0 0 5px; font-size: 5.3px; color: #7a6252; line-height: 1.45; }
.ph-lights { display: flex; gap: 1px; margin-bottom: 4px; }
.ph-lights i { flex: 1; height: 3px; border-radius: 99px; background: #e6d8c2; }
.ph-lights i.on { background: #e9b95c; }
.ph-mini { display: flex; gap: 2px; margin-top: 3px; }
.ph-mini span { flex: 1; text-align: center; font-size: 4.9px; font-weight: 700; padding: 3px 0; border: 1px solid #e6d6bf; border-radius: 2px; color: #5b4640; }
.ph-stickers { display: flex; gap: 3px; justify-content: space-between; margin-bottom: 5px; }
.ph-stickers b { width: 15px; height: 15px; display: grid; place-items: center; font-size: 8px; background: #fff; border: 1px solid #e6d6bf; border-radius: 50%; }
.ph-stickers b.on { border-color: #c99b3e; box-shadow: 0 0 0 2px rgba(201,155,62,.22); }
.ph-check { font-size: 5.2px; color: #6b544a; margin: 0 0 4px; }
.ph-note-card {
  display: block; background: #fff; border: 1px solid #e6d6bf; border-radius: 4px; padding: 4px 5px;
  font-size: 5.4px; line-height: 1.5; color: #4a3630;
}
.ph-note-card b { display: block; font-size: 5.6px; margin-bottom: 1px; color: #8a4a24; }
.ph-tabbar {
  flex: 0 0 auto; display: flex; justify-content: space-around; align-items: center;
  height: 22px; background: #fffaf1; border-top: 1px solid #eee0ca; font-size: 7px;
  position: absolute; left: 8px; right: 8px; bottom: 0; border-radius: 0 0 18px 18px;
}
.ph-foot { margin: 6px 0 0; text-align: center; font-size: 5px; color: #9a8074; }
.ph-links { margin-top: 6px; text-align: center; font-size: 5px; font-weight: 600; color: #8a6a4c; }
.ph-note-card + .ph-note-card { margin-top: 4px; }

/* ---------------- why ---------------- */
.why { background: linear-gradient(180deg, #fdf7ea, #f7eddc); padding: 74px 0 84px; }
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.why-grid li {
  background: linear-gradient(180deg, #fffdf8, #fdf3e3);
  border: 1px solid #efe1cb; border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 2px 5px rgba(90, 50, 30, .05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.why-grid li:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(90, 50, 30, .1); border-color: #e6d0ae; }
.badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf7, #f2e0c4);
  font-size: 24px; margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(180, 140, 90, .28), 0 3px 7px rgba(90, 50, 30, .1);
}
.why-grid h3 { font-size: 21px; margin: 0 0 7px; color: #241016; }
.why-grid p { margin: 0; font-size: 15px; color: #5f4a46; line-height: 1.62; }

/* ---------------- prose / faq ---------------- */
.prose { background: var(--cream); padding: 72px 0 30px; }
.prose h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 18px; color: #241016; }
.prose h3 { font-size: 23px; margin: 34px 0 10px; color: #3a1c1c; }
.prose p { color: #53403d; line-height: 1.78; font-size: 16.5px; }
.prose b { color: #2c1720; }
.faq { background: var(--cream); padding: 34px 0 80px; }
.faq h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.faq details {
  background: #fffdf8; border: 1px solid #ece0cd; border-radius: 12px;
  padding: 4px 18px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(90, 50, 30, .04);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 13px 0;
  font-weight: 600; font-size: 16px; color: #2c1720;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 20px; font-weight: 400; flex: 0 0 auto; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 15px; color: #5c4844; font-size: 15.5px; line-height: 1.68; }

/* ---------------- CTA ---------------- */
.cta {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 130% at 50% 0%, #22306a, #0e1738 70%);
  color: #fdf6ea; text-align: center; padding: 74px 0 84px;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 10px; }
.cta p { color: rgba(253, 246, 234, .75); margin-bottom: 26px; }
.cta-small { margin-top: 16px !important; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(253,246,234,.5) !important; }

/* ---------------- footer ---------------- */
.bottom { background: #0a1129; color: rgba(253, 246, 234, .8); padding: 54px 0 40px; }
.bottom-name { font-family: var(--serif); font-size: 19px; color: #fdf6ea; margin: 0 0 6px; }
.bottom-note { font-size: 14px; max-width: 660px; color: rgba(253,246,234,.6); margin-bottom: 22px; }
.bottom-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.bottom-nav a { color: rgba(253, 246, 234, .72); text-decoration: none; font-size: 13.5px; }
.bottom-nav a:hover { color: #fff; text-decoration: underline; }
.bottom-small { margin: 22px 0 0; font-size: 12px; color: rgba(253,246,234,.4); }

/* ---------------- simple pages ---------------- */
.simple { background: var(--cream); padding: 70px 0 90px; min-height: 60vh; }
.simple h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.simple h2 { font-size: 24px; margin: 30px 0 8px; }
.simple p, .simple li { color: #53403d; line-height: 1.75; }
.simple ul { padding-left: 22px; margin-bottom: 18px; }
.simple li { margin-bottom: 7px; }
.code-form { display: flex; gap: 12px; align-items: flex-end; margin: 26px 0 18px; flex-wrap: wrap; }
.code-form .field { flex: 1 1 260px; margin: 0; }
.code-form .btn { flex: 0 0 auto; }
.form-err { background: #fff0ee; border: 1px solid #f0c7c0; color: #9a2f25; padding: 11px 14px; border-radius: 10px; font-size: 14.5px; margin: 0 0 16px; }

/* ---------------- modal ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(8, 12, 30, .62);
  backdrop-filter: blur(5px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  width: min(470px, 100%);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  background: var(--panel);
  color: var(--ink);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-x {
  position: absolute; right: 12px; top: 8px;
  background: none; border: 0; font-size: 26px; line-height: 1;
  color: #9a8074; cursor: pointer; padding: 4px 8px;
}
.modal-x:hover { color: #5b4038; }
.door-open { text-align: center; }
.door-open .op-emoji { font-size: 46px; line-height: 1; margin-bottom: 6px; }
.door-open h3 { font-size: 27px; margin-bottom: 4px; }
.door-open .from { color: #8a6a55; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.door-open .note {
  font-family: var(--serif); font-size: 21px; line-height: 1.5; color: #3a1c1c;
  background: #fffdf6; border: 1px solid #f0e2cd; border-radius: 14px;
  padding: 18px 18px; margin: 0 0 14px; text-align: left; white-space: pre-wrap;
}
.door-open .op-foot { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.fill-box h3 { font-size: 23px; margin-bottom: 3px; }
.fill-box .sub { color: #7a6252; font-size: 13.5px; margin-bottom: 12px; }
.sticker-pick { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.sticker-pick button {
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px;
  border: 1px solid #e6d6bf; background: #fffdf8; cursor: pointer;
  display: grid; place-items: center; transition: all .15s;
}
.sticker-pick button.on { border-color: var(--gold-2); background: #fff8e6; box-shadow: 0 0 0 3px rgba(201, 155, 62, .2); transform: translateY(-2px); }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #6b544a; margin: 0 0 14px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--red); }
.counter { text-align: right; font-size: 12px; color: #9a8074; margin: -8px 0 12px; }
.counter.over { color: var(--red-deep); font-weight: 700; }
.form-alert { background: #fff0ee; border: 1px solid #f0c7c0; color: #9a2f25; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; margin-bottom: 12px; }
.form-alert[hidden] { display: none; }
.fill-box #fillGo { position: sticky; bottom: 0; z-index: 3; margin-top: 4px; }
.fill-box .hint { padding-bottom: 2px; }
.owner-login h3 { font-size: 23px; margin-bottom: 6px; }
.owner-login p { font-size: 14px; color: #6b544a; margin-bottom: 14px; }
.owner-login .alt { font-size: 12.5px; color: #8a7264; margin-top: 12px; }
.owner-login .alt button { background: none; border: 0; color: var(--red); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------------- help sheet ---------------- */
.help-sheet {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 12, 30, .62); backdrop-filter: blur(5px);
}
.help-sheet[hidden] { display: none; }
.help-card { position: relative; width: min(520px, 100%); background: var(--panel); border-radius: 20px; padding: 28px 26px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.help-card h2 { font-size: 27px; margin-bottom: 12px; }
.help-card ol { padding-left: 20px; color: #53403d; font-size: 15px; line-height: 1.7; }
.help-card li { margin-bottom: 7px; }
.help-x { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 26px; color: #9a8074; cursor: pointer; }
.help-foot { margin: 14px 0 0; font-size: 13px; color: #7a6252; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 200; background: #22182f; color: #fff6e6;
  padding: 11px 20px; border-radius: 99px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  animation: toastIn .2s ease;
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------------- loading ---------------- */
.cal-page .hero-in { padding-bottom: 40px; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.shake { animation: shake .45s ease; border-color: var(--red) !important; }

.skel { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .stage { order: 1; }
  .panel { order: 2; margin-top: 8px; }
  .hero-in { padding-bottom: 170px; }
  .frame-cap { display: none; }
  .hd { margin-bottom: 16px; }
  .top-nav { gap: 18px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .app { padding-top: 30px; }
  .hero-in { padding-bottom: 130px; gap: 22px; }
  .hd h1 { font-size: 24px; }
  .hd h1 small { font-size: 12.5px; }
  .hd { gap: 10px; }
  .hdr { padding-top: 2px; gap: 8px; }
  .help-pill { padding: 5px 10px 5px 6px; font-size: 12.5px; }
  .help-pill span { display: none; }
  .brand { font-size: 15px; gap: 7px; }
  .brand-ic { font-size: 19px; }
  .top-in { height: 54px; }
  .top-nav { gap: 12px; }
  .top-nav a { font-size: 13px; }
  .grid { gap: 7px; padding: 12px; }
  .cal-grid { gap: 6px; padding: 10px; }
  .tag { min-width: 52%; font-size: 15px; padding: 2px 4px 3px; }
  .ribbon { height: 12%; }
  .door .who { font-size: 9px; bottom: -16px; }
  .card { border-radius: 16px; padding: 16px 15px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .phone { max-width: 260px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .how, .why, .prose { padding-top: 52px; }
  .how h2, .why h2 { font-size: 30px; }
  .share-row { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .share-mini { font-size: 10px; padding: 8px 2px; }
  .bottom-nav { gap: 9px 18px; }
  .cta { padding: 56px 0 64px; }
  .scene-svg { height: 130px; }
  .scene-svg .props { display: none; }
  .lights { height: 44px; }
  .modal-card { padding: 22px 18px 18px; }
  .door-open .note { font-size: 18px; }
}
@media (max-width: 480px) {
  .top-nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .snow { display: none; }
}

/* ============================================================
   Everything-free cosmetics: wrappings, song gifts, themes, print
   ============================================================ */

/* calendar themes (free) */
.grid[data-theme="snowy"] { background: radial-gradient(120% 90% at 50% 0%, #1e3c68 0%, #142b4d 55%, #0d1e3a 100%); }
.grid[data-theme="snowy"] .paper { filter: saturate(.82) brightness(1.06) hue-rotate(-10deg); }
.grid[data-theme="snowy"] .ribbon, .grid[data-theme="snowy"] .ribbon::before { background: linear-gradient(180deg, #f3f8ff, #c8d9ef 50%, #97b2d0); }
.grid[data-theme="snowy"] .tag { background: linear-gradient(180deg, #ffffff, #e5eefa); color: #27415f; }

.grid[data-theme="candycane"] { background: radial-gradient(120% 90% at 50% 0%, #1f4a38 0%, #143528 55%, #0d2620 100%); }
.grid[data-theme="candycane"] .ribbon, .grid[data-theme="candycane"] .ribbon::before {
  background: repeating-linear-gradient(135deg, #fff 0 7px, #d63a45 7px 14px);
}
.grid[data-theme="candycane"] .tag { background: linear-gradient(180deg, #fffdf6, #ffe9e6); color: #9a2230; }

.grid[data-theme="golden"] { background: radial-gradient(120% 90% at 50% 0%, #4b3010 0%, #351f09 58%, #241305 100%); }
.grid[data-theme="golden"] .paper { filter: saturate(.95) brightness(1.04); }
.grid[data-theme="golden"] .door.empty { color: #ffe9ab; border-color: rgba(255, 233, 168, .6); }
.grid[data-theme="golden"] .door.empty.locked { opacity: .78; }
.grid[data-theme="golden"] .door.empty:hover { border-color: rgba(255, 240, 190, .9); background: rgba(255, 236, 180, .1); }
.grid[data-theme="golden"] .door.today::after {
  border-color: #fff3c4;
  box-shadow: 0 0 0 2px rgba(255, 233, 168, .28), 0 0 22px rgba(255, 214, 120, .65), 0 0 0 1px rgba(60, 32, 8, .6);
}
.grid[data-theme="golden"] .ribbon, .grid[data-theme="golden"] .ribbon::before {
  background: linear-gradient(180deg, #fff4cd 0%, #eccb79 45%, #b98a34 100%);
}
.grid[data-theme="golden"] .tag { background: linear-gradient(180deg, #fff9e4, #f4e0aa); color: #6b4210; box-shadow: 0 2px 4px rgba(0,0,0,.35), inset 0 0 0 1px rgba(150,105,30,.4), 0 0 12px rgba(240,200,110,.35); }
.grid[data-theme="golden"] .door.today::after { border-color: #ffe9a8; }

/* note wrappings */
.note.wrap-gold {
  background: linear-gradient(135deg, #fff9e2 0%, #f9e6b2 35%, #eed08a 62%, #fff7d9 100%);
  border-color: #e3c06a; color: #5a3a10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 6px 18px rgba(160, 120, 30, .18);
}
.note.wrap-snow {
  background-image: radial-gradient(circle at 20% 20%, #fff 0 2px, transparent 2.2px), radial-gradient(circle at 70% 60%, #fff 0 1.6px, transparent 1.8px);
  background-size: 26px 26px, 26px 26px; background-color: #f4f9ff;
  border-color: #d3e3f3; color: #2b3a4a;
}
.note.wrap-kraft {
  background: linear-gradient(160deg, #e9d7b9 0%, #ddc5a2 100%);
  border-color: #c9ab80; color: #4a3620;
}
.note.wrap-plaid {
  background-image:
    repeating-linear-gradient(90deg, rgba(160, 30, 40, .13) 0 12px, transparent 12px 34px),
    repeating-linear-gradient(0deg, rgba(20, 80, 50, .13) 0 12px, transparent 12px 34px);
  background-color: #fffaf0;
  border-color: #d9c8ad; color: #3e2c22;
}

/* wrapping picker */
.mini-label { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; font-size: 12px; font-weight: 700; color: #7a6252; }
.free-tag { background: #e8f6ea; color: #2f6b3a; border: 1px solid #bfe3c6; font-size: 10px; padding: 1px 6px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.wrap-pick { display: flex; gap: 9px; margin: 0 0 15px; }
.wrap-dot {
  width: 36px; height: 36px; border-radius: 10px; padding: 0;
  border: 1px solid #dccbb2; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 1px 3px rgba(90,50,30,.12);
  transition: transform .15s, box-shadow .15s;
}
.wrap-dot:hover { transform: translateY(-2px); }
.wrap-dot.on { box-shadow: 0 0 0 2px #fff8ee, 0 0 0 4px #c99b3e, 0 2px 8px rgba(150,100,20,.25); }
.wrap-dot.wrap-classic { background: #fffdf6; }
.wrap-dot.wrap-gold { background: linear-gradient(135deg, #fff6d6, #e8c46a); }
.wrap-dot.wrap-snow { background-image: radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 2.2px); background-size: 12px 12px; background-color: #eaf4ff; }
.wrap-dot.wrap-kraft { background: linear-gradient(160deg, #e8d6b7, #d3b88f); }
.wrap-dot.wrap-plaid {
  background-image: repeating-linear-gradient(90deg, rgba(160,30,40,.35) 0 4px, transparent 4px 12px), repeating-linear-gradient(0deg, rgba(20,80,50,.35) 0 4px, transparent 4px 12px);
  background-color: #fffaf0;
}

/* song gift */
.songset { margin: -2px 0 14px; }
.songset summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #7a5c3c; list-style: none; padding: 4px 0; }
.songset summary::-webkit-details-marker { display: none; }
.songset summary::before { content: '▸ '; color: var(--gold-2); }
.songset[open] summary::before { content: '▾ '; }
.songset .field { margin: 10px 0 0; }
.song-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff7e8; border: 1px solid #eeddc0; border-radius: 12px;
  padding: 9px 12px; margin: 0 0 14px; text-decoration: none; color: #5a3a20;
  text-align: left;
}
.song-chip:hover { background: #fff3dc; border-color: #e0c48f; }
.song-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #e2543f, #b5232f); color: #fff; font-weight: 800; font-size: 14px; }
.song-t { flex: 1; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-sub { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--red); }

/* print / save as PDF */
@media print {
  @page { margin: 12mm; }
  .top, .deco, .panel, .how, .why, .prose, .faq, .cta, .bottom, .frame-cap, .modal, .toast, .help-sheet { display: none !important; }
  body { background: #fff !important; }
  .app { background: #fff !important; color: #241016 !important; padding: 0 !important; }
  .app .hd h1 { color: #241016 !important; text-shadow: none !important; }
  .app .hd h1 small { color: #7a5c3c !important; }
  .hd .hdr { display: none !important; }
  .hero-in { display: block !important; padding: 0 !important; }
  .frame, .grid, .paper, .tag, .ribbon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .door.today::after { display: none !important; }
  .grid { box-shadow: none !important; }
}
