/* The shop is a single play scene; the story, HUD and rewards stay shared. */
.ice-shop-background{position:fixed;inset:0;z-index:-1;pointer-events:none;background:#cce5d5 url('art/icecream-shop-v1.webp') center/cover no-repeat}
body.room-adventure.icecream-shop-active .story-world-backdrop{visibility:hidden}
body.room-adventure.icecream-shop-active #playScreen .play-world{display:block!important;height:100%!important}
body.room-adventure.icecream-shop-active #playScreen .story-window{display:none!important}
body.room-adventure.icecream-shop-active #gameBoard{height:100%!important;width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible;padding:8px 12px 0!important;gap:2px!important}
body.room-adventure.icecream-shop-active #gameBoard .mini-heading{justify-content:flex-end;padding-right:10px}
body.room-adventure.icecream-shop-active #gameBoard .mini-heading .eyebrow{display:none}
body.room-adventure.icecream-shop-active #gameBoard #feedback{position:absolute;bottom:0;left:0;right:0;pointer-events:none}
body.room-adventure.icecream-shop-active #roundBoard.icecream-shop{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;align-items:center;justify-content:stretch;align-content:stretch;gap:4px!important;padding:0 4px 6px!important;overflow:visible!important}
body.room-adventure.icecream-shop-active #roundBoard>.ice-title{font-size:clamp(28px,3.5vw,49px)!important;padding:8px 32px!important;margin:0!important;min-width:0;background:#fff8e9!important;line-height:1.1;border-radius:50% 45% 44% 40%!important;box-shadow:0 4px 0 #7a9a7b22;color:#254e49}
.ice-playground{width:min(780px,65%);height:100%;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;gap:32px}
.icecream-shop button{font-family:Froople,'Trebuchet MS',sans-serif!important;color:#264d49;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}
.icecream-shop button:focus-visible{outline:4px solid #187aa2!important;outline-offset:4px}
.icecream-shop svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.icecream-shop button:disabled{cursor:default;opacity:.65}
.icecream-shop .selected{outline:4px solid #fff7a1;outline-offset:4px;transform:translateY(-5px)}
.ice-machine{position:relative;width:clamp(260px,28vw,410px);height:min(100%,530px);min-height:290px;border:8px solid #fff4e8;border-radius:48px 48px 24px 24px;background:linear-gradient(90deg,#eca5a0,#ffd7bd 40%,#f6b9af);box-shadow:0 10px 0 #aa787d44,inset 12px 0 24px #fff8;display:flex;justify-content:center;isolation:isolate}
.ice-machine::before{content:'';position:absolute;inset:30% 12% 5%;background:linear-gradient(100deg,#c0d8cf,#eff1d9 50%,#b7d4cb);border-radius:24px;box-shadow:inset 0 6px 12px #517c6d33;z-index:-1}
.ice-flavours{display:flex;gap:8px;justify-content:center;position:absolute;left:5%;right:5%;top:4%;height:23%;background:#eaf3e5;border:5px solid #fdf4e6;border-radius:25px;padding:6px;box-shadow:0 4px 0 #be8794}
.ice-flavour{flex:1;min-width:0;min-height:44px!important;padding:2px!important;background:#fff3e4;border:3px solid #e1c3b6;border-radius:17px;box-shadow:0 3px 0 #ba8f7c44;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:0}
.ice-flavour[aria-pressed=true]{background:#ffe7a0;border-color:#d79350;box-shadow:0 0 0 3px #fff8}
.ice-flavour svg{min-height:0;width:100%;height:100%;max-height:70px;object-fit:contain}
.ice-flavour span{font:700 clamp(11px,1vw,15px)/1.1 'Trebuchet MS',sans-serif}
.ice-nozzle{position:absolute;top:29%;width:22%;height:10%;background:linear-gradient(90deg,#789e9b,#edf1de 45%,#759692);border-radius:0 0 12px 12px;border:3px solid #b7c4b7;z-index:3}
.ice-cone{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:20px;min-height:0!important}
.ice-machine-cone{position:absolute;top:35%;bottom:6%;width:55%;height:auto}
.ice-machine-cone svg{width:100%;height:100%}
.ice-drip-tray{position:absolute;bottom:3%;width:68%;height:5%;background:repeating-linear-gradient(90deg,#719b91 0 4px,#cde0cf 5px 12px);border:4px solid #e5ead6;border-radius:30px}
.ice-fill-line{position:absolute;left:17%;right:17%;top:39%;border-top:4px dashed white;filter:drop-shadow(0 1px 2px #557263);pointer-events:none;z-index:4;transition:filter .2s}
.ice-line-ready{border-color:#ffe891;filter:drop-shadow(0 0 7px #fff5aa)}
.ice-meter{position:absolute;left:6%;top:44%;height:35%;width:17px;background:#e2eddd;border:3px solid #fff;border-radius:20px;overflow:hidden;display:flex;align-items:flex-end}
.ice-meter span{width:100%;height:0;background:linear-gradient(#fff2a0,#efb0b7);border-radius:10px}
.ice-lever{position:absolute;right:-74px;top:42%;height:145px;width:80px!important;min-width:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible;display:flex;align-items:center;justify-content:center}
.ice-lever-arm{position:absolute;top:24px;left:29px;width:19px;height:90px;border:3px solid #8d8b7e;border-radius:15px;background:linear-gradient(90deg,#899e99,#ecf2de,#82998d);transform:rotate(-22deg);transform-origin:bottom;transition:transform .15s}
.ice-lever-knob{position:absolute;left:0;top:0;width:64px;height:64px;background:radial-gradient(circle at 30% 25%,#ffddd2,#f28d9e 70%);border:4px solid #fff0dd;border-radius:50%;box-shadow:0 5px 0 #af6d7d;display:grid;place-items:center;font-size:40px;color:#a85365;transition:transform .15s}
.ice-lever b{position:absolute;top:114px;background:#fff9e9;padding:5px 13px;border-radius:20px;font-size:20px;white-space:nowrap}
.ice-lever.pouring .ice-lever-arm{transform:rotate(15deg)}
.ice-lever.pouring .ice-lever-knob{transform:translate(25px,30px)}
.ice-status{font-size:20px;margin:0!important;min-height:0;background:#fff8e9d9;color:#264d49;border-radius:22px;padding:0 14px;line-height:1.4}
.ice-status:empty{display:none}
body.room-adventure.icecream-shop-active .ice-next{min-height:48px!important;min-width:190px;padding:8px 28px!important;font-size:27px!important;margin:0 0 3px!important;background:#ffdf79!important}
.ice-order{position:absolute;left:0;top:6%;width:31%;height:53%;background:#fff8e7;border:5px solid #fff;border-radius:10px 10px 22px 22px;box-shadow:0 7px 0 #a9937355;transform:rotate(-5deg);display:grid;grid-template-rows:30px minmax(0,1fr);padding:10px}
.ice-order>span{font-size:22px;text-align:center;color:#754a45;font-family:Froople,'Trebuchet MS',sans-serif}
.ice-decorate{height:80%;max-height:440px;width:40%;margin-left:25%;margin-bottom:12%;filter:drop-shadow(0 10px 6px #925e4022)}
.ice-toppings{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:16px;padding:8px 16px;background:#f5cdb5bf;border-radius:50px;box-shadow:0 5px 0 #b78a6c55}
.ice-topping{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:1px;width:110px;height:112px;min-height:70px!important;padding:8px!important;background:#fff9e9;border:4px solid white;border-radius:35%;box-shadow:0 5px 0 #c8978544;font-size:19px!important}
.ice-topping svg{height:60px;width:60px}
.ice-topping:disabled{opacity:.5;filter:saturate(.6)}
.ice-customers{display:flex;gap:60px;align-self:flex-start;justify-content:space-between;width:100%;height:58%;margin-top:1%}
.ice-customer{width:43%;height:100%;min-height:0!important;padding:8px!important;border:4px solid #fff8e8!important;border-radius:40%!important;background:#fff7e7df!important;box-shadow:0 8px 0 #ba998055!important;display:grid;grid-template-rows:minmax(0,1fr) auto;position:relative;overflow:visible}
.ice-friend{display:block;width:100%;height:100%;background-image:url('art/icecream-shop-v1.webp');background-size:440% auto;background-position:0 65%;border-radius:45%;pointer-events:none}
.ice-customer.dodu .ice-friend{background-position:100% 65%}
.ice-customer b{font-size:clamp(20px,2.2vw,30px);background:#fff8e7ed;border-radius:20px;position:relative;z-index:1;max-width:80%;justify-self:center;padding:3px 16px}
.ice-received{position:absolute;right:-18%;bottom:3%;width:52%;height:70%;pointer-events:none;display:grid;place-items:center;filter:drop-shadow(0 3px 3px #69433422)}
.ice-received>span{font-size:45px;border:4px dashed #88a6a0;border-radius:50%;background:#fff7e8bc;width:64px;height:64px;line-height:52px;color:#6d9690}
.ice-customer[aria-disabled=true]{opacity:1!important;border-color:#ffe795!important}
.ice-serving-tray{position:absolute;bottom:0;display:flex;justify-content:center;gap:60px;height:40%;width:80%;background:linear-gradient(0deg,#eec0a3b0,transparent);border-radius:40px}
.ice-serve-cone{width:40%;height:100%;min-width:0!important;transition:opacity .2s,transform .2s}
.ice-serve-cone.ice-delivered{opacity:.12!important;pointer-events:none;filter:grayscale(1)}
.ice-serve-cone.selected{outline:0!important;filter:drop-shadow(0 0 10px #fff4a0)}
.ice-party .ice-customer{animation:iceHappy .5s ease-in-out 4 alternate}
@keyframes iceHappy{to{transform:translateY(-9px) rotate(2deg)}}
@media(max-width:900px){.ice-playground{width:75%;gap:20px}.ice-machine{width:280px}.ice-machine-cone{width:57%}.ice-lever{right:-65px}.ice-customers{gap:24px}.ice-topping{width:90px;height:100px}.ice-toppings{gap:10px}.ice-friend{background-size:520% auto}}
@media(max-width:700px) and (orientation:portrait){.ice-shop-background{background-size:auto 100%;background-position:center}.ice-shop-background::after{content:'';position:absolute;inset:80px 0 0;background:#eaf4dc25;backdrop-filter:blur(2px)}body.room-adventure.icecream-shop-active #gameBoard{padding:3px 5px 0!important}body.room-adventure.icecream-shop-active #gameBoard .mini-heading{min-height:40px;align-items:center}body.room-adventure.icecream-shop-active #roundBoard>.ice-title{font-size:30px!important;padding:9px 24px!important}.ice-playground{width:92%;max-height:550px}.ice-machine{width:235px;max-height:460px;min-height:280px;margin-left:-32px;border-width:6px}.ice-lever{right:-55px;transform:scale(.8);transform-origin:left center}.ice-flavours{left:3%;right:3%;gap:4px;border-width:3px;padding:4px}.ice-flavour{border-width:2px;border-radius:12px}.ice-flavour span{font-size:10px}.ice-order{width:35%;height:45%;left:0;padding:5px;grid-template-rows:24px minmax(0,1fr)}.ice-order>span{font-size:18px}.ice-decorate{width:48%;margin-left:32%;height:74%;margin-bottom:20%}.ice-toppings{padding:8px;gap:10px}.ice-topping{width:85px;height:100px;font-size:17px!important}.ice-topping svg{width:54px;height:54px}.ice-customers{height:54%;gap:22px;align-self:flex-start;margin-top:8%}.ice-customer{border-radius:35%!important;padding:4px!important}.ice-customer b{font-size:20px;padding:2px 8px}.ice-received{width:62%;right:-12%;bottom:4%;height:62%}.ice-received>span{width:45px;height:45px;font-size:28px;line-height:36px}.ice-serving-tray{width:95%;gap:40px;height:39%}.ice-friend{background-size:590% auto;background-position:0% 64%}.ice-customer.dodu .ice-friend{background-position:100% 64%}body.room-adventure.icecream-shop-active .ice-next{font-size:24px!important;min-height:46px!important}}
@media(max-height:560px) and (orientation:landscape){body.room-adventure.icecream-shop-active #gameBoard .mini-heading{position:absolute;right:10px;top:0;width:auto;z-index:4}body.room-adventure.icecream-shop-active #roundBoard>.ice-title{font-size:24px!important;padding:4px 22px!important}.ice-playground{width:65%;}.ice-machine{min-height:180px;width:220px;border-width:5px;border-radius:25px}.ice-flavours{top:2%;height:24%;padding:2px;border-width:2px;border-radius:15px;gap:4px}.ice-flavour{padding:0!important;border-width:2px;border-radius:10px}.ice-flavour span{font-size:10px}.ice-lever{transform:scale(.65);transform-origin:left top;right:-70px;top:39%}.ice-order{grid-template-rows:20px minmax(0,1fr);padding:5px;height:62%;top:0}.ice-order>span{font-size:16px}.ice-decorate{margin-bottom:8%;height:90%;width:35%}.ice-toppings{left:auto;right:-80px;top:0;bottom:0;width:90px;flex-direction:column;gap:5px;padding:4px}.ice-topping{height:65px;width:80px;min-height:44px!important;padding:2px!important;font-size:13px!important;border-width:2px}.ice-topping svg{width:35px;height:35px}.ice-customers{height:80%;width:100%;margin-top:0}.ice-serving-tray{left:20%;width:60%;bottom:0;height:45%;gap:15px}.ice-customer{width:34%;}.ice-customer b{font-size:18px}.ice-received{height:85%;width:65%}body.room-adventure.icecream-shop-active .ice-next{font-size:20px!important;min-height:38px!important;padding:3px 20px!important}.ice-status{font-size:16px}}
@media(prefers-reduced-motion:reduce){.icecream-shop *{animation:none!important;transition:none!important}}
/* Serve directly to the friends in the scene, without duplicating their portraits. */
@media(min-width:701px){.ice-playground[data-round="2"]{width:100%;max-width:none}.ice-playground[data-round="2"] .ice-customers{position:absolute;inset:0;width:100%;height:78%;margin:0;align-self:auto}.ice-playground[data-round="2"] .ice-customer{width:26%;display:flex;align-items:flex-end;justify-content:center;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}.ice-playground[data-round="2"] .ice-friend{display:none}.ice-playground[data-round="2"] .ice-received{height:78%;width:70%;right:-6%;bottom:0}.ice-playground[data-round="2"] .ice-customer.dodu .ice-received{left:-6%;right:auto}.ice-playground[data-round="2"] .ice-serving-tray{width:42%;gap:30px;height:58%;bottom:0}.ice-playground[data-round="2"] .ice-customer.ice-has-cone::after{content:'♥';position:absolute;top:10%;left:30%;font-size:64px;color:#e96c87;filter:drop-shadow(0 2px 2px white)}}
@media(max-width:700px) and (orientation:portrait){.ice-customers{height:43%;margin-top:12%}.ice-customer{width:44%;border-radius:36%!important}.ice-friend{background-size:420% auto;background-position:0 65%}.ice-customer.dodu .ice-friend{background-position:100% 65%}}

.ice-order{cursor:pointer!important}.ice-order-speaker{font-style:normal;font-size:20px;display:inline-block}.ice-order:focus-visible{outline:4px solid #197ba0!important;outline-offset:5px}
.ice-order-speaker{position:absolute;right:-12px;top:-12px;display:grid;place-items:center;width:42px;height:42px;background:#ffdf79;border:3px solid #fff;border-radius:50%;box-shadow:0 3px 0 #c69b4e99;font-size:21px;line-height:1}

/* One brief thank-you heart per friend; the final frame is invisible. */
.ice-playground[data-round="2"] .ice-customer.ice-has-cone::after{content:''!important;position:absolute;display:block;top:8%;left:32%;width:72px;height:72px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2072%2072%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22rose%22%20x1%3D%22.2%22%20y1%3D%220%22%20x2%3D%22.8%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ffcad8%22%2F%3E%3Cstop%20offset%3D%22.48%22%20stop-color%3D%22%23fb779e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ce3d75%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M36%2065C28%2058%205%2043%205%2024C5%207%2025%202%2036%2017C47%202%2067%207%2067%2024C67%2043%2044%2058%2036%2065Z%22%20fill%3D%22url(%23rose)%22%20stroke%3D%22%23fff6ed%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M13%2025C12%2015%2024%2010%2029%2017%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.7%22%2F%3E%3Cpath%20d%3D%22M45%2053Q57%2043%2060%2033%22%20fill%3D%22none%22%20stroke%3D%22%23c53b70%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.22%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;filter:drop-shadow(0 5px 4px #a747642b);pointer-events:none;z-index:6;opacity:0;transform-origin:50% 70%;animation:iceSharingHeart 3.2s cubic-bezier(.18,.6,.32,1) both}
@keyframes iceSharingHeart{0%{opacity:0;transform:translate3d(0,14px,0) scale(.45) rotate(-12deg)}18%{opacity:1;transform:translate3d(-4px,-12px,0) scale(1.08) rotate(-6deg)}40%{opacity:1;transform:translate3d(6px,-45px,0) scale(1) rotate(4deg)}75%{opacity:.8;transform:translate3d(20px,-105px,0) scale(.86) rotate(10deg)}100%{opacity:0;transform:translate3d(30px,-155px,0) scale(.6) rotate(16deg)}}
@media(max-width:700px){.ice-playground[data-round="2"] .ice-customer.ice-has-cone::after{width:52px;height:52px;left:35%;top:10%}}
@media(prefers-reduced-motion:reduce){.ice-playground[data-round="2"] .ice-customer.ice-has-cone::after{animation:none!important;opacity:0!important}}
body.icecream-sharing-photo .ice-shop-background::after{content:'';position:absolute;inset:0;background:#fff7ebdf;backdrop-filter:blur(7px)}
.ice-playground.ice-celebrating{width:min(100%,1100px)!important;max-width:100%;gap:0!important;padding:10px 12px 20px;box-sizing:border-box}
.ice-happy-photo{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;margin:0;pointer-events:none}
.ice-happy-photo img{display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;border-radius:26px;filter:drop-shadow(0 8px 12px #6a745b22)}
@media(max-width:700px){.ice-playground.ice-celebrating{width:100%!important;padding:8px 0 18px}.ice-happy-photo img{border-radius:18px}}
