:root {
  --sky: #e8f0f7;
  --board: #dce9f4;
  --paper: #fffdf8;
  --navy: #344977;
  --ink: #35425b;
  --muted: #68758a;
  --pink: #f3d9dc;
  --coral: #db797d;
  --line: #c5d5e5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  background: radial-gradient(circle at 10% 15%, #fff9fa 0, transparent 24%), radial-gradient(circle at 85% 80%, #d8e8f6 0, transparent 30%), var(--sky);
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
figure { margin: 0; }
[hidden] { display: none !important; }
.scene { width: min(calc(100% - 32px), 660px); min-height: 100vh; min-height: 100svh; margin: auto; padding: 28px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.scrapbook { position: relative; width: 100%; background: var(--board); border: 1px solid #c8d9e9; border-radius: 19px; overflow: hidden; box-shadow: 0 20px 60px #3449772b, 0 4px 10px #34497712; }
.scrapbook::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(#8ca4bb43 .8px, transparent .8px); background-size: 17px 17px; opacity: .45; }
.scrapbook > * { position: relative; z-index: 1; }
.book-header, .book-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; }
.book-header { background: var(--navy); color: #fff; }
.book-logo { font: 600 25px/1 "Caveat", cursive; }
.book-logo span { color: #ffc7ce; margin-left: 3px; font-size: 16px; }
.book-date { color: #e8eefa; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.progress { display: flex; align-items: center; justify-content: space-between; padding: 18px 29px 0; }
.progress-label { color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.progress-label span { color: #879cb3; }
.progress-dots { display: flex; gap: 6px; }
.progress-dots i { display: block; width: 22px; height: 6px; border-radius: 30px; background: #bed0e3; }
.progress-dots i.active { background: var(--navy); }
.page { padding: 23px 29px 26px; }
.music-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.heart-cutout { position: relative; min-height: 212px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: var(--paper); transform: rotate(-2deg); box-shadow: 2px 6px 13px #3346681b; transition: transform .2s; }
.heart-cutout:hover { transform: rotate(2deg) scale(1.02); }
.heart-symbol { color: var(--navy); font: 220px/.7 Georgia,serif; transform: scaleX(1.15); }
.heart-caption { position: absolute; top: 47%; left: 50%; transform: translate(-50%, -35%) rotate(-7deg); color: white; font: 600 32px/.85 "Caveat", cursive; white-space: nowrap; text-shadow: 0 1px 3px #2337576b; }
.polaroid { position: relative; background: white; border: 1px solid #e4e9ed; padding: 10px 10px 25px; box-shadow: 3px 7px 13px #33466825; text-align: center; }
.polaroid::before, .paper-note .tape, .letter-tape { content: ""; position: absolute; width: 70px; height: 20px; background: #fff2baae; left: 50%; top: -10px; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 1px 2px #85795b14; }
.polaroid-pair { height: 212px; transform: rotate(3deg); }
.polaroid-pair img { display: block; height: 167px; max-width: 100%; margin: auto; object-fit: contain; }
.polaroid figcaption { color: var(--navy); font: 600 21px "Caveat", cursive; }
.paper-note { position: relative; min-width: 0; background: var(--paper); border: 1px solid #e9e0d0; padding: 23px 25px 21px; box-shadow: 2px 6px 13px #33466819; transform: rotate(1deg); }
.tiny-label { margin: 0 0 3px; color: var(--coral); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(33px, 5vw, 43px); line-height: 1.12; }
h2 { font-size: clamp(34px, 5vw, 43px); line-height: 1.14; }
h1 em, h2 em { color: #c86974; font-weight: 500; }
.intro-note > p:last-of-type { margin: 11px 0 0; max-width: 360px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.scribble { position: absolute; right: 20px; bottom: 12px; color: var(--coral); font: 24px "Caveat", cursive; transform: rotate(-10deg); }
.music-ticket { display: flex; flex-direction: column; min-width: 0; padding: 17px 19px; border-radius: 5px; background: var(--navy); color: white; box-shadow: 2px 6px 13px #33466826; transform: rotate(-1deg); }
.ticket-top { display: flex; justify-content: space-between; color: #dce9f7; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.ticket-top span:last-child { font-size: 17px; line-height: .7; }
.ticket-body { display: flex; align-items: center; gap: 12px; margin: auto 0; padding: 14px 0; }
.ticket-disc { flex: none; display: block; width: 52px; height: 52px; border-radius: 50%; background: repeating-radial-gradient(circle, #f3c6cb 0 5px, #26385f 5px 7px, #2b3d67 7px 10px); border: 2px solid #d8e3ef; }
.ticket-body strong, .ticket-body small { display: block; }
.ticket-body strong { font-size: 12px; line-height: 1.35; }
.ticket-body small { margin-top: 4px; color: #bdcde1; font-size: 10px; }
.primary-button, .next-button, .hug-button { border: 0; border-radius: 7px; background: #efb7bf; color: #462f43; min-height: 42px; padding: 0 14px; font-size: 11px; font-weight: 700; transition: transform .2s, background .2s; }
.primary-button:hover, .next-button:hover, .hug-button:hover { transform: translateY(-2px); background: #f7c9d0; }
.primary-button { display: flex; justify-content: center; align-items: center; gap: 13px; width: 100%; }
.primary-button span, .next-button span, .hug-button span { font-size: 18px; font-weight: 400; }
.heart-page-top { display: grid; grid-template-columns: 185px 1fr; gap: 22px; align-items: center; min-height: 205px; }
.polaroid-heart { width: 179px; height: 190px; transform: rotate(-6deg); }
.polaroid-heart img { display: block; width: 155px; height: 148px; object-fit: contain; }
.heart-heading { position: relative; padding-right: 10px; }
.heart-heading h2 { max-width: 310px; }
.heart-heading p { max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.doodle-star { position: absolute; right: 7px; top: -26px; color: var(--coral); font-size: 29px; }
.heart-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; margin-top: 16px; }
.heart-note { min-width: 0; min-height: 77px; border: 1px solid #cbd8e7; border-radius: 3px; box-shadow: 2px 4px 8px #33466819; }
.note-blue { background: #eef5fb; transform: rotate(-2deg); }
.note-cream { background: #fff7e8; transform: rotate(2deg); }
.note-pink { background: #fff0f1; transform: rotate(-1deg); }
.heart-note summary { min-height: 77px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.heart-note summary::-webkit-details-marker { display: none; }
.heart-note summary span { color: var(--coral); font: 600 18px "Caveat", cursive; }
.heart-note summary::after { content: "+"; align-self: flex-end; margin-top: -21px; color: #7c8ca8; font-size: 18px; font-weight: 400; }
.heart-note[open] summary::after { content: "−"; }
.heart-note p { margin: -2px 12px 14px; color: #59677c; font-size: 11px; line-height: 1.7; }
.page-heart-bottom { position: relative; min-height: 98px; display: flex; align-items: center; justify-content: center; margin-top: 7px; }
.page-heart-bottom span { color: var(--navy); font: 600 26px "Caveat", cursive; transform: rotate(-4deg); }
.page-heart-bottom img { position: absolute; right: 16px; bottom: -22px; width: 119px; transform: rotate(7deg); }
.letter-decor { display: flex; justify-content: space-between; align-items: flex-start; height: 88px; padding: 0 23px; }
.letter-decor .stamp { display: grid; place-items: center; width: 65px; height: 65px; border: 2px dashed var(--coral); border-radius: 50%; color: var(--coral); font-size: 11px; font-weight: 700; text-align: center; transform: rotate(-12deg); }
.letter-decor img { display: block; width: 100px; height: 100px; object-fit: contain; transform: rotate(8deg); }
.letter-paper { position: relative; margin: -8px 10px 0; padding: 36px 33px 28px; background: #fffefa; border: 1px solid #ebdfd0; box-shadow: 3px 6px 14px #3449771e; transform: rotate(-.6deg); }
.letter-tape { top: -9px; width: 91px; background: #f7dfe0ae; }
.letter-date { color: #8190a4; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.letter-paper h2 { margin: 10px 0 21px; }
.letter-copy { background-image: linear-gradient(#dce7f3b3 1px, transparent 1px); background-size: 100% 31px; }
.letter-copy p { margin: 0 0 14px; color: #43506a; font-size: 12px; line-height: 2.25; }
.signature { margin: 21px 0 0; color: #b76170; font: 600 21px/1.15 "Caveat", cursive; }
.signature strong { display: inline-block; margin-top: 4px; color: var(--navy); font-size: 29px; font-weight: 700; }
.letter-bottom { display: flex; align-items: center; justify-content: space-between; padding: 5px 16px 0 22px; }
.letter-bottom img { width: 105px; height: 100px; object-fit: contain; transform: rotate(-7deg); }
.hug-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; background: var(--navy); color: #fff; }
.hug-button:hover { background: #465e90; }
.song-panel { margin: 0 29px 18px; padding: 14px; border: 1px dashed #9cb2cc; border-radius: 5px; background: #fffefa; }
.song-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.song-heading > span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #e8edf8; color: var(--navy); font-size: 16px; }
.song-heading strong, .song-heading small { display: block; }
.song-heading strong { font-size: 11px; }
.song-heading small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.song-panel iframe { display: block; border-radius: 7px; }
.song-panel a { display: inline-block; margin-top: 8px; color: var(--navy); font-size: 11px; }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 29px 21px; }
.next-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 142px; margin-left: auto; background: var(--navy); color: white; }
.next-button:hover { background: #465e90; }
.back-button, .restart-button { border: 0; background: transparent; color: var(--navy); min-height: 42px; padding: 0 5px; font-size: 11px; font-weight: 700; }
.back-button:hover, .restart-button:hover { text-decoration: underline; }
.restart-button { margin: auto; }
.book-footer { border-top: 1px solid #c6d7e7; color: #6f8198; font-size: 10px; letter-spacing: .04em; }
.book-footer span:last-child { color: var(--coral); font: 18px Arial, sans-serif; line-height: 0; }
.heart-layer { position: fixed; inset: 0; z-index: 10; overflow: hidden; pointer-events: none; }
.flying-heart { position: absolute; color: var(--coral); opacity: 0; animation: float-heart 2.2s ease-out forwards; }
@keyframes float-heart { 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(-200px) rotate(18deg) scale(1.3); } }
:where(button, a, summary):focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 600px) {
  .scene { width: min(calc(100% - 22px), 500px); padding: 15px 0 20px; }
  .book-header, .book-footer { padding-inline: 19px; }
  .progress { padding: 17px 19px 0; }
  .page { padding: 20px 19px 23px; }
  .heart-cutout, .polaroid-pair { min-height: 175px; height: 175px; }
  .heart-symbol { font-size: clamp(123px, 31vw, 176px); }
  .heart-caption { font-size: clamp(20px, 6vw, 29px); }
  .polaroid-pair img { height: 130px; }
  .polaroid figcaption { font-size: 18px; }
  .intro-note, .music-ticket { grid-column: 1 / -1; }
  .heart-page-top { grid-template-columns: 135px 1fr; gap: 14px; min-height: 165px; }
  .polaroid-heart { width: 133px; height: 151px; padding: 7px 7px 20px; }
  .polaroid-heart img { width: 118px; height: 118px; }
  .heart-heading h2 { font-size: clamp(28px, 7vw, 37px); }
  .heart-heading p { font-size: 11px; }
  .heart-notes { grid-template-columns: 1fr; gap: 10px; }
  .heart-note { min-height: 0; }
  .heart-note summary { min-height: 54px; flex-direction: row; align-items: center; gap: 12px; }
  .heart-note summary::after { margin: 0 0 0 auto; align-self: auto; }
  .heart-note p { margin: -2px 14px 14px; font-size: 12px; }
  .page-heart-bottom { min-height: 85px; }
  .page-heart-bottom img { width: 100px; right: 0; bottom: -24px; }
  .page-heart-bottom span { font-size: 23px; margin-right: 55px; }
  .song-panel { margin-inline: 19px; }
  .navigation { padding-inline: 19px; }
  .letter-paper { margin-inline: 0; padding: 32px 22px 25px; }
}
@media (max-width: 370px) {
  .music-collage { gap: 11px; }
  .heart-cutout, .polaroid-pair { min-height: 148px; height: 148px; }
  .heart-symbol { font-size: 117px; }
  .heart-caption { font-size: 20px; }
  .polaroid-pair img { height: 108px; }
  .polaroid figcaption { font-size: 15px; }
  .heart-page-top { grid-template-columns: 110px 1fr; gap: 12px; }
  .polaroid-heart { width: 110px; height: 128px; }
  .polaroid-heart img { width: 95px; height: 98px; }
  .heart-heading h2 { font-size: 27px; }
  .page-heart-bottom span { font-size: 20px; }
  .letter-paper { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* A small sticker hunt unlocks the letter. */
.game-intro { margin: 4px 5px 21px; transform: rotate(-1deg); }
.game-intro h2 { max-width: 440px; margin-top: 7px; }
.game-intro p { max-width: 440px; margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.mochi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 5px 7px 0; }
.mochi-choice { position: relative; display: grid; place-items: center; min-width: 0; height: 149px; border: 1px solid #d9e1ea; border-radius: 3px; background: #fffefa; box-shadow: 2px 5px 10px #34497720; transform: rotate(-2deg); transition: transform .2s, box-shadow .2s, border-color .2s; }
.mochi-choice:nth-child(2), .mochi-choice:nth-child(5) { transform: rotate(3deg); background: #fff2f3; }
.mochi-choice:nth-child(3), .mochi-choice:nth-child(6) { transform: rotate(1deg); background: #edf5fb; }
.mochi-choice:hover:not(:disabled) { transform: rotate(0deg) translateY(-5px); box-shadow: 3px 9px 14px #3449772b; }
.mochi-choice img { display: block; width: min(100%, 128px); height: 125px; object-fit: contain; pointer-events: none; }
.choice-number { position: absolute; left: 9px; top: 8px; color: #8795a9; font: 600 15px "Caveat", cursive; }
.tiny-envelope { position: absolute; right: 14px; bottom: 10px; width: 25px; height: 24px; display: grid; place-items: center; border-radius: 3px; background: #fff9ec; border: 1px solid #d5a5a8; color: var(--coral); font-size: 20px; transform: rotate(12deg); box-shadow: 1px 2px 3px #3449771c; }
.mochi-choice.found { border: 2px solid var(--coral); box-shadow: 0 0 0 5px #f7dade, 3px 9px 14px #3449772b; transform: rotate(0deg) scale(1.03); }
.mochi-choice.miss { animation: gentle-shake .3s ease-in-out; }
@keyframes gentle-shake { 25% { transform: translateX(-4px) rotate(-2deg); } 75% { transform: translateX(4px) rotate(2deg); } }
.game-feedback { min-height: 28px; margin: 23px 0 0; color: var(--navy); text-align: center; font: 600 25px "Caveat", cursive; }
@media (max-width: 600px) {
  .mochi-grid { gap: 9px; padding-inline: 2px; }
  .mochi-choice { height: 120px; }
  .mochi-choice img { height: 101px; }
  .tiny-envelope { right: 7px; bottom: 6px; width: 21px; height: 20px; font-size: 16px; }
  .game-feedback { font-size: 23px; }
}
@media (max-width: 370px) {
  .game-intro { padding: 21px 18px; }
  .game-intro h2 { font-size: 31px; }
  .mochi-choice { height: 98px; }
  .mochi-choice img { height: 82px; }
  .choice-number { left: 5px; top: 4px; font-size: 12px; }
}
.page:not([hidden]) { animation: page-in .32s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.letter-quote { margin: 19px -7px 21px; padding: 13px 17px; border-left: 3px solid var(--navy); background: #eaf2fb; color: var(--navy); font: 600 27px/1.12 "Caveat", cursive; transform: rotate(1deg); box-shadow: 2px 3px 7px #34497712; }
.letter-quote span { color: var(--coral); }
@media (max-width: 600px) { .letter-quote { font-size: 23px; margin-inline: -4px; } }
/* Pick flowers by tap or drag, then show the finished bouquet. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.flower-note { margin: 3px 6px 19px; transform: rotate(-1deg); }
.flower-note h2 { max-width: 490px; margin-top: 7px; }
.flower-note p { max-width: 470px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.flower-patch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 3px 7px; min-height: 213px; padding: 10px; border: 1px dashed #b7cbd9; border-radius: 8px; background: radial-gradient(circle at 50% 100%, #dcebd7 0, #eef7e9 49%, #fbfdf9 100%); }
.flower-choice { display: grid; place-items: center; width: 100%; height: 96px; border: 0; background: transparent; color: var(--petal); transition: transform .22s, opacity .22s; touch-action: manipulation; }
.flower-choice:nth-child(odd) { transform: rotate(-9deg); }
.flower-choice:nth-child(even) { transform: rotate(8deg); }
.flower-choice:hover:not(:disabled) { transform: translateY(-8px) scale(1.1); }
.flower-choice svg { display: block; width: 69px; height: 91px; filter: drop-shadow(1px 3px 2px #3449771d); pointer-events: none; }
.flower-choice.picked { opacity: .15; transform: scale(.5); pointer-events: none; }
.flower-rose { --petal: #e88fad; }.flower-blue { --petal: #86b9db; }.flower-lilac { --petal: #ae9ad4; }.flower-peach { --petal: #efae91; }.flower-yellow { --petal: #eac66d; }.flower-mint { --petal: #a7c8a0; }
.bucket-area { position: relative; height: 227px; margin: 15px 6px 0; border: 1px solid #d8dfeb; border-radius: 7px; background: repeating-linear-gradient(0deg, #fffdf7, #fffdf7 21px, #f5f1e9 22px); overflow: hidden; }
.bucket-area.drag-over { outline: 3px dashed var(--coral); outline-offset: -6px; }
.bucket-caption { position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%) rotate(-5deg); white-space: nowrap; color: var(--navy); font: 600 24px "Caveat", cursive; }
.bucket-handle { position: absolute; z-index: 0; left: 50%; bottom: 36px; transform: translateX(-50%); width: 148px; height: 125px; border: 6px solid #a4bad3; border-bottom: 0; border-radius: 90px 90px 0 0; }
.bucket-blooms { position: absolute; z-index: 1; left: 50%; bottom: 43px; transform: translateX(-50%); width: 215px; height: 145px; }
.bucket-flower { position: absolute; display: block; width: 72px; height: 104px; bottom: 0; left: var(--flower-left); color: var(--flower-color); transform: rotate(var(--flower-angle)); transform-origin: 50% 100%; animation: flower-appear .38s ease-out both; }
@keyframes flower-appear { from { opacity: 0; transform: translateY(25px) rotate(var(--flower-angle)) scale(.7); } to { opacity: 1; transform: rotate(var(--flower-angle)) scale(1); } }
.bucket-body { position: absolute; z-index: 2; left: 50%; bottom: 9px; transform: translateX(-50%); width: 151px; height: 82px; display: grid; place-items: center; background: linear-gradient(105deg, #abc3dd, #d4e3ef 55%, #a7bfd9); border-top: 5px solid #829fbe; clip-path: polygon(0 0, 100% 0, 87% 100%, 13% 100%); box-shadow: 2px 4px 9px #3449772a; }
.bucket-body span { color: var(--navy); font: 33px "Caveat", cursive; }
.flower-counter { margin: 13px 0 0; color: var(--navy); text-align: center; font: 600 22px "Caveat", cursive; }
.bouquet-heading { max-width: 490px; margin: 3px auto 20px; text-align: center; }
.bouquet-heading h2 { margin: 8px 0 12px; }
.bouquet-heading p { max-width: 420px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.75; }
.bouquet-card { position: relative; height: 345px; max-width: 420px; margin: 0 auto; border: 11px solid white; border-bottom-width: 28px; background: #f7f5fc; box-shadow: 3px 8px 18px #34497726; transform: rotate(2deg); overflow: hidden; }
.bouquet-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(#e5d7e7 1px, transparent 1px); background-size: 17px 17px; opacity: .55; }
.final-blooms { position: absolute; z-index: 1; bottom: 60px; left: 50%; transform: translateX(-50%); width: 300px; height: 245px; }
.final-flower { position: absolute; bottom: 0; left: var(--flower-left); width: 97px; height: 157px; color: var(--flower-color); transform: rotate(var(--flower-angle)); transform-origin: 50% 100%; animation: flower-appear .5s ease-out both; }
.bouquet-wrap { position: absolute; z-index: 2; bottom: 9px; left: 50%; transform: translateX(-50%); width: 228px; height: 142px; background: linear-gradient(120deg, #d8e6f4 0 49%, #aec7df 50% 100%); clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%); box-shadow: 2px 5px 8px #34497728; }
.bouquet-ribbon { position: absolute; z-index: 3; bottom: 54px; left: 50%; transform: translateX(-50%) rotate(-7deg); width: 65px; height: 32px; border-radius: 50%; background: #e48f9d; color: white; text-align: center; font: 28px/31px "Caveat", cursive; }
.bouquet-caption { position: absolute; z-index: 3; right: 9px; bottom: 1px; color: var(--navy); font: 600 21px "Caveat", cursive; }
.bouquet-spark { position: absolute; z-index: 3; color: var(--coral); font: 31px "Caveat", cursive; }.sparkle-one { left: 22px; top: 25px; }.sparkle-two { right: 31px; top: 45px; }
.bouquet-hug { display: flex; align-items: center; justify-content: center; gap: 11px; min-width: 190px; margin: 25px auto 0; }
@media (max-width: 600px) {
  .flower-patch { min-height: 189px; }
  .flower-choice { height: 85px; }
  .flower-choice svg { width: 60px; height: 82px; }
  .bouquet-card { height: 327px; }
  .final-blooms { width: 270px; }
}
@media (max-width: 370px) {
  .flower-note { padding-inline: 18px; }
  .flower-note h2 { font-size: 30px; }
  .flower-choice svg { width: 51px; height: 72px; }
  .bouquet-card { height: 300px; }
  .final-blooms { transform: translateX(-50%) scale(.86); transform-origin: 50% 100%; }
  .bouquet-wrap { width: 195px; }
}
/* Personal photo page: three unique photos in a swipeable polaroid strip. */
.photos-heading { max-width: 470px; margin: 1px auto 20px; text-align: center; }
.photos-heading h2 { margin: 8px 0 11px; }
.photos-heading p { max-width: 390px; margin: auto; color: var(--muted); font-size: 12px; line-height: 1.75; }
.photo-collage { position: relative; display: flex; gap: 15px; overflow-x: auto; padding: 17px 9px 25px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #a9bdd2 transparent; }
.photo-polaroid { position: relative; z-index: 1; flex: 0 0 calc((100% - 30px) / 3); min-width: 0; padding: 9px 9px 15px; border: 1px solid #e5e9ee; background: #fffefa; box-shadow: 3px 6px 11px #34497725; color: var(--navy); text-align: center; scroll-snap-align: center; transition: transform .2s, box-shadow .2s; }
.photo-polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-5deg); width: 54px; height: 18px; background: #f8e6babb; }
.photo-polaroid:nth-child(1) { transform: rotate(-3deg); }
.photo-polaroid:nth-child(2) { transform: rotate(3deg) translateY(6px); }
.photo-polaroid:nth-child(3) { transform: rotate(-2deg); }
.photo-polaroid:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 3px 12px 16px #3449772e; }
.photo-polaroid img { display: block; width: 100%; height: 260px; object-fit: contain; background: #e9eef4; }
.photo-polaroid span { display: block; min-height: 24px; margin-top: 9px; color: var(--navy); font: 600 21px/1.1 "Caveat", cursive; }
.photo-doodle { position: absolute; z-index: 2; right: 11px; top: 0; color: var(--coral); font: 28px/.8 "Caveat", cursive; pointer-events: none; transform: rotate(13deg); }
.photo-hint { margin: 2px 0 0; color: #70839a; text-align: center; font: 600 20px "Caveat", cursive; }
.photo-dialog { width: min(calc(100% - 28px), 560px); max-height: 92vh; max-height: 92dvh; padding: 17px; border: 0; border-radius: 10px; background: #fffefa; box-shadow: 0 20px 60px #17253a70; text-align: center; }
.photo-dialog::backdrop { background: #14233db8; backdrop-filter: blur(4px); }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(92dvh - 95px); margin: auto; object-fit: contain; }
.photo-dialog p { margin: 10px 0 0; color: var(--navy); font: 600 25px "Caveat", cursive; }
.photo-close { position: sticky; z-index: 2; top: 0; float: right; width: 32px; height: 32px; margin: -4px -4px -28px 0; border: 0; border-radius: 50%; background: var(--navy); color: white; font-size: 24px; line-height: 1; }
@media (max-width: 600px) {
  .photo-collage { gap: 16px; margin-inline: -4px; }
  .photo-polaroid { flex-basis: 68%; }
  .photo-polaroid img { height: 310px; }
}
@media (max-width: 370px) {
  .photo-polaroid { flex-basis: 75%; }
  .photo-polaroid img { height: 290px; }
}
