:root {
  color-scheme: dark;
  --background: #190d22;
  --panel: #34172f;
  --panel-edge: #4b2343;
  --text: #f9f0f8;
  --muted: #ae9aad;
  --pink: #dc5099;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.6; letter-spacing: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #f498c7; outline-offset: 4px; }
img { display: block; max-width: 100%; }
button svg, a svg { pointer-events: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
.love-page { position: relative; z-index: 1; width: min(100%, 430px); margin: 0 auto; padding: 47px 20px 32px; }
.gift-entry { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; width: min(100%, 430px); min-height: 100svh; margin: 0 auto; padding: 50px 26px 40px; text-align: center; }
.gift-entry > :not(.login-hearts) { position: relative; z-index: 1; }
.login-hearts { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.login-hearts span { position: absolute; bottom: -35px; left: var(--left); color: #e367a6; opacity: 0; font-size: var(--size); animation: login-float var(--duration) var(--delay) linear infinite; }
.login-hearts span:nth-child(3n) { color: #f1a6c7; }
@keyframes login-float { 0% { opacity: 0; transform: translateY(0) translateX(0) rotate(-12deg); } 15% { opacity: .7; } 80% { opacity: .5; } 100% { opacity: 0; transform: translateY(-120svh) translateX(var(--sway)) rotate(17deg); } }
.gift-entry h1 { font-size: 37px; }
.gift-dedication { margin-top: 21px; color: #e7ccdf; font-size: 15px; line-height: 1.8; }
.gift-form { width: 100%; margin-top: 37px; }
.gift-form label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.gift-form input { display: block; width: 100%; height: 50px; padding: 0 17px; border: 1px solid #623153; border-radius: 12px; background: #2b152a; color: #fff1f9; outline: none; text-align: center; font-size: 16px; }
.gift-form input:focus { border-color: #dc5099; box-shadow: 0 0 0 3px #dc509920; }
.gift-form input::placeholder { color: #946583; }
.gift-form input[aria-invalid="true"] { border-color: #e38f9d; }
.answer-feedback { min-height: 26px; margin-top: 6px; color: #eda5bc; font-size: 12px; }
.open-gift { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 1px solid #d9539c; border-radius: 12px; background: #ad326f; color: #fff; font-size: 14px; }
.open-gift svg { width: 17px; height: 17px; }
.hint-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 14px; padding: 5px 14px; border: 0; background: transparent; color: #ce90b2; font-size: 13px; }
.hint-button svg { width: 15px; height: 15px; }
.nickname-hint { margin-top: 10px; color: #bfa4b8; font-size: 13px; line-height: 1.8; }
.hint-count { margin-bottom: 6px; color: #e28ab6; font-size: 11px; }
.nickname-hint strong { color: #e7b5d1; font-weight: 600; }
.more-hints { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 13px; color: #db71a6; font-size: 12px; text-decoration: none; }
.more-hints svg { width: 15px; height: 15px; }
.dedication { margin-top: 16px; color: #e5c6dc; font-size: 14px; }
.gift-opened { animation: gift-appear 650ms ease; }
.noscript-note { text-align: center; padding: 20px; }
@keyframes gift-appear { from { opacity: 0; } to { opacity: 1; } }
.opening { text-align: center; }
.opening-heart { display: flex; justify-content: center; margin-bottom: 22px; }
.opening-heart svg { width: 29px; height: 29px; fill: var(--pink); stroke: var(--pink); filter: drop-shadow(0 0 14px #d145995c); animation: heartbeat 3s ease-in-out infinite; }
h1 { font-size: 32px; font-weight: 700; line-height: 1.15; }
.since { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.since svg { width: 14px; height: 14px; color: var(--pink); }
.calendar-counter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 29px; }
.time-unit { display: flex; min-height: 88px; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--panel-edge); border-radius: 26px; background: var(--panel); box-shadow: inset 0 0 18px #b24a8c08; }
.time-unit strong { color: var(--pink); font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.time-unit span { margin-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.clock-counter { display: inline-flex; justify-content: center; gap: 12px; min-width: 155px; padding: 6px 15px; margin-top: 10px; border: 1px solid var(--panel-edge); border-radius: 22px; background: var(--panel); color: #cba8c3; font-family: "Courier New", monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.clock-counter b { font-weight: 400; }
.total-days { margin-top: 17px; color: var(--muted); font-size: 12px; }
.total-days > span:first-child, .total-days > span:last-child { color: var(--pink); font-size: 9px; }
.music-panel { margin-top: 42px; padding: 24px 16px 26px; border: 1px solid var(--panel-edge); border-radius: 28px; background: var(--panel); text-align: center; }
.music-symbol { width: 22px; height: 22px; margin: 0 auto 6px; color: var(--pink); }
.music-panel h2 { font-size: 23px; line-height: 1.3; }
.music-panel > p { color: var(--muted); font-size: 13px; }
.music-discover { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; margin-top: 14px; padding: 3px 8px; border: 0; background: transparent; color: var(--pink); font-size: 13px; }
.music-discover svg { width: 11px; height: 11px; fill: currentColor; }
.song-player { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 10px; border: 1px solid #633057; border-radius: 18px; background: #4a2341; text-align: left; }
.song-player > img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.song-info { min-width: 0; flex: 1; line-height: 1.4; }
.song-info strong { display: block; overflow: hidden; font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.song-info span { color: #c7aec3; font-size: 11px; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #1e13277a; }
.icon-button svg { width: 20px; height: 20px; }
.song-play { background: var(--pink); }
.song-play svg { width: 17px; height: 17px; fill: currentColor; }
.song-stop { background: #683451; }
.song-stop svg { width: 13px; height: 13px; fill: currentColor; }
.song-stop:disabled { opacity: .45; cursor: default; }
.music-feedback:empty { display: none; }
.music-panel .music-feedback { margin-top: 12px; color: #eda5bc; font-size: 12px; }
.love-letter { padding: 43px 11px 0; text-align: center; font-size: 14px; line-height: 1.8; }
.love-letter p + p { margin-top: 27px; }
.letter-signature { padding-top: 4px; }
.section-heading { text-align: center; }
.section-heading h2 { font-size: 28px; line-height: 1.25; }
.section-heading p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.moments-section { margin-top: 59px; }
.gallery { margin-top: 27px; }
.gallery-photo { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--panel-edge); border-radius: 26px; background: #241529; touch-action: pan-y; }
.gallery-photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo-count { position: absolute; top: 13px; right: 14px; padding: 0 6px; color: #fff; background: #0004; border-radius: 6px; font-size: 10px; text-shadow: 0 1px 3px #000; }
.gallery-prev, .gallery-next { position: absolute; top: calc(50% - 18px); background: #1c171778; }
.gallery-prev { left: 9px; }
.gallery-next { right: 9px; }
.gallery-sound { position: absolute; right: 12px; bottom: 12px; background: #a73270; }
.photo-caption { min-height: 25px; margin-top: 11px; color: #c3a7b8; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-style: italic; text-align: center; }
.gallery-thumbnails { display: flex; gap: 8px; justify-content: flex-start; overflow-x: auto; width: 100%; padding: 5px 2px 8px; scrollbar-width: thin; scrollbar-color: #582c4c transparent; }
.thumbnail { width: 35px; height: 41px; flex: 0 0 35px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #321b30; opacity: .55; transition: opacity 180ms ease, border-color 180ms ease; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail[aria-pressed="true"] { border-color: #d976a8; opacity: 1; }
.thumbnail:hover { opacity: 1; }
.history-section { margin-top: 51px; }
.videos-section { margin-top: 49px; }
.couple-video { margin-top: 24px; }
.couple-video video { display: block; position: relative; width: 100%; height: auto; object-fit: contain; border: 1px solid var(--panel-edge); border-radius: 22px; background: #120a17; }
.couple-video figcaption { padding-top: 10px; color: #c3a7b8; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-style: italic; text-align: center; }
.timeline { position: relative; margin-top: 32px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; top: 15px; bottom: 25px; left: 12px; width: 1px; background: #62304e; }
.memory { position: relative; margin-bottom: 26px; border: 1px solid #402036; border-radius: 19px; background: var(--panel); }
.timeline-icon { position: absolute; top: 16px; left: -32px; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #66324f; border-radius: 50%; background: var(--background); color: #bd518e; }
.timeline-icon svg { width: 13px; height: 13px; }
.memory-content { padding: 17px 16px 18px; }
.memory time { display: block; margin-bottom: 6px; color: #b96092; font-size: 10px; line-height: 1.4; text-transform: uppercase; }
.memory h3 { font-size: 20px; line-height: 1.25; }
.memory p { margin-top: 10px; color: #d6bdd0; font-size: 13px; line-height: 1.65; overflow-wrap: break-word; }
.memory-photo { margin-top: 17px; }
.memory-photo img, .memory-photo video { display: block; width: 100%; height: auto; border-radius: 19px; }
.memory-photo video { position: relative; object-fit: contain; background: #120a17; }
.memory-photo figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; font-style: italic; text-align: center; }
.confession-print a { display: block; border-radius: 8px; }
.confession-print img { border-radius: 8px; }
.voice-memories { margin-top: 22px; }
.voice-memory + .voice-memory { margin-top: 16px; }
.voice-memory figcaption { margin-bottom: 7px; color: #d6bdd0; font-size: 11px; overflow-wrap: break-word; }
.voice-message { display: block; width: 100%; max-width: 100%; height: 54px; }
.ending { padding: 23px 0 12px; text-align: center; }
.ending > svg { width: 22px; height: 22px; fill: var(--pink); color: var(--pink); margin-bottom: 15px; }
.ending p { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.5; }
.ending .ending-declaration { margin-top: 22px; color: #f2a8ce; }
.back-to-top { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-top: 23px; color: #be84a9; }
.back-to-top svg { width: 18px; height: 18px; }
.floating-hearts { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; width: 100%; }
.floating-hearts span { position: absolute; bottom: -20px; left: var(--left); color: var(--pink); opacity: 0; font-size: var(--size, 8px); animation: float-heart var(--duration) var(--delay) linear infinite; }
.floating-hearts span:nth-child(4n) { color: #f1a6c7; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.09); } 24% { transform: scale(1); } }
@keyframes float-heart { 0% { transform: translateY(0) translateX(0); opacity: 0; } 12%, 75% { opacity: .45; } 100% { transform: translateY(-110vh) translateX(var(--sway, 20px)); opacity: 0; } }
@media (max-width: 360px) { .love-page { padding-inline: 16px; } h1 { font-size: 29px; } .calendar-counter { gap: 8px; } .time-unit { border-radius: 23px; } .section-heading h2 { font-size: 26px; } .memory-content { padding: 15px 12px; } .memory h3 { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .floating-hearts, .login-hearts { display: none; } }
