.sweet-game{--sweet-color:#e64b60;position:relative;display:flex;flex-direction:column;min-height: min(68dvh,640px);max-height:72dvh;border:1px solid #e7c38d;border-radius:24px;overflow:auto;color:#402b2a;background:#fff7e9 url('/assets/sweet.webp') center/cover;box-shadow:0 12px 30px #351c2940;font-family:inherit}.sweet-head{position:relative;z-index:2;display:flex;justify-content:space-between;gap:8px;align-items:center;background:#fff8eaed;padding:10px 14px;color:#753c40;font-size:12px;letter-spacing:.08em}.sweet-head b{background:#fff;border-radius:30px;padding:7px 10px;letter-spacing:0;white-space:nowrap;color:#57334a}.sweet-pour-scene,.sweet-wrap-scene{min-height:220px;flex:1;position:relative;overflow:hidden}.sweet-sprite{background-image:url('/assets/sweet-sprites.png');background-size:300% 200%;background-repeat:no-repeat;filter:drop-shadow(0 7px 6px #492f2760)}.sweet-jug{position:absolute;left:7%;top:8%;width:42%;height:50%;background-position:0 0;transition:transform .3s}.pouring .sweet-jug{transform:rotate(13deg)}.sweet-candy{position:absolute;width:30%;height:28%;right:2%;top:5%;background-position:0 100%;animation:sweet-float 3s ease-in-out infinite}.sweet-mold{position:absolute;left:37%;bottom:15%;width:37%;height:45%;border:7px solid #c88646;border-radius:30% 30% 38% 38%;background:linear-gradient(#f8dcc2,#bf8a72);box-shadow:inset 0 5px 8px #7d3a32,0 9px 12px #67473a90;overflow:hidden}.sweet-mold i{position:absolute;left:0;right:0;top:35%;border-top:4px dashed #ffec8d;filter:drop-shadow(0 0 5px #fff)}.sweet-fill{position:absolute;bottom:0;width:100%;background:linear-gradient(90deg,#4a1d16,#a95d2d,#4f2017);border-radius:45% 45% 0 0;transition:height .08s}.sweet-flow{position:absolute;left:39%;top:35%;height:28%;width:10px;background:linear-gradient(90deg,#6d2915,#cf8540,#6d2915);border-radius:50%;opacity:0;transform:rotate(-12deg)}.pouring .sweet-flow{opacity:1}.sweet-goal{position:absolute;bottom:3%;left:0;right:0;text-align:center;font-weight:800;color:#623e2b;text-shadow:0 1px white}.sweet-glints{position:absolute;top:30%;right:8%;font-size:25px;color:#fff3a8;text-shadow:0 0 9px #ffba2b;animation:sweet-glitter 1.3s infinite alternate}.sweet-controls{position:relative;z-index:2;padding:10px 12px;background:#fff9eef2;text-align:center}.sweet-controls p{margin:0 0 7px;font-size:14px;line-height:1.3;color:#563b38}.sweet-controls button{border:0;border-radius:18px;padding:10px 13px;min-height:44px;background:#b23d64;color:white;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 3px 0 #76294d}.sweet-controls button+button{margin-left:6px}.sweet-controls .sweet-alt{background:#277e80;box-shadow:0 3px 0 #165a5d}.sweet-camera{min-height:220px;position:relative;flex:1;background:#32494b;overflow:hidden}.sweet-camera video{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.sweet-camera-placeholder{position:absolute;inset:0;display:grid;place-items:center;font-size:64px;color:#f4c963;background:url('/assets/sweet.webp') center/cover}.camera-on .sweet-camera-placeholder{display:none}.sweet-reticle{position:absolute;width:27%;aspect-ratio:1;border:4px solid white;border-radius:22px;left:36.5%;top:29%;box-shadow:0 0 0 999px #19282a33,0 0 14px var(--sweet-color)}.sweet-target{position:absolute;left:12px;right:12px;bottom:10px;display:flex;align-items:center;gap:9px;justify-content:center;background:#fff9edf0;border-radius:18px;padding:8px;color:#433338}.sweet-target strong:before{content:'';display:inline-block;width:24px;height:24px;border-radius:50%;background:var(--sweet-color);vertical-align:middle;margin-right:7px;border:2px solid white;box-shadow:0 0 0 1px #a7886c}.sweet-progress{height:7px;background:#fff1dd}.sweet-progress i{display:block;height:100%;width:0;background:var(--sweet-color);transition:width .1s}.sweet-controls details{margin-top:7px;font-size:13px}.sweet-controls summary{cursor:pointer;color:#624269;text-decoration:underline}.sweet-colors,.sweet-choices{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.sweet-colors button{background:var(--swatch);box-shadow:0 3px 0 #44332f;color:#fff;text-shadow:0 1px 3px #111;margin:0!important}.sweet-wrap-scene>.sweet-candy{width:45%;height:45%;top:6%;right:27%}.sweet-pattern{position:absolute;bottom:15%;left:12%;right:12%;text-align:center;background:#fff9e8e8;border:2px solid #dfa95a;border-radius:20px;padding:8px}.sweet-pattern small{display:block;font-weight:700}.sweet-mark{font-size:28px;margin:0 9px;color:#c44268}.mark-1{color:#298b7b}.mark-2{color:#dd9a13}.sweet-slots{position:absolute;bottom:2%;left:0;right:0;text-align:center}.sweet-slots i{display:inline-grid;place-items:center;font-style:normal;width:33px;height:33px;border:2px dashed #a26d4a;border-radius:8px;margin:0 5px;background:#fff9;font-size:21px}.sweet-choices button{font-size:25px;min-width:78px;margin:0!important}.sweet-choices small{display:block;font-size:11px}.sweet-success .sweet-glints,.sweet-found .sweet-target{animation:sweet-pop .55s ease}.sweet-found .sweet-progress{box-shadow:0 0 20px 8px #ffe177}@keyframes sweet-pop{50%{transform:scale(1.2);filter:brightness(1.5)}}@keyframes sweet-float{50%{transform:translateY(-7px) rotate(4deg)}}@keyframes sweet-glitter{to{opacity:.45;transform:scale(1.15)}}@media(max-height:600px){.sweet-game{min-height:58dvh;max-height:65dvh}.sweet-pour-scene,.sweet-wrap-scene,.sweet-camera{min-height:145px}.sweet-controls{padding:6px}.sweet-controls p{font-size:12px}.sweet-head{padding:5px 10px}}@media(prefers-reduced-motion:reduce){.sweet-game *{animation:none!important;transition:none!important}}
.quest-app .sweet-search.det-search-board{background:#fff4df;border-color:#d5a66e;box-shadow:0 8px 24px #56312133}.quest-app .game-card:has(.sweet-search){background:#fff5e5;border-color:#ecc99e}.quest-app .sweet-search.det-search-board .det-fixed-scene>.det-search-scene{background:#f5e3c6}.quest-app .sweet-search .det-search-head{background:linear-gradient(135deg,#fff5e5,#fae4d5);color:#65404a}.quest-app .sweet-search .det-search-head small{color:#9a4e68}.quest-app .sweet-search .det-search-head strong{color:#4b3841}.quest-app .sweet-search .det-search-capture{background:linear-gradient(145deg,#ba4a71,#8d315b);border-color:#f1c78c;color:white}.sweet-search-sample{display:block;width:100%;height:100%;min-height:40px;background-image:url('/assets/sweet-wrapper-1.png');background-size:contain;background-position:center;background-repeat:no-repeat;border-radius:50%}.det-clue-view-art .sweet-search-sample{width:100%;height:100%;min-height:210px;border-radius:18px}.sweet-search-found .is-new{animation:sweet-pop .6s ease}.sweet-search .det-clue-card{background:#fff8e8!important;border-color:#d7a46f!important}.sweet-search .det-search-object-name{color:#613e41!important}
/* На карте действует собственная компактная шапка и окно задания. */
.quest-app .game-card:has(.sweet-search)>.instruction,.quest-app .game-card:has(.sweet-search)>#game-note{display:none}

.quest-app .sweet-search .det-fixed-controls .det-micro-evidence{grid-template-columns:repeat(5,minmax(0,1fr))}.sweet-search .det-search-object{width:min(100%,48px)}.sweet-search .det-search-object-name{font-size:9px!important}

.sweet-briefing .aurora-brief-art{background-image:linear-gradient(0deg,#53244077,#53244008),url('/assets/sweet.webp')!important;background-position:center 42%;background-size:cover}.sweet-briefing .aurora-brief-art span{color:#fff1b2;text-shadow:0 0 16px #ffa833}
.sweet-factory{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d9b68b;border-radius:22px;background:#fff4e7;color:#553d3b;box-shadow:0 10px 24px #58351a27}.factory-head{display:flex;align-items:center;justify-content:space-between;padding:8px 13px;background:#fff9ee;gap:8px}.factory-head small{display:block;font-size:10px;font-weight:900;letter-spacing:.08em;color:#a0526b}.factory-head strong{display:block;font-size:16px;color:#523747}.factory-count{color:#b7496a;letter-spacing:.2em;white-space:nowrap;font-weight:900}.factory-world{flex:1;min-height:135px;position:relative;overflow:hidden;background:#bf8a61 url('/assets/sweet-factory-bg.webp') center 52%/cover no-repeat}.factory-world canvas{display:block;width:100%;height:100%;touch-action:none}.factory-status{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:7px 12px;border-radius:20px;background:#fff8e9ee;color:#614052;font-size:12px;font-weight:800;box-shadow:0 2px 8px #51331b44}.factory-good .factory-status{background:#fff5bb;box-shadow:0 0 18px #ffe9a4}.factory-panel{flex:none;background:#fff9ef;padding:9px 13px 10px}.factory-meter-label{display:flex;justify-content:space-between;font-size:12px;font-weight:850}.factory-meter{height:15px;border-radius:20px;position:relative;overflow:hidden;background:#e9d8c3;margin:4px 0 6px}.factory-meter i{position:absolute;top:0;height:100%;background:#efc54e;border-left:2px solid #bd7f1f;border-right:2px solid #bd7f1f}.factory-meter em{display:block;position:absolute;top:2px;bottom:2px;left:0;width:0;background:linear-gradient(90deg,#4aafb0,#258c83);border-radius:20px;opacity:.82;transition:width .08s linear}.factory-progress{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800}.factory-progress div{flex:1;height:7px;background:#eadbcc;border-radius:12px;overflow:hidden}.factory-progress i{display:block;width:0;height:100%;background:#c5517a}.factory-panel p{margin:5px 0;font-size:12px;line-height:1.25;min-height:1.3em;color:#614d46}.factory-mic{width:100%;min-height:43px;border:0;border-radius:14px;background:#a63860;color:white;font:800 14px inherit;font-weight:800;box-shadow:0 3px 0 #772440}.factory-mic:disabled{opacity:.65}.factory-manual{display:flex;align-items:center;gap:8px;margin-top:6px;color:#6d5350;font-size:11px;font-weight:800}.factory-manual input{flex:1;min-width:0;accent-color:#a63860;height:24px}.quest-app .game-card:has(.sweet-factory)>.instruction,.quest-app .game-card:has(.sweet-factory)>#game-note{display:none}.quest-app .game-card:has(.sweet-factory) .game-board{margin-top:4px}@media(max-height:650px){.factory-head{padding:5px 10px}.factory-panel{padding:5px 10px}.factory-panel p{font-size:11px;margin:3px 0}.factory-mic{min-height:40px}.factory-manual{margin-top:3px}}

.quest-app .game-card:has(.sweet-factory)>.stage-top,.quest-app .game-card:has(.sweet-factory)>.quest-title-row{display:none}.factory-head>div{flex:1}.factory-help{width:44px;height:44px;border:1px solid #dec3a0;border-radius:13px;background:#f9e8da;color:#80415b;font-size:22px;font-weight:900}.factory-mic{font-family:inherit}
.factory-fallback{font-size:11px;font-weight:800;color:#76515a;margin-top:5px}.factory-fallback summary{cursor:pointer}.factory-world{min-height:160px}.factory-head{min-height:54px}.factory-panel p{min-height:1em}.factory-progress span{color:#bb6480;font-size:15px}.factory-head small{font-size:9px}.factory-mic{font-size:14px}
.factory-finale{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;z-index:2;background:radial-gradient(circle,#fff4dbe8 0%,#fff4dbb8 42%,#fff4db00 76%);pointer-events:none;animation:factory-reveal .5s ease-out both}.factory-finale[hidden]{display:none}.factory-finale img{width:min(69%,270px);height:auto;filter:drop-shadow(0 10px 10px #7541238a);animation:factory-celebrate 1.2s ease-in-out infinite alternate}.factory-finale strong{padding:7px 15px;border-radius:22px;background:#fffaf0ed;color:#853750;box-shadow:0 3px 15px #764c2533;font-size:15px}@keyframes factory-reveal{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes factory-celebrate{to{transform:translateY(-6px) rotate(3deg)}}@media(prefers-reduced-motion:reduce){.factory-finale,.factory-finale img{animation:none}}
/* Три остановки — вся карта умещается на экране без искажения живописи. */
.map-view.sweet{display:grid;grid-template-rows:60px minmax(0,1fr) 76px;background:#faecd8;overflow:hidden}
.map-view.sweet .map-top{position:static;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 10px;background:#fff5e9;min-width:0}
.map-view.sweet .map-top>div:first-child{width:auto;min-width:0;flex:1}.map-view.sweet .map-top .eyebrow{display:none}.map-view.sweet .map-top h2{margin:0;font-size:clamp(15px,4.2vw,20px);line-height:1.1;color:#58404a}.map-view.sweet .map-top>.narration-tools{display:none}.map-view.sweet .map-top .menu-exit{min-height:42px;font-size:12px;white-space:nowrap}.map-view.sweet .map-top .icon-btn{width:42px;height:42px;min-width:42px}
.map-view.sweet .map-scroll{height:100%;min-height:0;width:100%;padding:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.map-view.sweet .map-inner{width:min(calc(100% - 12px),calc((100dvh - 150px) * 941 / 1672));height:auto;max-width:none;max-height:100%;aspect-ratio:941 / 1672;margin:auto;background-size:100% 100%;background-position:center;border-radius:15px;overflow:visible}
.map-view.sweet .map-svg,.map-view.sweet .map-decoration{display:none}.map-view.sweet .map-node{width:42px;height:42px}.map-view.sweet .map-node .island{width:42px;height:42px;font-size:17px;border-width:2px;box-shadow:0 3px 8px #70472f55}.map-view.sweet .map-node p{position:absolute;top:50%;width:clamp(78px,26vw,115px);margin:0;padding:5px 6px;transform:translateY(-50%);font-size:clamp(10px,2.8vw,12px);line-height:1.12;background:#fff9ebf5;border:1px solid #e0bc8b;color:#513e3b;box-shadow:0 2px 6px #4b2f2426}.map-view.sweet .map-node-1 p,.map-view.sweet .map-node-3 p{right:calc(50% + 24px)}.map-view.sweet .map-node-2 p{left:calc(50% + 24px)}.map-view.sweet .map-boat{width:25px;height:25px;font-size:20px}
.map-view.sweet .map-bottom{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 10px calc(5px + env(safe-area-inset-bottom));background:#fff5e9}.map-view.sweet .map-bottom .mascot{display:none}.map-view.sweet .map-bottom p{margin:0;min-width:0;max-width:none;font-size:clamp(10px,2.9vw,12px);line-height:1.2}.map-view.sweet .map-bottom .btn{min-height:44px;padding:9px 12px;font-size:12px;white-space:nowrap}
@media(max-height:610px){.map-view.sweet{grid-template-rows:52px minmax(0,1fr) 66px}.map-view.sweet .map-inner{width:min(calc(100% - 12px),calc((100dvh - 128px) * 941 / 1672))}.map-view.sweet .map-node,.map-view.sweet .map-node .island{width:36px;height:36px}.map-view.sweet .map-node-1 p,.map-view.sweet .map-node-3 p{right:calc(50% + 20px)}.map-view.sweet .map-node-2 p{left:calc(50% + 20px)}}

.factory-mic[aria-pressed="true"]{background:#19885c;box-shadow:0 3px 0 #116543;color:#fff}
.sweet-music-choice{width:100%;margin-top:8px;min-height:44px}
.sweet-gust{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d9b68b;border-radius:22px;background:#fff8ec;color:#593f44}.gust-head{display:flex;align-items:center;gap:10px;min-height:52px;padding:5px 12px}.gust-head div{flex:1}.gust-head small,.gust-head strong{display:block}.gust-head small{font-size:9px;letter-spacing:.08em;color:#a0526b;font-weight:900}.gust-head strong{font-size:16px}.gust-head>span{font-weight:900;color:#ad4165;white-space:nowrap}.gust-help{width:44px;height:44px;border:1px solid #dec3a0;border-radius:13px;background:#f9e8da;color:#80415b;font-size:22px;font-weight:900}.gust-room{position:relative;flex:1;min-height:180px;overflow:hidden;background:#bf8a61 url('assets/sweet-factory-bg.webp') center 45%/cover}.gust-items{position:absolute;inset:0}.gust-candy{position:absolute;left:var(--x);top:var(--y);width:clamp(54px,18vw,76px);height:54px;padding:0;border:0;background:transparent;transform:translate(-50%,-50%) rotate(var(--angle));animation:gust-fly 1.05s cubic-bezier(.15,.8,.25,1) var(--delay) both;touch-action:manipulation;filter:drop-shadow(0 5px 4px #47271988)}.gust-candy img{width:100%;height:100%;object-fit:contain}.gust-candy.found{animation:gust-found .4s forwards;pointer-events:none}.gust-prompt{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);padding:7px 13px;border-radius:18px;background:#fff9ebed;color:#603d50;font-size:14px;font-weight:900;white-space:nowrap;box-shadow:0 3px 10px #422b2544}.gust-fan{position:absolute;left:5%;bottom:9%;width:clamp(88px,31vw,135px);height:150px;filter:drop-shadow(0 5px 5px #3a282c77)}.gust-fan-grill{width:100%;aspect-ratio:1;border:8px double #b37c45;border-radius:50%;background:radial-gradient(circle,#b1dfd1,#276969 72%);position:relative;overflow:hidden;box-shadow:inset 0 0 0 3px #e8ca8c}.gust-fan-grill:after{content:'';position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(transparent 0deg 13deg,#d9c39d88 14deg 16deg);pointer-events:none}.gust-blades{position:absolute;inset:12%;animation:gust-spin .65s linear infinite}.gust-blades i{position:absolute;left:40%;top:2%;width:20%;height:48%;border-radius:70% 70% 20% 70%;background:linear-gradient(90deg,#fff1cb,#d1a871);transform-origin:50% 100%}.gust-blades i:nth-child(2){transform:rotate(90deg)}.gust-blades i:nth-child(3){transform:rotate(180deg)}.gust-blades i:nth-child(4){transform:rotate(270deg)}.gust-fan-grill b{position:absolute;left:42%;top:42%;width:16%;height:16%;border-radius:50%;background:#dcae6c;z-index:2}.gust-stand{margin:auto;width:15%;height:25px;background:linear-gradient(90deg,#9a652e,#e2b574,#9a652e)}.gust-air{position:absolute;left:23%;bottom:23%;color:#fff9c9;font-size:25px;letter-spacing:1em;opacity:.7;animation:gust-air 1.4s linear infinite;pointer-events:none}.gust-controls{padding:8px 12px 10px;display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#fff8ed}.gust-meter{grid-column:1/-1;height:8px;background:#e8d7c7;border-radius:10px;overflow:hidden}.gust-meter i{display:block;width:0;height:100%;background:linear-gradient(90deg,#71c5ad,#e7bf4b)}.gust-controls button{min-height:44px;border:0;border-radius:12px;background:#a63860;color:#fff;font:800 12px inherit;font-weight:800}.gust-controls .gust-mic[aria-pressed=true]{background:#19885c}.gust-controls .gust-manual{background:#e9d2a7;color:#634348}.gust-controls button[hidden]{display:none}.quest-app .game-card:has(.sweet-gust)>.instruction,.quest-app .game-card:has(.sweet-gust)>#game-note,.quest-app .game-card:has(.sweet-gust)>.stage-top,.quest-app .game-card:has(.sweet-gust)>.quest-title-row{display:none}.quest-app .game-card:has(.sweet-gust) .game-board{margin-top:4px}@keyframes gust-spin{to{transform:rotate(360deg)}}@keyframes gust-air{from{transform:translateX(-15px);opacity:0}50%{opacity:.9}to{transform:translateX(55px);opacity:0}}@keyframes gust-fly{from{left:19%;top:75%;transform:translate(-50%,-50%) rotate(-180deg) scale(.25);opacity:0}to{left:var(--x);top:var(--y);transform:translate(-50%,-50%) rotate(var(--angle));opacity:1}}@keyframes gust-found{to{transform:translate(-50%,-100%) scale(.2) rotate(60deg);opacity:0}}@media(prefers-reduced-motion:reduce){.gust-candy,.gust-blades,.gust-air{animation-duration:.01ms;animation-iteration-count:1}}

.sweet-gust:not([data-phase="blow"]) .gust-controls{display:none}
/* Confetti-covered table: the 3D scene stays above the candy targets. */
.gust-table{position:absolute;left:3%;right:3%;top:18%;bottom:26%;border:5px solid #c89158;border-radius:30px;background:linear-gradient(135deg,#fff4d8ef,#f6dcb7ed);box-shadow:inset 0 0 0 4px #fff6dc,0 9px 20px #4d302d80;overflow:hidden}.gust-table:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(8deg,#ffffff21 0 2px,transparent 2px 28px)}.gust-confetti,.gust-items{position:absolute;inset:0;width:100%;height:100%}.gust-confetti{pointer-events:none}.gust-candy{z-index:1;animation:none;transform:translate(-50%,-50%);width:clamp(55px,18vw,76px);height:58px;filter:drop-shadow(0 0 9px #fff4a7) drop-shadow(0 3px 3px #563b3480)}.gust-candy[hidden]{display:none}.gust-candy:not([hidden]):not(.found){animation:gust-candy-glow 1.1s ease-in-out infinite alternate}.gust-candy.found{animation:gust-found .4s forwards}.gust-fan{z-index:2;left:50%;bottom:8%;transform:translateX(-50%);touch-action:none;cursor:grab}.gust-fan-grill{transform:rotate(var(--fan-angle,0deg));transition:transform .2s}.gust-blades{animation-duration:1.5s}.gust-blowing .gust-blades{animation-duration:.2s}.gust-air{left:43%;bottom:30%;opacity:.2;transform:rotate(var(--fan-angle,0deg));pointer-events:none}.gust-blowing .gust-air{opacity:.9}.gust-direction{grid-column:1/-1;display:flex;align-items:center;gap:12px;color:#86516a;font-weight:900}.gust-direction input{flex:1;min-width:0;accent-color:#b23c67;height:26px;touch-action:pan-x}.gust-controls .gust-manual{touch-action:none;user-select:none}.gust-controls .gust-manual:active{background:#e0bb75}.sweet-gust:not([data-phase="blow"]) .gust-controls{display:grid}@keyframes gust-candy-glow{from{filter:drop-shadow(0 0 3px #fff4a7)}to{filter:drop-shadow(0 0 12px #fff4a7) drop-shadow(0 3px 3px #563b3480)}}
.gust-table{z-index:3}.gust-prompt{z-index:4}
/* Keep the fan clear of the tabletop on small phones. */
.gust-table{top:12%;bottom:38%;}.gust-fan{z-index:5;bottom:3%;width:clamp(88px,29vw,120px);height:auto}.gust-stand{height:16px}.gust-prompt{bottom:4px;z-index:6}.gust-air{bottom:27%}.gust-candy:disabled{pointer-events:none}
/* The motor housing turns in depth, with large tap targets on either side. */
.gust-fan{perspective:520px;transform-style:preserve-3d;touch-action:manipulation;cursor:default}.gust-fan-head{position:relative;width:100%;aspect-ratio:1;transform-style:preserve-3d;transform:rotateY(var(--fan-yaw,0deg)) rotateX(-6deg);transition:transform .42s cubic-bezier(.2,.7,.2,1);filter:drop-shadow(0 7px 4px #3b222d77)}.gust-fan-head:before{content:'';position:absolute;inset:8% -7% 8% 6%;border-radius:50%;background:linear-gradient(90deg,#704f34,#d9aa69 28%,#6a8474 55%,#355a54 85%);transform:translateZ(-16px);box-shadow:inset -8px -2px 7px #193b3888,0 3px 3px #4c302b99}.gust-fan-grill{transform:translateZ(0);transition:none;background:radial-gradient(circle at 35% 30%,#daf8e8,#66a899 46%,#1b5c5d 78%);border:7px ridge #c79a64;box-shadow:inset 0 0 0 3px #f0d5a3,inset -8px -10px 14px #16444699,0 0 0 2px #7e5838}.gust-fan-grill:before{content:'';position:absolute;inset:4%;border-radius:50%;z-index:2;background:repeating-radial-gradient(circle,transparent 0 9px,#ead6ab99 10px 11px,transparent 12px 17px);pointer-events:none}.gust-blades i{background:linear-gradient(115deg,#fffbe4 5%,#e4c79c 40%,#a67c4c 92%);box-shadow:inset 3px 2px 3px #fff9ddaa,inset -3px -2px 3px #765f4266}.gust-fan-grill b{background:radial-gradient(circle at 32% 28%,#fff3b8,#d8a254 48%,#865626);box-shadow:0 2px 4px #1d4449aa}.gust-stand{background:linear-gradient(90deg,#775231,#f3d395 42%,#91623a 85%);box-shadow:0 3px 3px #47291e88}.gust-turn{position:absolute;top:28%;width:44px;height:44px;z-index:6;border:2px solid #fff5d4;border-radius:50%;background:linear-gradient(#f6d38e,#c48648);box-shadow:0 3px 0 #90603d,0 4px 9px #422a1d55;color:#654139;font:900 32px/1 inherit;touch-action:manipulation}.gust-turn-left{left:-35px}.gust-turn-right{right:-35px}.gust-turn:disabled{opacity:.5}.gust-turn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #90603d}
.gust-turn{font-family:inherit;font-size:32px;font-weight:900;line-height:1}
/* Painted fan matches the candy workshop and keeps independent animated blades. */
.gust-fan{width:clamp(110px,34vw,145px)}.gust-fan-head{aspect-ratio:1/1.08;background:url('assets/sweet-fan-painted.png') center/contain no-repeat;transform:rotateY(var(--fan-yaw,0deg));filter:drop-shadow(0 5px 4px #3b222d77)}.gust-fan-head:before{display:none}.gust-fan-grill{position:absolute;left:15%;top:4%;width:70%;height:65%;aspect-ratio:auto;overflow:hidden;border:0;border-radius:50%;background:none;box-shadow:none;transform:none}.gust-fan-grill:before,.gust-fan-grill:after{display:none}.gust-blades{position:absolute;inset:8%;opacity:.34;mix-blend-mode:screen}.gust-blades i{background:linear-gradient(115deg,#fff7df,#e5c898 60%,#a77a4b);box-shadow:none}.gust-fan-grill b{left:43%;top:43%;width:14%;height:14%;background:radial-gradient(circle at 35% 30%,#fff1b1,#d69d4b 52%,#785020);box-shadow:0 1px 4px #533b23}.gust-stand{display:none}.gust-turn{top:33%}
.gust-fan{width:clamp(130px,40vw,160px);bottom:6%}
/* Delicate brass controls and a short tap demonstration. */
.gust-turn{width:44px;height:44px;border:1px solid #ffeac2;background:linear-gradient(145deg,#fff8e9e8,#e8d4a5e8);box-shadow:0 2px 5px #3a2b2640,inset 0 1px 0 #fff;color:#765639;text-shadow:0 1px #fff9;backdrop-filter:blur(3px)}.gust-turn:disabled{opacity:.38}.gust-turn:active:not(:disabled){box-shadow:0 1px 2px #3a2b2640;transform:translateY(1px)}.gust-turn-hint{position:absolute;inset:0;z-index:8;pointer-events:none}.gust-hint-hand{position:absolute;left:-4px;top:56%;color:#fff7e0;font-size:32px;text-shadow:0 2px 3px #4c3128,0 0 4px #6a4b30;transform:rotate(-28deg);animation:gust-demo-hand 2.4s ease-in-out infinite}.gust-hint-label{position:absolute;left:50%;top:-19px;transform:translateX(-50%);padding:4px 8px;border-radius:12px;background:#fff9ecec;color:#705039;font-size:10px;font-weight:900;white-space:nowrap;box-shadow:0 2px 6px #51382b40}.sweet-gust[data-fan-hint=on] .gust-turn-left{animation:gust-demo-target 2.4s ease-in-out infinite}.sweet-gust[data-fan-hint=done] .gust-turn-hint{display:none}@keyframes gust-demo-hand{0%,12%,72%,100%{transform:translate(14px,9px) rotate(-28deg);opacity:0}22%,58%{opacity:1}34%,45%{transform:translate(0,0) rotate(-28deg);opacity:1}}@keyframes gust-demo-target{0%,25%,55%,100%{box-shadow:0 2px 5px #3a2b2640,inset 0 1px 0 #fff}34%,45%{box-shadow:0 0 0 4px #fff1bc88,0 0 15px #ffe3a3}}@media(prefers-reduced-motion:reduce){.gust-hint-hand,.sweet-gust[data-fan-hint=on] .gust-turn-left{animation:none}.gust-hint-hand{opacity:1}}
/* Swipeable fan sprites: front and two three-quarter views. */
.gust-fan{touch-action:none;cursor:grab}.gust-fan:active{cursor:grabbing}.gust-fan:focus-visible{outline:3px solid #fff1ad;outline-offset:3px;border-radius:30px}.gust-fan-head{background:none;transform:none;transition:none}.gust-fan-sprite{position:absolute;inset:0;background-position:center;background-size:contain;background-repeat:no-repeat;transition:opacity .2s ease,transform .2s ease}.gust-fan-front{background-image:url('assets/sweet-fan-painted.png');opacity:1}.gust-fan-side{background-image:url('assets/sweet-fan-turned.png');opacity:0}.sweet-gust[data-aim="0"] .gust-fan-front,.sweet-gust[data-aim="2"] .gust-fan-front{opacity:0}.sweet-gust[data-aim="0"] .gust-fan-side{opacity:1;transform:scaleX(-1)}.sweet-gust[data-aim="2"] .gust-fan-side{opacity:1;transform:none}.sweet-gust[data-aim="0"] .gust-fan-grill{transform:translateX(-8%) scaleX(.83)}.sweet-gust[data-aim="2"] .gust-fan-grill{transform:translateX(8%) scaleX(.83)}.gust-fan-grill{transition:transform .2s}.gust-hint-hand{left:31%;top:42%;font-size:35px;animation:gust-swipe-hand 2.5s ease-in-out infinite;transform:none}.gust-hint-label{top:-21px}.gust-hint-trail{position:absolute;top:27%;left:50%;transform:translateX(-50%);font-size:34px;line-height:1;color:#fff9e4;text-shadow:0 2px 4px #6c4736;animation:gust-swipe-trail 2.5s ease-in-out infinite}.sweet-gust[data-fan-hint=done] .gust-turn-hint{display:none}@keyframes gust-swipe-hand{0%,10%,90%,100%{opacity:0;transform:translateX(0)}20%{opacity:1;transform:translateX(-24px)}48%{opacity:1;transform:translateX(25px)}75%{opacity:1;transform:translateX(-24px)}}@keyframes gust-swipe-trail{0%,10%,90%,100%{opacity:0}25%,75%{opacity:.9}}@media(prefers-reduced-motion:reduce){.gust-hint-hand,.gust-hint-trail{animation:none;opacity:1}}
/* Wind ribbons follow the direction of the fan and never cover interaction. */
.gust-airflow{position:absolute;inset:0;width:100%;height:100%;z-index:4;overflow:visible;pointer-events:none;opacity:0;transition:opacity .2s ease}.gust-airflow g{display:none}.sweet-gust[data-aim="0"] .air-left,.sweet-gust[data-aim="1"] .air-center,.sweet-gust[data-aim="2"] .air-right{display:block}.gust-blowing .gust-airflow{opacity:clamp(.35,var(--wind),.8)}.gust-airflow path{fill:none;stroke:#fff9e1;stroke-width:1.1;stroke-linecap:round;stroke-dasharray:7 10;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px #fff8c6);animation:gust-flow 1.05s linear infinite}.gust-airflow path:nth-child(2){stroke-width:1.7;stroke-dasharray:10 12;animation-delay:-.35s}.gust-airflow path:nth-child(3){stroke-width:.9;animation-delay:-.7s}@keyframes gust-flow{to{stroke-dashoffset:-34}}@media(prefers-reduced-motion:reduce){.gust-airflow path{animation:none}}
.gust-airflow path{stroke-width:2;stroke:#fffdf2;filter:drop-shadow(0 0 3px #fff3b8) drop-shadow(0 0 2px #d19a56)}.gust-airflow path:nth-child(2){stroke-width:2.8}.gust-airflow path:nth-child(3){stroke-width:1.7}
/* Reserve the phone status bar on every screen of the Sweet quest. */
@media(max-width:700px){
 .quest-app .play-shell[data-quest="sweet"]{padding-top:max(32px,env(safe-area-inset-top));padding-left:max(9px,env(safe-area-inset-left));padding-right:max(9px,env(safe-area-inset-right))}
 .map-view.sweet{grid-template-rows:calc(60px + max(32px,env(safe-area-inset-top))) minmax(0,1fr) 76px}
 .map-view.sweet .map-top{padding-top:calc(6px + max(32px,env(safe-area-inset-top)));padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
}
@media(max-width:700px) and (max-height:610px){.map-view.sweet{grid-template-rows:calc(52px + max(32px,env(safe-area-inset-top))) minmax(0,1fr) 66px}}
@media(max-width:700px){.map-view.sweet .map-inner{width:min(calc(100% - 12px),calc((100dvh - 150px - max(32px,env(safe-area-inset-top))) * 941 / 1672))}}
@media(max-width:700px) and (max-height:610px){.map-view.sweet .map-inner{width:min(calc(100% - 12px),calc((100dvh - 128px - max(32px,env(safe-area-inset-top))) * 941 / 1672))}}
/* SVG paths run from the fan towards the tabletop. */
@keyframes gust-flow{from{stroke-dashoffset:0}to{stroke-dashoffset:34}}
.gust-airflow path{animation:none;stroke-dasharray:none;opacity:.42}.gust-airflow .air-particle{fill:#fffdf2;filter:drop-shadow(0 0 3px #fff2bb)}
.sweet-community{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px auto;padding:12px 14px;max-width:520px;border:1px solid #b6d9f7;border-radius:16px;background:linear-gradient(120deg,#f1f9ff,#e2efff);color:#22476b;text-align:left}.sweet-community div{min-width:0}.sweet-community strong,.sweet-community span{display:block}.sweet-community strong{font-size:14px;line-height:1.2}.sweet-community span{font-size:11px;line-height:1.25;margin-top:3px}.sweet-community a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 13px;border-radius:12px;background:#0878dc;color:white;font-size:12px;font-weight:900;text-align:center;line-height:1.15;box-shadow:0 3px 0 #075ca8;flex-shrink:0}.sweet-community a:focus-visible{outline:3px solid #ffbb4c;outline-offset:3px}@media(max-width:360px){.sweet-community{gap:7px;padding:10px}.sweet-community strong{font-size:12px}.sweet-community a{font-size:11px;padding:8px}}
@media(max-width:700px){.play-shell[data-quest="sweet"] .finish-card:not(.prize-card){padding:10px 14px 14px}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card)>img.cover{height:55px;border-radius:12px}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card)>.mascot{display:none}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card) .eyebrow{margin:5px 0 0;font-size:9px}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card) h1{font-size:clamp(21px,6vw,26px);margin:5px 0}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card)>p:not(.audio-status){font-size:11px;line-height:1.25}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card) .award{margin:6px 0;padding:5px 10px;font-size:10px}.play-shell[data-quest="sweet"] .prize-gift-btn{margin:5px auto;padding:7px 12px;gap:2px;border-radius:17px;box-shadow:0 4px 0 #e0b84a66}.play-shell[data-quest="sweet"] .prize-gift-btn img{width:75px;border-radius:10px}.play-shell[data-quest="sweet"] .prize-gift-label{font-size:16px}.play-shell[data-quest="sweet"] .prize-gift-hint{font-size:11px}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card) .sweet-community{margin:8px auto}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card)>.audio-status{display:none}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card) .actions{margin:6px auto}.play-shell[data-quest="sweet"] .finish-card:not(.prize-card) .actions .btn{min-height:44px;padding:8px;font-size:12px}}
