:root {
  --paper: #FBF6EE;
  --oat: #F2E8D9;
  --card: #FFFDF9;
  --ink: #3D3530;
  --ink-soft: #75685F;
  --line: #E4D8C6;
  --sage: #A9C0A2;
  --sage-deep: #5F805B;
  --blush: #F4CFC5;
  --butter: #F6E3A1;
  --green: #5F805B;
  --green-deep: #4A6947;
  --error: #B9664B;
  --pink: #EE6FAE;
  --pink-soft: #FAD3E6;
  --blue: #74B3E8;
  --blue-soft: #D3E8F8;

  --display: "Fraunces", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --body: "Nunito", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --shadow: 0 1px 1px rgba(61, 53, 48, .05), 0 8px 24px -8px rgba(61, 53, 48, .18);
  --shadow-lift: 0 2px 2px rgba(61, 53, 48, .06), 0 18px 40px -12px rgba(61, 53, 48, .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; line-height: 1.05; margin: 0; }

.hand { font-family: var(--hand); font-weight: 600; }
.hand.small { font-size: 1.35rem; color: var(--ink-soft); margin: .75rem 0 0; }
.hand.big { font-size: 2rem; margin: 0 0 .25rem; line-height: 1.1; }
.ic { width: 1em; height: 1em; vertical-align: -0.12em; }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--green);
  color: #fff;
  font: 800 1rem/1 var(--body);
  letter-spacing: .01em;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--green-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }
