:root {
  --bg: #fdf6ec;
  --card: #ffffff;
  --ink: #3b3341;
  --soft: #7a6f80;
  --rose: #e88aa3;
  --rose-deep: #c9607e;
  --sun: #f6c453;
  --leaf: #7fb48a;
  --line: #eadfd2;
  --radius: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--bg); min-height: 100vh; font-size: 18px; line-height: 1.5; }

.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 20px; margin: 0; font-weight: 650; }
.back {
  font-size: 30px; line-height: 1; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}

main { padding: 16px; max-width: 560px; margin: 0 auto; outline: none; }

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px; margin: 0 0 14px; border: 1px solid var(--line);
}
.card h2 { margin: 0 0 6px; font-size: 20px; }
.muted { color: var(--soft); }

.btn {
  display: block; width: 100%; min-height: 52px;
  padding: 12px 18px; margin: 10px 0;
  border: 0; border-radius: 14px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--rose); color: #fff;
}
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn:focus-visible, .back:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.hero { text-align: center; padding: 18px 0 8px; }
.hero img { width: 96px; height: 96px; }

.kids { display: grid; gap: 10px; margin: 8px 0; }
.kid {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 60px; padding: 12px 16px;
  font: inherit; text-align: left; cursor: pointer;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
}
.kid-name { font-weight: 650; font-size: 20px; }

.field { display: block; margin: 14px 0; border: 0; padding: 0; }
.field legend { font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input:not([type]) {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.choice input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--rose-deep); flex: none; }
.error { color: var(--rose-deep); min-height: 1.2em; margin: 4px 0; }

.acts { display: grid; gap: 10px; margin-top: 8px; }
.act {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 60px; padding: 12px 16px; font: inherit; text-align: left; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
}
.act-title { font-weight: 650; }
.draft {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; margin-left: 4px;
  border-radius: 999px; background: #fff1c9; color: #7a5a00; vertical-align: middle;
}
.steps { padding-left: 22px; }
.steps li { margin: 8px 0; }
.source { font-size: 14px; color: var(--soft); margin-top: 14px; }
.note { background: #fff7e6; border-radius: 12px; padding: 12px; }
.song { text-align: left; }
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; margin: 8px 0; }

.silence { text-align: center; padding: 40px 0; }
.big { font-size: 48px; font-weight: 300; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.bloom {
  width: 120px; height: 120px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 28%, var(--rose) 30% 62%, transparent 64%);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(0.85); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
.done em { font-style: normal; font-weight: 600; }

.flower { display: flex; align-items: center; gap: 14px; }
.flower-emoji { font-size: 44px; line-height: 1; }
.week { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.week h3 { margin: 0 0 4px; font-size: 17px; }
.week p { margin: 4px 0; }
.time { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0; }
.time input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  min-height: 44px; padding: 8px 14px; font: inherit; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--rose); background: var(--bg); border-radius: 0 12px 12px 0; }
blockquote cite { display: block; margin-top: 6px; font-style: normal; color: var(--soft); font-size: 15px; }
.points { padding-left: 20px; }
.points li { margin: 10px 0; }
.section { font-size: 18px; margin: 20px 4px 10px; }
.tip h3 { margin: 0 0 4px; font-size: 17px; }
a.btn { text-align: center; text-decoration: none; }

.inline { display: grid; gap: 8px; margin-top: 10px; }
.inline input { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.roster { list-style: none; padding: 0; margin: 6px 0; }
.roster li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link { background: none; border: 0; color: var(--rose-deep); font: inherit; cursor: pointer; min-height: 44px; padding: 0 6px; }
.btn:disabled { opacity: 0.5; cursor: default; }

.gear { margin-left: auto; font-size: 24px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--soft); cursor: pointer; }
.pick { display: inline-flex; align-items: center; gap: 6px; }
.pick input { accent-color: var(--rose-deep); }
textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.review-banner { margin: 0; padding: 6px 16px; font-size: 14px; text-align: center; background: #fff1c9; color: #7a5a00; }
