:root {
  color-scheme: light;
  --bg: #fff5f7;
  --blush: #fbe8ee;
  --rose: #d985a0;
  --rose-deep: #a95774;
  --rose-soft: #f3cfda;
  --lavender: #88739b;
  --ink: #553848;
  --muted: #987e8a;
  --paper: #fffdf8;
  --round: 'DM Sans', 'Trebuchet MS', sans-serif;
  --display: 'Playfair Display', Georgia, serif;
  --topbar-height: calc(54px + env(safe-area-inset-top));
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
html { scroll-behavior: smooth; }
body {
  min-height: 100svh; margin: 0; color: var(--ink);
  background: radial-gradient(ellipse at 82% 10%, #efc4d144, transparent 34%), var(--bg);
  font: 500 15px/1.65 var(--round);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
.eyebrow, .section-kicker { color: var(--rose-deep); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.eyebrow { margin: 0; }

/* Capa */
.opening {
  position: fixed; inset: 0; z-index: 5; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 13px; padding: max(26px, env(safe-area-inset-top)) 25px max(28px, env(safe-area-inset-bottom));
  text-align: center; isolation: isolate;
  background: radial-gradient(ellipse at 50% 38%, #ffe6ee 0, #fff8f7 52%, #f9e9ef 100%);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.2,1);
}
.opening[hidden] { display: none; }
.opening.leaving { opacity: 0; transform: scale(1.018); pointer-events: none; }
.opening-frame, .site::after {
  position: absolute; z-index: 8; pointer-events: none; border: 1px solid #bd8b9b66; border-radius: 22px;
}
.opening-frame { inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: url('assets/flower.svg') no-repeat 12px 12px, url('assets/flower.svg') no-repeat calc(100% - 12px) calc(100% - 12px); background-size: 22px 22px; }
.opening-frame::after { content: ''; position: absolute; inset: 7px; border: 1px dashed #bd8b9b42; border-radius: 16px; }
.opening::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .22; background: url('assets/floral-sprig.svg') no-repeat -35px 18%, url('assets/floral-sprig.svg') no-repeat calc(100% + 33px) 73%, url('assets/flower.svg') no-repeat 18% 17%, url('assets/flower.svg') no-repeat 82% 82%, radial-gradient(#d89bb322 1px, transparent 1.5px) 0 0 / 29px 29px; background-size: 150px auto, 166px auto, 19px 19px, 23px 23px, 29px 29px; }
.opening-flower { position: absolute; width: 80px; height: 112px; background: url('assets/floral-sprig.svg') center / contain no-repeat; opacity: .82; pointer-events: none; }
.opening-flower-left { left: 0; top: 18%; transform: rotate(-23deg); }
.opening-flower-right { right: -4px; bottom: 17%; transform: rotate(164deg) scale(.82); }
.opening > :not(.opening-frame):not(.opening-flower) { position: relative; z-index: 1; }
.opening .eyebrow { margin-bottom: 0; }
.cover-photo {
  position: relative; width: clamp(220px, 62vw, 280px); padding: 16px 16px 37px; margin: 1px 0 3px;
  background: linear-gradient(145deg, #fffefa, #fffaf5 76%, #fdf3f2); transform: rotate(-2deg);
  clip-path: polygon(1% 2%, 5% 1%, 9% 2%, 14% 1%, 18% 2%, 23% 1%, 28% 2%, 33% 1%, 38% 2%, 43% 1%, 48% 2%, 53% 1%, 58% 2%, 63% 1%, 68% 2%, 73% 1%, 78% 2%, 83% 1%, 88% 2%, 93% 1%, 99% 2%, 98% 7%, 99% 12%, 98% 17%, 99% 22%, 98% 27%, 99% 32%, 98% 37%, 99% 42%, 98% 47%, 99% 52%, 98% 57%, 99% 62%, 98% 67%, 99% 72%, 98% 77%, 99% 82%, 98% 87%, 99% 92%, 98% 98%, 93% 97%, 88% 99%, 83% 98%, 78% 99%, 73% 98%, 68% 99%, 63% 98%, 58% 99%, 53% 98%, 48% 99%, 43% 98%, 38% 99%, 33% 98%, 28% 99%, 23% 98%, 18% 99%, 13% 98%, 8% 99%, 3% 98%, 2% 93%, 3% 88%, 2% 83%, 3% 78%, 2% 73%, 3% 68%, 2% 63%, 3% 58%, 2% 53%, 3% 48%, 2% 43%, 3% 38%, 2% 33%, 3% 28%, 2% 23%, 3% 18%, 2% 13%, 3% 8%);
  filter: drop-shadow(0 12px 16px #8a516526);
}
.cover-photo::before {
  content: ''; position: absolute; z-index: 1; inset: 8px; pointer-events: none;
  border: 1px solid #e3d1d3; outline: 1px dashed #eac4ce; outline-offset: 3px;
  background:
    linear-gradient(#d7a6b4, #d7a6b4) left top / 13px 1px no-repeat,
    linear-gradient(#d7a6b4, #d7a6b4) left top / 1px 13px no-repeat,
    linear-gradient(#d7a6b4, #d7a6b4) right top / 13px 1px no-repeat,
    linear-gradient(#d7a6b4, #d7a6b4) right top / 1px 13px no-repeat,
    linear-gradient(#d7a6b4, #d7a6b4) left bottom / 13px 1px no-repeat,
    linear-gradient(#d7a6b4, #d7a6b4) left bottom / 1px 13px no-repeat,
    linear-gradient(#d7a6b4, #d7a6b4) right bottom / 13px 1px no-repeat,
    linear-gradient(#d7a6b4, #d7a6b4) right bottom / 1px 13px no-repeat;
}
.cover-photo::after { content: ''; position: absolute; z-index: 3; left: 14px; bottom: 10px; width: 22px; height: 22px; background: url('assets/flower.svg') center / contain no-repeat; transform: rotate(-12deg); filter: drop-shadow(0 2px 2px #80505c20); }
.cover-photo img { display: block; width: 100%; aspect-ratio: 3 / 3.85; border: 1px solid #eddce0; box-shadow: 0 2px 8px #65415117; object-fit: cover; object-position: 50% 40%; filter: saturate(.96); }
.tape { position: absolute; z-index: 2; top: -6px; left: 36%; width: 66px; height: 18px; transform: rotate(-7deg); background: #edb4c5c9; clip-path: polygon(3% 0, 100% 7%, 95% 93%, 0 100%); }
.photo-stamp { position: absolute; right: 20px; bottom: 30px; padding: 6px 9px; transform: rotate(5deg); border: 1px solid #eac4ce; background: #fffaf3e8; color: #9c6074; font: 500 11px/1.25 var(--display); }
.opening h1, .section h2 { margin: 0; font: 600 clamp(35px, 9vw, 52px)/1.1 var(--display); letter-spacing: -.035em; }
.opening h1 em, .section h2 em { color: var(--rose-deep); font-style: italic; }
.open-button {
  position: relative; isolation: isolate; min-width: min(250px, calc(100vw - 64px)); min-height: 54px;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 4px; padding: 0 18px; border: 1px solid #d99aab; border-radius: 10px 13px 11px 12px;
  background: linear-gradient(135deg, #fffefa, #fff3f6); color: #855266;
  box-shadow: 0 5px 0 #eccbd5, 0 9px 18px #ae637320, inset 0 1px #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .035em; cursor: pointer;
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}
.open-button::before { content: ''; position: absolute; z-index: -1; inset: 4px; border: 1px dashed #d99aab91; border-radius: 7px 10px 8px 9px; pointer-events: none; }
.open-button:hover { transform: translateY(-2px) rotate(-.4deg); background: linear-gradient(135deg, #fffefa, #ffedf2); box-shadow: 0 7px 0 #eccbd5, 0 12px 22px #ae63732e, inset 0 1px #fff; }
.open-button:active { transform: translateY(2px) scale(.985); box-shadow: 0 2px 0 #eccbd5, 0 4px 10px #ae637320, inset 0 1px #fff; }
.button-seal { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #e7c3ce; border-radius: 50%; background: #fbe8ee; color: #a95774; box-shadow: inset 0 1px #fff; }
.button-seal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.open-button .button-arrow, .page-hint svg, .swipe-note svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.opening-note { margin: -5px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .045em; }

/* Navegação horizontal */
.site {
  position: fixed; inset: 0; z-index: 2; width: 100%; max-width: none; height: 100svh; min-height: 100svh;
  margin: 0; padding: 0; overflow: hidden; visibility: hidden; pointer-events: none;
  background: linear-gradient(145deg, #fff7f8 0%, #fff2f5 52%, #fcf5f6 100%);
  opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.2,1);
}
.site::after { content: ''; inset: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); }
.site.visible { visibility: visible; pointer-events: auto; opacity: 1; transform: none; }
.topbar {
  position: absolute; z-index: 2; inset: 0 0 auto; height: var(--topbar-height); min-height: var(--topbar-height);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: env(safe-area-inset-top) max(22px, env(safe-area-inset-left)) 0;
  border-bottom: 1px solid #d9b4c047; background: #fff9f5db; color: var(--muted);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.wordmark { width: 30px; height: 30px; display: grid; place-items: center; }
.wordmark img { width: 25px; height: 25px; }
.page-hint { width: 25px; height: 25px; display: grid; place-items: center; color: var(--rose-deep); }
.panels {
  position: absolute; inset: 0; display: flex; width: 100%; height: 100%; padding-top: var(--topbar-height);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.panels::-webkit-scrollbar { display: none; }
.panels:focus { outline: none; }
.panels > .section {
  flex: 0 0 100%; width: 100%; height: 100%; min-height: 100%; min-width: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.section {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  padding: 22px clamp(19px, 6vw, 65px) max(28px, env(safe-area-inset-bottom)); overflow-y: auto;
  text-align: center; scrollbar-width: none;
}
.section::-webkit-scrollbar { display: none; }
.section-kicker { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 680px; margin-bottom: 12px; line-height: 1.35; }
.section-kicker > span:first-child { color: var(--rose-deep); font-size: 9px; }
.kicker-flower { width: 15px; height: 15px; flex: 0 0 15px; object-fit: contain; }
.intro { overflow-x: hidden; overflow-y: auto; justify-content: safe center; }
.intro::before, .memories::before, .letter::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url('assets/floral-sprig.svg') no-repeat -36px 84%, url('assets/floral-sprig.svg') no-repeat calc(100% + 36px) 16%; background-size: 110px auto, 100px auto; opacity: .16; }
.intro-flower { width: 50px; height: 50px; margin: 0 0 10px; filter: drop-shadow(0 5px 10px #ab668326); }
.intro h2 { font-size: clamp(36px, 5.6vw, 47px); }
.intro-copy { max-width: 325px; margin: 9px 0 12px; color: #846d7a; font-size: 12px; }
.swipe-note { display: flex; align-items: center; gap: 7px; color: var(--rose-deep); font-size: 10px; font-weight: 700; letter-spacing: .025em; }
.swipe-note svg { width: 14px; height: 14px; }
.intro-letter-card { max-width: 500px; margin: 12px 0 4px; padding: 23px clamp(19px, 5.5vw, 34px); }
.letter-kicker { position: relative; z-index: 1; margin: 0 0 10px; color: var(--rose-deep); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.intro-letter-card .letter-flower { top: 15px; right: 19px; width: 27px; height: 27px; }
.intro-letter-card h2 { margin-bottom: 12px; font-size: clamp(28px, 6.8vw, 36px); }
.intro-letter-card p:not(.letter-kicker) { font-size: 12px; line-height: 1.65; }
.intro-letter-card .letter-heart { margin-top: 11px; }

/* Fotos tipo polaroid */
.memories { isolation: isolate; }
.memories::before { background: url('assets/floral-sprig.svg') no-repeat -37px 12%, url('assets/floral-sprig.svg') no-repeat calc(100% + 36px) 85%, url('assets/flower.svg') no-repeat 14% 78%, url('assets/flower.svg') no-repeat 87% 19%, radial-gradient(#d89bb326 1px, transparent 1.5px) 0 0 / 27px 27px; background-size: 132px auto, 140px auto, 20px 20px, 22px 22px, 27px 27px; opacity: .27; }
.memories::after { content: ''; position: absolute; z-index: -1; inset: 8% 5%; border: 1px solid #dbaeba36; border-radius: 35px 48px 31px 45px; background: radial-gradient(ellipse at 50% 48%, #f7e3ea44, transparent 70%); pointer-events: none; }
.memories h2 { font-size: clamp(32px, 8vw, 43px); }
.memories-note { margin: 4px 0 11px; color: var(--muted); font-size: 11px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 490px; gap: 11px 12px; align-items: start; padding: 5px; }
.photo {
  position: relative; min-width: 0; margin: 0; padding: 6px 6px 20px; overflow: hidden; border: 1px solid #ffffff;
  border-radius: 2px; background: var(--paper); color: #704a5a;
  box-shadow: 0 7px 17px #8754651d, 0 1px 2px #fff inset;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), box-shadow .65s ease, opacity .8s ease;
}
.photo::before { content: ''; position: absolute; z-index: 2; top: 3px; left: calc(50% - 17px); width: 34px; height: 11px; background: #e9b7c8d9; clip-path: polygon(2% 0, 100% 4%, 96% 100%, 0 94%); transform: rotate(-3deg); }
.photo:nth-child(3n + 2)::before { background: #d7c4e2d9; transform: rotate(3deg); }
.photo:nth-child(3n)::before { background: #f0d9b7db; transform: rotate(-2deg); }
.photo:nth-child(1) { transform: rotate(-2.5deg); }
.photo:nth-child(2) { transform: translateY(8px) rotate(1.8deg); }
.photo:nth-child(3) { transform: rotate(2deg); }
.photo:nth-child(4) { transform: translateY(7px) rotate(-1.5deg); }
.photo:nth-child(5) { transform: rotate(2deg); }
.photo:hover, .photo:focus-within { z-index: 1; transform: translateY(-4px) rotate(0) scale(1.02); box-shadow: 0 12px 23px #8754652b; }
.photo img { position: relative; z-index: 0; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 1px; object-fit: cover; object-position: 50% 38%; background: #f6e1e7; }
.photo figcaption { min-height: 29px; display: grid; place-items: end center; padding: 4px 1px 0; text-align: center; font: 500 clamp(9px, 2.6vw, 12px)/1.15 var(--display); }
.photo-kiss, .photo-fun { width: auto; grid-column: auto; justify-self: stretch; }
.photo-smile img { object-position: 50% 40%; }

/* Música e contador */
.music { isolation: isolate; }
.music::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url('assets/floral-sprig.svg') no-repeat -38px 9%, url('assets/floral-sprig.svg') no-repeat calc(100% + 35px) 79%, url('assets/flower.svg') no-repeat 13% 78%, url('assets/flower.svg') no-repeat 86% 17%, radial-gradient(#d9a9b722 1px, transparent 1.5px) 0 0 / 27px 27px; background-size: 145px auto, 145px auto, 21px 21px, 17px 17px, 27px 27px; opacity: .27; }
.music::after { content: ''; position: absolute; z-index: -1; inset: 13% 7%; border: 1px solid #ddaebe30; border-radius: 44% 56% 48% 52% / 48% 42% 58% 52%; background: radial-gradient(ellipse at 50% 45%, #f5dfe733, transparent 70%); pointer-events: none; }
.music h2 { margin-bottom: 7px; font-size: clamp(36px, 8vw, 46px); }
.music-rose-note { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 16px 0 0; }
.music-ornaments { display: flex; align-items: center; justify-content: center; gap: 10px; }
.music-rose { display: block; width: 21px; height: 27px; flex: 0 0 21px; filter: drop-shadow(0 2px 3px #a95f7718); }
.music-heart { display: block; width: 22px; height: 22px; fill: #fae4eb; stroke: #c9839b; stroke-width: 1.9; stroke-linejoin: round; }
.music-lyric { margin: 0; color: #9b6479; font: italic 500 15px/1.4 var(--display); letter-spacing: .015em; }
.record-card { position: relative; width: 100%; max-width: 430px; padding: 22px; border: 1px solid #e7c2ce; border-radius: 25px; background: linear-gradient(145deg, #fffefa, #fff8f8 72%, #fdf1f4); box-shadow: 0 14px 32px #9e667320, 0 2px 0 #fff inset; text-align: left; }
.record-card::before { content: ''; position: absolute; inset: 6px; border: 1px dashed #f0dce2; border-radius: 19px; pointer-events: none; }
.record-card::after { content: ''; position: absolute; top: -21px; right: 22px; width: 53px; height: 66px; background: url('assets/floral-sprig.svg') center / contain no-repeat; transform: rotate(26deg); opacity: .78; pointer-events: none; }
.embed-wrap { position: relative; overflow: hidden; border-radius: 13px; line-height: 0; }
.embed-wrap iframe { display: block; width: 100%; border: 0; }
.time { isolation: isolate; }
.time::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url('assets/floral-sprig.svg') no-repeat -44px 8%, url('assets/floral-sprig.svg') no-repeat calc(100% + 42px) 89%, url('assets/flower.svg') no-repeat 12% 75%, url('assets/flower.svg') no-repeat 88% 18%, radial-gradient(#d9a9b722 1px, transparent 1.5px) 0 0 / 28px 28px; background-size: 150px auto, 150px auto, 20px 20px, 18px 18px, 28px 28px; opacity: .26; }
.time::after { content: ''; position: absolute; z-index: -1; inset: 17% 7%; border: 1px solid #ddaebe2b; border-radius: 30px; background: linear-gradient(145deg, #fff8f944, #f7e2e922); pointer-events: none; }
.time .section-kicker { justify-content: center; }
.time-flower { width: 43px; height: 43px; margin: 6px 0 14px; padding: 8px; border: 1px solid #ecd2dc; border-radius: 50%; background: #fffaf9; box-shadow: 0 5px 14px #a95f7715; }
.time h2 { font-size: clamp(28px, 7.5vw, 41px); }
.counter { width: 100%; max-width: 500px; display: flex; justify-content: center; align-items: stretch; gap: clamp(4px, 1.7vw, 9px); margin: 25px auto 0; }
.counter div { min-width: 0; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 13px 3px 11px; border: 1px solid #eed8df; border-radius: 14px; background: linear-gradient(155deg, #fffefa, #fff4f6); box-shadow: 0 5px 15px #a95f7710, 0 1px 0 #fff inset; }
.counter strong { color: #6e4b5e; font: 600 clamp(20px, 5.6vw, 34px)/1 var(--display); font-variant-numeric: tabular-nums; }
.counter div:first-child strong { color: var(--rose-deep); }
.counter span { margin-top: 8px; color: var(--muted); font-size: clamp(6px, 1.8vw, 8px); font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.counter-dot { display: none; }
.time-foot { margin: 18px 0 0; color: #9a6d7f; font-size: 11px; }

/* Cartinha */
.letter::before { opacity: .12; }
.letter-card { position: relative; width: 100%; max-width: 560px; padding: 34px clamp(22px, 7vw, 42px); border: 1px solid #e7cbd3; border-radius: 5px 5px 18px 5px; background: url('assets/floral-sprig.svg') no-repeat right 9px bottom 31px / 39px auto, linear-gradient(145deg, #fffefa, #fffdf9 70%, #fff7f8); box-shadow: 0 12px 32px #9e66731c, 0 2px 0 #fff inset; text-align: left; }
.letter-card::before { content: ''; position: absolute; top: 0; right: 0; width: 31px; height: 31px; border-radius: 0 4px 0 4px; background: linear-gradient(135deg, #fff4f5 49%, #efd7de 50%, #f7e7ea 100%); box-shadow: -1px 1px 2px #9e667314; }
.letter-card::after { content: ''; position: absolute; inset: 7px; border: 1px dashed #efdee2; border-radius: 3px 3px 14px 3px; pointer-events: none; }
.letter-flower { position: absolute; top: 16px; right: 23px; width: 32px; height: 32px; opacity: .88; }
.letter-card h2 { margin: 0 29px 17px 0; font-size: clamp(30px, 8vw, 42px); }
.letter-card p { margin: 0; color: #786472; font-size: clamp(12px, 3.4vw, 14px); line-height: 1.9; }
.letter-signoff { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin: 14px 10px 0 0; color: #98677a; }
.letter-signoff span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.letter-signoff strong { color: #985e74; font: italic 600 17px/1.2 var(--display); }
.letter-signoff small { margin-top: 2px; font-size: 9px; font-weight: 700; letter-spacing: .035em; }
.letter-heart { width: 24px; height: 24px; display: block; margin: 17px auto 0; fill: #d985a0; stroke: #a95774; stroke-width: 1.2; }
.letter-signoff .letter-heart { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; }

/* Mini game */
.game { overflow: hidden; }
.game::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .15; background: url('assets/floral-sprig.svg') no-repeat -35px 88%, url('assets/floral-sprig.svg') no-repeat calc(100% + 34px) 13%; background-size: 117px auto, 113px auto; }
.game-sprig { width: 45px; height: 45px; margin: 0 0 12px; }
.game h2 { font-size: clamp(34px, 8vw, 47px); }
.game-copy { max-width: 300px; margin: 12px 0 8px; color: #846d7a; font-size: 12px; }
.bouquet-button {
  --bloom: 0;
  --petal-scale: .28;
  width: min(100%, 320px); height: 250px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 28px; background: transparent; cursor: pointer; touch-action: none;
  -webkit-user-select: none; user-select: none; transition: transform .35s ease, background-color .4s ease;
}
.bouquet-button:hover { background: #f8e9ed55; }
.bouquet-button:active, .bouquet-button.is-holding { transform: scale(.98); background: #f8e9ed99; }
.bouquet-button:disabled { cursor: default; }
.bouquet-button:focus-visible, .reset-game:focus-visible, .open-button:focus-visible { outline: 2px solid #b85e7c; outline-offset: 4px; }
.bouquet-art { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 9px 11px #9c657326); transition: transform .5s ease, filter .5s ease; }
.bouquet-button.bloomed .bouquet-art { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 10px 12px #9c657333); }
.bouquet-stem-lines { fill: none; stroke: #748f70; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.bouquet-branch-lines { fill: none; stroke: #829b77; stroke-width: 1.6; stroke-linecap: round; }
.bouquet-leaves { fill: url(#leaf-shade); stroke: #78916f; stroke-width: 1.1; stroke-linejoin: round; }
.bouquet-leaf-veins { fill: none; stroke: #f5f3d9; stroke-width: 1; stroke-linecap: round; opacity: .8; }
.bouquet-wrap-back { fill: url(#wrap-shade); stroke: #c68d9f; stroke-width: 1.6; stroke-linejoin: round; }
.bouquet-wrap-panel { fill: #fff4f1; stroke: #d4a7b1; stroke-width: 1.25; stroke-linejoin: round; }
.bouquet-wrap-fold { fill: url(#fold-shade); stroke: #d7acb7; stroke-width: 1.2; stroke-linejoin: round; }
.bouquet-wrap-edge { fill: none; stroke: #fffdf8; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 4; opacity: .9; }
.bouquet-ribbon { fill: url(#ribbon-shade); stroke: #b66d84; stroke-width: 1.35; stroke-linejoin: round; }
.bouquet-bow-highlight { fill: none; stroke: #f8d9df; stroke-width: 1.3; stroke-linecap: round; opacity: .9; }
.bouquet-petals { fill: var(--flower-petal, #efb3c4); stroke: var(--flower-outline, #c9859a); stroke-width: 1.15; transform-box: fill-box; transform-origin: center; transform: scale(var(--flower-open-petal, var(--petal-scale))); }
.bouquet-flower-lilac { --flower-petal: #d6c0e4; --flower-outline: #a58ab8; --flower-inner: #f0e5f2; }
.bouquet-flower-coral { --flower-petal: #f3aabd; --flower-outline: #ca718d; --flower-inner: #ffe3e6; }
.bouquet-flower-cream { --flower-petal: #f8d9a8; --flower-outline: #d1a15d; --flower-inner: #fff0c9; }
.bouquet-flower-rose { --flower-petal: #eaa0b8; --flower-outline: #b86f89; --flower-inner: #f9d6df; }
.bouquet-petal-inner { fill: var(--flower-inner, #ffe2e7); stroke: var(--flower-outline, #c9859a); stroke-width: .8; transform: scale(var(--flower-open-petal, var(--petal-scale))); transform-box: fill-box; transform-origin: center; }
.bouquet-center { fill: #e9c888; stroke: #c29f69; stroke-width: 1.1; }
.bouquet-center-ring { fill: #f9e9bd; stroke: #cba56d; stroke-width: .8; }
.bouquet-seed { fill: #b98b56; }
.bouquet-lily-pink { --lily-fill: #f4bdcc; --lily-edge: #bd7189; --lily-vein: #fff1ef; --lily-stamen: #d49a48; }
.bouquet-lily-white { --lily-fill: #fff4e8; --lily-edge: #c9a9a8; --lily-vein: #e6b4bf; --lily-stamen: #d39c46; }
.bouquet-lily-lilac { --lily-fill: #ded0e9; --lily-edge: #9e83b1; --lily-vein: #fbf0f4; --lily-stamen: #c8954c; }
.lily-petals { fill: var(--lily-fill); stroke: var(--lily-edge); stroke-width: 1.25; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; transform: scale(var(--flower-open-petal, .16)); }
.lily-veins { fill: none; stroke: var(--lily-vein); stroke-width: 1.15; stroke-linecap: round; opacity: .95; transform-box: fill-box; transform-origin: center; transform: scale(var(--flower-open-petal, .16)); }
.lily-stamens { fill: none; stroke: var(--lily-stamen); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center bottom; transform: scaleY(var(--flower-bloom, 0)); opacity: var(--flower-bloom, 0); }
.lily-stamens circle { fill: var(--lily-stamen); stroke: #fff0ce; stroke-width: .65; }
.lily-heart { fill: #e2a85c; stroke: #c48743; stroke-width: .75; }
.bloom-track { width: min(100%, 215px); height: 5px; overflow: hidden; margin: 4px 0 0; border-radius: 99px; background: #ecd9df; }
.bloom-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #dca0b2, #ad83b8); }
.bloom-instruction { min-height: 20px; margin: 8px 0 0; color: var(--rose-deep); font-size: 10px; font-weight: 700; }
.garden-prize { margin-top: 2px; animation: fade-up .65s ease both; }
.garden-prize[hidden] { display: none; }
.garden-prize p { margin: 3px 0 8px; color: #735365; font: 500 17px/1.4 var(--display); }
.reset-game { padding: 7px 13px; border: 1px solid #dfb2bf; border-radius: 99px; background: #fffaf9; color: #87586a; font-size: 10px; font-weight: 700; cursor: pointer; transition: background .35s ease; }
.reset-game:hover { background: #faeaf0; }

/* Aparição e movimento */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.photo-reveal { opacity: 0; transition: opacity .8s ease; }
.photo-reveal.is-visible { opacity: 1; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 620px) {
  .opening { gap: 15px; }
  .cover-photo { width: 260px; }
  .section { padding-right: 8vw; padding-left: 8vw; }
  .photo-grid { gap: 14px 16px; }
}
@media (max-width: 380px) {
  .opening { gap: 10px; padding-right: 21px; padding-left: 21px; }
  .cover-photo { width: min(60vw, 228px); padding: 12px 12px 30px; }
  .photo-stamp { right: 17px; bottom: 27px; font-size: 10px; }
  .opening h1 { font-size: 35px; }
  .topbar { padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
  .memories h2 { font-size: 32px; }
  .photo-grid { gap: 8px 8px; padding-right: 2px; padding-left: 2px; }
  .photo { padding: 5px 5px 17px; }
  .photo figcaption { min-height: 27px; font-size: 9px; }
  .counter { gap: 5px; }
  .counter strong { font-size: 25px; }
  .record-card { padding: 15px; }
  .letter-card { padding-right: 19px; padding-left: 19px; }
}
@media (max-height: 700px) {
  .opening { gap: 8px; }
  .cover-photo { width: min(56vw, 225px); padding-bottom: 26px; }
  .opening h1 { font-size: clamp(31px, 8vw, 39px); }
  .open-button { min-height: 43px; }
  .section { padding-top: 14px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .photo-grid { gap: 7px 10px; }
  .photo { padding-bottom: 15px; }
  .photo figcaption { min-height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Tela final */
.finale { isolation: isolate; overflow: hidden; gap: 11px; background: radial-gradient(ellipse at 50% 48%, #f7e1e9 0, #fff8f7 48%, #fffaf8 78%); }
.finale::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .22; background: url('assets/floral-sprig.svg') no-repeat -42px 82%, url('assets/floral-sprig.svg') no-repeat calc(100% + 40px) 18%, url('assets/flower.svg') no-repeat 20% 19%, url('assets/flower.svg') no-repeat 82% 79%; background-size: 150px auto, 145px auto, 24px 24px, 21px 21px; }
.finale-heart { display: block; width: clamp(110px, 29vw, 154px); height: auto; overflow: visible; filter: drop-shadow(0 9px 13px #b65e7c2b); }
.finale-heart-shape { fill: url(#final-heart-fill); stroke: #bd718b; stroke-width: 2.4; stroke-linejoin: round; }
.finale h2 { font-size: clamp(46px, 11vw, 66px); line-height: 1.02; }
.finale-flowers { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 9px; }
.finale-flowers img { width: 17px; height: 17px; opacity: .75; }
.finale-flowers img:first-child { transform: rotate(-17deg) scale(.82); }
.finale-flowers img:last-child { transform: rotate(17deg) scale(.82); }
