*{box-sizing:border-box}body{margin:0;background:radial-gradient(at top,#774568,#21152f 65%);color:#fff1f8;font:16px system-ui,sans-serif;min-height:100vh}main{max-width:520px;margin:auto;padding:24px}header{font-size:32px;letter-spacing:5px;color:#ffc4d7;text-align:center}small{display:block;font-size:12px;letter-spacing:2px}section{margin-top:24px;background:#ffffff12;border:1px solid #ffffff33;border-radius:24px;padding:22px;box-shadow:0 20px 50px #0004}input,button{display:block;width:100%;padding:14px;margin:10px 0;border-radius:14px;border:1px solid #ffffff33;font:inherit}input{background:#24192e;color:white}button{background:linear-gradient(120deg,#e66a9e,#995abf);color:white;cursor:pointer}.hero{text-align:center;font-size:70px;color:#ffc1d7;text-shadow:0 8px 25px #ff78b9}.hero p{font-size:16px}#messages{max-height:300px;overflow:auto}.mine,.theirs{padding:12px;border-radius:15px;background:#9e4d86;overflow-wrap:anywhere}.theirs{background:#48365d}footer{text-align:center;opacity:.6;margin-top:30px}[hidden]{display:none!important}
body[data-theme=night]{background:#171324;color:#f8e5ff}body[data-theme=lavender]{background:#e8dcff;color:#42265d}#animation{font-size:70px;text-align:center}select{padding:12px;border-radius:12px;margin:5px}#extras{margin-top:20px}#memories p{padding:10px;border-radius:12px;background:#ffffff22}

body{background-attachment:fixed;background-position:center}
textarea{display:block;width:100%;padding:12px;font:inherit;border-radius:12px;background:#24192e;color:white}
#gameResult{white-space:pre-line;overflow-wrap:anywhere}
#stats{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#stats dd{margin:0;text-align:right}
#snapshots{overflow-wrap:anywhere}
@media(max-width:400px){main,section{padding:14px}video{max-width:100%;height:auto}}
dialog{max-width:min(420px,90vw);border:1px solid #f1aace77;border-radius:22px;background:#321f3b;color:#fff1f8;padding:24px}
dialog::backdrop{background:#180e20ed}

:root{color-scheme:dark}
body{background-image:radial-gradient(ellipse at 28% 0%,#73355c,#392442 40%,#191423 80%);background-attachment:fixed}
main{max-width:570px}
header{font-weight:700;padding-block:14px}
section{background:linear-gradient(150deg,#eed1ed14,#b790cb08);box-shadow:0 18px 35px #10091655}
button{background:linear-gradient(115deg,#a33d72,#704594);font-weight:600}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ffd0e6;outline-offset:2px}
#chat,#games{padding-top:12px}
.heart-orbit,#animation{display:grid;place-items:center;perspective:450px;overflow:hidden}
.heart-orbit{min-height:135px}
.heart-model,.gift-model{position:relative;width:90px;height:90px;transform-style:preserve-3d}
.heart-model{animation:float-heart 6s ease-in-out infinite}
.heart-model i{position:absolute;inset:8px;transform:translateZ(var(--depth,0px)) rotate(-45deg);border-radius:6px;background:linear-gradient(135deg,#ffb1d2,#c3417a)}
.heart-model i::before,.heart-model i::after{content:"";position:absolute;inset:0;background:inherit;border-radius:50%}
.heart-model i::before{transform:translateY(-48%)}
.heart-model i::after{transform:translateX(48%)}
.heart-model i:nth-child(1){--depth:-10px}.heart-model i:nth-child(2){--depth:-6px}.heart-model i:nth-child(3){--depth:-2px}
.heart-model i:nth-child(4){--depth:2px}.heart-model i:nth-child(5){--depth:6px}.heart-model i:nth-child(6){--depth:10px}
@keyframes float-heart{0%,100%{transform:translateY(10px) rotateY(-23deg) scale(.64)}50%{transform:translateY(3px) rotateY(23deg) scale(.74)}}
#animation:not(:empty){height:120px}
.gift-model{animation:gift-turn 2.15s ease both}
.gift-model i{position:absolute;display:block}
.flower i{width:38px;height:54px;top:17px;left:26px;border-radius:65% 38% 68% 40%;background:radial-gradient(at 30% 10%,#ffb0be,#a82455 78%);transform:rotateY(calc(var(--part)*60deg)) rotateX(-32deg) translateZ(18px)}
.flower::after{content:"";position:absolute;top:61px;left:43px;width:6px;height:33px;background:linear-gradient(90deg,#85cc9d,#377c6a);border-radius:5px}
.present i{inset:18px;background:linear-gradient(90deg,#b13c78 42%,#ffdb95 42% 58%,#a13470 58%);border:1px solid #ffd0e6;transform:rotateY(calc(var(--part)*90deg)) translateZ(27px)}
.present i:nth-child(5){transform:rotateX(90deg) translateZ(27px)}
.present i:nth-child(6){transform:rotateX(-90deg) translateZ(27px)}
.hug i{background:radial-gradient(at 30% 20%,#fbe7c1,#ce8a62);border-radius:50%;width:28px;height:28px;top:16px;left:19px;transform:translateZ(12px)}
.hug i:nth-child(even){left:45px;transform:translateZ(-12px);background:radial-gradient(at 30% 20%,#ffe2f0,#c16d9b)}
.hug i:nth-child(3),.hug i:nth-child(4){top:39px;height:39px;border-radius:45% 45% 32% 32%}
.hug i:nth-child(5),.hug i:nth-child(6){top:46px;width:47px;height:12px;transform:translateZ(24px) rotate(16deg)}
.hug i:nth-child(6){left:24px;transform:translateZ(20px) rotate(-16deg)}
.kiss i{top:30px;left:16px;width:58px;height:20px;border-radius:70% 75% 22% 25%;background:linear-gradient(#ff9ab2,#bf2858);transform:translateZ(calc(var(--part)*3px)) rotate(-12deg)}
.kiss i:nth-child(even){top:49px;border-radius:18% 25% 80% 82%;transform:translateZ(calc(var(--part)*3px)) rotate(-12deg)}
@keyframes gift-turn{0%{opacity:0;transform:scale(.3) rotateY(-70deg)}24%{opacity:1}80%{opacity:1;transform:scale(1.1) rotateY(65deg)}100%{opacity:0;transform:scale(.95) translateY(-12px) rotateY(80deg)}}
@media(prefers-reduced-motion:reduce){.heart-model,.gift-model{animation:none}}
.mesh-gift{width:118px;height:118px;animation:mesh-enter 2.15s ease both}
.mesh-gift canvas{display:block;width:100%;height:100%}
.flower.mesh-gift::after{display:none}
@keyframes mesh-enter{0%{opacity:0;transform:scale(.5)}24%{opacity:1;transform:scale(1)}82%{opacity:1}100%{opacity:0;transform:translateY(-12px) scale(.92)}}
@media(prefers-reduced-motion:reduce){.mesh-gift{animation:none}}
.language-picker{display:flex;justify-content:flex-end;align-items:center;gap:8px}
