/* 給阿嬤 · styles
   Phone first (designed at 390px). iPad layout when the screen is at least 700×600:
   that catches every iPad (incl. iPad mini at 744px) in both orientations, while
   iPhones turned sideways (≤ 440px tall) and iPad split-view slivers keep the phone layout.
   Keep this query in sync with IPAD_QUERY in js/app.js. */

:root {
  --paper: #F6F2EA;
  --ink: #3A3530;
  --muted: #6B6157;
  --persimmon: #C8553D;
  --sage: #7C9474;
  --card: #FFFDF8;
  --line: #E6DDCF;
  --dash: #B9AE9F;
  --ph: #E8DFD0;
  --bar: #D9CFC0;
  --note: #FBF7F0;

  --hand: 'LXGW WenKai TC', 'Kaiti TC', 'STKaiti', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', -apple-system, sans-serif;

  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--persimmon); outline-offset: 3px; border-radius: 6px; }
.app:focus { outline: none; }

.hand { font-family: var(--hand); }
.en { font-family: var(--sans); font-weight: 400; color: var(--muted); }
.en.block { display: block; }
.no-en .en { display: none !important; }

/* ───────────── Loading screen ───────────── */
.loading {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 40px 0; overflow: hidden;
  transition: opacity 700ms ease-in-out;
}
.loading.done { opacity: 0; pointer-events: none; }
.loading .stage, .loading .loading-text, .loading .dots { transition: transform 700ms ease-in-out; }
.loading.done .stage, .loading.done .loading-text, .loading.done .dots { transform: translateY(-10px); }

.sky { position: absolute; top: 90px; right: 36px; width: 140px; height: 60px; }
.stage { width: 100%; height: 210px; overflow: hidden; position: relative; }
.family {
  position: absolute; top: 0; left: 50%;
  width: 390px; height: 210px; margin-left: -195px; max-width: none;
  animation: walk 7s linear infinite;
}
.ground { position: absolute; left: 0; bottom: 18px; width: 100%; height: 12px; }
.loading-text { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 32px; }
.loading-title { font-size: 28px; font-weight: 700; }
.loading-text .en { font-size: 14px; }
.dots { display: flex; gap: 10px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--persimmon); animation: dot 1.2s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
.credits { position: absolute; bottom: 48px; font-size: 13px; color: var(--muted); letter-spacing: .05em; text-align: center; padding: 0 24px; }

.b1 { animation: bob .35s ease-in-out infinite; }          /* little brother (left): little steps */
.b2 { animation: bob .45s ease-in-out .15s infinite; }     /* big brother (middle) */
.b3 { animation: bob .45s ease-in-out .3s infinite; }      /* Grandma (right, bun + glasses) walks in front */

@keyframes walk    { from { transform: translateX(-300px); } to { transform: translateX(300px); } }
@keyframes walk-lg { from { transform: translateX(-640px); } to { transform: translateX(640px); } }
@keyframes bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes dot     { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ───────────── App shell & screen changes ───────────── */
.app { min-height: 100vh; min-height: 100dvh; opacity: 0; transition: opacity 700ms ease-in-out; }
.app.ready { opacity: 1; }
.view { transition: opacity 250ms ease-out, transform 250ms ease-out; }
.view.enter { opacity: 0; transform: translateY(16px); transition: none; }
.view.leave { opacity: 0; transition-duration: 150ms; }

.page {
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex; flex-direction: column; gap: 32px;
}

/* Scroll reveal (Apple-style). JS adds .is-visible once. */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 900ms var(--ease-apple), transform 900ms var(--ease-apple);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Tap feedback: shrink fast, spring back */
.press { transition: transform 260ms var(--spring); }
.press:active { transform: scale(.94); transition: transform 100ms ease-out; }

/* Placeholder / media box */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--ph); color: var(--muted); font-size: 12px; text-align: center;
  overflow: hidden; padding: 6px;
}
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.broken > img { display: none; }
.video-badge {
  position: absolute; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(58, 53, 48, .55); display: flex; align-items: center; justify-content: center;
}
.video-badge svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }

