/* ============ Friend Advent · felt & snow ============ */
:root {
  --bg: #12332d;
  --bg-2: #0e2925;
  --text: #f5f8f4;
  --muted: #b3c5bb;
  --faint: #8fa89b;
  --gold: #d2b579;
  --red: #c74449;
  --red-d: #a8343a;
  --card: rgba(240, 246, 244, .045);
  --card-2: rgba(240, 246, 244, .08);
  --line: rgba(240, 246, 244, .12);
  --paper: #fbf7ee;
  --ink: #2b2a26;
  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans', system-ui, sans-serif;
  --hand: 'Patrick Hand', 'ZCOOL KuaiLe', 'Hannotate SC', 'Kaiti SC', 'Comic Sans MS', cursive;
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --felt-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root:lang(zh-TW) { --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; }
:root:lang(ja) { --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif; }
:root:lang(ko) { --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
body.theme-midnight { --bg: #142238; --bg-2: #0e1a2c; }
body.theme-berry { --bg: #3d151c; --bg-2: #2e0f15; }
body.theme-cocoa { --bg: #2d211a; --bg-2: #221812; }
body.theme-cottage { --bg: #2a3366; --bg-2: #1e2550; }
body.theme-cottage-sunset { --bg: #5b3b7c; --bg-2: #462c61; }
body.theme-cottage-night { --bg: #0b1130; --bg-2: #070b22; }
body.theme-cottage-morning { --bg: #3f7cc4; --bg-2: #3068a8; }
/* 3D cottage palettes: sky colours (horizon → zenith) for swatches */
.theme-cottage { --sk0: #f7c5a4; --sk1: #c79fc2; --sk2: #6c79bd; --sk3: #222c63; }
.theme-cottage-sunset { --sk0: #ffd98a; --sk1: #ffa778; --sk2: #e07a92; --sk3: #5b3b7c; }
.theme-cottage-night { --sk0: #3d4f92; --sk1: #283872; --sk2: #141d4c; --sk3: #050920; }
.theme-cottage-morning { --sk0: #fff2d8; --sk1: #dcedf8; --sk2: #9ecbef; --sk3: #4b8ad3; }
/* 2.5D palettes: each tile variant = face / text / ribbon (also used by the wizard mock via the same class) */
.theme-frost { --bg: #0f1f3d; --bg-2: #0a1630; --glow: rgba(150, 200, 255, .16);
  --f0: #d6e8f8; --k0: #1d3a63; --r0: #e0b95f; --f1: #5a8fd6; --k1: #fff; --r1: #f4f8ff; --f2: #fdfeff; --k2: #2a4a7a; --r2: #7fb0e6; --f3: #f1d08a; --k3: #4a3510; --r3: #fff; }
.theme-candy { --bg: #4a0e1b; --bg-2: #380913; --glow: rgba(255, 170, 190, .16);
  --f0: #e3424e; --k0: #fff; --r0: #fff6ef; --f1: #fff4ec; --k1: #c3313d; --r1: #e3424e; --f2: #f6a5b5; --k2: #6b1626; --r2: #fff6ef; --f3: #f3d38c; --k3: #5a2a0e; --r3: #e3424e; }
.theme-evergreen { --bg: #0f3328; --bg-2: #0a261d; --glow: rgba(255, 220, 140, .14);
  --f0: #2f8a5f; --k0: #fff; --r0: #f0cf86; --f1: #f3e6c8; --k1: #1f5a3f; --r1: #c8403f; --f2: #c8403f; --k2: #fff; --r2: #f0cf86; --f3: #f0cf86; --k3: #4a3510; --r3: #c8403f; }
.theme-plum { --bg: #261538; --bg-2: #1b0e29; --glow: rgba(240, 180, 255, .16);
  --f0: #8b5fd0; --k0: #fff; --r0: #f3d38c; --f1: #f5cad9; --k1: #5a2a6e; --r1: #8b5fd0; --f2: #4a2f7d; --k2: #f5e9ff; --r2: #f5cad9; --f3: #f3d38c; --k3: #4a2a10; --r3: #8b5fd0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--sans); color: var(--text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background: var(--felt) 0 0 / 240px, var(--felt-dark) 0 0 / 180px, radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .05), transparent 60%), var(--bg);
  background-attachment: fixed;
  transition: background-color .5s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 40px); gap: 12px; transition: background .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .28)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.logo-full { width: auto; height: 54px; }
.logo-mark { width: 48px; height: 48px; display: none !important; }
.logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid rgba(240, 246, 244, .55); background: transparent; font-size: 13px; font-weight: 700; transition: background .2s; }
.pill-btn { border: 1.5px solid rgba(240, 246, 244, .55); background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; white-space: nowrap; }
.auth-slot { position: relative; display: flex; align-items: center; min-height: 38px; }
.auth-slot:empty { display: none; }
.gsi-holder { display: flex; align-items: center; color-scheme: light; }
.avatar-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid var(--gold); background: var(--red); color: #fff; font-weight: 800; font-size: 16px; overflow: hidden; display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.avatar-btn:hover { transform: scale(1.06); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.account-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px; max-width: 280px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 8px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); z-index: 60; }
.account-menu .who { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid rgba(43, 42, 38, .12); margin-bottom: 6px; }
.account-menu .who b { font-size: 15px; }
.account-menu .who span { font-size: 13px; color: #6b675e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu button { width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--red-d); font-weight: 700; font-size: 14px; cursor: pointer; }
.account-menu button:hover { background: rgba(199, 68, 73, .1); }
.mine-hint { margin-top: 14px; font-size: 14px; color: var(--muted); }
.icon-btn.playing { border-color: var(--gold); color: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(210, 181, 121, .15); } }
.icon-btn:hover, .pill-btn:hover { background: var(--card-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; padding: 15px 34px; font-weight: 700; font-size: 17px; color: #fff; text-decoration: none;
  background: var(--red); box-shadow: 0 10px 28px -10px rgba(199, 68, 73, .75), 0 1px 0 rgba(255, 255, 255, .18) inset; transition: transform .15s, background .2s; }
.btn:hover { background: #d24f54; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
[dir=rtl] .btn .arrow { transform: scaleX(-1); }
[dir=rtl] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
.btn.sm { padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.btn.ghost { background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); }
.btn.ghost:hover { background: rgba(240, 246, 244, .14); }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 4px; }
.link-btn:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; margin-top: -74px; padding: 112px 20px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 900px; text-wrap: balance; }
.hero .sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin-top: 14px; max-width: 720px; text-wrap: balance; }
.stage { position: relative; width: min(500px, 80vw); margin-top: clamp(14px, 3vh, 30px); }
.stage .main { width: 100%; max-height: max(260px, min(50vh, calc(100svh - 500px))); object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.stage .orn { position: absolute; width: clamp(46px, 5.5vw, 72px); z-index: 3; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -1)); } }
.hero-foot { position: relative; z-index: 4; width: calc(100% + 40px); margin-top: -84px; padding: 100px 20px 24px; display: grid; justify-items: center; gap: 10px; }
.hero-foot::after { content: ''; position: absolute; left: 0; right: 0; bottom: -70px; height: 70px; background: linear-gradient(#d9e4ea, rgba(217, 228, 234, 0)); z-index: -1; pointer-events: none; }
.hero-foot .drift { position: absolute; left: 0; width: 100%; top: 0; height: 100%; z-index: -1; }
.hero-foot .btn { min-width: 240px; }
.hero-foot .link-btn { color: #6f8a80; }
.hero-foot .link-btn:hover { color: #2c4a40; }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 40px); }
.wrap { max-width: 1120px; margin: 0 auto; }
.sec-title { font-size: clamp(28px, 3.2vw, 40px); }
.sec-sub { color: var(--muted); margin-top: 10px; font-size: 17px; max-width: 640px; }
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }
.what { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.what p { color: var(--muted); margin-top: 16px; font-size: 16.5px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 22px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.stat img { width: 46px; height: 46px; margin-bottom: 14px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.step { padding: 12px 12px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step .preview { height: 190px; border-radius: 12px; background: var(--felt-dark) 0 0 / 180px, var(--bg-2); position: relative; overflow: hidden; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, .05); }
.step .preview .drift { position: absolute; left: 0; bottom: -4px; width: 100%; height: 64px; }
.step .preview .mini-cal { width: 140px; position: relative; z-index: 1; margin-top: -10px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.step .preview .col { display: grid; gap: 16px; justify-items: center; }
.step .preview .chips { display: flex; gap: 14px; }
.step .preview .chips img { width: 42px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.step .preview .chips img:nth-child(2) { animation-delay: -1.6s; }
.step .preview .chips img:nth-child(3) { animation-delay: -3.2s; }
.link-chip { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; font-size: 13px; color: var(--muted); }
.link-chip b { background: var(--red); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 7px; font-weight: 600; }
.step .preview .env { width: 96px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); }
.step .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--muted); font-size: 13px; font-weight: 700; margin-right: 10px; flex: none; }
.step h3 { font-size: 18px; display: flex; align-items: center; padding: 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 10px; padding: 0 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.feat { display: flex; gap: 14px; padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: background .2s, transform .2s; }
.feat:hover { background: var(--card-2); transform: translateY(-2px); }
.feat img { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .3)); }
.feat h3 { font-size: 16px; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.sticker-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 22px 10px; margin-top: 34px; }
.sticker { text-align: center; font-size: 13px; color: var(--muted); }
.sticker img { width: min(68px, 100%); margin: 0 auto 8px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.sticker:hover img { transform: translateY(-6px) rotate(-8deg) scale(1.08); }

.sealed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.note-demo { position: relative; justify-self: center; width: min(360px, 100%); }
.note { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 22px 24px 16px; font-family: var(--hand); font-size: 21px; line-height: 31px; white-space: pre-line; transform: rotate(-4deg);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); background-image: repeating-linear-gradient(transparent 0 30px, rgba(0, 0, 0, .06) 30px 31px); background-position: 0 22px; }
.note .from { display: block; margin-top: 14px; padding-top: 8px; border-top: 1px solid rgba(0, 0, 0, .15); color: #6a675f; font-size: 18px; }
.note-demo .corner { position: absolute; top: -30px; right: -20px; width: 70px; transform: rotate(14deg); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); z-index: 2; }
.chips-row { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.bullets { display: grid; gap: 20px; margin-top: 26px; }
.bullet { display: flex; gap: 14px; align-items: flex-start; }
.bullet img { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .3)); }
.bullet h3 { font-size: 15.5px; }
.bullet p { color: var(--muted); font-size: 14.5px; }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
.faq-art { position: sticky; top: 110px; width: min(340px, 80%); justify-self: center; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.faq { margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 4px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--muted); padding: 0 4px 18px; font-size: 15px; }

.cta-final { text-align: center; padding: clamp(60px, 8vw, 100px) 20px 0; position: relative; overflow: hidden; }
.cta-final .tree { width: 96px; margin: 0 auto 18px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .4)); }
.cta-final h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 26px; }
.drift-band { display: block; width: 100%; height: 140px; margin-top: 50px; }
footer { background: #e6eef1; color: #557066; text-align: center; padding: 0 20px 36px; font-size: 14px; margin-top: -3px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 16px; background: transparent; color: inherit; max-width: min(520px, 100vw); width: 100%; max-height: 100dvh; overflow: visible; }
dialog::backdrop { background: rgba(9, 9, 11, .6); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .3s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.sheet { position: relative; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 20px; padding: 28px 24px 24px;
  background: var(--felt) 0 0 / 240px, var(--bg); border: 1px solid var(--line); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7); }
.sheet h2 { font-size: 24px; padding-right: 40px; }
.sheet .sub { color: var(--muted); margin: 6px 0 20px; font-size: 15px; }
.x-btn { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card-2); display: grid; place-items: center; z-index: 3; font-size: 15px; }
.x-btn:hover { background: rgba(240, 246, 244, .16); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--text); padding: 13px 14px; border-radius: 10px; font-size: 16px; transition: border-color .2s; }
.input::placeholder { color: #7f978b; }
.input:focus { border-color: var(--gold); outline: none; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { border: 0; padding: 0; background: none; text-align: center; font-size: 13px; color: var(--muted); }
.swatch i { display: block; height: 54px; border-radius: 12px; margin-bottom: 6px; background: var(--felt) 0 0 / 240px, var(--c); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .2s; }
.swatch[aria-checked='true'] { color: var(--text); font-weight: 600; }
.swatch[aria-checked='true'] i { box-shadow: 0 0 0 2px var(--gold); }
.mine-list { display: grid; gap: 8px; margin-top: 16px; }
.mine-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-radius: 12px; text-decoration: none; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.mine-item:hover { background: var(--card-2); }
.mine-item span:last-child { color: var(--gold); font-weight: 500; }

/* ---------- toast & sparkle ---------- */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); opacity: 0; z-index: 100; pointer-events: none;
  background: #f5f8f4; color: #12332d; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); transition: .3s cubic-bezier(.2, .9, .3, 1.2); max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[popover] { inset: auto; margin: 0; border: 0; overflow: visible; left: 50%; bottom: 26px; }
.spark { position: fixed; z-index: 90; pointer-events: none; font-size: 16px; line-height: 1; margin: -8px 0 0 -8px; animation: spark 1.1s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(180deg); opacity: 0; } }

/* ================= CALENDAR PAGE ================= */
.cal main { max-width: 1040px; margin: 0 auto; padding: 8px clamp(14px, 4vw, 40px) 0; }
.cal-head { text-align: center; margin: 6px auto 30px; max-width: 760px; }
.cal-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gold); font-weight: 600; }
.cal-head .eyebrow img { width: 22px; }
.cal-head h1 { font-size: clamp(32px, 5vw, 54px); margin: 10px 0; text-wrap: balance; }
.cal-head h1 em { font-style: normal; color: var(--gold); }
.cal-head .sub { color: var(--muted); font-size: 16.5px; max-width: 560px; margin: 0 auto; text-wrap: balance; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.meta { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.theme-dots { display: inline-flex; gap: 6px; align-items: center; padding: 5px 8px 5px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.theme-dots button { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset; }
.theme-dots button[aria-checked='true'] { box-shadow: 0 0 0 2px var(--gold); }
.progress { width: min(320px, 80%); height: 6px; margin: 16px auto 0; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }

.board { position: relative; padding: clamp(10px, 2vw, 22px); border-radius: 22px; background: rgba(0, 0, 0, .16); border: 1px solid var(--line); box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .6) inset; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(116px, 1fr); gap: clamp(8px, 1.2vw, 14px); grid-auto-flow: dense; }
.door-wrap { position: relative; perspective: 1000px; border-radius: 14px; }
.door-wrap.wide { grid-column: span 2; }
.door-wrap.big { grid-column: span 2; grid-row: span 2; }
.behind { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(255, 226, 160, .55), rgba(255, 200, 120, .12) 55%, rgba(0, 0, 0, .35)), #3a2a1a; box-shadow: 0 6px 20px rgba(0, 0, 0, .55) inset; }
.behind img { width: clamp(46px, 6vw, 70px); margin: 0 auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); animation: wob 3s ease-in-out infinite; }
.big .behind img { width: clamp(80px, 11vw, 140px); }
@keyframes wob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-3px); } }
.behind .hint { font-size: 12px; color: #fff3da; margin-top: 2px; font-weight: 600; }

.door { --c1: #c74449; --c2: #9e2f35; --frame: rgba(255, 233, 200, .5);
  position: absolute; inset: 0; border: 0; padding: 0; border-radius: 14px; transform-origin: left center; z-index: 1; text-align: left; color: #fff;
  transition: transform 1s cubic-bezier(.3, .1, .2, 1), filter .3s, box-shadow .3s;
  background: var(--felt-dark) 0 0 / 180px, radial-gradient(circle at 25% 15%, rgba(255, 255, 255, .22), transparent 50%), linear-gradient(165deg, var(--c1), var(--c2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 10px 20px -10px rgba(0, 0, 0, .7); }
.door.v1 { --c1: #2f7a57; --c2: #1d5a3f; --frame: rgba(225, 245, 230, .42); }
.door.v2 { --c1: #f3ead8; --c2: #dccdb1; --frame: rgba(160, 120, 70, .45); color: #8e2f35; }
.door.v3 { --c1: #e5c47f; --c2: #b58f45; --frame: rgba(255, 250, 230, .6); color: #5a3d0e; }
.door::before { content: ''; position: absolute; inset: 7px; border-radius: 9px; border: 1.5px solid var(--frame); pointer-events: none; }
.door::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8e0, #d2b579 55%, #8a6a2a); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.door .num { position: absolute; left: 15px; top: 11px; font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.big .door .num { font-size: clamp(48px, 7vw, 76px); left: 22px; top: 18px; }
.door .tag { position: absolute; left: 11px; bottom: 11px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); color: #12332d; max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.door .tag img { width: 15px; height: 15px; flex: none; }
.door .tag b { font-weight: 800; }
.door .seal { position: absolute; right: 24px; bottom: 8px; width: 38px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .4)); pointer-events: none; }
.big .door .seal { width: 64px; right: 32px; bottom: 16px; }
.door:hover { transform: rotateY(-14deg); }
.door.locked { filter: saturate(.75) brightness(.86); }
.door.locked:hover { transform: rotateY(-4deg); }
.door.taken { filter: saturate(.6) brightness(.8); cursor: default; }
.door.taken:hover { transform: none; }
.door.empty-slot .tag { background: var(--red); color: #fff; }
.door.v0.empty-slot .tag { background: #fff; color: var(--red); }
.door.mine .tag, .door.ready .tag { background: var(--gold); color: #3a2a0a; }
.door.ready { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px rgba(240, 210, 140, .6), 0 0 28px 4px rgba(240, 210, 140, .55); } }
.door.today::before { border-color: #fff; border-width: 2px; }
.door-wrap.open .door { transform: rotateY(-108deg); pointer-events: none; }
.door-wrap.open .behind { cursor: pointer; }
.door-wrap.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- 2.5D gift-box style: a shelf of cubbies, each holding a glossy present ---------- */
body.depth { background: radial-gradient(circle at 12% 18%, var(--glow), transparent 24%), radial-gradient(circle at 88% 30%, var(--glow), transparent 22%), radial-gradient(circle at 60% 90%, var(--glow), transparent 26%),
  var(--felt) 0 0 / 240px, var(--felt-dark) 0 0 / 180px, radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .06), transparent 60%), var(--bg); background-attachment: fixed; }
body.depth .board { padding: clamp(12px, 2vw, 22px); border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), color-mix(in srgb, var(--bg) 82%, black);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 2px 0 rgba(255, 255, 255, .1) inset, 0 -6px 0 rgba(0, 0, 0, .25) inset, 0 40px 70px -30px rgba(0, 0, 0, .8); }
body.depth .grid { grid-auto-rows: minmax(128px, 1fr); }
body.depth .door-wrap { border-radius: 18px; perspective: none;
  /* the cubby: dark recess lit from above, with a lighter shelf ledge at the bottom */
  background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 55%, #fff 8%) 0 12px, rgba(0, 0, 0, .28) 12px 15px, transparent 15px),
    radial-gradient(ellipse 90% 70% at 50% 0%, var(--glow), transparent 70%), color-mix(in srgb, var(--bg) 70%, black);
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .7) inset, 0 1px 0 rgba(255, 255, 255, .08); }
body.depth .door-wrap::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 8px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(5px); transition: opacity .5s, transform .5s; }
body.depth .behind { background: radial-gradient(circle at 50% 50%, rgba(255, 220, 150, .5), transparent 60%); box-shadow: none; border-radius: 18px; }
body.depth .door { background: none; box-shadow: none; transform-origin: 50% 100%; z-index: 2; border-radius: 18px; transition: transform .7s cubic-bezier(.3, 1.4, .4, 1), opacity .5s, filter .3s; }
body.depth .door::before, body.depth .door::after, body.depth .door .seal { display: none; }
body.depth .door .box { position: absolute; left: 50%; bottom: 8px; height: 82%; max-width: 88%; object-fit: contain; object-position: 50% 100%; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
body.depth .big .door .box { height: 76%; }
body.depth .door:hover .box { transform: translateX(-50%) translateY(-6px) rotate(-3deg); }
/* number: a little paper gift tag */
body.depth .door .num { left: 9px; top: 9px; z-index: 1; min-width: 30px; padding: 3px 7px 2px; border-radius: 7px; background: #fbf4e4; color: #3a2a12; text-align: center;
  font-size: clamp(15px, 1.6vw, 19px); letter-spacing: -.02em; text-shadow: none; transform: rotate(-6deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .3); }
body.depth .big .door .num { left: 14px; top: 14px; font-size: clamp(26px, 3.4vw, 40px); padding: 4px 12px 3px; border-radius: 10px; }
body.depth .door .tag { left: auto; right: 8px; top: 8px; bottom: auto; z-index: 1; padding: 4px 7px; font-size: 11px; max-width: calc(100% - 60px); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
body.depth .door-wrap:not(.wide):not(.big) .door .tag span { display: none; }
body.depth .door.today .num { background: var(--gold); color: #3a2a0a; }
body.depth .door-wrap:has(.today) { box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .7) inset, 0 0 0 2px rgba(240, 210, 140, .8), 0 0 26px 2px rgba(240, 210, 140, .35); }
body.depth .door.ready { animation: none; }
body.depth .door.ready .box { animation: hop 1.8s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)) drop-shadow(0 0 14px rgba(255, 220, 140, .7)); }
@keyframes hop { 0%, 60%, 100% { transform: translateX(-50%); } 70% { transform: translateX(-50%) translateY(-9px) rotate(-4deg); } 80% { transform: translateX(-50%) translateY(0) rotate(3deg); } }
body.depth .door.locked { filter: none; }
body.depth .door.locked .box { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)) saturate(.82) brightness(.9); }
body.depth .door.taken { filter: none; }
body.depth .door.taken .box { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)) saturate(.55) brightness(.72); }
body.depth .door.empty-slot .box { opacity: .5; filter: grayscale(.4) drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
body.depth .door.empty-slot:hover .box { opacity: .85; }
body.depth .door:hover, body.depth .door.locked:hover, body.depth .door.taken:hover { transform: none; }
body.depth .door-wrap.open .door { transform: translateY(-40%) scale(.7) rotate(-8deg); opacity: 0; }
body.depth .door-wrap.open::after { opacity: 0; }

.cal-foot { margin-top: 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.cal-foot .left { color: var(--muted); }

/* write sheet */
.stickers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 18px; }
.stickers button { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 5px; transition: transform .15s, background .2s; }
.stickers button img { width: 100%; height: 100%; object-fit: contain; }
.stickers button:hover { transform: scale(1.08); background: var(--card-2); }
.stickers button[aria-checked='true'] { border-color: var(--gold); background: rgba(210, 181, 121, .18); box-shadow: 0 0 0 1px var(--gold); }
.note-input { width: 100%; display: block; border: 0; border-radius: 6px; background: var(--paper) repeating-linear-gradient(transparent 0 29px, rgba(0, 0, 0, .07) 29px 30px); background-attachment: local;
  color: var(--ink); font-family: var(--hand); font-size: 21px; line-height: 30px; padding: 6px 16px; min-height: 156px; resize: vertical; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .7); }
.note-input:focus { outline: 2px solid var(--gold); }
.note-input::placeholder { color: #a39f93; }
.wfield { margin-bottom: 16px; }
.wfield .label { display: block; margin-bottom: 8px; }
.voice-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voice-row .rec { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.voice-row .rec .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.voice-row .rec.on { background: var(--red); border-color: var(--red); }
.voice-row .rec.on .dot { background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.voice-row .timer { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.voice-row audio { height: 36px; max-width: 230px; }
.from-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.from-row .input { flex: 1; min-width: 150px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.form-err { color: #f39a9d; font-size: 14px; min-height: 20px; margin: 2px 0 8px; }

/* letter */
#letterDlg { max-width: min(460px, 100vw); }
.letter-wrap { position: relative; padding: 46px 12px 12px; }
.letter { position: relative; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px 28px 20px; transform: rotate(-2deg);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(0, 0, 0, .06) 33px 34px); background-position: 0 24px;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .8); animation: unfold .7s cubic-bezier(.2, .9, .3, 1.1); transform-origin: top center; }
@keyframes unfold { from { transform: perspective(900px) rotateX(-70deg) rotate(-2deg); opacity: 0; } }
.letter .corner { position: absolute; top: -42px; right: -18px; width: 88px; transform: rotate(12deg); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); animation: wob 3s ease-in-out infinite; }
.letter .day { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.letter .msg { font-family: var(--hand); font-size: clamp(21px, 3.6vw, 25px); line-height: 34px; white-space: pre-wrap; word-break: break-word; margin: 8px 0 12px; }
.letter .extras { display: grid; gap: 10px; margin: 4px 0 14px; }
.letter .extras audio { width: 100%; }
.letter .link { display: inline-flex; gap: 8px; align-items: center; justify-self: start; padding: 7px 14px 7px 8px; border-radius: 10px; background: #efe7d6; color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.letter .link img { width: 22px; }
.letter .sig { font-family: var(--hand); font-size: 20px; color: #6a675f; border-top: 1px solid rgba(0, 0, 0, .15); padding-top: 8px; }
.letter-wrap .x-btn { top: 0; inset-inline-end: auto; left: 50%; margin-left: -17px; background: rgba(255, 255, 255, .15); }

/* language picker */
#langDlg { max-width: min(700px, 100vw); }
.lang-sheet { padding: 30px 26px 26px; }
.lang-sheet h2 { text-align: center; padding: 0 36px; font-size: 26px; margin-bottom: 22px; }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lang-opt { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(240, 246, 244, .05); color: var(--text); font-size: 17px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.lang-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-opt:hover { background: rgba(240, 246, 244, .1); border-color: rgba(240, 246, 244, .25); }
.lang-opt:active { transform: scale(.97); }
.lang-opt.on { border-color: var(--gold); background: rgba(210, 181, 121, .14); color: #f1d9a0; }
.lang-opt .ck { display: grid; font-style: normal; flex: none; }
.lang-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* share sheet */
.share-sheet { text-align: center; padding: 30px 26px 24px; }
.share-sheet h2 { padding: 0 24px; font-size: 26px; letter-spacing: -.01em; }
.share-sheet .sub { margin: 8px auto 20px; max-width: 360px; }
.share-hero { width: 132px; height: 132px; object-fit: contain; margin: -4px auto 10px; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); animation: hero-bob 4s ease-in-out infinite; }
@keyframes hero-bob { 50% { transform: translateY(-5px) rotate(-1.5deg); } }
.link-box { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--text); font-size: 16px; cursor: pointer; text-align: start; transition: border-color .2s, background .2s; }
.link-box:hover { border-color: rgba(240, 246, 244, .3); background: rgba(0, 0, 0, .3); }
.link-box svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-actions { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin: 12px 0 0; }
.share-actions.single { grid-template-columns: 1fr; }
.share-actions .btn { padding: 15px 16px; border-radius: 14px; font-size: 17px; gap: 9px; }
.share-actions .btn svg { width: 21px; height: 21px; flex: none; }
.share-actions .btn.done { background: #2f7a57; }
.btn.outline { background: transparent; box-shadow: 0 0 0 1.5px rgba(240, 246, 244, .35) inset; color: var(--text); }
.btn.outline:hover { background: rgba(240, 246, 244, .08); }
.soc-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.soc { display: grid; justify-items: center; gap: 7px; background: none; border: 0; padding: 4px 0; color: var(--text); cursor: pointer; min-width: 0; }
.soc-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.soc:hover .soc-ic { transform: translateY(-3px) scale(1.05); }
.soc-ic svg { width: 27px; height: 27px; fill: #fff; }
.soc-lb { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.soc.wa .soc-ic { background: #25d366; }
.soc.ms .soc-ic { background: linear-gradient(200deg, #ff6968 0%, #a334fa 45%, #0695ff 100%); }
.soc.th .soc-ic, .soc.xx .soc-ic { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.soc.xx .soc-ic svg { width: 23px; height: 23px; }
.soc.tg .soc-ic { background: #fff; }
.soc.tg .soc-ic svg { width: 52px; height: 52px; fill: #2aabee; }
.soc.st .soc-ic { background: var(--gold); color: #3b2a0c; }
.soc.st .soc-ic svg { fill: none; color: #3b2a0c; }
.code-box { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 14px 14px 18px; border-radius: 14px; border: 1.5px dashed rgba(210, 181, 121, .45); text-align: start; }
.code-box > span { color: var(--muted); font-size: 15px; flex: 1; white-space: nowrap; }
.code-box b { font-family: var(--sans); font-weight: 800; color: var(--gold); font-size: 21px; letter-spacing: 2.5px; white-space: nowrap; }
.code-copy { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.code-copy:hover { background: var(--card-2); }
.code-copy.done { background: #2f7a57; color: #fff; }
.code-copy svg { width: 22px; height: 22px; }
.code-note { font-size: 13.5px; color: var(--faint); margin: 12px auto 0; max-width: 320px; line-height: 1.5; }
.share-sheet details { text-align: start; margin-top: 18px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row .input { flex: 1; font-size: 14px; min-width: 0; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.sheet details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.sheet summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--gold); }
.sheet details p { font-size: 13.5px; color: var(--muted); margin: 8px 0 10px; }
.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: 3px; color: var(--gold); font-size: 16px; }
.small { font-size: 14px; color: var(--muted); margin: 0 0 6px; }

.loading { text-align: center; padding: 120px 20px; color: var(--muted); }
.notfound { text-align: center; padding: 60px 20px; display: grid; gap: 18px; justify-items: center; }
.notfound img { width: 200px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .what, .sealed, .faq-wrap { grid-template-columns: 1fr; }
  .faq-art { position: static; width: 220px; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .sticker-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .hero { padding-top: 92px; min-height: auto; }
  .stage .main { max-height: 40vh; }
  .stage .orn { width: 40px; }
  .stage .orn.far { display: none; }
  .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(92px, 1fr); }
  .door-wrap.wide-d { grid-column: span 1; }
  .door .num { font-size: 24px; left: 11px; top: 9px; }
  .door .tag { left: 8px; bottom: 8px; padding: 3px 7px; font-size: 11px; max-width: calc(100% - 16px); }
  .door-wrap:not(.wide):not(.big) .door .tag span, .door-wrap.wide-d .door .tag span { display: none; }
  .door .seal { width: 28px; right: 16px; bottom: 6px; }
  .door::after { right: 9px; }
  body.depth .grid { grid-auto-rows: minmax(100px, 1fr); }
  body.depth .door .num { font-size: 14px; min-width: 24px; padding: 2px 5px 1px; left: 6px; top: 6px; }
  body.depth .door .tag { right: 5px; top: 5px; padding: 3px 5px; }
  .stickers { gap: 4px; }
  .stickers button { padding: 3px; border-radius: 9px; }
  .logo-full { height: 46px; }
  .sheet { padding: 26px 16px 18px; }
  .share-sheet h2 { font-size: 22px; }
  .share-actions .btn { font-size: 16px; padding: 14px 10px; }
}
@media (max-width: 440px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lang-opt { min-height: 50px; font-size: 16px; }
  .lang-sheet h2 { font-size: 22px; }
  .soc-row { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .share-hero { width: 112px; height: 112px; }
  .code-box { padding: 12px 10px 12px 14px; gap: 8px; }
  .code-box > span { font-size: 14px; }
  .code-box b { font-size: 18px; letter-spacing: 1.5px; }
  .logo-full { display: none !important; }
  .logo-mark { display: block !important; }
}
@media (max-width: 360px) {
  .code-box > span { white-space: normal; font-size: 13px; line-height: 1.3; }
  .code-box b { font-size: 16px; letter-spacing: 1px; }
  .code-copy { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ---------- 3D cottage theme ---------- */
#cottage[hidden] { display: none; }
body.cottage { overflow: hidden; height: 100dvh; }
body.cottage .nav { background: transparent; }
body.cottage .snow, body.cottage .drift-band, body.cottage footer, body.cottage .board, body.cottage .cal-foot { display: none; }
body.cottage #app { position: relative; z-index: 2; pointer-events: none; padding-top: 0; }
body.cottage #app a, body.cottage #app button { pointer-events: auto; }
body.cottage .cal-head { margin: 0 auto; padding: 0 16px; text-shadow: 0 1px 10px rgba(20, 20, 60, .55); }
body.cottage .cal-head h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 4px 0 6px; }
body.cottage .cal-head .eyebrow { color: #ffe3a3; }
body.cottage .cal-head .sub { color: rgba(255, 255, 255, .82); font-size: 14.5px; }
body.cottage .progress { display: none; }
body.cottage .meta-row { margin-top: 8px; }
.cottage-foot { position: fixed; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 2; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.cottage-foot .btn { pointer-events: auto; box-shadow: 0 10px 30px rgba(20, 20, 60, .45); }
.cottage-foot .left { color: rgba(255, 255, 255, .85); font-size: 13px; text-shadow: 0 1px 6px rgba(20, 20, 60, .6); }
body.cottage .meta, body.cottage .theme-dots { background: rgba(30, 30, 70, .45); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }
@media (max-width: 640px) {
  body.cottage .cal-head .sub { display: none; }
  body.cottage .meta-row { gap: 6px; }
  body.cottage .meta { font-size: 12.5px; padding: 5px 10px; }
}
.day-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 8px; }
.day-pick button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; }
.day-pick button:hover { background: var(--card-2); }
.day-pick button[aria-checked='true'] { border-color: var(--gold); background: rgba(210, 181, 121, .18); box-shadow: 0 0 0 1px var(--gold); color: var(--gold); }

/* ---------- create wizard (full-screen, step by step) ---------- */
dialog.wiz { max-width: 100vw; width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; animation: wizIn .35s ease; }
dialog.wiz[open] { animation: wizIn .35s ease; }
@keyframes wizIn { from { opacity: 0; } }
dialog.wiz::backdrop { background: #0b1d18; }
.wiz form { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 14px 20px max(24px, env(safe-area-inset-bottom)); overflow: hidden;
  background: var(--felt) 0 0 / 240px, radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, .06), transparent 65%), var(--wbg, #12332d); transition: background-color .4s; }
.wiz.is-cottage form { background: transparent; }
.wiz-top { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
.wiz-ico { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.wiz-ico:hover { background: rgba(255, 255, 255, .08); }
.wiz-ico svg, .wiz-clear svg, .wiz-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wiz-prog { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wiz-prog .bars { display: flex; gap: 6px; }
.wiz-prog .bars i { width: 36px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: background .3s; }
.wiz-prog .bars i.on { background: var(--gold); }
.wiz-step { position: relative; z-index: 2; display: none; width: min(560px, 100%); flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: stepIn .35s ease; }
.wiz-step.on { display: flex; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.wiz-step h2 { font-size: clamp(28px, 6vw, 42px); text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.wiz-sub { color: var(--muted); margin-top: 10px; font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.wiz-name { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 34px; padding: 6px 18px 6px 10px; border: 1.5px solid var(--gold); border-radius: 18px; background: rgba(0, 0, 0, .22); }
.wiz-name input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font-size: 22px; padding: 14px 0; text-align: center; outline: none; }
.wiz-name span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.wiz-clear { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 50%; }
.wiz-step[data-step='style'] { width: min(820px, 100%); }
.wiz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; margin-top: 30px; }
@media (max-width: 560px) { .wiz-cards { gap: 8px; } .wiz-card { padding: 8px 8px 12px; border-radius: 16px; } .wiz-card b { font-size: 16px; } .wiz-card small { font-size: 12px; line-height: 1.3; } }
.wiz-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 12px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .04); transition: border-color .2s, background .2s, transform .2s; }
.wiz-card:hover { transform: translateY(-2px); }
.wiz-card[aria-checked='true'] { border-color: var(--gold); background: rgba(210, 181, 121, .1); box-shadow: 0 0 0 4px rgba(210, 181, 121, .12); }
.wiz-card .pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .1), rgba(0, 0, 0, .2)); margin-bottom: 8px; }
.wiz-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.wiz-card[data-style='classic'] .pic img { object-fit: contain; padding: 10%; }
.wiz-card .badge { position: absolute; top: 8px; right: 8px; padding: 2px 9px; border-radius: 99px; background: linear-gradient(#f3d38c, #d2a957); color: #3a2a0a; font: 800 12px/1.6 var(--sans); font-style: normal; }
.wiz-card b { font-size: 19px; }
.wiz-card small { color: var(--muted); font-size: 14px; }
.wiz-carousel { display: flex; align-items: center; gap: 18px; margin-top: 26px; width: 100%; justify-content: center; }
.wiz-arrow { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .15); display: grid; place-items: center; }
.wiz-mock { width: min(300px, 62vw); padding: 18px 16px; border-radius: 20px; background: var(--felt) 0 0 / 240px, var(--c); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: background-color .4s; }
.wiz-mock h3 { font-size: 17px; margin-bottom: 12px; }
.wiz-mock h3 em { font-style: normal; color: var(--gold); }
.wiz-mock .g { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.wiz-mock .g i { aspect-ratio: 3 / 4; border-radius: 6px; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; font: 700 10px/1 var(--sans); font-style: normal; display: grid; place-items: center; color: rgba(255, 255, 255, .7); }
.wiz-mock .g i.f { background: rgba(210, 181, 121, .28); }
.wiz-strip { width: 100%; margin-top: 26px; }
.wiz-foot { position: relative; z-index: 2; width: min(560px, 100%); }
.wiz-foot .btn { font-size: 18px; padding: 18px; border-radius: 16px; }
#wizStage:empty { display: none; }
/* 2.5D: mini shelf used in the style card and the colour step */
.depth-mini, .wiz-mock.depth .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 82%, black); box-shadow: 0 -3px 0 rgba(0, 0, 0, .25) inset; }
.wiz-card .pic.depth-pic { display: grid; place-items: center; padding: 9%; background: radial-gradient(circle at 30% 20%, var(--glow), transparent 50%), var(--felt) 0 0 / 240px, var(--bg); }
.depth-mini { width: 100%; }
.depth-mini i, .wiz-mock.depth .g i { position: relative; aspect-ratio: 1; border-radius: 9px; display: grid; place-items: end center; padding: 8% 10% 10%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 55%, #fff 8%) 0 9%, transparent 9%), radial-gradient(ellipse 90% 70% at 50% 0%, var(--glow), transparent 70%), color-mix(in srgb, var(--bg) 70%, black);
  box-shadow: 0 5px 10px -3px rgba(0, 0, 0, .7) inset; font-style: normal; }
.depth-mini img, .wiz-mock.depth .g img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.wiz-mock.depth { background: radial-gradient(circle at 20% 10%, var(--glow), transparent 40%), var(--felt) 0 0 / 240px, var(--bg); }
.wiz-mock.depth .g { grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 6px; border-radius: 12px; }
.wiz-mock.depth .g i { border-radius: 6px; padding: 10% 8% 12%; color: transparent; }
.wiz-mock.depth .g i.t { box-shadow: 0 5px 10px -3px rgba(0, 0, 0, .7) inset, 0 0 0 1.5px var(--gold); }
.swatch.dep i { background: linear-gradient(135deg, var(--f0) 0 33%, var(--f1) 33% 66%, var(--f3) 66%); box-shadow: 0 0 0 5px var(--bg) inset, 0 0 0 6px var(--line) inset; }
.swatch.dep[aria-checked='true'] i { box-shadow: 0 0 0 5px var(--bg) inset, 0 0 0 2px var(--gold); }
.theme-dots button.dep { background: linear-gradient(135deg, var(--f0) 50%, var(--f1) 50%); }
.theme-dots button.sky { background: linear-gradient(0deg, var(--sk0), var(--sk1) 30%, var(--sk2) 60%, var(--sk3)); }
.swatch.sky i { background: linear-gradient(0deg, #f4f6ff 0 18%, var(--sk0) 18%, var(--sk1) 40%, var(--sk2) 70%, var(--sk3)); }
.sky-dock { margin-top: auto; width: 100%; display: grid; gap: 8px; margin-bottom: 14px; }
.sky-strip { margin: 0; padding: 10px 12px 6px; border-radius: 18px; background: rgba(20, 20, 50, .35); backdrop-filter: blur(8px); }
.sky-strip .swatch { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.sky-strip .swatch i { height: 40px; }
.theme-dots .sep { width: 1px; height: 16px; margin: 0 3px; background: var(--line); }
html:has(dialog.wiz[open]) { overflow: hidden; }
.wiz-step[data-step='cottage'] { justify-content: flex-start; padding-top: 3vh; }
.wiz-step[data-step='cottage'] .wiz-sub { color: #fff; text-shadow: 0 1px 3px rgba(20, 20, 60, .8), 0 0 14px rgba(20, 20, 60, .6); }

/* ---------- decorations: toggle chips ---------- */
.decor-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.decor-lab { font-size: 13px; color: var(--muted); margin-right: 2px; }
.decor-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 9px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.decor-chip i { font-style: normal; font-size: 15px; line-height: 1; filter: grayscale(1) opacity(.6); transition: filter .2s; }
.decor-chip[aria-pressed='true'] { background: rgba(210, 181, 121, .2); border-color: var(--gold); color: var(--text); }
.decor-chip[aria-pressed='true'] i { filter: none; }
#decorSlot .decor-row { margin-top: 18px; }
.sky-dock .decor-row { margin: 0; padding: 8px 10px; border-radius: 18px; background: rgba(20, 20, 50, .35); backdrop-filter: blur(8px); }
.sky-dock .decor-lab, .sky-dock .decor-chip { color: rgba(255, 255, 255, .85); }
body.cottage .cal-head .decor-row { margin-top: 8px; }
body.cottage .decor-chip { background: rgba(30, 30, 70, .45); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }
body.cottage .decor-chip[aria-pressed='true'] { background: rgba(233, 185, 73, .35); border-color: #e9b949; color: #fff; }
body.cottage .decor-lab { color: rgba(255, 255, 255, .8); }
@media (max-width: 680px) { .decor-chip { padding: 5px 9px 5px 7px; font-size: 12px; } .decor-lab { width: 100%; text-align: center; } }

/* ---------- 2.5D decorations ---------- */
.lights, .spk, .charm, .perch { display: none; }
/* pine garland draped along the top of the shelf */
body.depth .board.d-garland { margin-top: clamp(30px, 5vw, 56px); padding-top: clamp(26px, 4vw, 48px); }
body.depth .board.d-garland::before { content: ''; position: absolute; z-index: 5; left: -3%; right: -3%; top: clamp(-64px, -6vw, -34px); height: clamp(62px, 10vw, 130px); pointer-events: none;
  background: url(/img/deco-garland.webp) center top / 100% 100% no-repeat; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
/* a string of twinkling bulbs across each cubby */
.d-bulbs .lights { display: block; position: absolute; z-index: 4; left: 4px; right: 4px; top: 3px; height: 22px; pointer-events: none;
  background: radial-gradient(ellipse 52% 90% at 50% -40%, transparent 96%, rgba(40, 40, 40, .7) 97% 100%, transparent 101%); }
.d-bulbs .lights::before, .d-bulbs .lights::after { content: ''; position: absolute; inset: 0; animation: twinkle 1.6s ease-in-out infinite alternate; }
.d-bulbs .lights::before { background: radial-gradient(circle 5px at 12% 34%, #ff5a5a 80%, transparent), radial-gradient(circle 5px at 50% 62%, #5ad1ff 80%, transparent), radial-gradient(circle 5px at 88% 34%, #7dff8a 80%, transparent);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)); }
.d-bulbs .lights::after { background: radial-gradient(circle 5px at 31% 54%, #ffc94a 80%, transparent), radial-gradient(circle 5px at 69% 54%, #ff8ad8 80%, transparent); filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)); animation-delay: -.8s; }
.d-bulbs .door-wrap:nth-child(2n) .lights::before { animation-delay: -.4s; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
/* little four-point sparkles twinkling round the presents */
.d-sparkle .spk { display: block; position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.d-sparkle .spk::before, .d-sparkle .spk::after { content: ''; position: absolute; width: 14px; height: 14px; background: #fff6d6; filter: drop-shadow(0 0 5px #ffd77a);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: spk 2.4s ease-in-out infinite; }
.d-sparkle .spk::before { left: 18%; top: 34%; }
.d-sparkle .spk::after { right: 16%; top: 52%; width: 10px; height: 10px; animation-delay: -1.2s; }
.d-sparkle .door-wrap:nth-child(3n+1) .spk::before { left: 70%; top: 26%; animation-delay: -.6s; }
.d-sparkle .door-wrap:nth-child(4n+2) .spk::after { right: 74%; top: 60%; animation-delay: -1.8s; }
@keyframes spk { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
/* the same decorations, scaled down for the wizard preview */
.wiz-mock .g > i u { display: none; }
.wiz-mock.d-garland { position: relative; margin-top: 18px; padding-top: 34px; }
.wiz-mock.d-garland::before { content: ''; position: absolute; left: -4%; right: -4%; top: -22px; height: 52px; z-index: 2; background: url(/img/deco-garland.webp) center top / 100% 100% no-repeat; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .4)); }
.wiz-mock.d-bulbs .g > i u { display: block; position: absolute; left: 2px; right: 2px; top: 2px; height: 5px; animation: twinkle 1.6s ease-in-out infinite alternate;
  background: radial-gradient(circle 1.8px at 15% 50%, #ff5a5a 80%, transparent), radial-gradient(circle 1.8px at 50% 80%, #ffc94a 80%, transparent), radial-gradient(circle 1.8px at 85% 50%, #5ad1ff 80%, transparent); }
.wiz-mock.d-bulbs .g > i:nth-child(2n) u { animation-delay: -.8s; }
.wiz-mock.d-sparkle .g > i:nth-child(5n+2)::after { content: ''; position: absolute; right: 8%; top: 18%; width: 8px; height: 8px; background: #fff6d6; filter: drop-shadow(0 0 3px #ffd77a);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: spk 2.4s ease-in-out infinite; }
.wiz-mock.d-sparkle .g > i:nth-child(7n+4)::after { animation-delay: -1.2s; }
/* winter friends: stickers the owner places anywhere on (or around) the shelf; x/y is where the feet go */
.d-critters .perch { display: block; position: absolute; z-index: 6; width: calc(clamp(42px, 7.5vw, 96px) * var(--s, 1)); transform: translate(-50%, calc(-100% + 8px)) scaleX(var(--f, 1));
  pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); user-select: none; -webkit-user-drag: none; }
.board.pal-editing .perch { pointer-events: auto; cursor: grab; touch-action: none; outline: 1.5px dashed rgba(255, 255, 255, .45); outline-offset: 2px; border-radius: 10px; }
.board.pal-editing .perch.sel { outline: 2px solid var(--gold); cursor: grabbing; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)) drop-shadow(0 0 10px rgba(240, 210, 140, .7)); }
.pal-tray { position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); translate: -50% 0; width: min(620px, calc(100% - 20px)); padding: 12px 14px; border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 70%, black); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); backdrop-filter: blur(10px); animation: stepIn .3s ease; }
.pal-hint { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-align: center; }
.pal-pick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.pal-pick button { aspect-ratio: 1; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); transition: transform .15s, background .15s; }
.pal-pick button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.pal-pick img { width: 100%; height: 100%; object-fit: contain; }
.pal-tools { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.pal-tools button[data-op] { width: 42px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); font-size: 18px; font-weight: 700; }
.pal-tools button[data-op]:disabled { opacity: .35; cursor: default; }
.pal-tools .btn { margin-left: auto; }
body:has(.pal-tray) .cal-foot, body:has(.pal-tray) footer { padding-bottom: 170px; }
.pal-edit-btn { border-style: dashed; }
/* hanging ornaments swinging from the top of some cubbies */
.d-charms .charm { display: block; position: absolute; z-index: 3; top: 34px; left: 8px; width: clamp(30px, 3.4vw, 46px); pointer-events: none; transform-origin: 50% 0; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); animation: swing 3.2s ease-in-out infinite; }
.d-charms .wide .charm { left: auto; right: 9%; top: 34px; }
body.depth .board.d-critters { margin-top: clamp(64px, 8vw, 96px); }
body.depth .board.d-critters.d-garland { margin-top: clamp(96px, 13vw, 150px); }
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.wiz-mock.d-critters { position: relative; }
.wiz-mock.d-critters::after { content: ''; position: absolute; z-index: 3; left: 6%; right: 6%; top: -34px; height: 46px; pointer-events: none;
  background: url(/img/c-penguin.webp) 0 100% / auto 100% no-repeat, url(/img/c-snowman.webp) 50% 100% / auto 100% no-repeat, url(/img/c-fox.webp) 100% 100% / auto 100% no-repeat; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.wiz-mock.d-garland.d-critters::after { top: -46px; background-size: auto 100%, 0 0, auto 100%; }
.wiz-mock.d-charms .g > i:nth-child(5n+2)::before, .wiz-mock.d-charms .g > i:nth-child(7n+4)::before { content: ''; position: absolute; z-index: 2; top: -1px; left: 30%; width: 12px; height: 18px; transform-origin: 50% 0; animation: swing 3.2s ease-in-out infinite;
  background: url(/img/o-red.webp) center top / contain no-repeat; }
.wiz-mock.d-charms .g > i:nth-child(7n+4)::before { background-image: url(/img/o-bell.webp); animation-delay: -1.4s; }
@media (max-width: 680px) { .pal-pick { gap: 3px; } .pal-pick button { padding: 2px; border-radius: 9px; } .d-charms .charm { width: 20px; left: 4px; top: 26px; } .d-charms .wide .charm { top: 26px; }
  .theme-dots { flex-wrap: wrap; justify-content: center; border-radius: 18px; padding: 6px 10px; max-width: 100%; } }
.board.pal-editing .door-wrap { pointer-events: none; }
/* ---------- share gate: sign in to get the link / calendar limit ---------- */
.gate-sheet { text-align: center; }
.gate-pic { width: 76px; margin: 0 auto 6px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.gate-sheet .sub { margin: 8px auto 0; max-width: 360px; }
.gate-btn { display: flex; justify-content: center; min-height: 44px; margin-top: 22px; }
.gate-note { margin-top: 14px; font-size: 13px; color: var(--faint); }
.gate-sheet .btn { margin-top: 22px; }
.notfound .sub { max-width: 380px; margin: 0 auto 8px; }

/* launch-directory badges under the footer */
.launch-badges { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: center; max-width: 900px; margin: 18px auto 0; opacity: .75; font-size: 11px; }
.launch-badges:hover { opacity: 1; }
.launch-badges a { color: inherit; line-height: 0; }
.launch-badges a:not(:has(img)) { line-height: 1.4; text-decoration: underline; }
.launch-badges img { height: 26px !important; width: auto !important; display: block; }
