@font-face{font-family:Fredoka;src:url("fredoka-latin.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
:root{--rox:#9d1d96;--grape:#662d91;--dark:#3d0f3b;--green:#76bc21;--green-d:#4f8f12;--orange:#ff8300;--blush:#fde9f2;--cream:#fffaf6;--ink:#2a1029;--wall:#fde9f2;--wood:#ffe3b8;
--f:"Fredoka","Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:var(--wall);font-family:var(--f);color:var(--ink);
 -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;overscroll-behavior:none}
img{-webkit-user-drag:none;user-select:none}
button,a.big{font-family:inherit;-webkit-appearance:none;appearance:none}
#app{position:absolute;left:0;top:0;width:360px;height:640px;transform-origin:0 0;overflow:hidden;
 background:
  radial-gradient(circle at 20% 12%,rgba(255,255,255,.7) 0 3px,transparent 4px) 0 0/46px 46px,
  linear-gradient(180deg,#fff4f8 0%,var(--wall) 60%)}
.screen{position:absolute;inset:0;display:none;flex-direction:column}
.screen.on{display:flex}
/* top bar */
.bar{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 10px 4px;height:66px;position:relative;z-index:5}
.ib{position:relative;width:52px;height:52px;flex:0 0 auto;border:0;border-radius:18px;background:var(--cream);box-shadow:0 4px 0 rgba(61,15,59,.25);display:grid;place-items:center;cursor:pointer;padding:0;transition:transform .1s}
.ib:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(61,15,59,.25)}
.ib svg{width:34px;height:34px;fill:none;stroke:var(--grape);stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
.ib svg rect{fill:var(--grape);stroke:none}
.ib svg .spk{fill:var(--grape)}
.ib .woff{display:none}.muted .ib .won{display:none}.muted .ib .woff{display:block}
.ib:disabled{opacity:.4}
.hint{flex:1 1 auto;text-align:center;font-weight:600;font-size:19px;line-height:1.1;color:var(--grape)}
.wiggle{animation:wig .45s}
@keyframes wig{20%{transform:rotate(-10deg)}40%{transform:rotate(9deg)}60%{transform:rotate(-6deg)}80%{transform:rotate(4deg)}}
/* big buttons */
.big{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:26px;height:64px;padding:0 22px 0 16px;font-size:24px;font-weight:700;color:#fff;cursor:pointer;
 box-shadow:0 6px 0 rgba(0,0,0,.22);text-decoration:none;transition:transform .1s,filter .2s}
.big:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(0,0,0,.22)}
.big svg{width:34px;height:34px;fill:#fff;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.big.go{background:var(--green)}
.big.go svg path{fill:#fff}
.big.save{background:var(--rox)}
.big.save svg path,.big.go svg rect{fill:none}
#bAgain svg path{fill:none}
.big[hidden]{display:none}
.nextrow{flex:0 0 auto;display:flex;justify-content:center;gap:12px;padding:6px 12px 14px;z-index:6}
.nextrow.two .big{flex:1 1 0;padding:0 12px;font-size:21px}
/* title */
#sTitle{align-items:center;justify-content:space-between;padding:14px 0 18px}
.t-logo{width:150px;height:auto;margin-top:6px}
.t-ttl{margin:4px 0 0;font-size:40px;font-weight:700;color:var(--rox);letter-spacing:.5px;text-shadow:0 3px 0 #fff,0 5px 0 rgba(157,29,150,.18);text-align:center;line-height:1}
.t-stage{position:relative;flex:1 1 auto;width:100%;max-width:400px;min-height:0;max-height:440px;margin:6px 0 16px}
.t-stage img{position:absolute;bottom:0;height:auto}
.t-rex{left:2%;height:72%!important;width:auto!important}
.t-ruby{right:2%;height:70%!important;width:auto!important}
.t-roxy{left:50%;transform:translateX(-50%);height:36%!important;width:auto!important;bottom:0!important;z-index:2}
.t-blender{position:absolute;left:50%;bottom:30%;width:31%;transform:translateX(-50%)}
.t-blender svg{width:100%;height:auto;display:block}
#bStart{height:72px;font-size:28px;padding:0 28px 0 20px;animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.06)}}
/* kitchen */
.counter{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:22px}
.counter::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30px;background:linear-gradient(#f6c7dd,#eeb2cf);border-top:4px solid var(--ink);z-index:0}
.bl-wrap{position:relative;height:100%;max-height:330px;aspect-ratio:220/330;z-index:1}
.bl-wrap svg{width:100%;height:100%;display:block;overflow:visible}
.bl-wrap.full{animation:wig .45s}
.slots{position:absolute;right:12px;bottom:40px;display:grid;grid-template-columns:repeat(2,14px);gap:5px;z-index:2}
.slots i{width:14px;height:14px;border-radius:50%;border:3px solid var(--grape);background:#fff}
.slots i.f{background:var(--rox)}
.ctl{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:8px 12px;background:#eeb2cf}
.big.blend{flex:1 1 auto;background:var(--orange);height:60px}
.big.blend svg path{fill:none}
.big.blend:disabled{filter:grayscale(1) brightness(1.15);opacity:.55;box-shadow:0 4px 0 rgba(0,0,0,.15)}
.big.blend.ready{animation:pulse 1.2s ease-in-out infinite}
.tray{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px 10px 14px;background:linear-gradient(#ffe7c2,#ffd9a1);border-top:4px solid var(--ink)}
.it{position:relative;border:0;border-radius:20px;background:var(--cream);box-shadow:0 4px 0 rgba(120,70,20,.3);height:74px;padding:2px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;cursor:pointer;touch-action:none}
.it svg{width:50px;height:50px;pointer-events:none}
.it span{font-size:11.5px;font-weight:600;color:var(--grape);line-height:1;margin-top:1px;white-space:nowrap;pointer-events:none}
.it:active{transform:scale(.94)}
.it.dim{opacity:.45}
.ghost{position:absolute;width:64px;height:64px;margin:-32px 0 0 -32px;z-index:30;pointer-events:none;filter:drop-shadow(0 6px 6px rgba(0,0,0,.25))}
.ghost svg{width:100%;height:100%}
@media (max-height:620px){.tray{gap:6px;padding:8px 10px 10px}.it{height:66px}.it svg{width:44px;height:44px}}
.blender .items>g{transform-box:fill-box;transform-origin:center;cursor:pointer}
.shake{animation:shake .12s linear infinite}
@keyframes shake{0%{transform:translate(0,0) rotate(0)}25%{transform:translate(-3px,1px) rotate(-1.5deg)}50%{transform:translate(2px,-2px) rotate(1deg)}75%{transform:translate(3px,1px) rotate(1.5deg)}100%{transform:translate(0,0) rotate(0)}}
.blender .specks{transform-origin:110px 150px}
/* cup screen */
.namebox{flex:1 1 auto;display:flex;align-items:center;gap:6px;min-width:0}
.nm{flex:1 1 auto;min-width:0;border:0;background:#fff;border-radius:18px;box-shadow:0 4px 0 rgba(61,15,59,.2);height:56px;padding:2px 8px;font-weight:700;font-size:19px;line-height:1.05;color:var(--rox);cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center}
.nm.pop{animation:popin .35s}
.dice{width:48px;height:48px;background:#ffd23a}
.dice svg circle{fill:var(--grape);stroke:none}.ib.dice svg rect{fill:#fff;stroke:var(--grape)}
.cupstage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:4px}
.cupwrap{position:relative;height:100%;max-height:420px;aspect-ratio:240/340}
.cupwrap svg{width:100%;height:100%;display:block;overflow:visible}
.tops{flex:0 0 auto;display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:8px 10px;background:linear-gradient(#ffe7c2,#ffd9a1);border-top:4px solid var(--ink)}
.tp{border:0;border-radius:18px;background:var(--cream);box-shadow:0 4px 0 rgba(120,70,20,.3);height:70px;padding:3px 0 0;display:flex;flex-direction:column;align-items:center;cursor:pointer}
.tp svg{width:44px;height:44px}
.tp span{font-size:11px;font-weight:600;color:var(--grape);margin-top:2px;line-height:1}
.tp.on{background:#d9f5b8;box-shadow:0 0 0 3px var(--green) inset,0 4px 0 rgba(120,70,20,.3)}
@keyframes popin{0%{transform:scale(.6)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
.cupsvg [class^=tp-]{transform-box:fill-box;transform-origin:center bottom}
.cupsvg .tp-new{animation:popin .4s ease-out}
/* pouring */
.floatbl{position:absolute;width:104px;height:156px;left:50%;top:6px;margin-left:-52px;z-index:20;transform-origin:50% 40%;pointer-events:none}
.floatbl svg{width:100%;height:100%;display:block}
.stream{position:absolute;width:12px;border-radius:6px;z-index:19;pointer-events:none;display:none;transform-origin:top center}
/* share */
.party{position:relative;flex:1 1 auto;min-height:0;overflow:hidden}
.party .wall{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,#fff 0%,rgba(255,255,255,0) 60%)}
.party .table{position:absolute;left:-10px;right:-10px;bottom:0;height:136px;z-index:3;background:linear-gradient(#ffd9a1 0 22px,#f7c27e 22px 26px,#ffe3b8 26px);border-top:4px solid var(--ink)}
.pal{position:absolute;z-index:2}
.pal img{display:block;width:100%;height:auto}
.pal .pb{display:none;position:absolute;inset:0}
.pal.yum .pa{visibility:hidden}.pal.yum .pb{display:block}
.pal.rex{left:2px;bottom:22px;width:112px}
.pal.ruby{right:2px;bottom:22px;width:110px}
.pal.roxy{left:50%;bottom:2px;width:152px;margin-left:-62px;z-index:5;transform-origin:50% 100%}
.pal.rex .pb img{width:113.75%;margin-left:-4%}
.pal.ruby .pb img{width:105.1%;margin-left:-2.5%}
.pal.roxy .pb img{position:absolute;left:4%;top:0;width:92.5%}
.pal.roxy .tail{transform-origin:85.8% 87.3%}
.pal.roxy.yum .tail{animation:wag .28s ease-in-out infinite alternate}
@keyframes wag{from{transform:rotate(-14deg)}to{transform:rotate(16deg)}}
.dance{animation:dance .9s ease-in-out 2}
@keyframes dance{0%,100%{transform:translateY(0) rotate(0)}20%{transform:translateY(-16px) rotate(-6deg)}40%{transform:translateY(0) rotate(0)}60%{transform:translateY(-16px) rotate(6deg)}80%{transform:translateY(0) rotate(0)}}
.hop{animation:hop .5s ease-in-out 3}
@keyframes hop{50%{transform:translateY(-14px) scale(1.02,.98)}}
.lap{animation:lap .32s ease-in-out 5}
@keyframes lap{50%{transform:rotate(-6deg) translateY(6px)}}
.vessel{position:absolute;border:0;background:none;padding:0;cursor:pointer;z-index:4}
.vessel svg{width:100%;height:100%;display:block;overflow:visible}
.vessel.cupR{left:36px;bottom:112px;width:62px;height:88px}
.vessel.cupU{right:34px;bottom:112px;width:62px;height:88px}
.vessel.bowlX{left:50%;bottom:6px;width:96px;height:48px;margin-left:-118px;z-index:6}
.vessel.todo svg{animation:glow 1.1s ease-in-out infinite}
@keyframes glow{0%,100%{filter:drop-shadow(0 0 0 rgba(255,131,0,0))}50%{filter:drop-shadow(0 0 7px #ff8300) drop-shadow(0 0 3px #fff)}}
.vessel.cupR svg{transform:scaleX(-1)}
@keyframes bob{50%{transform:translateY(-6px)}}
.bub{position:absolute;z-index:25;background:#fff;border:4px solid var(--ink);border-radius:22px;padding:4px 12px;font-weight:700;font-size:24px;color:var(--rox);white-space:nowrap;animation:popin .35s ease-out;pointer-events:none}
.bub::after{content:"";position:absolute;left:50%;bottom:-13px;margin-left:-8px;border:9px solid transparent;border-top-color:var(--ink);border-bottom:0}
.heart{position:absolute;z-index:26;font-size:26px;pointer-events:none;color:#ff4f8b}
.cardstage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:6px 14px}
#cardImg{max-width:100%;max-height:100%;border-radius:18px;box-shadow:0 10px 24px rgba(61,15,59,.28);background:#fff}
#fx{position:absolute;inset:0;pointer-events:none;z-index:40;overflow:hidden}
.conf{position:absolute;width:10px;height:16px;border-radius:3px}

/* share-room decor (fills the extra wall space on tall phones) */
.party .win{position:absolute;left:14px;top:14px;width:92px;height:112px;border:6px solid #fff;border-radius:16px 16px 6px 6px;box-shadow:0 0 0 4px var(--ink);
 background:linear-gradient(#bfe8ff,#e9f8ff 70%,#c9f0b0 70%,#a6de86)}
.party .win::before,.party .win::after{content:"";position:absolute;background:#fff}
.party .win::before{left:50%;top:0;bottom:0;width:6px;margin-left:-3px}
.party .win::after{top:50%;left:0;right:0;height:6px;margin-top:-3px}
.party .win i{position:absolute;right:10px;top:10px;width:22px;height:22px;border-radius:50%;background:#ffd23a}
.party .sign{position:absolute;right:16px;top:20px;width:96px;height:66px;background:var(--cream);border:4px solid var(--ink);border-radius:14px;display:grid;place-items:center;transform:rotate(3deg);box-shadow:0 4px 0 rgba(61,15,59,.15)}
.party .sign img{width:76px;height:auto}
@media (max-height:700px){.party .win{width:78px;height:92px}.party .sign{width:84px;height:58px}.party .sign img{width:66px}}
.it.nudge{animation:wig .6s}

/* site link on the title screen */
#sTitle .back{flex:0 0 auto;display:flex;justify-content:center;padding:8px 12px 0}
#sTitle .backlink{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 16px;border-radius:999px;background:rgba(157,29,150,.1);border:2px solid rgba(157,29,150,.22);color:var(--rox);text-decoration:none;font-weight:700;font-style:italic;font-size:15px;letter-spacing:.3px;opacity:.9}
#sTitle .backlink img{display:block;width:26px;height:auto}
#sTitle .backlink:focus-visible{outline:4px solid var(--orange);outline-offset:3px;opacity:1}
