/* abilumi 3歳向け13ゲーム 共通 */
.game-stage-sample.abilumi-3yo-stage{display:block;place-items:initial;background:#f7fbff;border-color:#fff;touch-action:none;user-select:none;-webkit-user-select:none}
.ag-root{position:relative;width:1120px;height:700px;overflow:hidden;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#34363b;background:#f8fbff;isolation:isolate}
.ag-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:0}
.ag-dim{position:absolute;inset:0;background:rgba(255,255,255,.08);pointer-events:none;z-index:1}
.ag-topbar{position:absolute;z-index:30;left:50%;top:18px;transform:translateX(-50%);min-width:360px;max-width:850px;padding:12px 28px;border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 6px 20px rgba(0,0,0,.14);font-size:26px;font-weight:900;text-align:center;line-height:1.3}
.ag-progress{position:absolute;z-index:31;right:22px;top:22px;min-width:110px;padding:9px 16px;border-radius:18px;background:rgba(255,255,255,.94);font-size:20px;font-weight:900;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.ag-item{position:absolute;z-index:10;display:grid;place-items:center;border:0;background:transparent;padding:0;cursor:pointer;transform-origin:center;touch-action:none;-webkit-user-drag:none}
.ag-item img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 5px 4px rgba(0,0,0,.16))}
.ag-item:focus-visible,.ag-color-btn:focus-visible,.ag-label:focus-visible,.ag-card:focus-visible{outline:5px solid #1996e8;outline-offset:4px}
.ag-glow{animation:agGlow .58s ease}
.ag-shake{animation:agShake .38s ease}
@keyframes agGlow{0%{filter:none;transform:scale(1)}45%{filter:drop-shadow(0 0 16px #ffd84e) drop-shadow(0 0 30px #fff);transform:scale(1.14)}100%{filter:none;transform:scale(1)}}
@keyframes agShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-14px)}50%{transform:translateX(14px)}75%{transform:translateX(-8px)}}
.ag-sample{position:absolute;z-index:40;left:50%;top:50%;width:220px;height:220px;transform:translate(-50%,-50%) scale(1);display:grid;place-items:center;padding:18px;border-radius:36px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(0,0,0,.24);transition:left .4s ease,top .4s ease,width .4s ease,height .4s ease,transform .4s ease}
.ag-sample img{width:100%;height:100%;object-fit:contain}.ag-sample.is-top{left:50%;top:115px;width:135px;height:135px}
.ag-record{position:absolute;z-index:22;left:18px;top:88px;width:170px;bottom:18px;padding:12px;border-radius:22px;background:rgba(255,255,255,.9);box-shadow:0 5px 18px rgba(0,0,0,.11);display:flex;flex-direction:column;gap:8px}
.ag-record-title{font-size:18px;font-weight:900;text-align:center}.ag-record-row{height:96px;display:grid;grid-template-columns:72px 1fr;gap:5px;align-items:center;border-radius:14px;background:#fff7d8;padding:5px 7px;font-weight:900;font-size:18px}.ag-record-row img{width:70px;height:70px;object-fit:contain}
.ag-color-grid{position:absolute;z-index:20;left:50%;bottom:18px;transform:translateX(-50%);width:920px;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.ag-color-btn{height:74px;border:4px solid rgba(255,255,255,.95);border-radius:18px;box-shadow:0 4px 13px rgba(0,0,0,.18);cursor:pointer;font-size:18px;font-weight:900;color:#222;text-shadow:0 1px 2px rgba(255,255,255,.9)}
.ag-color-btn[data-dark="1"]{color:#fff;text-shadow:none}.ag-color-btn.ag-glow{animation:agColorGlow .55s ease}@keyframes agColorGlow{50%{transform:scale(1.08);box-shadow:0 0 0 8px rgba(255,232,80,.8),0 4px 13px rgba(0,0,0,.18)}}
.ag-art{position:absolute;z-index:5;left:160px;right:160px;top:70px;bottom:110px}.ag-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .12s ease}.ag-art img.is-changing{opacity:.45}.ag-art-states{left:120px;right:120px;top:72px;bottom:112px}
.ag-shadow-target{position:absolute;z-index:8;left:50%;top:115px;transform:translateX(-50%);width:250px;height:260px;display:grid;place-items:center}.ag-shadow-target img{max-width:100%;max-height:100%;object-fit:contain;filter:brightness(0);opacity:.82}
.ag-candidates{position:absolute;z-index:14;left:110px;right:110px;bottom:38px;height:230px;display:flex;justify-content:center;align-items:flex-end;gap:26px}.ag-candidate{position:relative;width:155px;height:190px;border:0;background:rgba(255,255,255,.82);border-radius:22px;padding:10px;cursor:pointer;box-shadow:0 5px 16px rgba(0,0,0,.15);transition:transform .35s ease,opacity .25s ease,left .35s ease,top .35s ease}.ag-candidate img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.ag-sort-box{position:absolute;z-index:9;left:50%;bottom:24px;transform:translateX(-50%);width:245px;height:155px;display:grid;place-items:center}.ag-sort-box img{width:100%;height:100%;object-fit:contain}.ag-sort-counter{position:absolute;z-index:12;left:50%;bottom:45px;transform:translateX(-50%);padding:6px 12px;border-radius:16px;background:#fff;font-size:20px;font-weight:900}
.ag-drag-boxes{position:absolute;z-index:16;left:45px;right:45px;top:92px;height:150px;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.ag-dropbox{position:relative;border:4px dashed rgba(80,80,80,.22);border-radius:22px;background:rgba(255,255,255,.9);display:grid;place-items:center;text-align:center;font-weight:900;font-size:20px;box-shadow:0 4px 12px rgba(0,0,0,.08)}.ag-dropbox .swatch{width:80px;height:46px;border-radius:14px;border:4px solid white;box-shadow:0 2px 8px rgba(0,0,0,.15)}.ag-dropbox .shape-demo{width:72px;height:72px;background:#55a8ff}.ag-drop-count{position:absolute;right:8px;bottom:7px;background:#fff3a8;padding:3px 9px;border-radius:12px;font-size:17px}
.ag-drag-area{position:absolute;z-index:12;left:55px;right:55px;top:265px;bottom:32px}.ag-drag-item{position:absolute;width:118px;height:118px;display:grid;place-items:center;cursor:grab;touch-action:none;z-index:20;transition:left .28s ease,top .28s ease,transform .15s ease}.ag-drag-item.is-dragging{cursor:grabbing;z-index:80;transition:none;transform:scale(1.08)}.ag-drag-item img{width:100%;height:100%;object-fit:contain;pointer-events:none}.ag-color-object{width:94px;height:94px;box-shadow:inset -8px -10px 0 rgba(0,0,0,.08),0 5px 9px rgba(0,0,0,.14);border:5px solid rgba(255,255,255,.8)}.ag-color-object.v1{border-radius:50%}.ag-color-object.v2{border-radius:18px;transform:rotate(8deg)}

.ag-target-grid{position:absolute;z-index:12;left:120px;right:120px;top:92px;height:330px;display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.ag-name-target{position:relative;border-radius:22px;background:rgba(255,255,255,.82);box-shadow:0 4px 13px rgba(0,0,0,.13);display:grid;grid-template-rows:1fr 65px;place-items:center;padding:8px}.ag-name-target img{max-width:135px;max-height:210px;object-fit:contain}.ag-sign{width:92%;height:58px;border:4px dashed #d8a445;border-radius:14px;background:#fff9df;display:grid;place-items:center;font-size:19px;font-weight:900}.ag-paint-tube{width:110px;height:180px;border:6px solid #ddd;border-radius:24px 24px 34px 34px;background:white;position:relative;overflow:hidden;transform:rotate(7deg)}.ag-paint-tube::before{content:"";position:absolute;left:12px;right:12px;top:45px;height:76px;border-radius:18px;background:var(--paint)}.ag-paint-tube::after{content:"";position:absolute;left:22px;right:22px;bottom:12px;height:15px;border-radius:5px;background:#ddd}
.ag-labels{position:absolute;z-index:25;left:80px;right:80px;bottom:28px;height:150px;display:flex;justify-content:center;align-items:center;gap:18px}.ag-label{position:relative;width:175px;height:88px;border:4px solid #f3b63f;border-radius:20px;background:#fff8cf;box-shadow:0 5px 12px rgba(0,0,0,.15);display:grid;place-items:center;font-size:27px;font-weight:900;cursor:grab;touch-action:none;transition:left .25s ease,top .25s ease,transform .15s ease}.ag-label.is-dragging{position:absolute;z-index:10000;cursor:grabbing;transition:none;transform:scale(1.06)}.ag-label-placeholder{flex:0 0 175px;height:88px}
.ag-card-grid{position:absolute;z-index:10;left:230px;right:230px;top:100px;bottom:65px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:24px}.ag-card{position:relative;border:0;background:transparent;perspective:900px;cursor:pointer}.ag-card-inner{position:absolute;inset:0;transition:transform .48s ease;transform-style:preserve-3d}.ag-card.is-flipped .ag-card-inner{transform:rotateY(180deg)}.ag-card-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:24px;overflow:hidden;box-shadow:0 7px 18px rgba(0,0,0,.18);display:grid;place-items:center}.ag-card-back{background:#bce7ff}.ag-card-back img{width:100%;height:100%;object-fit:cover}.ag-card-front{transform:rotateY(180deg);background:#fff;padding:18px}.ag-card-front img{width:100%;height:100%;object-fit:contain}.ag-card.is-matched{pointer-events:none}.ag-card.is-matched .ag-card-front{box-shadow:inset 0 0 0 8px #ffe34e,0 0 28px #ffe34e}
.ag-complete{position:absolute;z-index:200;inset:0;background:rgba(20,30,40,.42);display:grid;place-items:center}.ag-complete-card{width:620px;padding:38px;border-radius:34px;background:#fff;text-align:center;box-shadow:0 18px 60px rgba(0,0,0,.28)}.ag-complete-card h2{margin:0 0 12px;font-size:42px;color:#ff506c}.ag-complete-card p{margin:0 0 28px;font-size:27px;font-weight:900}.ag-complete-actions{display:flex;justify-content:center;gap:22px}.ag-complete-actions button{min-width:190px;height:72px;border:0;border-radius:22px;font-size:24px;font-weight:900;cursor:pointer}.ag-retry{background:#ffe178;color:#51451b}.ag-exit{background:#ff6680;color:#fff}.ag-sparkles{position:absolute;inset:0;pointer-events:none;overflow:hidden}.ag-spark{position:absolute;font-size:38px;animation:agSpark 1.2s ease forwards}@keyframes agSpark{0%{opacity:0;transform:scale(.2) rotate(0)}40%{opacity:1}100%{opacity:0;transform:scale(1.4) rotate(170deg) translateY(-30px)}}
.ag-help-note{position:absolute;z-index:32;left:20px;bottom:16px;padding:7px 12px;border-radius:14px;background:rgba(255,255,255,.85);font-size:16px;font-weight:800;color:#555}

/* === QUALITY 100 PASS 1 === */
.ag-root{transition:opacity .28s ease,transform .28s ease}
.ag-root.ag-enter{opacity:0;transform:scale(.985)}
.ag-topbar{box-shadow:0 7px 22px rgba(30,70,95,.18);backdrop-filter:blur(5px)}
.ag-progress{min-width:98px;text-align:center;box-shadow:0 6px 18px rgba(30,70,95,.16)}
.ag-feedback-label{position:absolute;z-index:260;left:50%;top:138px;transform:translateX(-50%);padding:10px 26px;border-radius:999px;background:#fff;font-size:27px;font-weight:1000;box-shadow:0 8px 25px rgba(0,0,0,.18);animation:agFeedback .72s ease forwards;pointer-events:none}
.ag-feedback-label.ok{color:#248d52;border:4px solid #75d99a}.ag-feedback-label.ng{color:#d85c62;border:4px solid #ffc0c3}
@keyframes agFeedback{0%{opacity:0;transform:translate(-50%,12px) scale(.85)}25%{opacity:1;transform:translate(-50%,0) scale(1.04)}100%{opacity:0;transform:translate(-50%,-12px) scale(.98)}}
.ag-complete{backdrop-filter:blur(4px)}.ag-complete-card{animation:agClearCard .45s cubic-bezier(.2,.9,.25,1.2);border:5px solid #fff4aa}
.ag-clear-stars{font-size:42px;letter-spacing:10px;color:#ffc928;text-shadow:0 3px 0 #e69b16;margin-bottom:6px}
@keyframes agClearCard{0%{opacity:0;transform:translateY(35px) scale(.78)}100%{opacity:1;transform:none}}
.ag-complete-actions button,.ag-item{transition:transform .14s ease,filter .14s ease}.ag-complete-actions button:active,.ag-item:active{transform:scale(.96)}
.ag-illustrated-dropbox{overflow:hidden}.ag-dropbox-icon{display:block;width:72px;height:72px;object-fit:contain;margin:-4px auto 1px}.ag-illustrated-drag img{filter:drop-shadow(0 6px 5px rgba(0,0,0,.16))}
.ag-illustrated-drag.is-sorted{transform:scale(.7);opacity:0}
@media (prefers-reduced-motion:reduce){.ag-root,.ag-item,.ag-drag-item,.ag-complete-card{animation:none!important;transition:none!important}}

/* === QUALITY 100 PASS 3 === */
.ag-progress-trail{position:absolute;z-index:62;top:102px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;justify-content:center;pointer-events:none}
.ag-progress-trail i{width:14px;height:14px;border-radius:50%;background:rgba(255,255,255,.72);border:3px solid rgba(57,127,166,.4);transition:.22s}.ag-progress-trail i.done{background:#ffd548;border-color:#f0a61f;transform:scale(1.1)}
.ag-progress-trail.compact{gap:4px}.ag-progress-trail.compact i{width:9px;height:9px;border-width:2px}
.ag-shadow-target.is-revealed img{filter:none!important;opacity:1!important;animation:agReveal .42s ease}
@keyframes agReveal{50%{transform:scale(1.12)}}
.ag-sort-collected{position:absolute;left:27px;right:27px;bottom:18px;height:55px;display:flex;align-items:flex-end;justify-content:center;gap:2px;pointer-events:none}
.ag-sort-collected img{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18))}
.ag-sort-box.just-filled{animation:agBoxPop .32s ease}@keyframes agBoxPop{50%{transform:scale(1.05)}}

/* === QUALITY 100 PASS 5 : VISUAL INTEGRATION === */
.ag-root::after{content:"";position:absolute;inset:0;z-index:7;pointer-events:none;box-shadow:inset 0 0 58px rgba(32,68,83,.12),inset 0 -42px 70px rgba(30,55,67,.08)}
.ag-bg{filter:saturate(1.035) contrast(1.015)}
.ag-topbar{border:3px solid rgba(255,255,255,.96);background:rgba(255,255,255,.90);box-shadow:0 9px 26px rgba(44,78,94,.17),inset 0 1px 0 #fff;backdrop-filter:blur(8px)}
.ag-progress{border:3px solid rgba(255,255,255,.9);box-shadow:0 7px 19px rgba(42,78,98,.19),inset 0 1px 0 rgba(255,255,255,.38)}
.ag-item,.ag-candidate,.ag-drag-item{filter:drop-shadow(0 7px 7px rgba(50,65,75,.17));transition:transform .16s ease,filter .16s ease,opacity .2s ease}
.ag-item:hover,.ag-candidate:hover{filter:drop-shadow(0 10px 9px rgba(50,65,75,.21))}
.ag-item::after,.ag-candidate::after,.ag-drag-item::after{content:"";position:absolute;left:19%;right:19%;bottom:5px;height:13px;border-radius:50%;background:rgba(38,55,62,.12);filter:blur(5px);z-index:-1;pointer-events:none}
.ag-item img,.ag-candidate img,.ag-drag-item img{filter:drop-shadow(0 5px 3px rgba(45,55,62,.12))}
.ag-sort-box,.ag-dropbox,.ag-name-target,.ag-sign{filter:drop-shadow(0 9px 8px rgba(45,58,66,.14))}
.ag-card{box-shadow:0 9px 23px rgba(44,58,68,.17)}
.ag-card-front,.ag-card-back{backface-visibility:hidden}
.ag-complete{background:rgba(30,48,59,.33)}
.ag-complete-card{position:relative;overflow:hidden;border:0!important;background:rgba(255,252,232,.97);box-shadow:0 24px 70px rgba(29,44,52,.28)}
.ag-complete-frame{position:absolute;inset:-25px;width:calc(100% + 50px);height:calc(100% + 50px);object-fit:fill;opacity:.72;pointer-events:none;z-index:0}
.ag-complete-card>*:not(.ag-complete-frame){position:relative;z-index:2}
.ag-clear-stars{display:flex;justify-content:center;gap:6px;height:52px;margin-bottom:2px}
.ag-clear-stars img{width:48px;height:48px;object-fit:contain;animation:agMedalIn .55s cubic-bezier(.2,.9,.2,1.25) both}
.ag-clear-stars img:nth-child(2){animation-delay:.1s}.ag-clear-stars img:nth-child(3){animation-delay:.2s}
@keyframes agMedalIn{from{transform:translateY(18px) scale(.25) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}
.ag-sparkles{position:absolute;inset:0;z-index:400;pointer-events:none}.ag-spark{position:absolute;width:46px;height:46px;object-fit:contain;animation:agAssetSpark 1.35s ease-out both;filter:drop-shadow(0 3px 4px rgba(0,0,0,.16))}
@keyframes agAssetSpark{0%{transform:translateY(32px) scale(.2) rotate(var(--rot));opacity:0}20%{opacity:1}100%{transform:translateY(-55px) scale(1.05) rotate(var(--rot));opacity:0}}

/* === QUALITY 100 PASS 6 : WORLD REACTION & SOUND-SYNC MOTION === */
.ag-root.is-finalizing{cursor:wait}.ag-root.is-finalizing .ag-item,.ag-root.is-finalizing .ag-drag-item,.ag-root.is-finalizing button{pointer-events:none}
.ag-world-react .ag-bg{animation:agWorldPulse .5s ease}.ag-success-token{position:absolute;z-index:275;width:50px;height:50px;object-fit:contain;pointer-events:none;animation:agSuccessToken .58s ease-out forwards;filter:drop-shadow(0 4px 4px rgba(0,0,0,.16))}
@keyframes agWorldPulse{50%{filter:saturate(1.09) brightness(1.035)}}@keyframes agSuccessToken{0%{transform:scale(.15) rotate(-20deg);opacity:0}45%{opacity:1;transform:translateY(-13px) scale(1.15) rotate(8deg)}100%{opacity:0;transform:translateY(-38px) scale(.85) rotate(20deg)}}
.ag-world-finale{position:absolute;z-index:230;inset:0;pointer-events:none;overflow:hidden}.ag-world-finale img{position:absolute;width:145px;height:145px;object-fit:contain;left:calc(50% - 72px + (var(--i) - (var(--n) - 1)/2)*155px);top:410px;filter:drop-shadow(0 10px 8px rgba(30,45,54,.18));animation:agFinaleParade .95s cubic-bezier(.18,.8,.22,1) both}
.ag-world-finale img:nth-child(2){animation-delay:.08s}.ag-world-finale img:nth-child(3){animation-delay:.16s}.ag-world-finale img:nth-child(4){animation-delay:.24s}
@keyframes agFinaleParade{0%{transform:translateY(120px) scale(.6);opacity:0}40%{opacity:1;transform:translateY(-14px) scale(1.08)}72%{transform:translateY(0) scale(1)}100%{transform:translateY(-20px) scale(.96);opacity:.85}}

/* === QUALITY 100 PASS 8 === */
.ag-binary-bin{position:absolute;z-index:18;top:150px;width:250px;height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;filter:drop-shadow(0 10px 9px rgba(35,52,60,.16))}
.ag-binary-bin.yes{left:235px}.ag-binary-bin.no{right:235px}.ag-binary-bin>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:0}.ag-binary-bin strong,.ag-binary-bin span,.ag-binary-collected{position:relative;z-index:2}.ag-binary-bin strong{font-size:22px}.ag-binary-bin span{font-weight:900}.ag-binary-collected{height:46px;display:flex;justify-content:center;gap:2px}.ag-binary-collected img{width:34px;height:34px;object-fit:contain}.ag-binary-bin.just-filled{animation:agBinPop .3s ease}
.ag-binary-item{width:105px!important;height:105px!important}.ag-round-medals{position:absolute;z-index:65;right:45px;top:150px;display:flex;gap:6px}.ag-round-medals img{width:48px;height:48px;object-fit:contain;opacity:.22;transition:.3s}.ag-round-medals img.done{opacity:1;transform:translateY(-5px)}
.ag-round-boxes{grid-template-columns:repeat(var(--count),1fr)!important;left:180px!important;right:180px!important}.ag-drop-collected{height:36px;display:flex;justify-content:center}.ag-drop-collected img{width:30px;height:30px;object-fit:contain}
.ag-memory-prizes{position:absolute;z-index:65;right:55px;top:155px;display:flex;gap:4px}.ag-memory-prizes img{width:45px;height:45px;opacity:.2;transition:.25s}.ag-memory-prizes img.done{opacity:1;transform:scale(1.1)}
.ag-memory-recall{position:absolute;z-index:30;left:290px;right:290px;top:190px;display:grid;place-items:center;gap:10px}.ag-memory-recall img{width:130px;height:130px;object-fit:contain}.ag-memory-recall strong{font-size:24px}.ag-memory-recall-options{position:absolute;z-index:30;left:300px;right:300px;bottom:90px;display:flex;justify-content:center;gap:20px}.ag-memory-recall-options button{width:140px;height:140px;border:4px solid #fff;border-radius:25px;background:rgba(255,255,255,.9);box-shadow:0 9px 24px rgba(0,0,0,.15)}.ag-memory-recall-options img{width:100%;height:100%;object-fit:contain}
@keyframes agBinPop{50%{transform:scale(1.05)}}

/* === QUALITY 100 PASS 9 === */
.ag-animal-home{position:absolute;z-index:20;right:28px;top:185px;width:235px;height:330px;display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 10px 10px rgba(40,55,63,.17))}
.ag-animal-home>img{width:210px;height:180px;object-fit:contain}.ag-animal-home>strong{font-size:20px;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.86)}
.ag-animal-yard{width:220px;min-height:105px;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:2px}.ag-animal-yard img{width:62px;height:62px;object-fit:contain;animation:agAnimalArrive .4s ease}.ag-animal-home.just-arrived{animation:agHomeHappy .35s ease}
.ag-going-home{animation:agGoHome .5s ease forwards!important;pointer-events:none}@keyframes agGoHome{to{transform:translate(var(--home-x),var(--home-y)) scale(.5);opacity:.25}}@keyframes agAnimalArrive{0%{transform:scale(.25);opacity:0}100%{transform:none;opacity:1}}@keyframes agHomeHappy{50%{transform:scale(1.04)}}

/* === QUALITY 100 PASS 10 === */
.ag-shadow-round-medals{position:absolute;z-index:70;right:46px;top:150px;display:flex;gap:6px}.ag-shadow-round-medals img{width:48px;height:48px;object-fit:contain;opacity:.2;transition:.28s}.ag-shadow-round-medals img.done{opacity:1;transform:translateY(-5px) scale(1.08)}
.ag-shadow-gallery{position:absolute;z-index:30;left:45px;top:145px;width:250px;height:80px;border-radius:22px;background:rgba(255,255,255,.78);display:flex;align-items:center;justify-content:center;gap:4px;box-shadow:0 7px 20px rgba(0,0,0,.12)}.ag-shadow-gallery img{width:52px;height:62px;object-fit:contain;animation:agGalleryIn .35s ease}@keyframes agGalleryIn{from{transform:scale(.25);opacity:0}to{transform:none;opacity:1}}
.ag-color-review{position:absolute;z-index:60;left:260px;right:260px;top:190px;bottom:90px;border-radius:30px;background:rgba(255,252,233,.96);border:5px solid #fff;box-shadow:0 14px 40px rgba(0,0,0,.17);display:grid;place-items:center;align-content:center;gap:20px}.ag-color-review>strong{font-size:28px}.ag-color-review-options{display:flex;gap:20px}.ag-color-review-options button{width:150px;height:150px;border:4px solid #fff;border-radius:24px;background:#fff;box-shadow:0 9px 24px rgba(0,0,0,.14)}.ag-color-review-options .ag-paint-tube{width:100px;height:120px}

/* === QUALITY 100 PASS 11 === */
.ag-same-round-medals{position:absolute;z-index:72;right:45px;top:150px;display:flex;gap:6px}.ag-same-round-medals img{width:50px;height:50px;object-fit:contain;opacity:.2;transition:.28s}.ag-same-round-medals img.done{opacity:1;transform:translateY(-5px) scale(1.08)}

/* === QUALITY 100 PASS 12 === */
.ag-round-transfer,.ag-animal-name-review,.ag-memory-audio-recall{position:absolute;z-index:70;left:245px;right:245px;top:180px;bottom:75px;border-radius:32px;background:rgba(255,252,235,.96);border:5px solid #fff;box-shadow:0 16px 44px rgba(31,48,58,.2);display:grid;place-items:center;align-content:center;gap:16px}
.ag-transfer-object{width:150px;height:150px;object-fit:contain}.ag-round-transfer>strong,.ag-animal-name-review>strong,.ag-memory-audio-recall>strong{font-size:27px}.ag-transfer-options{display:flex;gap:18px}.ag-transfer-options button,.ag-animal-listen,.ag-memory-listen{padding:13px 24px;border:4px solid #fff;border-radius:20px;background:#fff1ad;font-size:21px;font-weight:1000;box-shadow:0 8px 20px rgba(0,0,0,.13)}
.ag-animal-review-options{display:flex;gap:16px}.ag-animal-review-options button{width:145px;height:145px;border:5px solid #fff;border-radius:25px;background:#fff;box-shadow:0 9px 25px rgba(0,0,0,.14)}.ag-animal-review-options img{width:100%;height:100%;object-fit:contain}
.ag-memory-audio-recall .ag-memory-recall-options{position:static;display:flex}.ag-memory-audio-recall .ag-memory-recall-options button{width:140px;height:140px}

/* === QUALITY 100 PASS 13 === */
.ag-prompt-listen{position:absolute;z-index:72;left:42px;top:99px;min-height:44px;padding:7px 14px;border:3px solid #fff;border-radius:17px;background:rgba(255,248,192,.95);font-size:16px;font-weight:1000;box-shadow:0 6px 16px rgba(42,66,78,.15)}
.ag-gentle-assist{position:absolute;z-index:310;left:50%;top:150px;transform:translateX(-50%);padding:10px 20px;border-radius:20px;background:rgba(255,248,194,.97);border:4px solid #fff;font-weight:1000;box-shadow:0 9px 24px rgba(0,0,0,.16)}
.ag-drag-item.is-selected{outline:7px solid #ffd33e;outline-offset:5px}.ag-root button:focus-visible,.ag-root [tabindex]:focus-visible{outline:6px solid #2c89d9!important;outline-offset:4px!important}.ag-drag-item{touch-action:none}
.ag-color-sequence-review{position:absolute;z-index:75;left:250px;right:250px;top:180px;bottom:75px;border-radius:32px;background:rgba(255,252,235,.97);border:5px solid #fff;box-shadow:0 15px 42px rgba(0,0,0,.18);display:grid;place-items:center;align-content:center;gap:18px}.ag-color-sequence-review>strong{font-size:26px}.ag-color-sequence-options{display:flex;gap:18px}.ag-color-sequence-options button{width:145px;height:145px;border:5px solid #fff;border-radius:25px;background:#fff;box-shadow:0 9px 24px rgba(0,0,0,.14)}.ag-color-sequence-options img{width:100%;height:100%;object-fit:contain}

/* === BENCHMARK RESET No.1 === */
.ag-rescue-book{position:absolute;z-index:70;left:35px;top:145px;width:200px;min-height:92px;padding:10px;border-radius:24px;background:rgba(255,247,210,.94);border:4px solid #fff;box-shadow:0 10px 28px rgba(0,0,0,.14);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ag-rescue-book>img{width:46px;height:46px;object-fit:contain}.ag-rescue-book>strong{font-size:17px}.ag-rescue-stamp{width:44px;height:44px}.ag-rescue-stamp img{width:100%;height:100%;object-fit:contain}
.ag-rescue-guide{position:absolute;z-index:28;right:35px;top:165px;width:250px;height:245px;display:grid;place-items:center}.ag-rescue-guide>img{width:175px;height:155px;object-fit:contain}.ag-rescue-bubble{position:absolute;left:-100px;top:0;width:195px;min-height:125px;border-radius:28px;background:#fff;border:5px solid #fff4be;box-shadow:0 10px 28px rgba(0,0,0,.14);display:grid;place-items:center;padding:10px}.ag-rescue-bubble img{width:75px;height:75px;object-fit:contain}.ag-rescue-bubble strong{font-size:18px;text-align:center}.ag-rescue-guide.happy{animation:agResetHappy .5s ease}.ag-rescue-candidate.is-rescued{animation:agResetRescue .5s ease forwards}.ag-rescue-parade{position:absolute;z-index:210;left:250px;right:250px;bottom:95px;display:flex;justify-content:center;gap:45px}.ag-rescue-parade img{width:150px;height:150px;object-fit:contain;animation:agResetParade .8s ease both}@keyframes agResetHappy{50%{transform:translateY(-10px) scale(1.04)}}@keyframes agResetRescue{to{transform:translate(250px,-80px) scale(.55);opacity:.2}}@keyframes agResetParade{from{transform:translateY(100px);opacity:0}to{transform:none;opacity:1}}

/* === BENCHMARK RESET PHASE 3 — flatter 2D treatment === */
.ag-rescue-guide,.ag-rescue-book,.ag-rescue-bubble,.ag-rescue-candidate{filter:none!important}
.ag-rescue-book,.ag-rescue-bubble{box-shadow:0 4px 0 rgba(70,88,96,.12)!important}
.ag-rescue-candidate img{filter:none!important}