.btn:focus-visible, .chip input:focus-visible + span, .swatch input:focus-visible + .dot,
.sex-tile input:focus-visible ~ .board, .cal button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-big { font-size: 1.15rem; padding: 1.05rem 1.7rem; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: var(--oat); }
.btn-link { background: none; border: 0; color: var(--green-deep); font: 700 .95rem var(--body); text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- tape & polaroid ---------- */
.polaroid {
  position: relative;
  margin: 0;
  background: #fff;
  padding: 12px 12px 14px;
  box-shadow: var(--shadow-lift);
  border-radius: 3px;
}
.polaroid img { width: 100%; border-radius: 1px; }
.polaroid figcaption { text-align: center; padding-top: 10px; }

.tape-1::before, .tape-2::before, .tape-2::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 30px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px),
    rgba(169, 192, 162, .78);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  z-index: 2;
}
.tape-1::before { top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.tape-2::before { top: -12px; left: -26px; transform: rotate(-38deg); background-color: rgba(244, 207, 197, .85); }
.tape-2::after { bottom: -8px; right: -24px; transform: rotate(-38deg); background-color: rgba(246, 227, 161, .9); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 16px clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.kicker { font: 800 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 6.6rem); font-weight: 750; letter-spacing: -.02em; }
.hero h1 span { color: var(--green); font-style: italic; font-weight: 600; }
.underline { display: block; width: min(320px, 70%); height: 22px; color: var(--butter); margin: .4rem 0 1.2rem; }
.lede { font-size: 1.15rem; max-width: 34ch; margin: 0 0 1.8rem; color: var(--ink-soft); }
.lede em { font-family: var(--hand); font-size: 1.4em; font-style: normal; color: var(--ink); line-height: 0; }

.hero-photo { transform: rotate(2.5deg); width: min(380px, 48vh, 100%); justify-self: center; }
.hero-photo figcaption { font-size: 1.6rem; color: var(--ink); }
.hero-photo figcaption .ic { color: var(--pink); }

.doodles .d { position: absolute; width: 26px; height: 26px; opacity: .9; }
.d1 { top: 9%; left: 6%; color: var(--butter); width: 34px !important; height: 34px !important; animation: bob 6s ease-in-out infinite; }
.d2 { top: 70%; left: 3%; color: var(--blush); animation: bob 7s ease-in-out infinite reverse; }
.d3 { top: 14%; right: 44%; color: var(--sage); animation: twinkle 3.5s ease-in-out infinite; }
.d4 { bottom: 8%; right: 8%; color: var(--blue-soft); width: 38px !important; height: 38px !important; animation: bob 8s ease-in-out infinite; }
.d5 { top: 6%; right: 6%; color: var(--pink-soft); animation: twinkle 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes twinkle { 50% { transform: scale(.6) rotate(20deg); opacity: .5; } }

/* ---------- sections ---------- */
.section { max-width: 920px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 16px; scroll-margin-top: 8px; }
.section-title { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 700; text-align: center; }
.section-sub { text-align: center; font-size: 1.45rem; color: var(--ink-soft); margin: .3rem 0 2rem; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  position: relative;
}
.stitched::after {
  content: ""; position: absolute; inset: 9px;
  border: 2px dashed var(--line); border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}
.already { text-align: center; max-width: 560px; margin: 0 auto 1.5rem; }
.already p { margin: 0 0 .75rem; }

/* ---------- form ---------- */
.guess-card { max-width: 640px; margin: 0 auto; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.step-title { font: 700 clamp(1.5rem, 4.5vw, 2rem)/1.15 var(--display); font-variation-settings: "SOFT" 100; padding: 0; margin: 0 0 1.4rem; }

.steps-dots { list-style: none; display: flex; gap: .55rem; padding: 0; margin: 0 0 1.4rem; }
.steps-dots li { width: 16px; height: 22px; color: var(--line); transition: color .3s, transform .3s; }
.steps-dots li:nth-child(even) { transform: translateY(5px) scaleX(-1); }
.steps-dots li.done { color: var(--sage); }
.steps-dots li.on { color: var(--green); }
.steps-dots svg { width: 100%; height: 100%; }

.field { display: block; margin: 0 0 1.5rem; }
.field-label { display: block; font: 800 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .65rem; }
.field-label em { text-transform: none; letter-spacing: 0; font-weight: 600; font-style: normal; }
.hint { font-size: .92rem; color: var(--ink-soft); margin: .6rem 0 1.4rem; }
.hint.hand { font-size: 1.2rem; }

input[type=text], textarea {
  width: 100%;
  font: 600 1.1rem var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .2s, background .2s;
}
input[type=text] { font-family: var(--hand); font-size: 1.7rem; padding: .45rem 1rem; }
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--sage); background: #fff; }
textarea { resize: vertical; }

.form-error { color: var(--error); font-weight: 700; margin: 0 0 1rem; }

.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.step-nav [data-nav=next], .step-nav [type=submit] { margin-left: auto; }

.btn-seal { background: var(--green); }
.btn-seal:hover { background: var(--green-deep); }
.seal {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9745a, #a6452d);
  font: 700 .72rem var(--display); color: #fbe1d7;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18);
  margin: -6px 0 -6px -8px;
}

/* sex tiles */
.sex-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sex-tile { position: relative; cursor: pointer; display: grid; justify-items: center; gap: .6rem; padding: 1.2rem .5rem 1rem; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); transition: transform .2s, border-color .2s, background .2s; }
.sex-tile input { position: absolute; opacity: 0; pointer-events: none; }
.sex-tile .board {
  width: 74px; height: 118px; border-radius: 34px 34px 18px 18px;
  transform: rotate(-8deg);
  box-shadow: inset -6px -8px 0 rgba(0,0,0,.08), 0 6px 10px -4px rgba(0,0,0,.25);
  transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
/* leash plug + slick bottom stripe so they read as boogie boards */
.sex-tile .board { position: relative; }
.sex-tile .board::before { content: ""; position: absolute; top: 14px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #2a2a2a; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.sex-tile .board::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 16px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.4); }
.sex-tile.girl .board { background: var(--pink); }
.sex-tile.boy .board { background: var(--blue); transform: rotate(8deg); }
.sex-label { font: 700 1.6rem var(--display); }
.sex-tile:hover { transform: translateY(-3px); }
.sex-tile:has(input:checked) { border-color: var(--ink); }
.sex-tile.girl:has(input:checked) { background: var(--pink-soft); }
.sex-tile.boy:has(input:checked) { background: var(--blue-soft); }
.sex-tile:has(input:checked) .board { transform: rotate(0) scale(1.1) translateY(-4px); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .dow { text-align: center; font: 800 .7rem var(--body); letter-spacing: .08em; color: var(--ink-soft); padding-bottom: 2px; }
.cal .month { grid-column: 1 / -1; font: 700 1.5rem var(--hand); color: var(--sage-deep); margin: .4rem 0 0; }
.cal button {
  position: relative;
  height: 48px;
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px;
  font: 700 .98rem var(--body); color: var(--ink); cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.cal button:hover:not(:disabled) { background: var(--oat); transform: translateY(-1px); }
.cal button:disabled { opacity: .3; cursor: default; }
.cal button[aria-checked=true] { background: var(--butter); border-color: var(--ink); transform: rotate(-4deg) scale(1.08); box-shadow: 2px 2px 0 var(--ink); }
.cal .mon { position: absolute; top: 1px; left: 4px; font-size: .56rem; font-weight: 800; text-transform: uppercase; color: var(--sage-deep); }
.cal button.due svg { position: absolute; top: 2px; right: 3px; width: 11px; height: 11px; color: var(--pink); }

/* ranges */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: var(--oat); border: 1.5px solid var(--line); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 99px; background: var(--oat); border: 1.5px solid var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 6px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px var(--blue-soft); }
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); font-weight: 700; }

.big-num { display: block; font: 700 2.3rem/1.1 var(--display); margin-bottom: .2rem; }
.time-readout { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.time-readout output { font: 700 2.3rem/1.1 var(--display); }
.time-ic { width: 34px; height: 34px; color: #8C95C9; transition: color .3s; }
.time-ic.day { color: #E9B949; }
.time-mood { font-size: 1.3rem; color: var(--ink-soft); }

/* chips & swatches */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font-weight: 700; font-size: .95rem; transition: all .15s; }
.chip:hover span { border-color: var(--sage); }
.chip input:checked + span { background: var(--sage); border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

.swatches { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; }
.swatch { display: grid; justify-items: center; gap: .3rem; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); transition: transform .2s, box-shadow .2s; }
.eyes .dot { background: radial-gradient(circle, #2a211d 0 22%, var(--c) 24% 62%, #fff 64%); }
.swatch:has(input:checked) { color: var(--ink); }
.swatch input:checked + .dot { box-shadow: 0 0 0 2.5px var(--ink); transform: scale(1.12); }
#hair-color-field.muted { opacity: .4; pointer-events: none; }

.looks { display: grid; grid-template-columns: 64px 1fr 64px; gap: .8rem; align-items: center; }
.looks figure { margin: 0; text-align: center; }
.looks img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.looks figcaption { font-size: 1.15rem; }
.looks-mid { text-align: center; }
.looks-mid output { font-size: 1.45rem; }

/* ---------- baby ---------- */
.baby-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.baby-frame { transform: rotate(-1.5deg); max-width: 440px; justify-self: center; width: 100%; }
.baby-canvas { position: relative; aspect-ratio: 1; background: var(--oat); overflow: hidden; }
.baby-canvas #baby-img { width: 100%; height: 100%; object-fit: cover; animation: develop 1.6s ease both; }
@keyframes develop { from { filter: brightness(1.8) saturate(0) blur(6px); } }
.baby-frame figcaption { display: grid; gap: .1rem; padding-top: 12px; }
.name-tag { font-size: 2rem; line-height: 1.1; }
.baby-stats { font-size: .9rem; color: var(--ink-soft); font-weight: 700; }

.mixing { position: absolute; inset: 0; display: grid; place-items: center; }
.mixing img { position: absolute; width: 34%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); top: 30%; }
.mix-a { left: 10%; animation: mixA 2.4s ease-in-out infinite; }
.mix-b { right: 10%; animation: mixB 2.4s ease-in-out infinite; }
@keyframes mixA { 50% { transform: translateX(46%) rotate(-10deg) scale(.9); } }
@keyframes mixB { 50% { transform: translateX(-46%) rotate(10deg) scale(.9); } }
.mix-spark { position: absolute; width: 28px; height: 28px; color: var(--butter); animation: twinkle 1.2s ease-in-out infinite; }
.s1 { top: 18%; left: 46%; }
.s2 { top: 62%; left: 30%; color: var(--blush); animation-delay: .4s; }
.s3 { top: 58%; right: 26%; color: var(--sage); animation-delay: .8s; }
.mix-msg { position: absolute; bottom: 9%; margin: 0; font-size: 1.7rem; }

.baby-controls .btn { margin-top: 1.2rem; }
.baby-controls .hint { margin: .6rem 0 0; }
.rolls { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.rolls button { padding: 0; border: 3px solid #fff; border-radius: 8px; width: 72px; height: 72px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 2px var(--line); position: relative; background: var(--oat); }
.rolls button img { width: 100%; height: 100%; object-fit: cover; }
.rolls button[aria-pressed=true] { box-shadow: 0 0 0 3px var(--green); }
.rolls button[aria-pressed=true]::after { content: "♥"; position: absolute; top: 2px; right: 4px; color: #fff; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ---------- results ---------- */
.results-wrap { position: relative; }
.results-wrap.locked .results { filter: blur(9px) saturate(.8); opacity: .75; pointer-events: none; user-select: none; }
.lock-overlay { position: absolute; inset: 0; display: none; align-items: flex-start; justify-content: center; padding-top: clamp(2rem, 12vw, 7rem); }
.results-wrap.locked .lock-overlay { display: flex; }
.lock-card { max-width: 380px; text-align: center; transform: rotate(-1deg); position: sticky; top: 30vh; }
.lock-card p { margin: 0 0 1rem; }
.lock-emoji { font-size: 2.6rem; margin: 0 !important; }
.results-wrap.locked { min-height: 520px; }

.results { display: grid; gap: 1.2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.stat { padding: 1.3rem; }
.stat:nth-child(3n+1) { transform: rotate(-.6deg); }
.stat:nth-child(3n+2) { transform: rotate(.5deg); }
.stat h3 { font: 800 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .7rem; }
.stat .val { font: 700 2.1rem/1.1 var(--display); }
.stat .sub { font-size: .9rem; color: var(--ink-soft); font-weight: 600; margin-top: .25rem; }
.stat.wide { grid-column: 1 / -1; }
.stat.span2 { grid-column: span 2; }

.split { display: flex; height: 44px; border-radius: 999px; overflow: hidden; border: 2px solid var(--ink); font-weight: 800; }
.split div { display: grid; place-items: center; color: #fff; min-width: 0; white-space: nowrap; transition: flex-grow .8s ease; font-size: .95rem; }
.split .g { background: var(--pink); }
.split .b { background: var(--blue); }

.date-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin-top: .5rem; }
.date-chart .bar { flex: 1; background: var(--sage); border-radius: 4px 4px 1px 1px; min-height: 3px; position: relative; }
.date-chart .bar.due { background: var(--pink); }
.date-chart .bar.top { background: var(--green); }
.date-axis { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--ink-soft); margin-top: .35rem; }

.names { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; }
.names span { font-family: var(--hand); font-weight: 700; line-height: 1.1; }
.bars-list { display: grid; gap: .4rem; }
.bars-list .row { display: grid; grid-template-columns: 7.5rem 1fr 2rem; gap: .6rem; align-items: center; font-size: .9rem; font-weight: 700; }
.bars-list .track { height: 12px; background: var(--oat); border-radius: 99px; overflow: hidden; }
.bars-list .fill { height: 100%; background: var(--sage); border-radius: 99px; }
.bars-list .n { text-align: right; color: var(--ink-soft); }

.wall-title { font: 700 1.8rem var(--display); text-align: center; margin: 1.5rem 0 .5rem; }
.wall { columns: 3 230px; column-gap: 1.2rem; }
.guess-note { break-inside: avoid; margin: 0 0 1.2rem; background: #fff; padding: 10px 10px 14px; box-shadow: var(--shadow); border-radius: 3px; position: relative; }
.guess-note:nth-child(odd) { transform: rotate(-1.2deg); }
.guess-note:nth-child(even) { transform: rotate(1deg); }
.guess-note:nth-child(3n)::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; transform: translateX(-50%) rotate(2deg);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px), rgba(246, 227, 161, .9);
}
.guess-note .pic { aspect-ratio: 1; background: var(--oat); display: grid; place-items: center; overflow: hidden; }
.guess-note .pic img { width: 100%; height: 100%; object-fit: cover; }
.guess-note .pic .ph { width: 40%; color: var(--line); }
.guess-note .pic.girl { background: var(--pink-soft); }
.guess-note .pic.boy { background: var(--blue-soft); }
.guess-note .pic.girl .ph { color: #F3B6D4; }
.guess-note .pic.boy .ph { color: #AFD2F0; }
.guess-note h4 { font: 700 1.7rem/1 var(--hand); margin: .6rem 0 .1rem; }
.guess-note .by { font-size: .82rem; font-weight: 800; color: var(--ink-soft); margin: 0 0 .5rem; }
.guess-note .facts { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .4rem; padding: 0; list-style: none; }
.guess-note .facts li { font-size: .76rem; font-weight: 800; background: var(--oat); border-radius: 99px; padding: .15rem .55rem; }
.guess-note .facts li.girl { background: var(--pink-soft); }
.guess-note .facts li.boy { background: var(--blue-soft); }
.guess-note blockquote { margin: .5rem 0 0; font-family: var(--hand); font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.guess-note.mine { outline: 3px solid var(--butter); outline-offset: 4px; }
.empty { text-align: center; color: var(--ink-soft); }

/* ---------- footer & confetti ---------- */
.footer { text-align: center; padding: 2rem 16px 3rem; color: var(--ink-soft); font-size: 1.3rem; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .underline { margin-inline: auto; }
  .d3 { display: none; }
  .hero-photo { width: min(290px, 80%); }
  .baby-stage { grid-template-columns: 1fr; }
  .baby-controls { text-align: center; }
  .baby-controls .chips, .rolls { justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat.span2 { grid-column: 1 / -1; }
  .stat { padding: 1rem; }
  .stat .val { font-size: 1.7rem; }
  .cal { gap: 4px; }
  .cal button { height: auto; aspect-ratio: 1; font-size: .88rem; border-radius: 8px; }
  .looks { grid-template-columns: 52px 1fr 52px; }
  .looks img { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
