@font-face{font-family:'Great Vibes';font-weight:400;font-display:swap;src:url(/fonts/great-vibes-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Quicksand';font-weight:400;font-display:swap;src:url(/fonts/quicksand-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Quicksand';font-weight:700;font-display:swap;src:url(/fonts/quicksand-latin-700-normal.woff2) format('woff2')}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{background:#0f0c29}
body{font-family:Quicksand,'Segoe UI',system-ui,sans-serif;color:#f9eef0;min-height:100vh;line-height:1.6}
main{max-width:640px;margin:0 auto;padding:16px 16px 100px}
h1,h2,.sign{font-family:'Great Vibes',cursive;font-weight:400;color:#f7e7ce;text-align:center;line-height:1.3}
h1{font-size:2.8rem}h2{font-size:1.9rem;margin-bottom:6px}
.hero{text-align:center;padding:12px 0}
.heart{font-size:3.5rem;color:#d98c9a;animation:beat 1.3s infinite}
@keyframes beat{0%,100%{transform:scale(1)}15%{transform:scale(1.25)}30%{transform:scale(1)}}
.card{background:rgba(255,255,255,.09);border:1px solid rgba(232,180,184,.28);border-radius:22px;padding:18px;margin:16px 0;overflow-wrap:anywhere}
.card p{margin:6px 0}.card ul{padding-left:20px}
.center,.sub{text-align:center}.sub{color:#d9c3cc}
.big{font-size:1.15rem;text-align:center}
.poem,#note,.reply{white-space:pre-line}
.sign{font-size:1.8rem;text-align:right}
.party{background:linear-gradient(90deg,#d98c9a,#6b4a8f);text-align:center;font-weight:700;font-size:1.2rem}
.count{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px;text-align:center}
.count div{background:rgba(0,0,0,.25);border-radius:14px;padding:10px 2px}
.count b{display:block;font-size:1.5rem}.count small{color:#d9c3cc}
input,textarea,select{width:100%;font:inherit;font-size:16px;color:#fff;background:rgba(0,0,0,.3);border:1px solid rgba(232,180,184,.35);border-radius:14px;padding:11px 14px;margin:6px 0}
select option{color:#000}textarea{min-height:90px;resize:vertical}
button{font:inherit;font-weight:700;color:#fff;background:linear-gradient(135deg,#b76e79,#8a4a6d);border:0;border-radius:999px;padding:11px 20px;margin:6px 6px 0 0;cursor:pointer}
button:active{transform:scale(.96)}
.reply{background:rgba(232,180,184,.2);padding:10px;border-radius:12px}
.presence{position:sticky;top:0;z-index:5;text-align:center;font-size:.85rem;padding:7px 12px;background:#0f0c29}
nav{position:fixed;bottom:0;left:0;right:0;z-index:6;display:flex;background:#0f0c29;border-top:1px solid #5a4358;padding-bottom:env(safe-area-inset-bottom)}
nav a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;padding:8px 0;color:#bfa9bd;text-decoration:none;font-size:.72rem}
nav a.active{color:#fff;font-weight:700}.icon{font-size:1.35rem}
nav a[data-badge]:not([data-badge=""])::after{content:attr(data-badge);position:absolute;top:3px;right:18%;background:#d98c9a;color:#fff;border-radius:99px;min-width:18px;text-align:center;font-size:.7rem}
.famoo-only,.moiz-only{display:none}
.is-famoo .famoo-only,.is-moiz .moiz-only{display:block}
body[data-page=chat]{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body[data-page=chat] .presence{display:none}
body[data-page=chat] main{flex:1;min-height:0;width:100%;padding:0 0 calc(66px + env(safe-area-inset-bottom))}
.chat{height:100%;display:flex;flex-direction:column}
.chat-head{display:flex;gap:12px;align-items:center;padding:10px 14px;background:#0f0c29}
.avatar{width:42px;height:42px;border-radius:50%;background:#d98c9a;display:grid;place-items:center;font-weight:700}
.status{font-size:.8rem;color:#bfa9bd}.status.on{color:#8dffb0}
.messages{flex:1;min-height:0;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.msg{max-width:80%;padding:8px 13px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere}
.msg small{display:block;font-size:.65rem;opacity:.75;text-align:right}
.mine{align-self:flex-end;background:#9d4e73;border-bottom-right-radius:4px}
.theirs{align-self:flex-start;background:rgba(255,255,255,.15);border-bottom-left-radius:4px}
.quick{display:flex;gap:6px;overflow-x:auto;padding:0 10px;flex-shrink:0}
.quick button{background:rgba(255,255,255,.12);padding:5px 13px;margin:0;white-space:nowrap}
.composer{display:flex;gap:8px;align-items:center;padding:6px 10px}
.composer input{flex:1;min-width:0;margin:0}.composer button{margin:0}
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#fff;color:#1a1025;padding:9px 18px;border-radius:99px;z-index:20;font-weight:700;white-space:nowrap}
/* sky */
.sky{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1;overflow:hidden;pointer-events:none;background:radial-gradient(circle at 50% 0,#2d1b4e,#1a1025 45%,#0f0c29)}
.star{position:absolute;width:2px;height:2px;border-radius:50%;background:#f7e7ce;animation:twinkle 4s ease-in-out infinite}
.float{position:absolute;bottom:-40px;font-style:normal;color:#e8b4b8;opacity:0;animation:rise linear infinite}
@keyframes twinkle{0%,100%{opacity:.15}50%{opacity:1}}
@keyframes rise{0%{transform:translateY(0) rotate(-12deg);opacity:0}10%,80%{opacity:.4}100%{transform:translateY(-115vh) rotate(18deg);opacity:0}}
@keyframes fadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.card,.hero,h1,figure{animation:fadeIn .5s ease both}
@media (prefers-reduced-motion:reduce){.float{display:none}.star,.card,.hero,h1,figure,.heart{animation:none}}
button,a,.cell{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.btn{display:inline-block;color:#f7e7ce;border:1px solid #e8b4b8;border-radius:999px;padding:9px 18px;margin-top:6px;text-decoration:none;font-weight:700}
.ghost{background:none;border:1px solid #5a4358}
label{display:block;margin-bottom:8px}
nav a{min-width:0;font-size:.66rem}
.lock{max-width:360px;margin:12vh auto 0;text-align:center}
.lock input{text-align:center}
.show input{width:auto;margin:0 8px 0 0;vertical-align:middle}
.error{color:#ff9aa8;min-height:1.6em}
.tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0}
.tabs a,.tabs button{margin:0;padding:8px 14px;border-radius:99px;border:1px solid #e8b4b8;background:none;color:#f7e7ce;text-decoration:none;font-weight:700;font-size:.85rem}
.tabs .active{background:#e8b4b8;color:#1a1025}
.gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gallery.wide{grid-template-columns:1fr}
figure{background:rgba(255,255,255,.08);border:1px solid rgba(232,180,184,.35);border-radius:18px;overflow:hidden;cursor:pointer}
figure img{display:block;width:100%;height:240px;object-fit:cover;background:#2d1b4e}
.wide figure img{height:auto;min-height:200px}
figcaption{padding:9px 10px 12px;text-align:center;font-size:.85rem;color:#f7e7ce}
.wide figcaption{font-size:1.05rem}
.viewer{position:fixed;top:0;left:0;right:0;bottom:0;z-index:30;background:#0f0c29;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:14px;text-align:center}
.viewer img{max-width:100%;max-height:72vh;border-radius:14px;min-height:0;object-fit:contain}
#board{margin:12px auto;max-width:360px}
#board.ttt,#board.four,#board.memory{display:grid;gap:6px}
#board.ttt{grid-template-columns:repeat(3,1fr)}
#board.four{grid-template-columns:repeat(7,1fr);gap:4px}
#board.memory{grid-template-columns:repeat(4,1fr)}
.cell{margin:0;padding:0;min-width:0;aspect-ratio:1;height:auto;min-height:36px;border-radius:12px;background:rgba(255,255,255,.1);border:1px solid rgba(232,180,184,.4);font-size:2rem;display:flex;align-items:center;justify-content:center}
.four .cell{border-radius:50%;font-size:1.25rem}
.cell.famoo{background:rgba(232,180,184,.35)}.cell.moiz{background:rgba(247,231,206,.3)}
.row{display:flex;gap:10px;justify-content:center}.row .cell{width:90px}.row .cell:disabled{opacity:.4}
.field{position:relative;height:320px;overflow:hidden;border-radius:16px;background:rgba(0,0,0,.3);touch-action:none;-webkit-user-select:none;user-select:none}
.drop{position:absolute;top:0;margin:0;padding:6px;background:none;font-size:2rem;animation:fall 2.4s linear forwards}
@keyframes fall{from{top:-50px}to{top:320px}}
.pending{opacity:.6}
.pinbox{position:relative;display:block}
.pinbox input{padding-left:48px;padding-right:48px}
.eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);margin:0;padding:8px;width:38px;height:38px;background:none;color:#e8b4b8;display:flex}
.eye:active{transform:translateY(-50%) scale(.92)}
.eye svg{width:22px;height:22px}
nav svg{width:24px;height:24px;margin-bottom:2px}
nav a.active svg{color:#e8b4b8;filter:drop-shadow(0 0 6px #e8b4b8)}
.more{position:fixed;right:10px;bottom:calc(68px + env(safe-area-inset-bottom));z-index:8;background:#1a1025;border:1px solid #e8b4b8;border-radius:18px;padding:6px;min-width:190px}
.more a{display:flex;gap:12px;align-items:center;padding:11px 14px;color:#f7e7ce;text-decoration:none;font-weight:700}
.more svg{width:22px;height:22px}
.upload{cursor:pointer}
.crown{font-size:3.2rem;animation:beat 2s infinite}
.burst{position:fixed;bottom:-50px;z-index:40;color:#ff8fab;font-style:normal;pointer-events:none;animation:shoot 2.4s ease-out both}
@keyframes shoot{0%{transform:translateY(0);opacity:1}100%{transform:translateY(-95vh);opacity:0}}
#bucket{list-style:none;padding:0!important}
#bucket li{display:flex;align-items:center;gap:10px;margin-top:8px}
#bucket li span{flex:1;min-width:0}
#bucket li.done span{text-decoration:line-through;opacity:.6}
.tick{flex-shrink:0;width:34px;height:34px;padding:0;margin:0}
