body { min-width: 280px; min-height: 100vh; min-height: 100dvh; overflow-x: clip; background: var(--night); color: var(--cream); font-family: var(--sans); }
body:not([data-state='garden']) { overflow: hidden; }
.atmosphere { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 48% 56%, #20260822, transparent 65%), linear-gradient(155deg, #040604, #010301 70%); }
.atmosphere::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 14vw #0008; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.035' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); opacity: .45; }
.ambient-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.galaxy-canvas { z-index: 2; width: 100vw; height: 100vh; height: 100dvh; }
.foreground-canvas { z-index: 9; }
.loading, .intro { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: max(1.5rem, var(--safe-top)) max(1.5rem, var(--safe-right)) max(1.5rem, var(--safe-bottom)) max(1.5rem, var(--safe-left)); text-align: center; }
.loading { gap: 1.2rem; color: var(--muted); font-size: .85rem; }
.intro { transition: opacity .8s, filter .8s; }
.eyebrow { font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .25em; line-height: 1.7; color: var(--muted); }
.intro .eyebrow { margin-bottom: 1.7rem; }
.enter-flower { position: relative; width: 158px; height: 190px; background: transparent; display: grid; place-items: center; margin-bottom: 1.8rem; border-radius: 50%; }
.enter-flower img { width: 123px; height: 174px; position: relative; filter: drop-shadow(0 0 14px #f2c94c30); }
.flower-halo { position: absolute; width: 180%; height: 150%; border-radius: 50%; background: radial-gradient(ellipse, #d6b53516, transparent 65%); }
.intro h1 { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.7rem); font-weight: 400; letter-spacing: -.04em; color: #f5ecd4; }
.intro-subtitle { font-size: clamp(.8rem, 1.2vw, .94rem); margin-top: 1.1rem; color: var(--muted); font-weight: 300; letter-spacing: .035em; }
.intro-rule { width: 1px; height: 35px; background: linear-gradient(var(--gold), transparent); margin: 2rem 0 1rem; opacity: .5; }
.intro-footnote { color: #878972; font-size: .65rem; letter-spacing: .16em; }
body[data-state='entering'] .intro { opacity: 0; filter: blur(6px); pointer-events: none; }
.experience { position: relative; z-index: 3; opacity: 0; transition: opacity 1.5s; padding: var(--safe-top) var(--safe-right) calc(78px + var(--safe-bottom)) var(--safe-left); }
body[data-state='entering'] .experience, body[data-state='garden'] .experience { opacity: 1; }
.scene-header { min-height: 68px; padding: 18px 19px 10px; display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1510px; margin: auto; }
.garden-title { display: flex; align-items: center; gap: 9px; }
.garden-title img { width: 24px; height: 24px; }
.garden-title h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(.91rem, 1.4vw, 1.25rem); letter-spacing: -.025em; }
.dedication { font-size: .61rem; color: #c6bc98; letter-spacing: .15em; text-transform: uppercase; text-align: right; overflow-wrap: anywhere; max-width: 28%; }
.garden { position: relative; width: min(100%, 1400px); margin: 0 auto; height: calc(100vh - 146px - var(--safe-top) - var(--safe-bottom)); height: calc(100dvh - 146px - var(--safe-top) - var(--safe-bottom)); min-height: 370px; isolation: isolate; }
.photos, .flowers, .floating-messages { position: absolute; inset: 0; pointer-events: none; }
.photo { position: absolute; left: var(--x); top: var(--y); width: var(--photo-width); transform: translate(-50%, -50%) rotate(var(--rotation)); padding: 0; background: transparent; pointer-events: auto; opacity: 0; z-index: 4; }
.photo-frame { display: block; position: relative; width: 100%; padding: 5px 5px 7px; background: #e9e0c6; border: 1px solid #fff5cf77; box-shadow: 0 7px 22px #0007, 0 0 16px #e8cb5a09; transition: transform .5s, box-shadow .5s; }
.photo img { width: 100%; aspect-ratio: 1 / 1.13; object-fit: cover; filter: saturate(.78); }
.photo-caption { display: block; padding: 7px 2px 1px; color: #4d493b; font-family: var(--serif); font-size: clamp(.62rem, 1vw, .82rem); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo--fine .photo-frame { padding: 4px; background: #171e15; border: 1px solid #cab37599; }
.photo--fine img { aspect-ratio: 1 / 1.12; }
.photo--fine .photo-caption, .photo--round .photo-caption, .photo--arch .photo-caption { display: none; }
.photo--round .photo-frame { border-radius: 50%; padding: 5px; background: #a5915770; }
.photo--round img { border-radius: 50%; aspect-ratio: 1; }
.photo--arch .photo-frame { padding: 5px; border-radius: 48% 48% 3px 3px; background: #d9cda5; }
.photo--arch img { border-radius: 48% 48% 1px 1px; }
.photo--soft .photo-frame { background: #b0a27c; border-radius: 9px; padding: 4px; }
.photo--soft img { border-radius: 5px; }
.photo--soft .photo-caption { display: none; }
.photo-sprig { position: absolute; width: 42%; height: 65%; right: -15%; bottom: -17%; background: url('../assets/flowers/flower-01.svg') center / contain no-repeat; pointer-events: none; transform: rotate(18deg); filter: drop-shadow(0 4px 5px #0008); }
.heart { position: absolute; left: 50%; top: var(--heart-y, 27%); width: var(--heart-width, 130px); aspect-ratio: 1.08; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.heart p { position: absolute; inset: 42% 14% auto; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(.85rem, 1.7vw, 1.45rem); line-height: 1.3; text-shadow: 0 0 15px #f2c94c55; opacity: 0; overflow-wrap: anywhere; transition: opacity 2s; }
.heart.is-formed p { opacity: 1; }
.garden-center { position: absolute; width: var(--center-width, 280px); height: var(--center-height, 85px); left: 50%; top: var(--center-y, 63%); transform: translate(-50%, -50%); pointer-events: none; }
.floating-message { position: absolute; font-family: var(--serif); font-style: italic; text-align: center; font-size: clamp(.80rem, 1.3vw, 1.1rem); line-height: 1.45; color: #fff2cc; text-shadow: 0 0 12px #ffd54a45, 0 2px 5px #000; opacity: 0; overflow-wrap: anywhere; }
.garden-flower { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: calc(var(--size) * 1.45); transform: translate(-50%, -50%) rotate(var(--tilt)); opacity: 0; transform-origin: 50% 90%; filter: drop-shadow(0 0 12px #eccf4517); }
.keepsake { position: absolute; top: var(--keepsake-y, 89%); left: 50%; transform: translateX(-50%); width: 42%; text-align: center; pointer-events: none; opacity: 0; transition: opacity 2s; }
.keepsake.is-visible { opacity: 1; }
.keepsake p:first-child { font-family: var(--serif); font-style: italic; font-size: clamp(.75rem, 1.4vw, 1.1rem); color: #d9cba2; }
.keepsake p:last-child { margin-top: 5px; font-size: clamp(.58rem, .8vw, .7rem); color: #969580; line-height: 1.4; }
.scene-footer { position: fixed; z-index: 7; left: var(--safe-left); right: var(--safe-right); bottom: 0; padding: 10px 14px calc(12px + var(--safe-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(transparent, #060906e8 45%); }
.music-player { display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border: 1px solid #cdb87a24; border-radius: 40px; background: #10150fa6; backdrop-filter: blur(8px); max-width: calc(100% - 58px); }
.icon-button { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; padding: 12px; border-radius: 50%; background: transparent; }
.icon-button img { width: 19px; height: 19px; }
.icon-button:disabled { opacity: .35; }
.track-info { width: 92px; padding-top: 7px; }
.track-info > span { display: block; color: #c4bda7; font-size: .59rem; letter-spacing: .015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input[type='range'] { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 22px; background: transparent; accent-color: var(--gold); margin: 0; padding: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: #9d905249; border-radius: 3px; }
input[type='range']::-moz-range-track { height: 2px; background: #9d905249; }
input[type='range']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 7px; height: 7px; margin-top: -2.5px; background: var(--gold); border-radius: 50%; }
input[type='range']::-moz-range-thumb { width: 7px; height: 7px; border: 0; background: var(--gold); border-radius: 50%; }
input[type='range']:disabled { opacity: .35; }
.volume { display: none !important; }
.mute-slash { display: none; width: 22px; height: 1px; background: var(--gold); transform: rotate(-45deg); position: absolute; }
[aria-pressed='true'] .mute-slash { display: block; }
.scene-hint { display: none; color: #969580; font-size: .67rem; letter-spacing: .045em; }
.letter-button { background: #c7ac3920; border: 1px solid #e5cf704f; border-radius: 30px; min-width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 12px; opacity: 0; transform: translateY(8px); transition: opacity 1s, transform 1s, background .3s; }
.letter-button.is-visible { opacity: 1; transform: none; }
.letter-button img { width: 22px; height: 22px; }
.letter-button span { display: none; font-size: .7rem; letter-spacing: .025em; }
dialog { position: fixed; margin: auto; max-width: calc(100vw - 28px - var(--safe-left) - var(--safe-right)); max-height: calc(100vh - 40px - var(--safe-top) - var(--safe-bottom)); max-height: calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom)); background: transparent; color: inherit; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
dialog::backdrop { background: #030603cc; backdrop-filter: blur(9px); }
.dialog-surface { position: relative; }
.close-button { position: sticky; top: 12px; float: right; z-index: 4; width: 44px; height: 44px; margin: 12px 12px -56px 0; display: grid; place-items: center; border-radius: 50%; font-size: 1.8rem; font-weight: 300; background: #070b09c9; color: #fff3d4; line-height: 1; }
.photo-dialog { width: min(92vw, 880px); border: 1px solid #e5cf703b; border-radius: 6px; background: #0f150f; }
.expanded-photo { width: 100%; max-height: 55vh; max-height: 55dvh; object-fit: contain; background: #070b07; }
.photo-copy { padding: 22px; }
.photo-copy .eyebrow { color: #b6a86a; font-size: .6rem; margin-bottom: 12px; }
.photo-copy h2 { font: 400 clamp(1.3rem, 3vw, 2rem) / 1.2 var(--serif); margin-bottom: 14px; overflow-wrap: anywhere; }
.photo-copy > p:last-child { font-size: .9rem; line-height: 1.8; color: #c6c3b3; white-space: pre-line; overflow-wrap: anywhere; }
.letter-dialog { width: min(92vw, 610px); max-height: min(82vh, 750px); max-height: min(82dvh, 750px, calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom))); border-radius: 5px; color-scheme: light; box-shadow: 0 20px 80px #0004; }
.letter-paper { color: #4d4738; background: radial-gradient(ellipse at 90% 10%, #edcf7445, transparent 40%), #f5eedb; padding: 38px 26px 28px; border: 8px solid #e4d6b6; min-height: 360px; }
.letter-paper::before { content: ''; position: absolute; inset: 7px; border: 1px solid #b8a16466; pointer-events: none; }
.letter-paper .close-button { top: 7px; margin-top: -26px; margin-right: -14px; background: #e3d6b5; color: #5c512f; }
.letter-flower { margin: 0 auto 20px; opacity: .9; }
.letter-paper .eyebrow { color: #8f8058; text-align: center; font-size: .55rem; }
.letter-paper h2 { font: italic 400 clamp(1.7rem, 4vw, 2.3rem) / 1.3 var(--serif); text-align: center; margin: 12px 0 26px; color: #6d5730; overflow-wrap: anywhere; }
.letter-text { font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.1rem); line-height: 1.85; overflow-wrap: anywhere; }
.letter-text p + p { margin-top: 1.1em; }
.letter-signature { margin-top: 30px; font: italic 1.15rem / 1.6 var(--serif); color: #786036; overflow-wrap: anywhere; }
.letter-ending { text-align: center; color: #a58b42; margin-top: 25px; font-size: 1.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.noscript { position: fixed; z-index: 30; inset: 0; display: grid; place-content: center; padding: 30px; text-align: center; background: var(--night); }
body.has-dialog { overflow: hidden; }
