/* ==========================================================
   我们的小窝 · 蜡笔绘本贴纸风
   palette: cream / paper / ink-brown / coral / rose / sunny / mint / sky
   ========================================================== */

:root {
  --cream: #FFF6E6;
  --paper: #FFFDF7;
  --ink: #4A3B32;
  --ink-soft: rgba(74, 59, 50, .55);
  --coral: #FF8A66;
  --coral-deep: #F2704B;
  --rose: #F9A8C0;
  --sunny: #FFD166;
  --mint: #8ED1B8;
  --mint-bg: #E7F4EE;
  --rose-bg: #FBEFF3;
  --sky: #BDE3F0;
  --sky-light: #D3EDF7;
  --grass: #BCE0A8;
  --blush: #FFB5A0;
  --shadow: rgba(74, 59, 50, .12);
  --font-display: 'ZCOOL KuaiLe', 'LXGW WenKai', cursive;
  --font-body: 'LXGW WenKai', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --paw-cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><g fill='%234A3B32' stroke='%23FFFDF7' stroke-width='1.5'><ellipse cx='14' cy='18.5' rx='6.5' ry='5.5'/><circle cx='5.5' cy='11' r='3'/><circle cx='11' cy='7' r='3'/><circle cx='17' cy='7' r='3'/><circle cx='22.5' cy='11' r='3'/></g></svg>") 14 14, pointer;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(74, 59, 50, .055) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--sunny); color: var(--ink); }

svg { display: block; }

/* ---------- 通用 ---------- */

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.section { position: relative; padding: 88px 0 96px; }
.sec-paper { background: var(--paper); }
.sec-cream { background: var(--cream); }
.sec-mint  { background: var(--mint-bg); }
.sec-rose  { background: var(--rose-bg); }

.wave {
  position: absolute; top: -1px; left: 0; right: 0;
  height: 34px; pointer-events: none;
}
.wave svg { width: 100%; height: 100%; }

.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 44px);
  letter-spacing: .04em;
  margin-top: 18px;
}
.sec-sub { color: var(--ink-soft); margin-top: 6px; font-size: 17px; }

/* 贴纸小标签 */
.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  padding: 5px 16px;
  border: 3px solid var(--ink);
  border-radius: 18px 22px 20px 24px / 22px 18px 24px 20px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--shadow);
}
.chip-coral { background: var(--coral); color: #fff; }
.chip-rose  { background: var(--rose); }
.chip-sunny { background: var(--sunny); }
.chip-mint  { background: var(--mint); }
.chip-tilt  { transform: rotate(-3deg); }

/* 手绘按钮 */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px 26px 22px 28px / 26px 20px 28px 22px;
  padding: 12px 28px;
  box-shadow: 5px 5px 0 var(--shadow);
  cursor: var(--paw-cursor);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 8px 9px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-sunny { background: var(--sunny); }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--ri, 0) * .12s);
}

/* ---------- 导航 ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 44px);
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--ink);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink); text-decoration: none;
}
.nav-paw { width: 30px; height: 30px; transition: transform .3s ease; }
.nav-paw svg { width: 100%; height: 100%; }
.nav-logo:hover .nav-paw { transform: rotate(-20deg) scale(1.15); }
.nav-links { display: flex; gap: clamp(10px, 2.5vw, 28px); }
.nav-links a {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink); text-decoration: none;
  padding: 4px 10px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
}
.nav-links a:hover { background: var(--sunny); transform: translateY(-2px) rotate(-2deg); }
.nav-links .nav-pet {
  background: var(--mint);
  border: 2.5px solid var(--ink);
  border-radius: 14px 18px 16px 20px / 18px 14px 20px 16px;
  box-shadow: 2.5px 2.5px 0 var(--shadow);
}

/* ---------- 首屏 ---------- */

.hero { padding: clamp(48px, 7vw, 84px) 24px 90px; max-width: 1120px; margin: 0 auto; }