/* ───────────── Home ───────────── */
.topbar { display: flex; justify-content: space-between; align-items: center; }
.season { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.season .en { letter-spacing: normal; }
.seal {
  width: 40px; height: 40px; border: 2px solid var(--persimmon); border-radius: 6px;
  color: var(--persimmon); font-family: var(--hand); font-weight: 700; font-size: 15px; line-height: 1.05;
  display: flex; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: rotate(-6deg);
}
.seal.stamped { animation: stamp 300ms var(--spring) forwards; }
@keyframes stamp {
  from { opacity: 0; transform: scale(1.4) rotate(0deg); }
  to   { opacity: 1; transform: scale(1) rotate(-6deg); }
}

.hero { display: flex; flex-direction: column; gap: 14px; }
.hero-art { order: -1; }
.hero-sketch { width: 100%; max-width: 342px; height: auto; will-change: transform; }
.hero-sketch .sun { animation: sun 4s ease-in-out infinite; transform-box: fill-box; }
.hero-sketch .bird { animation: bird 6s ease-in-out infinite; transform-box: fill-box; }
.hero-sketch .bird + .bird { animation-delay: -2s; }
/* the family stands still, just a slow, gentle bob, out of step like real people */
.hero-sketch .hf { animation: stand 3.2s ease-in-out infinite; transform-box: fill-box; }
.hero-sketch .hf1 { animation-duration: 2.6s; }            /* little brother, a bit livelier */
.hero-sketch .hf2 { animation-delay: -1.1s; }
.hero-sketch .hf3 { animation-delay: -2.2s; }
@keyframes stand { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes sun  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bird { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-family: var(--hand); font-weight: 700; font-size: 42px; line-height: 1.25; }
.hero h1 .en { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; white-space: normal; }
.hero h1 { white-space: nowrap; }   /* "阿嬤，" / "我們好愛妳" always stay as two whole lines */
.lede { font-size: 15px; line-height: 1.7; color: var(--muted); }

.sec { display: flex; flex-direction: column; gap: 14px; }
.sec.photos-sec { gap: 16px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; }
.sec-head h2 { font-family: var(--hand); font-size: 24px; font-weight: 700; }
.sec-head h2 .en { font-size: 14px; }
.sec-head::after { content: ''; flex-grow: 1; border-bottom: 1px dashed var(--dash); }

.memo-list { display: grid; gap: 14px; }
.memo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
}
.avatar {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; font-size: 11px; padding: 4px;
  box-shadow: 0 0 0 1.5px var(--bar); /* keeps the circle visible when a photo has a white background */
}
.memo-body { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.memo-name { font-family: var(--hand); font-size: 22px; font-weight: 700; }
.memo-sub { font-size: 14px; color: var(--muted); }
.no-en .memo-sub { word-break: keep-all; } /* wrap at the comma, not mid-phrase */
.no-en .memo-sub .sep { display: none; }
.no-en .memo-sub [data-dur] { display: block; }
.play-sm {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--persimmon);
  display: flex; align-items: center; justify-content: center;
}
.play-sm svg { width: 22px; height: 22px; fill: #fff; }

.polaroids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.polaroid {
  background: #fff; padding: 8px 8px 10px; box-shadow: 0 2px 8px rgba(58, 53, 48, .12);
  display: flex; flex-direction: column; gap: 8px; transform: rotate(var(--tilt, 0deg));
}
.polaroid .ph { height: 130px; }
.pol-cap { font-family: var(--hand); font-size: 15px; text-align: center; }
.pol-cap .en { display: block; font-size: 12px; }
/* polaroids settle from 0° to their tilt as they reveal */
.polaroid.reveal, .photo-card.reveal { transform: translateY(40px) rotate(0deg); }
.polaroid.reveal.is-visible, .photo-card.reveal.is-visible { transform: rotate(var(--tilt, 0deg)); }

.pill-btn {
  align-self: center; min-height: 48px; padding: 0 28px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 16px; display: flex; align-items: center; gap: 8px;
}
.pill-wrap { display: flex; justify-content: center; }

.note {
  border: 1.5px dashed var(--dash); border-radius: 18px; padding: 20px; background: var(--note);
  display: flex; flex-direction: column; gap: 10px;
}
.note-text { font-family: var(--hand); font-size: 19px; line-height: 1.7; white-space: pre-line; }
.note-text .en { display: block; font-size: 14px; line-height: 1.6; margin-top: 6px; white-space: normal; }
.note-sign { font-family: var(--hand); font-size: 16px; color: var(--muted); text-align: right; }

.footer { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; text-align: center; }
.heart { width: 14px; height: 14px; fill: var(--persimmon); animation: heartbeat 3s ease-in-out infinite; }
@keyframes heartbeat { 0%, 20%, 100% { transform: scale(1); } 8% { transform: scale(1.15); } 14% { transform: scale(1.05); } }

/* ───────────── Sub-pages (Photos / Voice) ───────────── */
.sub { padding-top: 24px; gap: 26px; }
.back { align-self: flex-start; min-height: 44px; display: flex; align-items: center; gap: 6px; font-size: 16px; padding-right: 12px; }
.back svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; }

.title-block { display: flex; flex-direction: column; gap: 8px; }
.title-block h1 { font-family: var(--hand); font-weight: 700; font-size: 36px; }
.title-block h1 .en { display: block; margin-top: 6px; font-size: 14px; }
.hint { font-size: 15px; color: var(--muted); }

.photo-years { display: flex; flex-direction: column; gap: 22px; }
.year-head { margin-top: 18px; }
.year-head:first-child { margin-top: 0; }
.year-head h2 { color: var(--persimmon); font-size: 28px; letter-spacing: .04em; }
.photo-list { display: grid; gap: 30px; }
/* most photos are portrait selfies: crop toward the top so faces stay in frame */
.ph > img { object-position: 50% 30%; }
.photo-card {
  background: #fff; padding: 12px 12px 16px; box-shadow: 0 3px 12px rgba(58, 53, 48, .12);
  display: flex; flex-direction: column; gap: 12px; width: 100%; transform: rotate(var(--tilt, 0deg));
}
.photo-card .ph { height: 230px; font-size: 13px; }

/* Whole photos: never cropped, so nothing needs a tap to be seen */
.ph.whole { background: #fff; padding: 0; }
.ph.whole > img { object-fit: contain; object-position: 50% 50%; }
.polaroid .ph.whole { height: auto; aspect-ratio: 1 / 1; }   /* home: square frame, photo fits inside */
/* Photos page on phone: each photo full card width at its true shape */
.photo-card .ph.whole { height: auto; display: block; }
.photo-card .ph.whole > img { position: static; width: 100%; height: auto; }
.ph.whole .video-badge { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.photo-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--hand); text-align: left; }
.photo-cap .story { font-size: 20px; }
.photo-cap .story .en { display: block; font-size: 13px; }
.photo-cap .year { font-size: 15px; color: var(--persimmon); flex-shrink: 0; }

/* Voice */
.voice { gap: 22px; min-height: 100vh; min-height: 100dvh; padding-bottom: 32px; }
.voice-main { display: flex; flex-direction: column; gap: 22px; }
.voice-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.avatar-lg {
  width: 180px; height: 180px; border-radius: 50%; border: 6px solid var(--card);
  box-shadow: 0 3px 12px rgba(58, 53, 48, .12); font-size: 13px; padding: 16px; flex-shrink: 0;
}
.voice-title { font-family: var(--hand); font-size: 30px; font-weight: 700; text-align: center; line-height: 1.3; }
.voice-title .en { display: block; margin-top: 6px; font-size: 14px; }
.lg-br { display: none; }

.player { display: flex; flex-direction: column; gap: 8px; }
.wave {
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 2px;
  cursor: pointer; touch-action: manipulation;
}
.bar {
  width: 5px; height: var(--h); border-radius: 3px; background: var(--bar);
  transition: background-color 150ms linear; transform-origin: center;
}
.bar:nth-child(n+29) { display: none; }   /* phone shows 28 bars, iPad 40 */
.bar.played { background: var(--persimmon); }
.voice.is-playing .bar.played { animation: barbounce .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -70ms); }
@keyframes barbounce { from { transform: scaleY(.9); } to { transform: scaleY(1); } }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.big-play-wrap { display: flex; justify-content: center; }
.big-play {
  width: 88px; height: 88px; border-radius: 50%; background: var(--persimmon);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(200, 85, 61, .35);
}
.big-play svg { width: 30px; height: 30px; fill: #fff; }
.big-play .i-play { margin-left: 3px; }
.big-play .i-pause, .voice.is-playing .big-play .i-play { display: none; }
.voice.is-playing .big-play .i-pause { display: block; }
.voice.is-playing .big-play { animation: ring 1.6s ease-out infinite; }
@keyframes ring {
  from { box-shadow: 0 4px 14px rgba(200, 85, 61, .35), 0 0 0 0 rgba(200, 85, 61, .45); }
  to   { box-shadow: 0 4px 14px rgba(200, 85, 61, .35), 0 0 0 12px rgba(200, 85, 61, 0); }
}
.voice.is-playing .avatar-lg { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

.more { display: flex; flex-direction: column; gap: 10px; }
.more-title { font-family: var(--hand); font-size: 18px; }
.more-title .en { font-size: 14px; }
.more-list { display: grid; gap: 10px; }
.more-btn {
  min-height: 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 8px 16px; display: flex; align-items: center; gap: 12px; font-size: 16px;
}
.more-btn svg { width: 18px; height: 18px; fill: var(--persimmon); flex-shrink: 0; }
.more-btn .label { flex-grow: 1; }
.more-btn .dur { font-size: 13px; color: var(--muted); }

/* ───────────── Lightbox (tap a photo) ───────────── */
.lb { position: fixed; inset: 0; z-index: 50; }
.lb-bg { position: absolute; inset: 0; background: rgba(43, 39, 35, .88); opacity: 0; transition: opacity 300ms ease-in-out; }
.lb.open .lb-bg { opacity: 1; }
.lb-media {
  position: fixed; overflow: hidden; background: var(--ph); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 14px; text-align: center;
  transition: left 300ms ease-in-out, top 300ms ease-in-out, width 300ms ease-in-out, height 300ms ease-in-out, transform 300ms ease-in-out;
}
.lb-media > img, .lb-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.lb-media > img { background: none; }
.lb-cap {
  position: fixed; left: 16px; right: 16px; bottom: 28px; text-align: center; color: var(--card);
  font-family: var(--hand); font-size: 20px; opacity: 0; transition: opacity 300ms ease-in-out;
}
.lb-cap .en { color: #CFC5B6; display: block; font-size: 14px; }
.lb.open .lb-cap { opacity: 1; }
.lb-close {
  position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 253, 248, .15); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 300ms;
}
.lb-close svg { width: 22px; height: 22px; stroke: #fff; }
.lb.open .lb-close { opacity: 1; }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 60; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--card); padding: 12px 20px; border-radius: 999px; font-size: 15px;
  opacity: 0; transition: opacity 250ms, transform 250ms var(--ease-apple); pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Phone held sideways: keep the phone design, centred, and drop the loading-screen extras that don't fit */
@media (max-height: 500px) {
  .credits, .sky { display: none; }
  .loading { gap: 16px; padding: 16px 0; }
}

/* ───────────── iPad (≥700 wide and ≥600 tall) ───────────── */
@media (min-width: 700px) and (min-height: 600px) {
  .page { max-width: 900px; }
  .sky { top: 140px; right: 90px; width: 210px; height: 90px; }
  .stage { height: 380px; }
  .family { width: 820px; height: 380px; margin-left: -410px; animation: walk-lg 9s linear infinite; }
  .ground { bottom: 34px; }
  .loading { padding: 56px 0; }
  .loading-title { font-size: 44px; }
  .loading-text .en { font-size: 18px; }
  .dots span { width: 14px; height: 14px; }
  .credits { bottom: 64px; font-size: 16px; }

  .page { padding: 48px 64px 56px; gap: 48px; }
  .season { font-size: 15px; }
  .seal { width: 48px; height: 48px; border-radius: 8px; font-size: 18px; }

  .hero { flex-direction: row; align-items: flex-end; gap: 32px; }
  /* the title claims the width it needs; the drawing gives way on narrower screens */
  .hero-art { order: 0; flex: 1 1 340px; min-width: 220px; max-width: 360px; }
  .hero-sketch { max-width: none; }
  .hero-text { flex: 0 1 auto; gap: 16px; }
  .hero h1 { font-size: 56px; line-height: 1.2; }
  .hero h1 .en { font-size: 18px; margin-top: 8px; }
  .lede { font-size: 17px; }

  .sec { gap: 18px; }
  .sec.photos-sec { gap: 22px; }
  .sec-head { gap: 12px; }
  .sec-head h2 { font-size: 30px; }
  .sec-head h2 .en { font-size: 16px; }

  .memo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .memo-card { border-radius: 22px; padding: 20px; gap: 16px; }
  .avatar { width: 76px; height: 76px; font-size: 12px; }
  .memo-body { gap: 6px; }
  .memo-name { font-size: 26px; }
  .memo-sub { font-size: 15px; }
  .play-sm { width: 68px; height: 68px; }
  .play-sm svg { width: 26px; height: 26px; }

  .polaroids { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .polaroid { padding: 10px 10px 14px; gap: 10px; box-shadow: 0 3px 12px rgba(58, 53, 48, .12); }
  .polaroid .ph { height: 150px; font-size: 13px; }

  .pill-btn { min-height: 52px; padding: 0 32px; font-size: 17px; }

  .note { align-self: center; max-width: 600px; border-radius: 22px; padding: 28px; gap: 12px; }
  .note-text { font-size: 22px; }
  .note-text .en { font-size: 16px; }
  .note-sign { font-size: 18px; }
  .footer { font-size: 15px; }
  .heart { width: 16px; height: 16px; }

  .sub { padding-top: 48px; gap: 32px; }
  .back { min-height: 48px; gap: 8px; font-size: 18px; }
  .back svg { width: 22px; height: 22px; }
  .title-block { gap: 10px; }
  .title-block h1 { font-size: 46px; }
  .title-block h1 .en { font-size: 16px; margin-top: 8px; }
  .hint { font-size: 17px; }

  .photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; }
  /* odd photo out in a year sits centred instead of leaving a gap on the right */
  .photo-list > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 18px); }
  .photo-years { gap: 32px; }
  .year-head { margin-top: 24px; }
  .year-head h2 { font-size: 34px; }
  .photo-card { padding: 10px 10px 14px; gap: 10px; }
  .photo-card .ph { height: 290px; }
  /* iPad: 2 across, each photo whole inside a square frame so rows line up */
  .photo-card .ph.whole { height: auto; aspect-ratio: 1 / 1; }
  .photo-card .ph.whole > img { position: absolute; width: 100%; height: 100%; }
  .photo-cap .year { font-size: 17px; }

  .voice { gap: 40px; }
  .voice-main { flex-grow: 1; justify-content: center; gap: 40px; }
  .voice-hero { flex-direction: row; gap: 40px; }
  .avatar-lg { width: 260px; height: 260px; border-width: 8px; font-size: 15px; }
  .voice-title { font-size: 42px; text-align: left; }
  .voice-title .en { font-size: 18px; margin-top: 8px; }
  .lg-br { display: inline; }
  .sm-sp { display: none; }
  .wave { height: 72px; }
  .bar { width: 6px; }
  .bar:nth-child(n+29) { display: block; }
  .times { font-size: 15px; }
  .big-play { width: 108px; height: 108px; }
  .big-play svg { width: 36px; height: 36px; }
  .more { gap: 14px; }
  .more-title { font-size: 22px; }
  .more-title .en { font-size: 16px; }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .more-btn:only-child { grid-column: 1 / -1; }
  .more-btn { min-height: 64px; border-radius: 16px; padding: 8px 20px; gap: 14px; font-size: 18px; }
  .more-btn svg { width: 20px; height: 20px; }
  .more-btn .dur { font-size: 14px; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  .family, .b1, .b2, .b3, .hero-sketch .sun, .hero-sketch .bird, .hero-sketch .hf, .heart,
  .voice.is-playing .bar.played, .voice.is-playing .big-play, .voice.is-playing .avatar-lg { animation: none !important; }
  .family { transform: none; }
  .reveal, .polaroid.reveal, .photo-card.reveal { transform: none; transition: opacity 600ms ease-out; }
  .polaroid.reveal, .photo-card.reveal { transform: rotate(var(--tilt, 0deg)); }
  .seal.stamped { animation: none; opacity: 1; }
  .view, .view.enter { transform: none; }
  .lb-media { transition-duration: 0ms; }
}
