:root {
  --cream: #fff4ef;
  --paper: #fffaf6;
  --blush: #ffd9e0;
  --blush-2: #ffe9ec;
  --rose: #e8436a;
  --rose-deep: #c22a52;
  --wine: #5a1d2c;
  --ink: #3b1a22;
  --muted: #8a5a64;
  --gold: #e9b44c;
  --shadow: 0 18px 50px -20px rgba(122, 25, 55, 0.35);
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --hand: "Caveat", cursive;
  --sans: "Nunito", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, #ffe1e8 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 20%, #ffeedd 0%, transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--rose); }

#hearts-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .55;
}
main, .nav, .foot { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  font: 800 1rem/1 var(--sans);
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 15px 26px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.94); }
.btn-yes { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -8px rgba(232, 67, 106, .7); }
.btn-yes:hover { background: var(--rose-deep); transform: translateY(-2px); }
.btn-no, .btn-ghost { background: #fff; color: var(--wine); box-shadow: inset 0 0 0 2px var(--blush); }

/* ---------- gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 50% 30%, #fff 0%, var(--blush-2) 55%, var(--blush) 100%);
  transition: opacity .8s ease, visibility .8s;
}
.gate.gone { opacity: 0; visibility: hidden; }
.gate-card { text-align: center; max-width: 440px; width: 100%; }
.gate-img { width: min(300px, 72vw); margin: 0 auto -6px; filter: drop-shadow(0 14px 20px rgba(122,25,55,.18)); }
.gate-kicker { font-family: var(--hand); font-size: 1.4rem; color: var(--muted); margin: 8px 0 0; }
.gate-title { font: italic 700 clamp(3.4rem, 15vw, 5rem)/1 var(--serif); margin: 0; color: var(--rose); }
.gate-q { font-size: 1.1rem; margin: 10px 0 22px; }
.gate-btns { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; position: relative; min-height: 60px; }
.no-msg { font-family: var(--hand); font-size: 1.5rem; color: var(--rose-deep); min-height: 2rem; margin: 14px 0 0; }
#yes-btn { position: relative; z-index: 2; }
#no-btn { position: relative; z-index: 1; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .3s; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-left));
  background: rgba(255, 244, 239, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 67, 106, .12);
}
.brand { font: italic 700 1.25rem var(--serif); color: var(--rose); text-decoration: none; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-face { width: 34px; height: 34px; border-radius: 50%; background: var(--blush); box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(194,42,82,.25); object-fit: cover; animation: bob 3s ease-in-out infinite; }
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a:first-child { margin-left: auto; }
.nav-links a { color: var(--wine); text-decoration: none; font-weight: 700; font-size: .92rem; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--blush); color: var(--rose-deep); }
.music-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--rose); font-size: 1.1rem; cursor: pointer; box-shadow: inset 0 0 0 2px var(--blush); }
.music-btn[aria-pressed="true"] { background: var(--rose); color: #fff; animation: beat 1.4s infinite; }

/* ---------- layout ---------- */
.section { max-width: 1040px; margin: 0 auto; padding: 90px 20px 40px; }
.section-title { font: 700 clamp(2.1rem, 6vw, 3.4rem)/1.1 var(--serif); text-align: center; margin: 0; color: var(--wine); letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--muted); margin: 10px auto 36px; max-width: 34rem; }
.hand { font-family: var(--hand); font-size: 1.6rem; line-height: 1.25; color: var(--wine); }
.hand.big { font-size: 2.1rem; }
.hand.huge { font-size: clamp(2.6rem, 9vw, 4rem); color: var(--rose); margin: 10px 0 0; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 64px);
  max-width: 1120px; margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
}
.eyebrow { font: 600 .85rem var(--mono); color: var(--rose); letter-spacing: .04em; margin: 0 0 12px; }
.hero-title { font: 700 clamp(2.6rem, 7.4vw, 4.6rem)/1.02 var(--serif); margin: 0; color: var(--wine); letter-spacing: -.02em; }
.hero-title em { font-size: 1.15em; }
.hero-sub { font-size: 1.08rem; max-width: 32rem; color: #6b3a45; margin: 18px 0 24px; }
.counter { display: flex; gap: 10px; flex-wrap: wrap; }
.counter div { background: #fff; border-radius: 16px; padding: 12px 14px; min-width: 76px; text-align: center; box-shadow: var(--shadow); }
.counter b { display: block; font: 700 1.8rem/1 var(--serif); color: var(--rose); font-variant-numeric: tabular-nums; }
.counter span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.counter-cap { font-family: var(--hand); font-size: 1.5rem; color: var(--muted); margin: 8px 0 22px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { position: relative; width: min(460px, 86%); filter: drop-shadow(0 24px 30px rgba(122,25,55,.22)); }
.blob { position: absolute; width: 88%; aspect-ratio: 1; background: linear-gradient(140deg, #ffc9d4, #ffe6d6); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; animation: morph 10s ease-in-out infinite; }
.sparkle { position: absolute; color: var(--rose); font-size: 1.8rem; animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 8%; left: 10%; } .s2 { top: 18%; right: 8%; animation-delay: .8s; color: var(--gold); } .s3 { bottom: 12%; left: 4%; animation-delay: 1.6s; }

/* ---------- first i love you ---------- */
.story { max-width: 560px; margin: 0 auto; display: grid; gap: 26px; }
.panel { margin: 0; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.panel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.panel figcaption { padding: 16px 20px 22px; color: #6b3a45; font-size: 1.02rem; }
.panel b { font-family: var(--hand); font-size: 1.5rem; color: var(--rose); font-weight: 700; }
.pnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rose); color: #fff; font: 800 .8rem var(--sans); margin-right: 8px; vertical-align: 2px; }
.panel.missing { display: none; }
.pause { text-align: center; padding: 10px 0; }
.pause-line { font-family: var(--hand); font-size: 2rem; line-height: 1.15; color: var(--wine); margin: 0 0 16px; }
.dots { display: inline-flex; gap: 8px; padding: 14px 20px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-7px); opacity: 1; } }
#ily-answer:not([hidden]) { animation: rise .9s cubic-bezier(.2,.9,.3,1.1) both; }

/* ---------- our song ---------- */
.song-card { max-width: 620px; margin: 0 auto; text-align: center; background: linear-gradient(150deg, #fff, #ffe9ee); border-radius: 28px; padding: 34px 22px 26px; box-shadow: var(--shadow); }
.song-card .eyebrow { margin-bottom: 6px; }
.song-card .section-sub { margin-bottom: 20px; }
.spotify { width: 100%; border: 0; border-radius: 14px; display: block; }

/* ---------- first date gifts ---------- */
.gifts-hero { max-width: 560px; margin: 0 auto; }
.gift-grid { max-width: 760px; margin: 26px auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gift { position: relative; min-height: 200px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; font-family: var(--sans); text-align: left; }
.gift-inner { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.gift.open .gift-inner { transform: rotateY(180deg); }
.gift-front, .gift-back { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); }
.gift-front { display: grid; place-content: center; justify-items: center; gap: 4px; background: linear-gradient(135deg, #ff8fab, var(--rose)); color: #fff; }
.gift-front::before, .gift-front::after { content: ""; position: absolute; background: var(--gold); opacity: .9; }
.gift-front::before { left: 50%; top: 0; bottom: 0; width: 14px; transform: translateX(-50%); }
.gift-front::after { top: 50%; left: 0; right: 0; height: 14px; transform: translateY(-50%); }
.gift-front span { position: relative; z-index: 1; font-size: 2.2rem; }
.gift-front b { position: relative; z-index: 1; font: 800 .8rem var(--mono); letter-spacing: .08em; background: var(--wine); padding: 3px 8px; border-radius: 6px; }
.gift-back { transform: rotateY(180deg); background: #fff; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.gift-back .ge { font-size: 1.8rem; line-height: 1; }
.gift-back p { margin: 0; color: #6b3a45; font-size: .95rem; line-height: 1.4; }
.gift-back b { font: 700 1.05rem var(--serif); color: var(--wine); }

/* ---------- envelope + letter ---------- */
.envelope-wrap { display: grid; place-items: center; perspective: 900px; }
.envelope { position: relative; width: min(340px, 84vw); aspect-ratio: 1.55; border: 0; padding: 0; background: none; cursor: pointer; animation: bob 3s ease-in-out infinite; }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 10px; }
.env-back { background: #f6b8c6; }
.env-front { background: linear-gradient(160deg, #ffd0da, #fbb4c4); clip-path: polygon(0 32%, 50% 68%, 100% 32%, 100% 100%, 0 100%); }
.env-flap { background: #f9a3b7; clip-path: polygon(0 0, 100% 0, 50% 62%); transform-origin: top; transition: transform .6s ease; z-index: 2; }
.env-seal { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 1.5rem; z-index: 3; box-shadow: 0 6px 14px rgba(194,42,82,.5); transition: transform .4s, opacity .4s; }
.envelope.open { animation: none; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope.open .env-seal { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.paper {
  position: relative; max-width: 640px; margin: 32px auto 0; padding: 40px clamp(22px, 6vw, 56px) 46px;
  background: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(232, 67, 106, .12) 33px 34px);
  border-radius: 6px; box-shadow: var(--shadow);
  font-size: 1.06rem; color: #4a2730;
  animation: rise .9s cubic-bezier(.2,.9,.3,1.1) both;
}
.paper p { margin: 0 0 16px; }
.paper .sign { text-align: right; color: var(--rose); }
.paper-sticker { width: 120px; float: right; margin: -10px -14px 6px 12px; filter: drop-shadow(0 8px 10px rgba(122,25,55,.2)); }
.paper-sticker.left { float: left; margin: -6px 14px 6px -18px; transform: rotate(-4deg); }
.paper-sticker.right { transform: rotate(5deg); width: 110px; }

/* ---------- terminal ---------- */
.terminal { max-width: 760px; margin: 0 auto; background: #1d1418; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(60, 10, 25, .7); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #2b1d22; color: #b99aa3; font: 500 .78rem var(--mono); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { margin: 0; padding: 18px; min-height: 360px; color: #f3dfe4; font: 400 clamp(.72rem, 2.6vw, .9rem)/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; }
.term-body .c-prompt { color: #ff8fab; } .term-body .c-dim { color: #9b7f87; } .term-body .c-ok { color: #7ee2a8; }
.term-body .c-bad { color: #ff7a7a; } .term-body .c-add { color: #7ee2a8; } .term-body .c-del { color: #ff7a7a; } .term-body .c-claude { color: #e9a77a; }
.cursor { display: inline-block; width: .6em; background: #ff8fab; animation: blink 1s steps(1) infinite; }
.laptop-cta { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center; max-width: 760px; margin: 40px auto 0; }
.laptop-cta img { filter: drop-shadow(0 14px 18px rgba(122,25,55,.2)); }
.laptop-cta p { margin: 0 0 14px; }

/* ---------- promises ---------- */
.promises { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.promises li { display: flex; gap: 14px; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.promises span { font-size: 1.8rem; line-height: 1; }
.promises b { display: block; font: 700 1.15rem var(--serif); color: var(--wine); margin-bottom: 4px; }
.promises div { color: #6b3a45; font-size: .97rem; }

/* ---------- polaroids ---------- */
.polaroids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 22px; }
.polaroid { margin: 0; background: #fff; padding: 12px 12px 16px; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.3,1.6,.5,1); cursor: zoom-in; }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--blush-2); border-radius: 2px; }
.polaroid img[src*="us-"], .polaroid img[src*="dance"], .polaroid img[src*="queen"], .polaroid img[src*="box"] { object-fit: contain; padding: 6px; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.35rem; text-align: center; color: var(--wine); line-height: 1.15; margin-top: 10px; }
.polaroid.missing { display: none; }

/* ---------- bun diaries ---------- */
.diaries { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 26px; margin: 0 -20px; scrollbar-width: none; }
.diaries::-webkit-scrollbar { display: none; }
.diary { flex: 0 0 min(78vw, 330px); scroll-snap-align: center; margin: 0; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.diary:nth-child(odd) { transform: rotate(-1.2deg); } .diary:nth-child(even) { transform: rotate(1.2deg); }
.diary img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.diary figcaption { padding: 14px 18px 20px; font-family: var(--hand); font-size: 1.35rem; line-height: 1.2; color: var(--wine); }
.diary time { display: block; font: 600 .78rem var(--mono); color: var(--rose); letter-spacing: .06em; margin-bottom: 4px; }
.diary.missing { display: none; }
.swipe-hint { text-align: center; font-family: var(--hand); font-size: 1.3rem; color: var(--muted); margin: 0; }
.soft { -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }

/* ---------- notes ---------- */
.today-note { max-width: 620px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 28px; text-align: center; position: relative; overflow: hidden; }
.today-note::before { content: "♥"; position: absolute; right: -12px; top: -40px; font-size: 9rem; color: var(--blush-2); z-index: 0; }
.today-note > * { position: relative; }
.today-label { font: 600 .8rem var(--mono); color: var(--rose); text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.today-text { font-size: clamp(1.7rem, 5.6vw, 2.3rem); margin: 14px 0; min-height: 3em; }
.next-unlock { color: var(--muted); font-size: .9rem; margin: 0; }
.past-notes { max-width: 620px; margin: 18px auto 0; background: rgba(255,255,255,.6); border-radius: 16px; padding: 4px 18px; }
.past-notes summary { cursor: pointer; padding: 12px 0; font-weight: 800; color: var(--wine); }
.past-notes ol { padding-left: 1.4rem; margin: 0 0 14px; }
.past-notes li { margin: 0 0 10px; color: #6b3a45; }
.past-notes li::marker { color: var(--rose); font-weight: 800; }

/* ---------- coupons ---------- */
.coupons { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.coupon { position: relative; border: 0; text-align: left; cursor: pointer; padding: 22px 22px 22px 26px; border-radius: 18px; background: linear-gradient(135deg, #fff, #fff1f3); box-shadow: var(--shadow); font-family: var(--sans); color: var(--ink); transition: transform .3s cubic-bezier(.3,1.6,.5,1); overflow: hidden; }
.coupon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(var(--rose) 0 8px, transparent 8px 14px); }
.coupon:hover { transform: translateY(-4px) rotate(-1deg); }
.coupon .ce { font-size: 1.8rem; }
.coupon b { display: block; font: 700 1.15rem var(--serif); color: var(--wine); margin: 6px 0 2px; }
.coupon small { color: var(--muted); }
.coupon.redeemed { background: linear-gradient(135deg, #ffe0e6, #ffd0da); }
.coupon.redeemed::after { content: "REDEEMED ♥"; position: absolute; right: 10px; top: 14px; transform: rotate(12deg); font: 800 .75rem var(--mono); color: var(--rose-deep); border: 2px solid var(--rose-deep); border-radius: 6px; padding: 3px 6px; }

/* ---------- game ---------- */
.game-wrap { position: relative; max-width: 420px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(#fff6f8, #ffdfe6); touch-action: none; }
#game-canvas { width: 100%; height: auto; display: block; }
.game-hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; font-weight: 800; color: var(--wine); pointer-events: none; }
.game-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; background: rgba(255, 244, 239, .82); backdrop-filter: blur(4px); padding: 20px; }
.game-overlay[hidden] { display: none; }

/* ---------- finale ---------- */
.finale { text-align: center; padding-bottom: 80px; }
.finale-img { width: min(340px, 80vw); margin: 0 auto 10px; filter: drop-shadow(0 18px 22px rgba(122,25,55,.2)); }
.finale-q { font-family: var(--hand); font-size: 2rem; color: var(--rose); margin: 4px 0 22px; }
.finale-after { margin-top: 40px; animation: rise .9s cubic-bezier(.2,.9,.3,1.1) both; }
.finale-after p { margin: 6px 0 22px; }

.foot { text-align: center; padding: 30px 20px 50px; color: var(--muted); font-size: .9rem; }
.foot .tiny { font: 500 .75rem var(--mono); opacity: .7; }

/* ---------- lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(40, 10, 20, .85); display: grid; place-content: center; justify-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 76vh; max-width: 92vw; border-radius: 8px; background: #fff; }
.lightbox p { color: #fff; font-family: var(--hand); font-size: 1.7rem; text-align: center; margin: 14px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); opacity: 0; z-index: 70; background: var(--wine); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.flying-heart { position: fixed; z-index: 80; pointer-events: none; font-size: 24px; animation: fly 1.6s ease-out forwards; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.float { animation: float 5s ease-in-out infinite; }
.wobble { animation: wobble 3.2s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes wobble { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes morph { 0%,100% { border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; } 50% { border-radius: 58% 42% 40% 60% / 42% 58% 42% 58%; } }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fly { from { opacity: 1; transform: translate(0,0) scale(.6); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.4) rotate(var(--rot)); } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; min-height: auto; }
  .hero-art { order: -1; }
  .hero-art img { width: min(320px, 78%); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .counter { justify-content: center; }
  .counter div { min-width: 0; flex: 1; padding: 10px 6px; }
  .laptop-cta { grid-template-columns: 1fr; text-align: center; }
  .laptop-cta img { width: 220px; margin: 0 auto; }
  .paper-sticker { width: 92px; }
  .section { padding-top: 70px; }
  .brand { font-size: 1.05rem; }
  .polaroids { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .polaroid { padding: 7px 7px 10px; }
  .polaroid figcaption { font-size: 1.05rem; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