.hero-copy { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.hero-kicker {
  font-family: var(--font-display);
  color: var(--coral-deep);
  font-size: 19px;
  letter-spacing: .22em;
}
.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.25;
  margin-top: 10px;
  letter-spacing: .04em;
}
.hl-coral { color: var(--coral-deep); white-space: nowrap; }
.squiggle {
  width: min(46%, 250px); height: auto;
  margin: 2px auto 0;
}
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-soft); margin-top: 14px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.hero-chips .chip:nth-child(odd) { transform: rotate(-2.5deg); }
.hero-chips .chip:nth-child(even) { transform: rotate(2deg); }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* 场景框 */
.scene {
  position: relative;
  height: clamp(300px, 44vw, 460px);
  border: 3px solid var(--ink);
  border-radius: 34px 40px 36px 42px / 40px 34px 42px 36px;
  background: linear-gradient(to bottom, var(--sky-light), var(--sky) 80%);
  box-shadow: 9px 10px 0 var(--shadow);
  overflow: hidden;
}
.scene-sun {
  position: absolute; top: 6%; right: 5%;
  width: clamp(72px, 11vw, 118px);
  animation: sunspin 70s linear infinite;
}
.scene-sun svg { width: 100%; height: auto; }
.scene-cloud { position: absolute; opacity: .95; animation: drift linear infinite; }
.scene-cloud svg { width: 100%; height: auto; }
.cloud-1 { top: 9%;  width: clamp(80px, 12vw, 130px); animation-duration: 58s; animation-delay: -8s; }
.cloud-2 { top: 24%; width: clamp(100px, 15vw, 165px); animation-duration: 74s; animation-delay: -38s; }
.cloud-3 { top: 4%;  width: clamp(60px, 9vw, 95px);  animation-duration: 66s; animation-delay: -55s; }
.scene-butterfly {
  position: absolute; top: 34%; left: 12%;
  width: clamp(34px, 5vw, 52px);
  animation: flutter 7s ease-in-out infinite;
}
.scene-butterfly svg { width: 100%; height: auto; }
.scene-hill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }
.hill-back  { height: 46%; }
.hill-front { height: 32%; }
.scene-flower { position: absolute; bottom: 6%; z-index: 3; }
.scene-flower svg { width: 100%; height: auto; }
.f-1 { left: 6%;  width: clamp(30px, 4.4vw, 48px); }
.f-2 { left: 16%; width: clamp(22px, 3vw, 34px); bottom: 4%; }
.f-3 { right: 7%; width: clamp(30px, 4.4vw, 48px); bottom: 5%; }

.scene-family {
  position: absolute; left: 0; right: 0; bottom: 3.5%;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(2px, 1vw, 14px);
  z-index: 4;
}
.char { position: relative; }
.char svg { width: 100%; height: 100%; }
.char-dad  { width: clamp(96px, 15vw, 158px);  aspect-ratio: 240/300; }
.char-mom  { width: clamp(92px, 14.4vw, 152px); aspect-ratio: 240/300; }
.char-baby { width: clamp(64px, 10vw, 104px);  aspect-ratio: 240/300; }
.char-cat  { width: clamp(60px, 9.4vw, 98px);  aspect-ratio: 240/300; }

.bob { animation: bob 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }

/* 对话气泡 */
.bubble {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-40%) rotate(2deg);
  font-family: var(--font-display);
  font-size: clamp(12px, 1.6vw, 16px);
  white-space: nowrap;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px 18px 16px 18px / 18px 14px 18px 16px;
  padding: 4px 12px;
  box-shadow: 3px 3px 0 var(--shadow);
  z-index: 6;
}
.bubble::after {
  content: '';
  position: absolute; bottom: -8px; left: 26%;
  width: 12px; height: 12px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}
.bubble-cat { top: -10px; left: 58%; transform: translateX(-30%) rotate(-3deg); }

