:root {
  --paper: #F7F0E6;
  --cream: #FFFBF5;
  --ink: #2A221C;
  --muted: #6F6458;
  --line: #E8DFD2;
  --coral: #E25B45;
  --coral-dark: #C44733;
  --gold: #E8B86D;
  --teal: #3D8B7A;
  --mint: #D8EDE6;
  --shadow: 0 10px 30px rgba(42, 34, 28, 0.08);
  --radius: 22px;
  --font: "Nunito", "PingFang SC", "Noto Sans SC", sans-serif;
  --display: "Fraunces", "Songti SC", "Noto Serif SC", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--font); }
body { min-height: 100dvh; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
.shell { max-width: 430px; margin: 0 auto; min-height: 100dvh; background: var(--paper); position: relative; padding-bottom: 32px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); z-index: 5; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand small { display: block; font-family: var(--font); font-size: 0.7rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.lang-sel { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 6px 10px; }
.banner { margin: 0 20px 8px; background: #fff3d6; color: #5c4a20; border-radius: 14px; padding: 6px 10px; font-size: 0.75rem; line-height: 1.35; }
main { padding: 8px 20px 40px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: 2.05rem; line-height: 1.2; margin: 12px 0 12px; letter-spacing: -0.03em; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.5; margin: 0 0 22px; }
.hero-art { background: var(--cream); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3e6d4; }
.steps { display: grid; gap: 10px; margin: 22px 0 28px; }
.step { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--teal); font-weight: 800; display: grid; place-items: center; font-size: 0.85rem; }
.step h3 { margin: 0 0 4px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 800; text-decoration: none; cursor: pointer; width: 100%; }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(226, 91, 69, 0.28); }
.btn.primary:hover { background: var(--coral-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.small { width: auto; padding: 8px 14px; font-size: 0.9rem; }
.row-btns { display: grid; gap: 10px; }
.credits-pill { background: var(--mint); color: var(--teal); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 0.85rem; text-decoration: none; }
.album-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.album-head h1 { font-family: var(--display); font-size: 1.7rem; margin: 0; }
.child-switch { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; }
.chip { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 8px 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: var(--cream); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.card img, .card .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: #efe4d4; }
.card .meta { padding: 10px 12px 12px; }
.card .meta strong { display: block; font-size: 0.92rem; }
.muted { color: var(--muted); font-size: 0.86rem; }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.form label, .field { display: block; font-weight: 700; margin: 14px 0 6px; }
.form input:not([type=file]):not([type=checkbox]) { display: block; margin-top: 6px; font-weight: 600; width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: 14px; padding: 12px 14px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 16px 0; font-size: 0.95rem; }
.check input { margin-top: 3px; }
.hint { color: var(--muted); font-size: 0.86rem; margin: 6px 0 0; }
.drop { border: 1.5px dashed #d2c4b0; background: var(--cream); border-radius: 20px; padding: 28px 16px; text-align: center; cursor: pointer; }
.drop.on { border-color: var(--coral); background: #fff6f2; }
.preview { margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.preview img { width: 100%; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.frame { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 1; object-fit: cover; max-height: 16vh; }
.frame span { display: block; padding: 8px 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.stage { background: var(--cream); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 8px 0 16px; }
.stage img { width: 100%; aspect-ratio: 1; max-height: 42vh; object-fit: contain; background: #f3e6d4; }
.ai-badge { display: inline-flex; align-items: center; background: var(--ink); color: var(--cream); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 4px 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; max-width: 90%; }
.toast.on { opacity: 1; }
.pack { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 10px 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pack strong { font-size: 1.1rem; }
.price { font-family: var(--display); font-size: 1.3rem; }
.foot { text-align: center; color: var(--muted); font-size: 0.82rem; padding: 20px; }
.back { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 0 0 8px; cursor: pointer; }
.error { background: #fde8e4; color: #8a2a1c; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.share-body { display: grid; place-items: start center; }
.share-card { max-width: 430px; width: 100%; padding: 24px 20px 48px; }
.share-card h1 { font-family: var(--display); font-size: 2rem; margin: 8px 0 6px; }
.share-sub { color: var(--muted); margin: 0 0 16px; }
.share-fig { background: var(--cream); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0 0 18px; }
.share-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.share-fig figcaption { padding: 10px 12px 12px; }
.share-actions { display: grid; gap: 10px; }
.foot-note { color: var(--muted); font-size: 0.85rem; text-align: center; }
.legal { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }
.legal h1 { font-family: var(--display); }
.legal h2 { margin-top: 1.6em; }
@media (min-width: 760px) {
  body { background: #efe4d4; }
  .shell { box-shadow: 0 0 0 12px #e8d8c4, var(--shadow); margin-top: 24px; margin-bottom: 24px; min-height: calc(100dvh - 48px); border-radius: 32px; overflow: hidden; }
}

.stage { width: min(100%, 40vh); margin-left: auto; margin-right: auto; }
.preview img { max-height: 38vh; object-fit: contain; margin: 0 auto; }

.waitlist { margin-top: 22px; padding: 18px 16px; background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(40,20,10,.06); }
.waitlist h2 { font-family: var(--display); font-size: 1.6rem; margin: 0 0 8px; }
.turnstile-wrap { margin: 14px 0 4px; }
.ok { color: #2d7a4f; font-weight: 700; }
