@font-face{font-family:GameRound;src:url('./media/scene/round85.ttf') format('truetype');font-display:swap}
@font-face{font-family:VeggieRound;src:url('./media/veggie/round75.ttf') format('truetype');font-display:swap}
body:is([data-view=play],[data-view=paused],[data-view=task-complete]) #page{--pad-background:var(--game-scene) center/100% 100%}
.stage{position:absolute;inset:0}
#instruction{position:absolute;z-index:1;pointer-events:none;text-align:center;font:26px PadRound,sans-serif}
@keyframes blink-instruction{50%{opacity:0}}
#instruction.speaking{animation:blink-instruction 1s linear infinite}
#instruction:empty{display:none}
#page[data-game="0"] #instruction{width:370px;height:75px;line-height:75px;top:66px;left:295px;color:#bc6835;background:url('./media/scene/compare-title.png') center/100% 100%}
#page[data-game="1"] #instruction{width:347px;height:75px;line-height:75px;top:50px;left:306.5px;color:#c77b49;font:22px/75px GameRound,sans-serif;background:url('./media/scene/fridge-title.png') center/100% 100%}
#page[data-game="2"] #instruction{width:100%;top:61px;color:#36a858;font-size:22px}
#pause{left:auto;right:20px;top:18px;width:42px;height:42px;border-radius:50%;font-size:18px;color:#fff;background:#553a2352}
body[data-view=play]:has(#page[data-game="5"]) #pause{top:auto;bottom:16px}
.speaker{font-size:0}
.board{position:absolute;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));justify-content:center}
.tile{position:relative;display:grid;place-items:center;border:0;background:transparent;min-width:0;min-height:0;overflow:visible}
.tile:disabled{opacity:1}.tile img,.single,.listening{pointer-events:none;object-fit:contain}
.tile.guided:after{content:'';position:absolute;pointer-events:none;left:52%;top:52%;width:54px;height:64px;background:url('./media/scene/hand.png') center/contain no-repeat;animation:point .8s ease-in-out infinite alternate;z-index:2}
@keyframes point{to{transform:translate(6px,7px)}}
.comparison{left:194px;right:198px;top:140px;height:338px;display:flex;justify-content:space-between;align-items:flex-start}
.comparison .tile{width:300px;height:338px}
.comparison .small-object{width:154px;height:154px;margin-top:130px;background-position:center bottom 15px}
.comparison img{width:100%;height:100%}
.fridge{left:50%;transform:translateX(-50%);top:309.5px;grid-template-columns:repeat(3,104px);gap:18px 38px}
.fridge .tile{width:104px;height:108px;background:url('./media/scene/fridge-card.png') center/100% 100%}.fridge img{width:57px;height:57px}
.single{position:absolute;left:415px;top:135px;width:130px;height:130px}
.listening{position:absolute;left:332px;top:172px;width:296px;height:258px}
.animals{top:197px;left:82px;right:82px;display:flex;justify-content:space-between}
.animals .tile{width:145px;height:182px;background:url('./media/scene/animal-card.png') center/100% 100%}.animals img{width:123px;height:150px}
.bins{left:50%;transform:translateX(-50%);top:105px;grid-template-columns:repeat(4,100px);gap:0 18px}
.bins .tile{width:100px;height:112px;background:url('./media/env/bottom.png') center bottom/100px 69px no-repeat;align-items:start}
.bins .tile>img:first-child{width:100px;height:43px;object-fit:fill}
.bins .rubbish{position:absolute;z-index:2;left:25px;top:0;width:50px;height:50px;animation:drop 1.8s ease-in-out both}
@keyframes drop{0%,11%{opacity:0;transform:translate(-25px,0)}17%{opacity:1;transform:translate(-25px,0)}72%{opacity:1;transform:translate(0,62px)}78%,100%{opacity:0;transform:translate(0,62px)}}
.bins .opening>img:first-child{transform-origin:100% 50%;animation:open-lid 1.8s linear both}
.bins .tile::after{content:'';position:absolute;inset:43px 0 0;background:url('./media/env/bottom.png') center/100% 100%;z-index:2;pointer-events:none}
@keyframes open-lid{0%,100%{transform:none}11%,89%{transform:translate(10px,27px) rotate(90deg)}}
.treasure{left:50%;transform:translateX(-50%);top:80px;grid-template-columns:repeat(5,72px);gap:5px 18px}
.treasure .tile,.treasure img{width:72px;height:80px}.flipped img{animation:turn .3s ease-in-out}
@keyframes turn{50%{transform:scaleX(.05)}}
.vegetables{left:173px;top:100px;width:614px;padding:0 80px;height:435px;grid-template-columns:repeat(6,42px);grid-template-rows:repeat(6,42px);justify-content:space-between;align-content:start;row-gap:31px}
.vegetables::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background-image:url('./media/scene/vegetable_spacer.png'),url('./media/scene/vegetable_spacer.png'),url('./media/scene/vegetable_spacer.png'),url('./media/scene/vegetable_spacer.png'),url('./media/scene/vegetable_spacer.png'),url('./media/scene/vegetable_spacer.png');background-position:0 30px,0 103px,0 176px,0 249px,0 322px,0 395px;background-size:614px 40px;background-repeat:no-repeat}
.vegetables .tile,.vegetables img{width:42px;height:42px}.marked:after{content:'';position:absolute;bottom:-12px;width:35px;height:35px;background:url('./media/scene/vegetable_choose.png') center/contain}
.countdown{position:absolute;right:38px;top:38px;width:123px;height:44px;line-height:44px;border-radius:22px;text-align:center;color:white;background:#0005;font:22px/44px PadRound,sans-serif}
body:is([data-view=count],[data-view=phase]) #page{display:grid;place-items:center;--pad-background:#fff5e7}
body[data-view=phase] #page{--pad-background:#fccc92}
.medallion{display:grid;place-items:center;font:83px GameRound,sans-serif;color:white;width:196px;height:196px;border-radius:50%;background:#fe9449 url('./media/scene/number.png') center/190px 190px no-repeat}
body[data-view=phase] .medallion{width:139px;height:139px;font-size:50px;background:transparent url('./media/scene/phase.png') center/contain}
.celebration{position:absolute;inset:0;z-index:2;font-family:GameRound,sans-serif}
.celebration::after{content:"";position:absolute;inset:calc(-1 * var(--vertical-bleed)) 0;z-index:-1;background:#000c}
.formal-end:before{content:'';position:absolute;left:355px;top:100px;width:250px;height:250px;background:url('./media/scene/light.png') center/contain;animation:spin 5s linear infinite}
.award{position:absolute;left:345px;top:115px;width:270px;height:220px;text-align:center}
.award img{width:100%;height:100%}.award strong{position:absolute;bottom:15px;left:0;width:100%;color:white;font-size:26px;font-weight:400}
.formal-end button{position:absolute;width:126px;height:48px;top:342px;left:417px;font-size:22px;background:#fda331;color:#b85717;font-family:inherit}
.practice-badge{position:absolute;left:400px;top:146px;width:160px;height:190px}
.practice-badge img{position:absolute;pointer-events:none}
.practice-end footer{position:absolute;top:386px;left:0;width:100%;display:flex;justify-content:center;gap:10px}
.practice-end button{width:148px;height:48px;background:url('./media/practice/button.png') center/contain;color:white;font-size:18px}
#repeat-audio{left:36px;top:38px;width:48px;height:48px;z-index:1;background-size:contain}
#page[data-game="5"] #repeat-audio{top:36px;background:url('./media/veggie/speaker.png') center/contain no-repeat,url('./media/veggie/ellipse.png') center/contain no-repeat}
#repeat-audio:disabled{opacity:1}
#page[data-game="5"] .tile.guided::after{left:25px;top:30px;width:43px;height:41px;background-image:url('./media/veggie/finger.png')}
body[data-view=phase] #page[data-game="5"]{--pad-background:#fdc789}
body[data-view=phase] #page[data-game="5"] .medallion{width:130px;height:130px;background:linear-gradient(#ffbb68,#ff984d);border:6px solid white;font-family:VeggieRound,sans-serif}
body[data-view=count] #page[data-game="5"]{--pad-background:#fef5e6}
body[data-view=count] #page[data-game="5"] .medallion{width:200px;height:200px;font:80px VeggieRound,sans-serif;background:url('./media/veggie/ic_page_num.png') center/190px 190px no-repeat,linear-gradient(#ffbb68,#ff984d)}
#page[data-game="5"] .celebration{font-family:VeggieRound,sans-serif}
#page[data-game="5"] .celebration::after{background:#0005}
#page[data-game="5"] .formal-end:before{top:60px;left:310px;width:340px;height:340px;background-image:url('./media/veggie/task_finish_rotate.png')}
#page[data-game="5"] .award{top:120px}
#page[data-game="5"] .award strong{bottom:21px}
#page[data-game="5"] .formal-end button{top:352px;background:#fdb745}
#page[data-game="5"] .practice-badge{top:100px;transform:scale(1.279);transform-origin:top center}
#page[data-game="5"] .practice-end footer{top:363px;gap:30px}
#page[data-game="5"] .practice-end button{width:150px;background-image:url('./media/veggie/p_result_5.png')}
@keyframes spin{to{transform:rotate(1turn)}}