/* ---------- 家庭成员 ---------- */

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}
.member-card {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px 30px 26px 32px / 30px 24px 32px 26px;
  box-shadow: 7px 8px 0 var(--shadow);
  padding: 34px 22px 24px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
.member-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: 10px 13px 0 var(--shadow);
}
.member-role {
  position: absolute; top: -16px; left: 18px;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 16px 20px 18px 22px / 20px 16px 22px 18px;
  box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(-3deg);
  z-index: 2;
}
.member-figure {
  height: 210px;
  display: flex; align-items: flex-end; justify-content: center;
  border: 3px dashed rgba(74, 59, 50, .22);
  border-radius: 20px;
  padding: 12px 8px 4px;
  margin-bottom: 18px;
  overflow: hidden;
}
.member-figure svg { height: 100%; width: auto; }
.fig-coral { background: #FFE9DD; }
.fig-rose  { background: #FDECF2; }
.fig-sunny { background: #FFF3D4; }
.fig-mint  { background: #E4F4ED; }
.member-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  text-align: center;
  margin-bottom: 12px;
}
.member-facts { list-style: none; font-size: 15px; display: grid; gap: 8px; }
.member-facts li { display: flex; gap: 8px; align-items: baseline; }
.fact-k {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--coral-deep);
  border: 2px solid currentColor;
  border-radius: 10px;
  padding: 0 7px;
  transform: translateY(-1px);
}

/* 成员卡片悬停 → 角色小动作 */
.member-card [id$="dad-arm-wave"],
.member-card [id$="mom-arm-heart"],
.member-card [id$="baby-arms"],
.member-card [id$="cat-tail"] {
  transform-box: fill-box;
  transform-origin: 50% 88%;
}
.member-card:hover [id$="dad-arm-wave"] { animation: wave-arm 1s ease-in-out infinite; }
.member-card:hover [id$="mom-arm-heart"] { animation: rock 1.4s ease-in-out infinite; }
.member-card:hover [id$="baby-arms"] { animation: cheer .8s ease-in-out infinite; }
.member-card:hover [id$="cat-tail"] { animation: tailwag 1s ease-in-out infinite; }

/* ---------- 我们的小日子 ---------- */

.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline-line {
  position: absolute; top: 10px; bottom: 10px; left: 50%;
  border-left: 4px dashed rgba(74, 59, 50, .3);
  transform: translateX(-2px);
}
.moment { position: relative; width: 50%; padding: 0 clamp(20px, 4vw, 44px) 46px; }
.moment:nth-child(even) { left: 0; }
.moment:nth-child(odd) { left: 50%; }
.moment::before {
  content: '';
  position: absolute; top: 34px;
  width: 18px; height: 18px;
  background: var(--sunny);
  border: 3px solid var(--ink);
  border-radius: 50%;
  z-index: 2;
}
.moment:nth-child(even)::before { right: -12px; }
.moment:nth-child(odd)::before { left: -12px; }

.polaroid {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 7px 0 var(--shadow);
  padding: 14px 14px 12px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s ease;
  position: relative;
}
.polaroid:hover { transform: rotate(0deg) scale(1.04); }
.tape {
  position: absolute; top: -12px; left: 50%;
  width: 84px; height: 24px;
  transform: translateX(-50%) rotate(-4deg);
  opacity: .85;
  border-left: 2px dashed rgba(255, 255, 255, .8);
  border-right: 2px dashed rgba(255, 255, 255, .8);
}
.tape-rose  { background: rgba(249, 168, 192, .8); }
.tape-mint  { background: rgba(142, 209, 184, .8); }
.tape-sunny { background: rgba(255, 209, 102, .85); }
.polaroid-pic {
  position: relative;
  height: 130px;
  border-radius: 10px;
  border: 2px solid rgba(74, 59, 50, .25);
  overflow: hidden;
}
.pic-sky   { background: var(--sky-light); }
.pic-mint  { background: #DDF0E7; }
.pic-rose  { background: #FBE3EC; }
.pic-sunny { background: #FFF0C9; }
.doodle { position: absolute; }
.doodle svg { width: 100%; height: auto; }
.d-big { width: 74px; left: 16%; top: 50%; transform: translateY(-50%) rotate(-6deg); }
.d-sm  { width: 46px; right: 14%; top: 24%; transform: rotate(8deg); }
.polaroid-cap { font-size: 15px; margin-top: 12px; line-height: 1.55; }
.polaroid-date {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- 猫咪角落 ---------- */

.cat-zone {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(260px, 380px);
  gap: clamp(28px, 5vw, 64px);
  justify-content: center;
  align-items: center;
}
.cat-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  cursor: var(--paw-cursor);
  outline-offset: 8px;
  border-radius: 30px;
}
.cat-figure { width: clamp(200px, 28vw, 300px); aspect-ratio: 240/300; position: relative; z-index: 2; }
.cat-figure svg { width: 100%; height: 100%; }
.cat-stage:hover .cat-figure { animation: bob 2.4s ease-in-out infinite; }
.cat-shadow {
  width: 62%; height: 22px;
  background: rgba(74, 59, 50, .14);
  border-radius: 50%;
  margin-top: -12px;
}
.cat-bubble {
  font-family: var(--font-display);
  font-size: 17px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px 20px 18px 22px / 20px 16px 22px 18px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 7px 18px;
  margin-bottom: 14px;
  position: relative;
  transform: rotate(-2deg);
  transition: transform .2s ease;
}
.cat-bubble.pop { animation: bubblepop .4s ease; }
.cat-bubble::after {
  content: '';
  position: absolute; bottom: -8px; left: 50%;
  width: 12px; height: 12px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

/* 眼睛状态切换:默认显示睁眼,摸的时候换眯眼 */
[id$="cat-eyes-closed"] { opacity: 0; }
.petting [id$="cat-eyes-open"] { opacity: 0; }
.petting [id$="cat-eyes-closed"] { opacity: 1; }

/* 猫尾巴常态慢摇 */
.cat-figure [id$="cat-tail"],
.char-cat [id$="cat-tail"] {
  transform-box: fill-box;
  transform-origin: 20% 20%;
  animation: tailwag 3.6s ease-in-out infinite;
}
.petting .cat-figure [id$="cat-tail"] { animation-duration: .9s; }

.cat-panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px 30px 26px 32px / 30px 24px 32px 26px;
  box-shadow: 7px 8px 0 var(--shadow);
  padding: 28px;
  transform: rotate(1deg);
}
.cat-counter { display: flex; align-items: baseline; gap: 12px; }
.cat-counter-num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--coral-deep);
  line-height: 1;
}
.cat-counter-label { font-size: 15px; color: var(--ink-soft); }
.cat-status { margin-top: 14px; font-size: 15px; }
.cat-actions { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.cat-tip { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* 漂浮的小爱心 / 小鱼干 */
.float-bit {
  position: absolute;
  width: 34px;
  z-index: 8;
  pointer-events: none;
  animation: floatup 1.4s ease-out forwards;
}
.float-bit svg { width: 100%; height: auto; }

/* ---------- 留言板 ---------- */

.note-form {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 46px;
}
.note-input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px 22px 20px 24px / 22px 18px 24px 20px;
  padding: 12px 18px;
  box-shadow: inset 3px 3px 0 rgba(74, 59, 50, .06);
  width: 170px;
}
.note-input-wide { flex: 1; min-width: 240px; }
.note-input:focus {
  outline: none;
  border-color: var(--coral-deep);
  background: #fff;
}
.note-input::placeholder { color: rgba(74, 59, 50, .38); }

.note-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.note {
  border: 3px solid var(--ink);
  border-radius: 6px 22px 8px 20px / 20px 8px 22px 6px;
  box-shadow: 5px 6px 0 var(--shadow);
  padding: 18px 18px 14px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .2s ease;
  position: relative;
}
.note:hover { transform: rotate(0deg) translateY(-4px); }
.note.pop { animation: notepop .45s cubic-bezier(.2, .8, .3, 1.4); }
.note::before {
  content: '';
  position: absolute; top: -10px; left: 50%;
  width: 56px; height: 18px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, .55);
  border: 2px dashed rgba(74, 59, 50, .25);
}
.note-0 { background: #FFF3D4; }
.note-1 { background: #FDECF2; }
.note-2 { background: #E4F4ED; }
.note-3 { background: #FFE9DD; }
.note-body { font-size: 15.5px; line-height: 1.65; min-height: 52px; }
.note-author {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 10px;
}

/* ---------- 页脚 ---------- */

.footer {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 78px 24px 44px;
}
.footer .wave svg path { fill: var(--rose-bg); }
.footer-title { font-family: var(--font-display); font-size: 30px; letter-spacing: .1em; }
.footer-line { margin-top: 10px; font-size: 15px; opacity: .85; }
.footer-paws {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  margin: 22px 0;
}
.footer-paws span { width: 30px; display: inline-block; opacity: .9; }
.footer-paws span:nth-child(2) { width: 26px; transform: translateY(-3px); }
.footer-paws svg { width: 100%; height: auto; }
.footer-note { font-size: 13px; opacity: .55; }

/* ---------- 动画 ---------- */

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes drift {
  from { left: -18%; }
  to { left: 108%; }
}
@keyframes sunspin { to { transform: rotate(360deg); } }
@keyframes flutter {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  30% { transform: translate(26px, -20px) rotate(8deg); }
  60% { transform: translate(52px, 6px) rotate(-4deg); }
}
@keyframes wave-arm {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-16deg); }
  75% { transform: rotate(7deg); }
}
@keyframes rock {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-7deg); }
}
@keyframes cheer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes tailwag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(14deg); }
}
@keyframes floatup {
  0% { opacity: 0; transform: translateY(6px) scale(.5) rotate(-8deg); }
  18% { opacity: 1; transform: translateY(-8px) scale(1) rotate(4deg); }
  100% { opacity: 0; transform: translateY(-130px) scale(1.25) rotate(-10deg); }
}
@keyframes bubblepop {
  0% { transform: rotate(-2deg) scale(.82); }
  60% { transform: rotate(1deg) scale(1.08); }
  100% { transform: rotate(-2deg) scale(1); }
}
@keyframes notepop {
  0% { transform: scale(.6) rotate(var(--tilt)); opacity: 0; }
  100% { transform: scale(1) rotate(var(--tilt)); opacity: 1; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .cat-zone { grid-template-columns: 1fr; justify-items: center; }
  .cat-panel { transform: none; width: min(100%, 440px); }
}

@media (max-width: 720px) {
  .nav { flex-direction: column; gap: 8px; padding-bottom: 10px; }
  .timeline-line { left: 12px; }
  .moment,
  .moment:nth-child(odd) { width: 100%; left: 0; padding-left: 40px; padding-right: 6px; }
  .moment:nth-child(even)::before,
  .moment:nth-child(odd)::before { left: 3px; right: auto; }
  .bubble-baby { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
