:root { color-scheme: light; font-family: Arial, sans-serif; background: #ff4d78; color: #4e361b; }
* { box-sizing: border-box; }
html, body, #app { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100svh; overflow-x: hidden; background: #ff4d78; }
button { font: inherit; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; z-index: 10; }
.reference-stage { width: 100%; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.reference-canvas { container-type: inline-size; position: relative; width: min(100vw, 177.7778svh, 1440px); aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #ff4d78; }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; user-select: none; pointer-events: none; z-index: 0; }
.hotspot { appearance: none; display: block; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); min-width: 0; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; color: transparent; background: transparent; cursor: pointer; z-index: 5; }
.hotspot:hover { background: #ffffff08; }
.hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 1px; box-shadow: 0 0 0 5px #39261199; }
.hotspot:disabled { cursor: not-allowed; }
.pin-output { position: absolute; z-index: 4; left: 34%; top: 17.4%; width: 33%; height: 10.3%; display: grid; place-items: center; color: #888; font: 600 2.2cqw/1 Arial, sans-serif; letter-spacing: .15em; white-space: nowrap; pointer-events: none; }
.pin-error { position: absolute; z-index: 4; left: 32%; top: 28.5%; width: 36%; min-height: 0; margin: 0; color: #6b182d; background: #fff2f4e8; font: 600 1.15cqw/1.3 Arial, sans-serif; text-align: center; pointer-events: none; }
.pin-error:empty { display: none; }
.design-video { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: var(--w); height: var(--h); display: block; margin: 0; border: 0; object-fit: cover; background: #1b1816; }
.scene-whiz video[data-video="whiz-0"] { transform: rotate(8deg); }
.scene-whiz video[data-video="whiz-2"] { transform: rotate(-15deg); }
.media-start { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: var(--w); height: var(--h); display: grid; place-items: center; border: 0; padding: 0; color: transparent; background: transparent; font-size: 0; cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.media-start:hover, .media-start:focus-visible { opacity: 1; }
.media-start::before { content: '▶'; display: grid; place-items: center; width: 3.5cqw; height: 3.5cqw; min-width: 28px; min-height: 28px; padding-left: .2em; border: 1px solid #fff; border-radius: 50%; background: #251a18a8; color: #fff; font: 1.3cqw/1 Arial,sans-serif; text-shadow: none; }
.media-start[hidden] { display: none; }
.video-replay { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: var(--w); height: var(--h); display: grid; place-items: center; border: 0; padding: 0; background: #201a1699; color: white; font: 600 1.5cqw/1 Arial, sans-serif; cursor: pointer; }
.video-replay[hidden], .video-error[hidden] { display: none; }
.video-error { position: absolute; z-index: 6; left: var(--x); top: calc(var(--y) + 1cqw); width: var(--w); margin: 0; padding: .5cqw .8cqw; background: #fff8eaf2; color: #6d2f25; border: 1px solid #70421e; text-align: center; font-size: 1cqw; }
.added-next { position: absolute; z-index: 7; left: var(--x); top: var(--y); width: var(--w); height: var(--h); display: grid; place-items: center; padding: 0; border: 1.2px solid #4f3824; border-radius: 0; color: #5a392d; background: #e8b997; font: 700 1.7cqw/1 Arial, sans-serif; cursor: pointer; }
.added-next:hover { filter: brightness(1.05); }
.gallery-next { border-radius: 3px; box-shadow: 3px 3px 0 #684732; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.gallery-next:hover, .gallery-next:focus-visible { transform: translateY(-3px) scale(1.06); box-shadow: 5px 6px 0 #684732, 0 0 18px #fff8cf; background: #f6c3cf; }
.gallery-next span { color: #c94c74; }
.whiz-status { position: absolute; z-index: 6; left: 1%; bottom: 1%; margin: 0; padding: 4px 7px; color: #432e19; background: #fff5e5ed; border: 1px solid #8e6842; font: 600 1.05cqw/1.3 Arial, sans-serif; }
.whiz-status:empty { display: none; }
.scene-whiz .whiz-status { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; white-space: nowrap; }
.scene-whiz .whiz-status:not(:empty) { clip-path: none; width: auto; height: auto; left: 1%; bottom: 1%; padding: 5px 8px; }
.whiz-next { z-index: 7; }
.letter-placeholder { position: absolute; left: 19%; top: 37%; width: 62%; height: 27%; margin: 0; display: grid; place-items: center; padding: 2%; text-align: center; color: #644255; font: italic 1.85cqw/1.55 Georgia, serif; white-space: pre-wrap; pointer-events: none; }
.countdown-accessible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.love-note-page { position: relative; isolation: isolate; min-height: 100svh; padding: clamp(18px,4vw,52px) 16px 40px; overflow: hidden; color: #4e4351; background: radial-gradient(ellipse at 8% 8%,#fff9f4 0 2%,transparent 35%),radial-gradient(ellipse at 92% 24%,#f5d9ee 0 2%,transparent 34%),radial-gradient(ellipse at 8% 82%,#ffe0dc 0 2%,transparent 33%),radial-gradient(#d794ac35 1px,transparent 1.5px),linear-gradient(145deg,#fce9ed,#fff2e5 52%,#f5e9f4); background-size: auto,auto,auto,24px 24px,auto; }
.love-letter { position: relative; z-index: 1; width: min(100%,820px); margin: 0 auto; padding: clamp(14px,3vw,28px); border: 3px solid #996a85; border-radius: 20px; background: #fff8ed; box-shadow: 0 9px 0 #7e566f,0 16px 36px #794c6930; }
.note-back { display: block; margin: 0 auto 14px; padding: 9px 15px; border: 2px solid #98718b; border-radius: 999px; color: #65485e; background: #fff; font-weight: 700; cursor: pointer; }
.note-back:hover { transform: translateX(-3px); background: #ffe1eb; }
.note-header { position: relative; padding: clamp(18px,4vw,32px) 14px 22px; overflow: hidden; border: 2px dashed #d58ba7; border-radius: 16px; text-align: center; background: linear-gradient(135deg,#ffe3ec,#fff8e8 55%,#f2e5f5); }
.note-header::before,.note-header::after { content: '✿  ·  ♥  ·  ✧'; position: absolute; top: 14px; color: #cd799b; font: 18px Georgia,serif; letter-spacing: .4em; }
.note-header::before { left: 14px; }.note-header::after { right: 14px; }
.note-pals { width: min(270px,68%); margin: 3px auto 0; }
.note-pals svg { display: block; width: 100%; height: auto; overflow: visible; }
.note-bunny .bunny-ear,.note-bunny .bunny-head,.note-bunny .bunny-body,.note-bunny .bunny-foot { fill: #fffaf5; }
.note-bunny .bunny-ear-inner { fill: #f3a3b8; stroke: none; }
.note-bunny .bunny-cheek { fill: #f5a3b4; stroke: none; }
.note-bunny .bunny-eye,.note-bunny .bunny-nose { fill: #594657; stroke: none; }
.note-bunny .bunny-smile { stroke: #594657; }
.note-heart { fill: #f46e91; stroke: #9c5979; stroke-width: 2px; }
.note-pig .pig-body,.note-pig .pig-head { fill: #f5a8b3; }
.note-pig .pig-ear { fill: #f5a8b3; }
.note-pig .pig-snout { fill: #ffd0d3; }
.note-pig .pig-nostril,.note-pig .pig-eye { fill: #624553; stroke: none; }
.note-pig .pig-cheek { fill: #ffced0; stroke: none; }
.note-pig .pig-smile,.note-pig .pig-leg,.note-pig .pig-tail { stroke: #855564; }
.pal-sparkle { fill: none; stroke: #d28baa; stroke-width: 3px; stroke-linecap: round; }
.note-kicker { margin: 7px 0; color: #8a6580; font: 700 .78rem/1.4 'Courier New',monospace; letter-spacing: .13em; text-transform: uppercase; }
.note-header h1 { margin: 8px 0; color: #6c4d70; font: 800 clamp(1.85rem,6vw,3.1rem)/1.12 Georgia,serif; text-shadow: 2px 2px #ffd7e3; }
.note-header h1 span { color: #c4547c; }
.note-subtitle { margin: 12px 0 0; color: #8d657a; font: italic 1rem/1.5 Georgia,serif; }
.pixel-charm { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.pixel-charm span { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #9a7288; box-shadow: 3px 3px 0 #b58ea3; color: #d6537c; background: #fff; font-size: 20px; image-rendering: pixelated; }
.pixel-charm .block-flower { color: #77a767; }.pixel-charm .block-knife { color: #df628b; background: linear-gradient(135deg,#dcecf7 0 48%,#fff 49% 100%); }.pixel-charm .block-bunny { font-size: 18px; }
.note-paper { max-width: 690px; margin: 22px auto 4px; padding: clamp(20px,5vw,42px); border: 2px solid #e8c994; border-radius: 6px; color: #554b54; background-color: #fffdf8; background-image: repeating-linear-gradient(transparent 0 31px,#f2e8dc 32px); box-shadow: 4px 5px 0 #e8c994; font: 1.04rem/2 Georgia,'Times New Roman',serif; }
.note-paper p { margin: 0 0 20px; }.note-paper p:last-child { margin-bottom: 0; }
.note-greeting { color: #b04e76; font-weight: 700; }.note-signoff { padding-top: 10px; color: #805c77; font-style: italic; }.note-signoff strong { display: inline-block; margin-top: 7px; color: #a84972; font-size: 1.07em; }
.note-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; max-width: 690px; margin: 20px auto 2px; color: #936982; font: 700 .75rem/1.4 'Courier New',monospace; letter-spacing: .07em; text-transform: uppercase; }
.note-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; color: #cd7798; }
.note-sky span { position: absolute; opacity: .48; font-size: clamp(20px,5vw,52px); text-shadow: 1px 2px #fff6; }
.note-sky span:nth-child(1){top:5%;left:5%;transform:rotate(-15deg)}.note-sky span:nth-child(2){top:13%;right:6%}.note-sky span:nth-child(3){top:23%;left:3%;font-size:36px}.note-sky span:nth-child(4){top:34%;right:4%;transform:rotate(12deg)}.note-sky span:nth-child(5){top:43%;left:6%}.note-sky span:nth-child(6){top:53%;right:5%;transform:rotate(15deg)}.note-sky span:nth-child(7){top:63%;left:3%;font-size:34px}.note-sky span:nth-child(8){top:72%;right:4%}.note-sky span:nth-child(9){top:82%;left:6%}.note-sky span:nth-child(10){top:89%;right:7%;transform:rotate(-15deg)}.note-sky span:nth-child(11){top:96%;left:28%}.note-sky span:nth-child(12){top:97%;right:27%;font-size:34px}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
