/* abilumi 4歳向け No.14〜29 */
.game-stage-sample.abilumi-4yo-stage{display:block;place-items:initial;background:#f7fbff;border-color:#fff;touch-action:none;user-select:none;-webkit-user-select:none}
.a4-root{position:relative;width:1120px;height:700px;overflow:hidden;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#30343a;background:#f8fbff;isolation:isolate}
.a4-root button,.a4-root div{box-sizing:border-box}.a4-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}.a4-dim{position:absolute;inset:0;background:rgba(255,255,255,.14);z-index:1;pointer-events:none}
.a4-top{position:absolute;z-index:90;left:50%;top:16px;transform:translateX(-50%);min-width:390px;max-width:820px;padding:11px 26px;border-radius:23px;background:rgba(255,255,255,.95);box-shadow:0 5px 18px rgba(0,0,0,.14);font-size:25px;font-weight:900;text-align:center}.a4-progress{position:absolute;z-index:91;right:22px;top:20px;padding:9px 15px;border-radius:18px;background:rgba(255,255,255,.95);font-size:19px;font-weight:900;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.a4-glow{animation:a4Glow .58s ease}.a4-shake{animation:a4Shake .38s ease}@keyframes a4Glow{50%{filter:drop-shadow(0 0 17px #ffe048);transform:scale(1.1)}}@keyframes a4Shake{25%{transform:translateX(-12px)}50%{transform:translateX(12px)}75%{transform:translateX(-7px)}}
.a4-complete{position:absolute;z-index:300;inset:0;background:rgba(20,30,40,.42);display:grid;place-items:center}.a4-complete-card{width:610px;padding:36px;border-radius:34px;background:#fff;text-align:center;box-shadow:0 18px 60px rgba(0,0,0,.28)}.a4-complete-card h2{margin:0 0 10px;font-size:42px;color:#ff536d}.a4-complete-card p{margin:0 0 26px;font-size:27px;font-weight:900}.a4-complete-card>div{display:flex;justify-content:center;gap:22px}.a4-complete button{min-width:190px;height:70px;border:0;border-radius:22px;font-size:24px;font-weight:900;cursor:pointer}.a4-complete .retry{background:#ffe178}.a4-complete .exit{background:#ff6680;color:white}.a4-sparkles{position:absolute;z-index:290;inset:0;pointer-events:none}.a4-sparkles span{position:absolute;font-size:38px;animation:a4Spark 1.2s ease forwards}@keyframes a4Spark{0%{opacity:0;transform:scale(.2)}45%{opacity:1}100%{opacity:0;transform:scale(1.5) rotate(150deg) translateY(-35px)}}
/* Memory */
.a4-memory-show{position:absolute;z-index:10;left:185px;right:185px;top:125px;height:270px;display:flex;justify-content:center;align-items:center;gap:65px}.a4-memory-object{width:205px;height:205px;transition:transform .8s ease,opacity .8s ease;display:grid;place-items:center}.a4-memory-object img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 6px 5px rgba(0,0,0,.18))}.a4-memory-object.is-hiding{transform:translate(var(--hide-x,0),230px) scale(.45);opacity:.12}.a4-grass-cover{position:absolute;z-index:14;left:0;top:285px;width:1120px;height:320px;object-fit:contain;object-position:center bottom;pointer-events:none}.a4-tunnel-cover{position:absolute;z-index:8;inset:0;width:1120px;height:700px;object-fit:contain;pointer-events:none}.a4-fridge{position:absolute;z-index:8;left:385px;top:112px;width:350px;height:350px;object-fit:contain;pointer-events:none}.a4-memory-options{position:absolute;z-index:30;left:65px;right:65px;bottom:35px;height:205px;padding:10px;display:flex;justify-content:center;align-items:center;gap:18px;border-radius:28px;background:rgba(255,255,255,.88);box-shadow:0 6px 22px rgba(0,0,0,.12)}.a4-memory-choice{width:180px;height:175px;border:4px solid #fff;border-radius:24px;background:#fff;box-shadow:0 5px 14px rgba(0,0,0,.15);cursor:pointer;transition:opacity .32s ease,transform .2s ease}.a4-memory-choice img{width:100%;height:100%;object-fit:contain;pointer-events:none}.a4-memory-choice.is-gone{opacity:0;transform:scale(.3)}
/* Drag cards / slots */
.a4-slots{position:absolute;z-index:15;left:100px;right:100px;top:110px;height:245px;display:grid;grid-template-columns:repeat(var(--count),1fr);gap:16px}.a4-slot{position:relative;border:5px dashed #72a8d5;border-radius:24px;background:rgba(255,255,255,.8);box-shadow:0 4px 14px rgba(0,0,0,.08);display:grid;place-items:center}.a4-slot>span{position:absolute;top:7px;left:10px;width:34px;height:34px;border-radius:50%;background:#e7f5ff;display:grid;place-items:center;font-weight:900;color:#4e83aa}.a4-order-card{position:absolute;z-index:35;width:130px;height:160px;border:4px solid #fff;border-radius:23px;background:#fff;box-shadow:0 6px 15px rgba(0,0,0,.16);display:grid;place-items:center;cursor:grab;touch-action:none;transition:left .28s ease,top .28s ease,transform .15s ease}.a4-order-card.is-dragging{z-index:100;transition:none;transform:scale(1.07);cursor:grabbing}.a4-order-card.is-placed{pointer-events:none;background:#fff9d3;border-color:#ffe25d}.a4-number-card{font-size:70px;font-weight:1000;color:#2589d6}.a4-size-card,.a4-growth-card,.a4-season-card{width:100%;height:100%;display:grid;place-items:center}.a4-size-card img{object-fit:contain}.a4-growth-card img{width:105px;height:105px;object-fit:contain}.a4-growth-card span{font-size:18px;font-weight:900}.a4-season-card>div{height:105px;display:flex;justify-content:center;align-items:center}.a4-season-card img{width:78px;height:95px;object-fit:contain}.a4-season-card strong{font-size:25px}
/* Number amount */
.a4-number-boxes{position:absolute;z-index:12;left:55px;right:55px;top:92px;height:170px;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.a4-number-box{border:5px dashed #58a6da;border-radius:24px;background:rgba(255,255,255,.9);display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.09)}.a4-number-box strong{font-size:65px;color:#2d8fda}.a4-number-box small{font-size:17px;font-weight:900;background:#fff0a4;padding:4px 10px;border-radius:12px}.a4-amount-card{position:absolute;z-index:30;width:150px;height:125px;border:4px solid #fff;border-radius:20px;background:#fff;box-shadow:0 5px 13px rgba(0,0,0,.14);display:grid;place-items:center;cursor:grab;touch-action:none;transition:left .25s ease,top .25s ease,transform .15s ease}.a4-amount-card.is-dragging{z-index:100;transition:none;transform:scale(1.05)}.a4-amount-icons{width:125px;height:100px;display:flex;flex-wrap:wrap;justify-content:center;align-content:center}.a4-amount-icons img{width:42px;height:42px;object-fit:contain}
/* shadow */
.a4-shadow-target{position:absolute;z-index:10;left:435px;top:105px;width:250px;height:260px;display:grid;place-items:center}.a4-shadow-target img{max-width:100%;max-height:100%;object-fit:contain;filter:brightness(0) saturate(100%);opacity:.9}.a4-shadow-choices{position:absolute;z-index:20;left:75px;right:75px;bottom:45px;height:220px;display:flex;justify-content:center;align-items:center;gap:20px}.a4-shadow-choice{width:175px;height:190px;border:4px solid #fff;border-radius:22px;background:rgba(255,255,255,.88);box-shadow:0 5px 15px rgba(0,0,0,.15);cursor:pointer;transition:transform .42s ease,opacity .25s ease}.a4-shadow-choice img{width:100%;height:100%;object-fit:contain;pointer-events:none}.a4-shadow-choice.is-flying{transform:translate(var(--fly-x),var(--fly-y)) scale(1.12)}
/* category sort */
.a4-sort-zones{position:absolute;z-index:15;left:75px;right:75px;top:95px;height:170px;display:grid;grid-template-columns:repeat(var(--count),1fr);gap:20px}.a4-sort-zone{border:5px dashed #60a0ca;border-radius:26px;background:rgba(255,255,255,.91);display:grid;place-items:center;font-weight:900;box-shadow:0 4px 13px rgba(0,0,0,.1)}.a4-sort-zone strong{font-size:25px}.a4-sort-zone span{font-size:20px;background:#fff2a1;padding:3px 12px;border-radius:13px}.a4-sort-item{position:absolute;z-index:30;width:120px;height:120px;display:grid;place-items:center;cursor:grab;touch-action:none;transition:left .25s ease,top .25s ease,transform .14s ease}.a4-sort-item.is-dragging{z-index:100;transition:none;transform:scale(1.08)}.a4-sort-item img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 5px rgba(0,0,0,.18))}.a4-symbol-item{font-size:80px}
/* season touch */
.a4-season-collect{position:absolute;z-index:15;left:55px;top:93px;width:240px;height:555px;border-radius:28px;background:rgba(255,255,255,.9);box-shadow:0 5px 18px rgba(0,0,0,.12);display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px}.a4-season-collect>strong{font-size:23px}.a4-season-collect .a4-season-choice{width:105px;height:105px;flex:none}.a4-season-collect small{display:none}.a4-season-grid{position:absolute;z-index:12;left:330px;right:50px;top:100px;bottom:35px;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);gap:18px}.a4-season-choice{border:4px solid #fff;border-radius:24px;background:rgba(255,255,255,.9);box-shadow:0 5px 14px rgba(0,0,0,.13);display:grid;grid-template-rows:1fr 34px;place-items:center;cursor:pointer;transition:opacity .3s ease,transform .2s ease}.a4-season-choice img{max-width:90%;max-height:155px;object-fit:contain}.a4-season-choice small{font-size:18px;font-weight:900}.a4-season-choice .snowflake{font-size:105px;color:#55b7ed}.a4-season-choice.is-gone{opacity:0;transform:scale(.3);pointer-events:none}
/* difference */
.a4-diff-pair{position:absolute;z-index:10;left:40px;right:40px;top:92px;bottom:35px;display:grid;grid-template-columns:1fr 1fr;gap:22px}.a4-diff-panel{position:relative;border:7px solid white;border-radius:24px;background-size:cover;background-position:center;overflow:hidden;box-shadow:0 7px 20px rgba(0,0,0,.17);cursor:pointer}.a4-scene-object{position:absolute;width:120px;height:120px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 4px 4px rgba(0,0,0,.15))}.a4-diff-hit{position:absolute;z-index:30;width:110px;height:110px;transform:translate(-50%,-50%);border:0;background:transparent;border-radius:50%;cursor:pointer}.a4-diff-mark{position:absolute;z-index:40;transform:translate(-50%,-50%);font-size:105px;line-height:1;color:#ff3c4f;font-weight:900;text-shadow:0 2px 4px white;pointer-events:none}
@media (prefers-reduced-motion:reduce){.a4-root *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* No.18 train-like number slots */
.a4-train-game .a4-slots{top:145px;height:205px;gap:8px}
.a4-train-game .a4-slot{border:5px solid #e35142;background:linear-gradient(#ffdf55 0 32%,#ef5b42 32% 100%);box-shadow:inset 0 0 0 5px rgba(255,255,255,.42),0 6px 14px rgba(0,0,0,.15)}
.a4-train-game .a4-slot::before,.a4-train-game .a4-slot::after{content:"";position:absolute;bottom:-22px;width:38px;height:38px;border-radius:50%;background:#39434c;border:6px solid #222}
.a4-train-game .a4-slot::before{left:25px}.a4-train-game .a4-slot::after{right:25px}
.a4-train-game .a4-slot>span{background:#fff;color:#c84335}

/* v2: image-generation artwork refinements */
.a4-shadow-choice img,
.a4-sort-item img,
.a4-season-choice img,
.a4-growth-card img{
  border-radius:18px;
}
.a4-shadow-choice img{
  padding:5px;
}
.a4-growth-card img{
  width:118px;
  height:118px;
}

/* === QUALITY 100 PASS 1 === */
.a4-root{transition:opacity .28s ease,transform .28s ease}.a4-root.a4-enter{opacity:0;transform:scale(.985)}
.a4-prompt,.a4-progress{box-shadow:0 7px 22px rgba(30,70,95,.16);backdrop-filter:blur(5px)}
.a4-feedback-label{position:absolute;z-index:280;left:50%;top:132px;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:a4Feedback .72s ease forwards;pointer-events:none}
.a4-feedback-label.ok{color:#248d52;border:4px solid #75d99a}.a4-feedback-label.ng{color:#d85c62;border:4px solid #ffc0c3}
@keyframes a4Feedback{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)}}
.a4-complete{backdrop-filter:blur(4px)}.a4-complete-card{animation:a4ClearCard .45s cubic-bezier(.2,.9,.25,1.2);border:5px solid #fff4aa}
.a4-clear-stars{font-size:42px;letter-spacing:10px;color:#ffc928;text-shadow:0 3px 0 #e69b16;margin-bottom:6px}
@keyframes a4ClearCard{0%{opacity:0;transform:translateY(35px) scale(.78)}100%{opacity:1;transform:none}}
.a4-number-train-scene{position:absolute;z-index:12;inset:0;pointer-events:none;transition:transform .75s ease}
.a4-number-loco{position:absolute;left:62px;top:270px;width:185px;height:145px}.a4-number-loco img{width:100%;height:100%;object-fit:contain}
.a4-train-slot{position:absolute;width:150px;height:120px;border-radius:25px;border:4px dashed rgba(255,255,255,.85);background:rgba(255,255,255,.18);display:grid;place-items:center}
.a4-train-slot-ghost{width:140px;height:100px;object-fit:contain;opacity:.22;filter:saturate(.35)}
.a4-train-card{position:absolute;z-index:40;width:150px;height:120px;cursor:grab;touch-action:none;transition:left .28s ease,top .28s ease,transform .18s ease;filter:drop-shadow(0 7px 7px rgba(0,0,0,.22))}
.a4-train-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.a4-train-card strong{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);font-size:36px;color:#fff;text-shadow:0 3px 5px #17324c,-2px 0 #17324c,2px 0 #17324c;font-weight:1000;pointer-events:none}
.a4-train-card.is-dragging{z-index:90;transform:scale(1.08);transition:none}.a4-train-card.is-ready{animation:a4TrainBounce .55s ease}.a4-number-train-scene.is-ready{transform:translateX(14px)}
@keyframes a4TrainBounce{50%{transform:translateY(-9px)}}
@media (prefers-reduced-motion:reduce){.a4-root,.a4-train-card,.a4-complete-card{animation:none!important;transition:none!important}}

/* === QUALITY 100 PASS 2: difference games === */
.a4-diff-polished{top:165px;height:440px;gap:18px}.a4-diff-polished .a4-diff-panel{border:7px solid rgba(255,255,255,.95);box-shadow:0 10px 28px rgba(0,0,0,.2);overflow:hidden}
.a4-diff-caption{position:absolute;z-index:40;left:14px;top:12px;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.9);font-size:17px;font-weight:1000;color:#28455e}
.a4-diff-tracker{position:absolute;z-index:80;right:55px;top:110px;display:flex;gap:10px}.a4-diff-tracker img{width:45px;height:45px;object-fit:contain;filter:grayscale(1);opacity:.45;transition:.25s}.a4-diff-tracker img.found{filter:none;opacity:1;transform:scale(1.12) rotate(-8deg)}
.a4-diff-mark{width:65px;height:65px;display:grid;place-items:center;font-size:72px;color:#ff534f;text-shadow:0 2px 0 #fff;pointer-events:none;animation:a4MarkPop .35s ease}
.a4-diff-celebrate{animation:a4PairPop .42s ease}@keyframes a4MarkPop{0%{transform:translate(-50%,-50%) scale(.2);opacity:0}100%{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes a4PairPop{50%{transform:scale(1.012)}}

/* === QUALITY 100 PASS 3 === */
.a4-progress-trail{position:absolute;z-index:64;top:104px;left:50%;transform:translateX(-50%);display:flex;gap:8px;pointer-events:none}
.a4-progress-trail i{width:14px;height:14px;border-radius:50%;background:rgba(255,255,255,.75);border:3px solid rgba(54,128,166,.42);transition:.22s}.a4-progress-trail i.done{background:#ffd548;border-color:#efa51e;transform:scale(1.08)}
.a4-progress-trail.compact{gap:4px}.a4-progress-trail.compact i{width:9px;height:9px;border-width:2px}
.a4-number-crate{overflow:hidden;background:transparent!important;border:none!important}.a4-number-crate-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:0}.a4-number-crate strong,.a4-number-crate small{position:relative;z-index:2;color:#fff;text-shadow:0 3px 4px #5d3b20,-2px 0 #5d3b20,2px 0 #5d3b20}
.a4-season-world-card{overflow:hidden}.a4-season-scenery{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;opacity:.38;border-radius:22px;z-index:0}.a4-season-world-card>div,.a4-season-world-card>strong{position:relative;z-index:2}
.a4-illustrated-zone{position:relative;overflow:hidden}.a4-zone-icon{width:72px;height:72px;object-fit:contain;display:block;margin:0 auto 2px}.a4-zone-collected{height:42px;display:flex;justify-content:center;align-items:center;gap:2px}.a4-zone-collected img{width:36px;height:36px;object-fit:contain}.a4-illustrated-zone.just-filled{animation:a4ZonePop .32s ease}@keyframes a4ZonePop{50%{transform:scale(1.04)}}

/* === QUALITY 100 PASS 4 === */
.a4-slot.is-hint{animation:a4HintSlot .6s ease-in-out infinite alternate!important;border-color:#ffd44a!important;background:#fff8c8!important}
@keyframes a4HintSlot{to{transform:scale(1.045);box-shadow:0 0 22px rgba(255,204,47,.7)}}
.a4-slot.is-filled{border-style:solid;border-color:#85d49b;background:rgba(240,255,242,.9)}
.a4-size-guide{position:absolute;z-index:16;top:365px;left:305px;right:305px;height:48px;border-radius:999px;background:rgba(255,255,255,.88);display:flex;align-items:center;justify-content:space-around;font-size:22px;font-weight:1000;box-shadow:0 5px 13px rgba(0,0,0,.1)}
.a4-round-trophies,.a4-season-stamps{position:absolute;z-index:22;right:42px;top:155px;display:flex;gap:5px}.a4-round-trophies img,.a4-season-stamps img{width:48px;height:48px;object-fit:contain;opacity:.2;filter:saturate(.3);transition:.28s}.a4-round-trophies img.done,.a4-season-stamps img.done{opacity:1;filter:none;transform:translateY(-5px) scale(1.08)}
.a4-order-card.a4-parade-bounce{animation:a4Parade .65s ease}.a4-order-card.a4-growth-wave{animation:a4GrowthWave .8s ease}.a4-order-card.a4-season-wave{animation:a4SeasonWave .7s ease}
@keyframes a4Parade{50%{transform:translateY(-15px) rotate(-2deg)}}@keyframes a4GrowthWave{45%{transform:translateY(-18px) scale(1.06)}}@keyframes a4SeasonWave{50%{transform:translateY(-12px)}}
.a4-growth-journey{position:absolute;z-index:18;right:44px;top:155px;width:150px;min-height:90px;display:flex;align-items:center;justify-content:center;gap:4px;padding:8px;border-radius:22px;background:rgba(255,255,255,.75)}.a4-growth-result{width:42px;height:55px;object-fit:contain;animation:a4ResultPop .45s ease}@keyframes a4ResultPop{0%{transform:scale(.3);opacity:0}100%{transform:none;opacity:1}}
.a4-shadow-gallery{position:absolute;z-index:18;left:70px;top:115px;width:300px;height:110px;display:flex;gap:7px;align-items:center;justify-content:center;padding:8px;border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 5px 14px rgba(0,0,0,.11)}
.a4-gallery-slot{width:48px;height:72px;border-radius:14px;border:3px dashed #aac8d9;background:rgba(255,255,255,.65);display:grid;place-items:center}.a4-gallery-slot img{width:46px;height:66px;object-fit:contain}.a4-gallery-slot.filled{border-style:solid;border-color:#88d39b;animation:a4GalleryPop .4s ease}@keyframes a4GalleryPop{50%{transform:scale(1.12)}}
.a4-shadow-target.show-color img{filter:none!important;opacity:1!important;animation:a4RevealColor .4s ease}@keyframes a4RevealColor{50%{transform:scale(1.1)}}
.a4-season-book{position:absolute;z-index:75;right:26px;top:135px;width:105px;min-height:100px;padding:8px;border-radius:20px;background:rgba(255,255,255,.88);box-shadow:0 5px 14px rgba(0,0,0,.12);display:flex;flex-direction:column;align-items:center;gap:5px}.a4-season-book strong{font-size:15px}.a4-season-book-stamp{width:78px;height:45px;object-fit:cover;border-radius:12px;border:3px solid #fff;animation:a4Stamp .4s ease}@keyframes a4Stamp{0%{transform:scale(.4) rotate(-8deg);opacity:0}100%{transform:none;opacity:1}}

/* === QUALITY 100 PASS 5 : VISUAL INTEGRATION === */
.a4-root::after{content:"";position:absolute;inset:0;z-index:7;pointer-events:none;box-shadow:inset 0 0 60px rgba(37,63,76,.12),inset 0 -44px 74px rgba(35,52,63,.08)}
.a4-bg{filter:saturate(1.035) contrast(1.012)}
.a4-top,.a4-prompt{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)}
.a4-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)}
.a4-memory-choice,.a4-shadow-choice,.a4-order-card,.a4-sort-item,.a4-season-choice,.a4-number-card,.a4-train-card{filter:drop-shadow(0 7px 7px rgba(44,58,68,.17));transition:filter .16s ease,transform .16s ease,opacity .2s ease}
.a4-memory-choice img,.a4-shadow-choice img,.a4-sort-item img,.a4-season-choice img,.a4-number-card img,.a4-train-card img{filter:drop-shadow(0 4px 3px rgba(40,55,62,.12))}
.a4-memory-choice::after,.a4-shadow-choice::after,.a4-sort-item::after,.a4-season-choice::after{content:"";position:absolute;left:18%;right:18%;bottom:5px;height:12px;border-radius:50%;background:rgba(38,55,62,.11);filter:blur(5px);z-index:-1;pointer-events:none}
.a4-sort-zone,.a4-number-box,.a4-slot,.a4-gallery-slot{box-shadow:0 8px 22px rgba(42,62,74,.13),inset 0 1px 0 rgba(255,255,255,.72)}
.a4-complete{background:rgba(30,48,59,.33)}
.a4-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)}
.a4-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}
.a4-complete-card>*:not(.a4-complete-frame){position:relative;z-index:2}
.a4-clear-stars{display:flex;justify-content:center;gap:6px;height:52px;margin-bottom:2px}
.a4-clear-stars img{width:48px;height:48px;object-fit:contain;animation:a4MedalIn .55s cubic-bezier(.2,.9,.2,1.25) both}
.a4-clear-stars img:nth-child(2){animation-delay:.1s}.a4-clear-stars img:nth-child(3){animation-delay:.2s}
@keyframes a4MedalIn{from{transform:translateY(18px) scale(.25) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}
.a4-sparkles{position:absolute;inset:0;z-index:400;pointer-events:none}.a4-sparkles img{position:absolute;width:45px;height:45px;object-fit:contain;animation:a4AssetSpark 1.3s ease-out both;filter:drop-shadow(0 3px 4px rgba(0,0,0,.16))}
@keyframes a4AssetSpark{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 === */
.a4-root.is-finalizing{cursor:wait}.a4-root.is-finalizing button,.a4-root.is-finalizing .a4-order-card,.a4-root.is-finalizing .a4-sort-item{pointer-events:none}
.a4-world-react .a4-bg{animation:a4WorldPulse .5s ease}.a4-success-token{position:absolute;z-index:290;width:50px;height:50px;object-fit:contain;pointer-events:none;animation:a4SuccessToken .58s ease-out forwards;filter:drop-shadow(0 4px 4px rgba(0,0,0,.16))}
@keyframes a4WorldPulse{50%{filter:saturate(1.09) brightness(1.035)}}@keyframes a4SuccessToken{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)}}
.a4-world-finale{position:absolute;z-index:245;inset:0;pointer-events:none;overflow:hidden}.a4-world-finale img{position:absolute;width:140px;height:140px;object-fit:contain;left:calc(50% - 70px + (var(--i) - (var(--n) - 1)/2)*150px);top:410px;filter:drop-shadow(0 10px 8px rgba(30,45,54,.18));animation:a4FinaleParade .96s cubic-bezier(.18,.8,.22,1) both}
.a4-world-finale img:nth-child(2){animation-delay:.08s}.a4-world-finale img:nth-child(3){animation-delay:.16s}.a4-world-finale img:nth-child(4){animation-delay:.24s}
@keyframes a4FinaleParade{0%{transform:translateY(125px) scale(.58);opacity:0}38%{opacity:1;transform:translateY(-16px) scale(1.08)}70%{transform:translateY(0) scale(1)}100%{transform:translateY(-20px) scale(.96);opacity:.86}}

/* === QUALITY 100 PASS 8 === */
.a4-number-collected{position:absolute;left:24px;right:24px;bottom:10px;height:38px;z-index:3;display:flex;justify-content:center}.a4-number-collected img{width:36px;height:36px;object-fit:contain}.a4-amount-card.is-delivered{filter:drop-shadow(0 0 12px rgba(111,219,143,.7))}
.a4-category-medals{position:absolute;z-index:65;right:45px;top:155px;display:flex;gap:6px}.a4-category-medals img{width:48px;height:48px;object-fit:contain;opacity:.22;transition:.3s}.a4-category-medals img.done{opacity:1;transform:translateY(-5px)}
.a4-diff-round-stamps{position:absolute;z-index:70;right:44px;top:150px;display:flex;gap:7px}.a4-diff-round-stamps img{width:52px;height:52px;object-fit:contain;opacity:.22;transition:.3s}.a4-diff-round-stamps img.done{opacity:1;transform:scale(1.08) rotate(-5deg)}

/* === QUALITY 100 PASS 9 === */
.a4-fixed-slot strong{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);z-index:3;font-size:33px;color:#fff;text-shadow:0 2px 5px #21384c}.a4-fixed-slot.blank{outline:7px solid #ffd34e;outline-offset:3px;animation:a4BlankHint .65s ease-in-out infinite alternate}
.a4-missing-choice{width:160px!important;height:125px!important}.a4-size-guide em{font-style:normal;font-size:16px;padding:4px 10px;border-radius:999px;background:#fff2ac;color:#745716}
.a4-season-review-card{position:absolute;z-index:50;left:280px;right:280px;top:175px;bottom:80px;border-radius:32px;background:rgba(255,255,255,.9);border:4px solid #fff;box-shadow:0 14px 40px rgba(0,0,0,.17);display:grid;place-items:center;align-content:center;gap:12px}.a4-season-review-card>img{width:140px;height:140px;object-fit:contain}.a4-season-review-card>strong{font-size:25px}.a4-season-review-options{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.a4-season-review-options button{min-width:100px;padding:12px 20px;border:4px solid #fff;border-radius:20px;background:#fff7cf;font-size:22px;font-weight:1000;box-shadow:0 7px 18px rgba(0,0,0,.13)}
@keyframes a4BlankHint{to{transform:scale(1.035);box-shadow:0 0 22px rgba(255,207,48,.65)}}

/* === QUALITY 100 PASS 10 === */
.a4-memory-round-medals{position:absolute;z-index:72;right:42px;top:150px;display:flex;gap:6px}.a4-memory-round-medals img{width:50px;height:50px;object-fit:contain;opacity:.2;transition:.28s}.a4-memory-round-medals img.done{opacity:1;transform:scale(1.08) translateY(-5px)}
.a4-memory-choice.is-remembered{outline:6px solid #83dca0;outline-offset:3px}.a4-memory-hint{animation:a4MemHint .5s ease-in-out infinite alternate!important;outline:6px solid #ffd44a!important;outline-offset:3px!important}@keyframes a4MemHint{to{transform:scale(1.055)}}

/* === QUALITY 100 PASS 11 === */
.a4-growth-review,.a4-season-next-review{position:absolute;z-index:55;left:210px;right:210px;top:175px;bottom:70px;border-radius:32px;background:rgba(255,255,255,.92);border:5px solid #fff;box-shadow:0 14px 42px rgba(0,0,0,.17);display:grid;place-items:center;align-content:center;gap:18px}
.a4-growth-review-now,.a4-season-review-now{display:flex;align-items:center;gap:18px;font-size:25px}.a4-growth-review-now img{width:135px;height:135px;object-fit:contain}.a4-season-review-now img{width:190px;height:115px;object-fit:cover;border-radius:20px}
.a4-growth-review-options,.a4-season-review-options{display:flex;justify-content:center;gap:14px}.a4-growth-review-options button,.a4-season-review-options button{width:155px;height:145px;border:5px solid #fff;border-radius:24px;background:#fff8d6;box-shadow:0 9px 23px rgba(0,0,0,.14);display:grid;place-items:center}.a4-growth-review-options img{width:95px;height:95px;object-fit:contain}.a4-season-review-options img{width:125px;height:82px;object-fit:cover;border-radius:14px}.a4-growth-review-options span,.a4-season-review-options span{font-weight:1000}
.a4-shadow-round-medals{position:absolute;z-index:72;right:42px;top:150px;display:flex;gap:6px}.a4-shadow-round-medals img{width:50px;height:50px;object-fit:contain;opacity:.2;transition:.28s}.a4-shadow-round-medals img.done{opacity:1;transform:scale(1.08) translateY(-5px)}

/* === QUALITY 100 PASS 12 === */
.a4-category-transfer{position:absolute;z-index:70;left:245px;right:245px;top:175px;bottom:75px;border-radius:32px;background:rgba(255,252,235,.96);border:5px solid #fff;box-shadow:0 15px 42px rgba(0,0,0,.18);display:grid;place-items:center;align-content:center;gap:14px}.a4-category-transfer>img{width:135px;height:135px;object-fit:contain}.a4-category-transfer>strong{font-size:24px}.a4-category-transfer-options{display:flex;gap:16px}.a4-category-transfer-options button{width:160px;height:145px;border:5px solid #fff;border-radius:25px;background:#fff8d3;box-shadow:0 9px 23px rgba(0,0,0,.14)}.a4-category-transfer-options img{width:85px;height:85px;object-fit:contain}.a4-category-transfer-options span{display:block;font-weight:1000}
.a4-diff-hint{position:absolute;z-index:90;left:50%;transform:translateX(-50%);bottom:30px;padding:10px 22px;border:4px solid #fff;border-radius:20px;background:#fff2ad;font-size:19px;font-weight:1000;box-shadow:0 8px 20px rgba(0,0,0,.14)}.a4-diff-hint:disabled{opacity:.35}.a4-diff-hint-pulse{position:absolute;z-index:80;width:72px;height:72px;border-radius:50%;border:7px solid #ffd33e;transform:translate(-50%,-50%);animation:a4HintPulse .6s ease-in-out infinite alternate;pointer-events:none}@keyframes a4HintPulse{to{width:105px;height:105px;opacity:.3}}

/* === QUALITY 100 PASS 13 === */
.a4-prompt-listen{position:absolute;z-index:74;left:42px;top:100px;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)}
.a4-gentle-assist{position:absolute;z-index:320;left:50%;top:151px;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)}
.a4-root .is-selected{outline:7px solid #ffd33e!important;outline-offset:5px!important}.a4-root button:focus-visible,.a4-root [tabindex]:focus-visible{outline:6px solid #2c89d9!important;outline-offset:4px!important}.a4-order-card,.a4-sort-item,.a4-amount-card,.a4-train-card{touch-action:none}
.a4-number-transfer{position:absolute;z-index:70;left:235px;right:235px;top:180px;bottom:75px;border-radius:32px;background:rgba(255,252,235,.96);border:5px solid #fff;box-shadow:0 15px 42px rgba(0,0,0,.18);display:grid;place-items:center;align-content:center;gap:18px}.a4-transfer-number{font-size:88px}.a4-number-transfer-options{display:flex;gap:15px}.a4-number-transfer-options button{width:180px;min-height:145px;border:5px solid #fff;border-radius:25px;background:#fff;box-shadow:0 9px 24px rgba(0,0,0,.14);display:flex;flex-wrap:wrap;align-content:center;justify-content:center;padding:10px}.a4-number-transfer-options img{width:45px;height:45px;object-fit:contain}

/* === BENCHMARK RESET No.14 / No.18 === */
.a4-hide-field{position:absolute;z-index:25;left:60px;right:60px;top:220px;height:380px;display:flex;justify-content:space-between;align-items:flex-end}.a4-hide-bush{position:relative;width:190px;height:190px;border:0;background:transparent;overflow:visible}.a4-hide-bush>img:first-child{position:absolute;left:0;bottom:0;width:100%;height:135px;object-fit:cover;z-index:3}.a4-hide-peek,.a4-hide-found{position:absolute;left:40px;bottom:55px;width:110px;height:120px;object-fit:contain;z-index:2;transition:.45s}.a4-hide-bush:not(.showing) .a4-hide-peek{transform:translateY(90px);opacity:0}.a4-hide-found{z-index:5;animation:a4ResetFound .45s ease}.a4-hide-bush.rustle{animation:a4ResetRustle .4s ease}.a4-hide-score{position:absolute;z-index:70;right:42px;top:150px;display:flex}.a4-hide-score img{width:52px;height:52px;opacity:.2}.a4-hide-score img.done{opacity:1}@keyframes a4ResetFound{from{transform:translateY(60px);opacity:0}to{transform:none;opacity:1}}@keyframes a4ResetRustle{25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}
.a4-station-master{position:absolute;z-index:48;left:28px;top:165px;width:190px;height:245px}.a4-station-master>img{width:155px;height:190px;object-fit:contain}.a4-station-bubble{position:absolute;left:125px;top:5px;width:190px;min-height:85px;border-radius:24px;background:#fff;border:4px solid #fff0ad;padding:12px;font-weight:1000;box-shadow:0 8px 20px rgba(0,0,0,.14)}.a4-station-master.happy{animation:a4ResetMaster .5s ease}
.a4-reset-train-scene{position:absolute;z-index:22;left:0;right:0;top:175px;height:335px;transition:1s ease}.a4-reset-loco{position:absolute;left:70px;top:118px;width:165px;height:125px}.a4-reset-loco img,.a4-reset-train-slot>img{width:100%;height:100%;object-fit:contain}.a4-reset-train-slot{position:absolute;top:120px;width:155px;height:125px}.a4-reset-train-slot span{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);font-size:32px;font-weight:1000;color:#fff;text-shadow:0 2px 5px #20384a}.a4-reset-train-slot.missing{outline:7px dashed #ffd23f;outline-offset:5px}.a4-reset-car{width:155px!important;height:120px!important}.a4-reset-train-scene.ready{filter:brightness(1.08)}.a4-reset-train-scene.depart{transform:translateX(1260px)}@keyframes a4ResetMaster{50%{transform:translateY(-9px) rotate(-2deg)}}

/* === BENCHMARK RESET PHASE 3 — flat 2D train + flatter treatment === */
.a4-hide-bush,.a4-hide-peek,.a4-hide-found,.a4-station-master,.a4-flat-train-hero{filter:none!important}
.a4-station-bubble{box-shadow:0 4px 0 rgba(70,88,96,.12)!important}
.a4-flat-train-hero{position:absolute;z-index:26;left:70px;bottom:80px;width:260px;height:220px;transition:transform 1s ease,opacity .8s ease}
.a4-flat-train-hero img{width:100%;height:100%;object-fit:contain}
.a4-flat-train-hero.depart{transform:translateX(1120px);opacity:.25}
.a4-flat-train-hero.arrive{animation:a4FlatTrainArrive .55s ease}
.a4-flat-signal-panel{position:absolute;z-index:25;left:0;right:0;top:170px;height:280px}
.a4-signal-slot{position:absolute;top:75px;width:150px;height:100px;display:grid;place-items:center}
.a4-signal-slot>img,.a4-signal-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:none!important}
.a4-signal-slot strong,.a4-signal-card strong{position:relative;z-index:2;font-size:34px;font-weight:1000;color:#4f351d;text-shadow:none}
.a4-signal-slot.missing{outline:6px dashed #efb72b;outline-offset:5px;border-radius:16px}
.a4-signal-slot.fixed{opacity:.95}
.a4-signal-card{width:150px!important;height:100px!important;filter:none!important}
.a4-flat-signal-panel.ready .a4-signal-slot{animation:a4SignalReady .35s ease}
@keyframes a4SignalReady{50%{transform:translateY(-5px)}}
@keyframes a4FlatTrainArrive{from{transform:translateX(-240px);opacity:.25}to{transform:none;opacity:1}}
