:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#30252b;background:#fff;color-scheme:light;--pink:#e85d8f}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#fff}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
[hidden]{display:none!important}
button:focus-visible{outline:3px solid #dc4e83;outline-offset:5px}.player:focus-visible{outline:none}.player:focus-visible #heart-border{stroke:#bf3872}
.game{--safe-bottom:env(safe-area-inset-bottom,0px);width:min(100%,540px);height:100%;height:100dvh;max-height:100%;position:relative;margin:auto;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;background:#fff;border-left:1px solid #fbf5f7;border-right:1px solid #fbf5f7}
.hud{position:absolute;top:max(18px,env(safe-area-inset-top));left:22px;right:22px;display:flex;justify-content:space-between;align-items:center;z-index:8;pointer-events:none}
.score{display:flex;gap:10px;align-items:center;font-size:28px;font-weight:750;letter-spacing:-1px;font-variant-numeric:tabular-nums;background:#fff9fb;border:1px solid #fae7ee;border-radius:100px;min-width:82px;height:48px;padding:0 16px;box-shadow:0 4px 16px #d6638b05}
.score svg{width:23px;height:23px;fill:var(--pink)}
.icon-button{width:44px;height:44px;border:1px solid #f4e8ed;background:#fff;border-radius:50%;color:#9e8290;display:grid;place-items:center;pointer-events:auto}
.icon-button svg{width:19px;height:19px}
#falling,#effects{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#falling{z-index:2}
.item{position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;will-change:transform;line-height:1;filter:drop-shadow(0 4px 4px #ba638112)}
.item svg{width:100%;height:100%;overflow:visible}
.item.poop{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;filter:drop-shadow(0 5px 3px #4b311b14)}
.floor{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:20px;right:20px;height:1px;background:linear-gradient(90deg,transparent,#f6dce6,transparent)}
.player{position:absolute;left:0;top:0;z-index:4;cursor:grab;will-change:transform;filter:drop-shadow(0 5px 8px #c33f742b);border-radius:40%;touch-action:none}
.player:active{cursor:grabbing}
.player svg{width:100%;height:100%;display:block;pointer-events:none}
#effects{z-index:5}
.spark{position:absolute;color:var(--pink);font-size:19px;line-height:1;will-change:transform,opacity}
#reward{position:absolute;left:50%;top:35%;z-index:7;pointer-events:none;opacity:0;display:flex;align-items:center;flex-direction:column;transform:translate(-50%,-50%);border:2px solid #f9bcd1;background:#fff1f6;border-radius:26px;padding:15px 32px;box-shadow:0 9px 32px #de598d1c;white-space:nowrap}
#reward>span{font-size:42px;font-weight:850;letter-spacing:-1.7px;color:#e2407b}
#reward small{font-size:13px;color:#b96b87;margin-top:2px;font-weight:600}
.overlay{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;background:linear-gradient(#ffffffb3 0%,#fffffff2 28%,#fffffff2 65%,#ffffff00 83%)}
.menu{display:flex;align-items:center;flex-direction:column;transform:translateY(-22px);text-align:center;padding:25px;max-width:100%}
.menu-symbol{font-family:Georgia,serif;font-size:60px;color:#e7749c;line-height:1;margin-bottom:14px}
.menu-symbol.poop-symbol{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:58px;margin-bottom:20px}
.menu-symbol.pause-symbol{font:600 38px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.menu h1{font-size:clamp(28px,8vw,38px);font-weight:750;letter-spacing:-1.5px;margin:0 0 22px}
.rules{display:grid;grid-template-columns:1fr 1fr;gap:13px 22px;align-items:center;font-size:13px;color:#947683;margin-bottom:26px;text-align:left}
.rules span{display:flex;gap:7px;align-items:center}
.rules b{color:var(--pink);font-size:21px;font-weight:600}
#result{margin:0 0 25px;color:#a17f8d;font-size:17px}
.primary{border:0;background:var(--pink);color:#fff;font-size:17px;letter-spacing:-.25px;font-weight:650;min-height:54px;min-width:192px;padding:15px 25px;border-radius:100px;box-shadow:0 7px 18px #e75d8e28;display:flex;align-items:center;justify-content:center;gap:36px;transition:transform .12s,background .12s}
.primary:active{transform:scale(.96);background:#d9487a}
.primary span{font-size:23px;font-weight:400}
.move-hint{position:absolute;left:0;right:0;bottom:calc(150px + env(safe-area-inset-bottom));font-size:12px;text-align:center;color:#b299a4;letter-spacing:.2px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-height:620px){.menu{transform:translateY(-40px)}.menu-symbol{font-size:57px;margin-bottom:10px}.menu h1{margin-bottom:16px}.rules{margin-bottom:23px}.move-hint{bottom:137px;font-size:11px}.hud{top:max(12px,env(safe-area-inset-top))}.score{height:42px;font-size:25px}}
@media(max-height:450px){.menu{transform:translateY(-10px);padding:12px}.menu-symbol{display:none}.menu h1{font-size:27px;margin-bottom:10px}.rules{margin-bottom:13px}.primary{min-height:45px;padding:9px 24px;font-size:15px}.move-hint{display:none}#result{margin-bottom:14px}#reward{top:40%}#reward>span{font-size:30px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.rules img{width:34px;height:34px;object-fit:contain;display:block}
.rules small{grid-column:1/-1;text-align:center;color:#ad8f9d;font-size:11px;margin-top:2px}
.item.booster{border-radius:50%;background:#fff1f6;border:1.5px solid #f5afc8;padding:3px;filter:drop-shadow(0 4px 5px #c43a731c)}
.item.booster img{width:100%;height:100%;object-fit:contain;display:block}
.item.booster b{position:absolute;right:-3px;bottom:-2px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1;display:grid;place-items:center;width:24px;height:24px;background:#fff;border:1px solid #f8d4e2;border-radius:50%;color:#e64c84;box-shadow:0 2px 4px #b33a6d12}
.item.berta-chaos{background:#fff7e9;border-color:#dac3a2}
.boost{position:absolute;left:50%;top:max(77px,calc(env(safe-area-inset-top) + 62px));transform:translateX(-50%);z-index:8;display:flex;align-items:center;gap:8px;padding:6px 13px 9px 8px;border:1px solid #f7d0df;border-radius:18px;background:#fff7fa;box-shadow:0 4px 14px #d8547c09;white-space:nowrap;overflow:hidden;pointer-events:none;font-size:12px;color:#b84d75}
.boost img{width:34px;height:34px;object-fit:contain}
.boost b{font-size:12px;min-width:20px;text-align:right;font-variant-numeric:tabular-nums}
.boost-track{position:absolute;left:12px;right:12px;bottom:4px;height:2px;background:#f6dce6;border-radius:2px;overflow:hidden}
.boost-track i{display:block;width:100%;height:100%;background:#e45c8c;transform-origin:left}
.boost[data-type=chaos]{background:#fff9ed;border-color:#e8d7be;color:#987744}
.boost[data-type=chaos] .boost-track{background:#eadfcf}.boost[data-type=chaos] .boost-track i{background:#b49264}
.player.has-love>svg{animation:heartbeat var(--pulse-duration,1.6s) ease-in-out infinite;transform-origin:50% 65%;animation-play-state:paused}
.game[data-state=running] .player.has-love>svg{animation-play-state:running}
@keyframes heartbeat{0%,100%{transform:scale(1)}12%{transform:scale(1.035)}24%{transform:scale(1)}36%{transform:scale(1.025)}52%{transform:scale(1)}}
.overlay[data-kind=over] h1{font-size:clamp(25px,7vw,31px);line-height:1.13;max-width:310px;letter-spacing:-1px;margin-bottom:12px}
#end-message{font-size:16px;line-height:1.4;color:#9e7186;margin:0 0 15px}
@media(max-height:620px){.menu-symbol{font-size:43px}.rules{gap:10px 17px;margin-bottom:20px}.rules img{width:29px;height:29px}.menu h1{font-size:28px}.overlay[data-kind=over] h1{font-size:25px}.overlay[data-kind=over] .menu-symbol{font-size:45px}.menu{transform:translateY(-34px)}}
@media(max-height:450px){.rules{grid-template-columns:1fr 1fr 1fr 1fr;gap:8px 12px;margin-bottom:11px;font-size:11px}.rules small{grid-column:1/-1}.rules img{width:27px;height:27px}.menu{transform:translateY(-16px)}.menu h1{font-size:25px}.overlay[data-kind=over] h1{max-width:350px;font-size:24px}#end-message{margin-bottom:8px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.player.has-love>svg{animation:none}}

.game::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;transition:opacity .2s;background:linear-gradient(90deg,#ffdfec9c,transparent 24%,transparent 76%,#ffdfec9c)}
.game[data-boost=love]::before,.game[data-boost=chaos]::before{opacity:1}
.game[data-boost=chaos]::before{background:linear-gradient(90deg,#f4e1bf8c,transparent 24%,transparent 76%,#f4e1bf8c)}
.game[data-boost=love] .player{filter:drop-shadow(0 0 13px #eb4e9199)}
.game[data-boost=chaos] .player{filter:drop-shadow(0 0 11px #bb996e70)}
.boost{font-weight:600}
@media(prefers-reduced-motion:reduce){.game::before{transition:none}}

.boost-copy{display:flex;flex-direction:column;gap:3px}.boost-copy small{font-size:10px;font-weight:400;color:#aa5c7b}
