:root, [data-theme="pine"] {
  --bg: #12261c; --bg2: #1b3a2a; --ink: #fff8ec; --muted: #cfd9cc;
  --paper: #fff8ec; --paper-ink: #22301f; --accent: #e8b44a; --accent-ink: #2b1d05;
  --wrap: #b8322f; --wrap2: #9c2724; --ribbon: #f2c86b; --empty: rgba(255,248,236,.08);
}
[data-theme="frost"] {
  --bg: #0f1d33; --bg2: #18304f; --ink: #f2f7ff; --muted: #c4d3ea;
  --paper: #f5f9ff; --paper-ink: #17253a; --accent: #9fd3ff; --accent-ink: #0b2340;
  --wrap: #e9f2fb; --wrap2: #cfdff0; --ribbon: #5b8fd1; --empty: rgba(242,247,255,.08);
}
[data-theme="berry"] {
  --bg: #4a0f1c; --bg2: #6b1a2b; --ink: #fff4ef; --muted: #f1d3cf;
  --paper: #fff4ef; --paper-ink: #3a1118; --accent: #f6d27a; --accent-ink: #3a2405;
  --wrap: #f4ece2; --wrap2: #e3d5c4; --ribbon: #2f6b45; --empty: rgba(255,244,239,.09);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 17px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg)) fixed, var(--bg);
}
body::before { /* soft snow dots */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 120px 80px, #fff, transparent),
    radial-gradient(1px 1px at 60px 140px, #fff, transparent), radial-gradient(2px 2px at 170px 170px, #fff, transparent);
  background-size: 200px 200px;
}
a { color: var(--accent); }
h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .3em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; position: relative; }
header.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; }
nav.top a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 700; font-size: .95rem; }
nav.top a:hover { color: var(--ink); }
nav.top { margin-left: auto; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 800; font-size: .9rem; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary, .lang-menu summary:hover { color: var(--ink); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; background: var(--paper); border-radius: 16px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.4); display: grid; grid-template-columns: 1fr 1fr; min-width: 270px; }
.lang-list a { color: var(--paper-ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 9px 12px; border-radius: 10px; }
.lang-list a:hover { background: rgba(0,0,0,.06); }
.lang-list a[aria-current] { background: rgba(0,0,0,.08); }
.lang-offer { display: flex; align-items: center; gap: 10px; max-width: 1000px; margin: 2px max(16px, calc((100% - 1000px) / 2)) 8px; padding: 6px 4px 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .92rem; }
.lang-offer[hidden] { display: none; }
.lang-offer span { flex: 1; min-width: 0; }
.lang-offer a { background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.lang-offer button { flex: none; background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; width: 40px; height: 40px; }
@media (max-width: 600px) { .lang-offer span { display: none; } .lang-offer { justify-content: center; } .lang-offer a { flex: 1; text-align: center; } }
.muted { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn.small { padding: 10px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: default; }
.card { background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.card a:not(.btn) { color: var(--wrap2); }
label.field { display: block; font-weight: 800; margin: 16px 0 6px; font-size: .95rem; }
input[type=text], textarea {
  width: 100%; font: inherit; color: var(--paper-ink); background: #fff; border: 2px solid rgba(0,0,0,.15);
  border-radius: 14px; padding: 12px 14px; outline: none;
}
input[type=text]:focus, textarea:focus { border-color: var(--ribbon); }
textarea { resize: vertical; min-height: 110px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ribbon); }
.counter { text-align: right; font-size: .85rem; opacity: .7; }
.error { color: #b3261e; font-weight: 700; margin-top: 10px; min-height: 1.2em; }

/* theme picker */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { cursor: pointer; border-radius: 14px; padding: 10px; border: 3px solid transparent; text-align: center; font-weight: 800; font-size: .9rem; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt .sw { height: 44px; border-radius: 10px; margin-bottom: 6px; position: relative; overflow: hidden; }
.theme-opt .sw::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--r); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.theme-opt:has(input:checked) { border-color: var(--paper-ink); }
.theme-opt:has(input:focus-visible) { outline: 3px solid var(--ribbon); }

/* calendar grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 30px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.door {
  position: relative; aspect-ratio: 1 / 1.1; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  border-radius: 14px; background: var(--empty); outline: 2px dashed rgba(255,255,255,.22); outline-offset: -2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .15s;
}
.door:hover { transform: translateY(-3px) rotate(-1deg); }
.door .num { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1; }
.door .sub { font-size: .72rem; font-weight: 800; margin-top: 6px; opacity: .85; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.door.filled {
  outline: 0; color: var(--paper-ink);
  background:
    linear-gradient(90deg, transparent calc(50% - 5px), var(--ribbon) calc(50% - 5px), var(--ribbon) calc(50% + 5px), transparent calc(50% + 5px)),
    linear-gradient(0deg, transparent calc(50% - 5px), var(--ribbon) calc(50% - 5px), var(--ribbon) calc(50% + 5px), transparent calc(50% + 5px)),
    linear-gradient(160deg, var(--wrap), var(--wrap2));
  box-shadow: 0 6px 0 rgba(0,0,0,.25);
}
[data-theme="pine"] .door.filled { color: var(--paper); }
.door.filled .num { background: var(--paper); color: var(--paper-ink); border-radius: 50%; width: 2.1em; height: 2.1em; display: grid; place-items: center; font-size: clamp(1rem, 3vw, 1.35rem); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.door.filled .sub { background: var(--paper); color: var(--paper-ink); border-radius: 999px; padding: 1px 8px; }
.door.ready { animation: glow 1.8s ease-in-out infinite; }
.door.ready::after { content: "Open me"; position: absolute; top: -10px; right: -6px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; }
.door.opened { outline: 0; background: var(--paper); color: var(--paper-ink); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.door.opened .emoji { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1; }
.door.opened .num { font-size: .95rem; position: absolute; top: 6px; left: 9px; }
.door.mine { box-shadow: 0 0 0 3px var(--accent), 0 6px 0 rgba(0,0,0,.25); }
@keyframes glow { 50% { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--accent), 0 10px 20px rgba(0,0,0,.35); } }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.modal .card { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; position: relative; animation: pop .25s ease-out; }
.modal .close { position: absolute; top: 6px; right: 6px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--paper-ink); line-height: 1; padding: 6px; min-width: 44px; min-height: 44px; }
@keyframes pop { from { transform: scale(.9) rotateX(25deg); opacity: 0; } }
.stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stickers button { font-size: 1.6rem; aspect-ratio: 1; border-radius: 12px; border: 2px solid rgba(0,0,0,.12); background: #fff; cursor: pointer; }
.stickers button[aria-pressed="true"] { border-color: var(--ribbon); background: color-mix(in srgb, var(--ribbon) 15%, #fff); transform: scale(1.06); }
.note-reveal { text-align: center; }
.note-reveal .big { font-size: 4rem; line-height: 1; margin: 6px 0; }
.note-reveal .note { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--paper); color: var(--paper-ink); padding: 12px 20px; border-radius: 999px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .25s; z-index: 60; max-width: calc(100vw - 32px); text-align: center; opacity: 0; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.confetti { position: fixed; top: -20px; font-size: 1.4rem; pointer-events: none; z-index: 70; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .confetti { display: none; } }

/* landing */
.hero { display: grid; gap: 34px; align-items: center; padding-top: 30px; padding-bottom: 50px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; } }
.hero .hero-title { grid-column: 1 / -1; text-align: center; margin: 0 auto -10px; max-width: 18em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin: -16px auto 0; text-align: center; grid-column: 1 / -1; }
.hero .badges, .hero .mycals { justify-content: center; }
.hero #myCals { text-align: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.badges span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: .85rem; }
section.block { padding: 46px 0; }
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: rgba(255,255,255,.07); border-radius: 18px; padding: 20px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; margin-bottom: 10px; }
.faq details { background: rgba(255,255,255,.07); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.mini-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: rotate(-2deg); }
.mini-cal .door { cursor: default; }
.mycals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mycals a { background: rgba(255,255,255,.1); color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
footer { padding: 40px 0 60px; color: var(--muted); font-size: .9rem; text-align: center; }
.center { text-align: center; }
.hidden { display: none !important; }
.code-input { display: flex; gap: 8px; margin-top: 10px; }
.code-input input { text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.cal-head { text-align: center; padding-top: 10px; }
.cal-head .who { font-weight: 800; color: var(--muted); }
.progress { display: inline-block; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 14px; font-weight: 800; margin-top: 4px; }
.owner-bar { background: rgba(255,255,255,.08); border-radius: 18px; padding: 16px; margin-top: 18px; }
@media (max-width: 600px) { nav.top { display: none; } .brand { font-size: 1.1rem; } }

/* ---------- Snowy Village ---------- */
[data-theme="pine"] { --bg: #0b1f1d; --bg2: #17403a; }
[data-theme="frost"] { --bg: #0d1a3a; --bg2: #2b4380; }
[data-theme="berry"] { --bg: #1e0d26; --bg2: #4a2050; }
.village { max-width: 560px; margin: 14px auto 34px; position: relative; }
.hill { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 6px; margin-top: -8px; }
.hill::before { content: ""; position: absolute; left: -40px; right: -40px; bottom: -6px; height: 36px; z-index: 0;
  background: linear-gradient(#fbfdff, #dfe8f6); border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: 0 -2px 12px rgba(255,255,255,.25); }
@media (min-width: 600px) { .hill::before { left: -12px; right: -12px; } }
.house { position: relative; z-index: 1; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; text-align: center; color: #29324a; -webkit-tap-highlight-color: transparent; }
.house svg { display: block; width: 100%; height: auto; transition: transform .15s; }
.house:hover svg { transform: translateY(-3px); }
.house:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.house .who { display: block; font-weight: 900; font-size: .68rem; margin-top: -3px; height: 15px; position: relative; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.house .who.empty { color: #7b8aa8; font-weight: 800; }
.house.mine .who { color: #b8641a; }
.house.mine .who::before { content: "★ "; }
.cottage text { font-family: "Fraunces", Georgia, serif; font-weight: 700; }
.cottage text.emo { font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.cottage text.lbl { font-family: "Nunito", sans-serif; font-weight: 900; }
.cottage.empty { filter: saturate(.55) brightness(.82); }
@keyframes vPulse { 50% { filter: drop-shadow(0 0 10px #ffd36b) brightness(1.12); } }
.cottage.ready { animation: vPulse 1.6s ease-in-out infinite; }
@keyframes vSmoke { 0% { transform: translate(0,0) scale(.6); opacity: 0 } 30% { opacity: .7 } 100% { transform: translate(6px,-22px) scale(1.4); opacity: 0 } }
.smoke circle { animation: vSmoke 3s ease-out infinite; transform-box: fill-box; }
.smoke circle:nth-child(2) { animation-delay: 1s } .smoke circle:nth-child(3) { animation-delay: 2s }
.stars { position: absolute; inset: 0 0 auto 0; height: 340px; pointer-events: none; overflow: hidden; }
@keyframes twinkle { 50% { opacity: .2 } }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 2.6s ease-in-out infinite; }
.hero-village { max-width: 420px; margin: 18px 0 0; }
.hero-village .hill { margin-top: 0; }
.hero-village .house { cursor: default; }

/* ---------- Tree + Letter wall scenes ---------- */
[data-theme="tree"] { --bg: #1a0b12; --bg2: #3a1622; --accent: #f2c14e; --accent-ink: #3b2400; --wrap2: #8f1d18; --ribbon: #2f8a55; }
[data-theme="mail"] { --bg: #20160f; --bg2: #3b2a1d; --accent: #e0a84a; --accent-ink: #2b1a05; --wrap2: #b8282a; --ribbon: #b8282a; --paper: #fbf3e4; }
.tree-wrap { max-width: 440px; margin: 0 auto 30px; }
.tree-svg { display: block; width: 100%; height: auto; }
.tree-svg text { font-family: "Fraunces", Georgia, serif; font-weight: 700; }
.tree-svg text.emo, .wall text.emo { font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.tree-svg text.lbl { font-family: "Nunito", sans-serif; font-weight: 900; }
.bauble { cursor: pointer; transform-box: fill-box; transform-origin: 50% 0; outline: none; }
.bauble:focus-visible circle:last-child { stroke: #fff; stroke-width: 2; }
@keyframes sway { 50% { transform: rotate(4deg); } }
.bauble.ready { animation: sway 1.8s ease-in-out infinite, vPulse 1.6s ease-in-out infinite; }
.tw { animation: twinkle 2.4s ease-in-out infinite; }
.wall { max-width: 520px; margin: 18px auto 30px; padding: 12px; border-radius: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: linear-gradient(#6b4528, #4d3019); box-shadow: inset 0 2px 0 rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.45); }
.cubby { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cubby svg { display: block; width: 100%; height: auto; transition: transform .15s; }
.cubby:hover svg { transform: translateY(-2px); }
.cubby:focus-visible { outline: 3px solid var(--accent); border-radius: 8px; }
.cubby text { font-family: "Fraunces", Georgia, serif; font-weight: 700; }
.cubby.ready svg { animation: vPulse 1.6s ease-in-out infinite; }
/* scene picker on the create form */
.scene-opt .sw { height: 64px; background: #10131c; display: grid; place-items: end center; }
.scene-opt .sw::after { display: none; }
.scene-opt .sw svg { height: 60px; width: auto; }
.scene-opt .sw .tree-wrap, .scene-opt .sw .wall { margin: 0; height: 60px; }
.scene-opt .sw .tree-svg { height: 60px; width: auto; margin: 0 auto; }
.scene-opt .sw .wall { display: block; padding: 4px; background: #5a3a20; width: 52px; border-radius: 8px; box-shadow: none; height: auto; margin-bottom: 4px; }
.scene-opt .sw .cubby svg { height: auto; width: 100%; }
.hero-village[data-scene="tree"] .tree-wrap { max-width: 230px; margin: 0; }
.hero-village[data-scene="mail"] .wall { max-width: 460px; margin: 0; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px; }
.hero-village[data-scene="mail"] .cubby, .hero-village .bauble { pointer-events: none; }
@media (max-width: 899px) { .hero-village { display: none; } }
.lead-short, .style-preview { display: none; }
/* Spots for days that had passed before the calendar was made */
.closed { opacity: .28; filter: grayscale(1); }
.closed .who { visibility: hidden; }
/* Phones: show the name box and Create button on the first screen; intro and badges follow the form. */
@media (max-width: 899px) {
  .hero { gap: 18px; padding-top: 12px; }
  .hero .hero-title { order: 0; margin-bottom: 0; }
  .hero > #create { order: 1; }
  .hero > div:not(.card), .hero > p.lead { order: 2; }
  .hero p.lead { font-size: 1.05rem; margin-top: 0; }
  .hero .lead-short { order: 0; display: block; margin: -8px auto 0; text-align: center; color: var(--muted); font-size: 1rem; max-width: 21em; }
  .hero .hero-title { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .hero > #create { padding: 14px; }
  #create > h2, #nameLabel, #styleLabel, #createForm > p.muted { display: none; }
  #createForm { display: flex; flex-direction: column; }
  #stylePreview { order: 1; } #createForm .themes { order: 2; } #name { order: 3; } #createError { order: 4; } #createBtn { order: 5; }
  .style-preview { display: block; background: #10131c; border-radius: 14px; padding: 8px 6px 4px; margin: 0 0 8px; overflow: hidden; }
  .style-preview { display: flex !important; align-items: center; justify-content: center; }
  .style-preview .fit { width: 100%; }
  .style-preview .fit > * { margin-left: auto !important; margin-right: auto !important; }
  .style-preview .house, .style-preview .bauble, .style-preview .cubby { pointer-events: none; }
  .style-preview .village { margin: 0; }
  .scene-opt .sw { display: none; }
  .theme-opt { padding: 8px 4px; font-size: 1rem; border: 2px solid rgba(0,0,0,.14); background: #fff; }
  .theme-opt:has(input:checked) { border: 3px solid var(--paper-ink); }
  #createError:empty { display: none; }
  #createForm .themes { margin-bottom: 10px; }
  body[data-page="home"] header.top { padding-top: 10px; padding-bottom: 4px; }
}
}
.hero-village[data-scene="village"] .village { max-width: 520px; margin: 0; }
.hero-village[data-scene="village"] .house .who { font-size: .55rem; }
.hero-village[data-scene="village"] .house { pointer-events: none; }
.hero-village[data-scene="tree"] .tree-wrap { max-width: 400px; }
[data-theme="gift"] { --bg: #0b1f1d; --bg2: #1d4a3a; --accent: #f2c14e; --accent-ink: #3b2400; --wrap2: #b3262b; --ribbon: #b3262b; }
.giftbox text { font-family: "Fraunces", Georgia, serif; font-weight: 700; }
.giftbox text.emo { font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.giftbox text.lbl { font-family: "Nunito", sans-serif; font-weight: 900; }
.giftbox.empty { filter: saturate(.45) brightness(.78); }
@keyframes giftHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
.giftbox.ready { animation: giftHop 1.4s ease-in-out infinite, vPulse 1.6s ease-in-out infinite; }
.scene-opt .sw .giftbox { height: 60px; width: auto; }
.hero-village[data-scene="gift"] .village { max-width: 520px; margin: 0; }
.hero-village[data-scene="gift"] .house .who { font-size: .55rem; }
.hero-village[data-scene="gift"] .house { pointer-events: none; }
/* 4 rows of 6 everywhere */
.village { max-width: 760px; }
.hill { gap: 0; padding: 0 2px; }
.house .who { font-size: .6rem; }
@media (min-width: 700px) { .house .who { font-size: .72rem; } }
.wall { max-width: 720px; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px; }
.tree-wrap { max-width: 520px; }
/* tree as tall as the 6x4 grids: same width as them */
.tree-wrap { max-width: 760px; margin: 14px auto 34px; }
.hero-village[data-scene="tree"] .tree-wrap { max-width: 420px; margin: 0; }
/* calendar page: calendar left, sharing/actions right (stacked on phones) */
.cal-layout { display: grid; gap: 18px; padding-bottom: 40px; }
.side-card { background: rgba(255,255,255,.08); border-radius: 18px; padding: 18px; margin-top: 14px; }
.side-card h3 { margin-top: 0; }
.cal-side > .side-card:first-child { margin-top: 0; }
#grid .village, #grid .tree-wrap, #grid .wall { margin-top: 10px; margin-bottom: 0; }
@media (min-width: 960px) {
  .cal-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 40px; align-items: start; padding-top: 20px; }
  .cal-head { text-align: left; padding-top: 0; }
  .cal-side { position: sticky; top: 20px; padding-top: 40px; }
  #grid .village, #grid .tree-wrap, #grid .wall { margin-left: 0; margin-right: 0; max-width: none; }
}
/* note idea chips + ideas card */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { border: 1.5px solid rgba(0,0,0,.14); background: #fff; color: var(--paper-ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.chip:hover { border-color: var(--ribbon); }
.chip.more { padding: 5px 9px; }
.ideas-card { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.ideas-title { font-weight: 900; font-size: .9rem; margin-bottom: 4px; }
.ideas-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.ideas-card li { margin: 4px 0; }

/* ---------- home page long-form content ---------- */
.content { padding-bottom: 20px; }
.content .block { padding: 38px 20px; }
.wrap.narrow, .narrow-p { max-width: 780px; }
.content p, .content li { color: #e9e4da; }
[data-theme] .content p.muted { color: var(--muted); }
.content .intro { color: var(--muted); font-size: 1.08rem; margin-top: -4px; }
.content h3 { font-size: 1.15rem; margin: 0 0 4px; }
.tut-row { display: grid; gap: 20px; align-items: center; margin: 22px 0 10px; }
@media (min-width: 860px) {
  .tut-row { grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; }
  .tut-row.flip { grid-template-columns: 250px minmax(0, 1fr); }
  .tut-row.flip > :first-child { order: 2; }
}
.tut-steps { list-style: none; padding: 0; margin: 0; }
.tut-steps li { position: relative; padding: 0 0 18px 52px; counter-increment: step; }
.tut-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.tut-steps li p { margin: 2px 0 0; }
.shot { margin: 0 auto; max-width: 300px; text-align: center; }
.phone-frame { border-radius: 34px; padding: 9px; background: #07090d; box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 0 0 2px #2b2f38; }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 26px; background: #0d1a3a; }
.shot figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; line-height: 1.4; }
.tips { padding-left: 20px; }
.tips li { margin: 8px 0; }
.style-cards { display: grid; gap: 26px; margin-top: 18px; }
@media (min-width: 860px) { .style-cards { grid-template-columns: repeat(3, 1fr); } }
.style-cards .shot { max-width: 260px; }
.style-cards figcaption { text-align: left; }
.idea-grid { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 760px) { .idea-grid { grid-template-columns: repeat(3, 1fr); } }
.idea-group { background: rgba(255,255,255,.07); border-radius: 16px; padding: 16px 18px; }
.idea-group ul { margin: 0; padding-left: 18px; }
.idea-group li { margin: 5px 0; font-size: .95rem; }
footer a { color: var(--muted); }
html, body { overflow-x: hidden; } @supports (overflow: clip) { html, body { overflow-x: clip; } }
.tut-row .shot { max-width: 250px; }

/* Owner share card */
.link-box { display: flex; gap: 8px; align-items: stretch; }
.link-box input { flex: 1; min-width: 0; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink);
  background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.2); border-radius: 12px; padding: 10px 12px; }
.link-box input:focus { outline: none; border-color: rgba(255,255,255,.55); }
.social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.soc { display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: .78rem; font-weight: 700;
  color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.soc-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .15s; }
.soc:hover .soc-ic, .soc:focus-visible .soc-ic { transform: translateY(-2px); }
.soc-ic svg { width: 24px; height: 24px; fill: currentColor; }
.soc-sms .soc-ic { background: #34c759; }
.soc-whatsapp .soc-ic { background: #25d366; }
.soc-x .soc-ic { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.soc-facebook .soc-ic { background: #1877f2; }
.soc-threads .soc-ic { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.soc-email .soc-ic { background: #8e8e93; }
.soc-more .soc-ic { background: rgba(255,255,255,.18); }

footer .langs { margin-top: 10px; font-size: .85rem; line-height: 1.9; }
footer .langs a[aria-current] { font-weight: 800; text-decoration: none; }
