/* Same fixed application frame as Home, never fit-scaled like legacy games. */
.gb-home .gb-defense-entry{position:absolute;z-index:12;bottom:60px;left:50%;transform:translateX(-50%);height:44px;min-width:210px;border:2px solid #f1d58d;border-radius:15px;background:linear-gradient(120deg,#375682,#49577c);color:#fff4d6;box-shadow:0 4px 0 #243956,0 5px 12px #304c4540;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;gap:10px;padding:5px 14px}.gb-home .gb-defense-entry:active{transform:translate(-50%,2px)}.gb-defense-entry span{font-size:23px;color:#ffe19a}.gb-garden-tools .gb-shop-menu{grid-template-columns:repeat(2,1fr)}
#surface:has(.df-game-v72){overflow:hidden!important;padding:0;display:block!important}.df-game-v72{height:100%;width:100%;display:flex;flex-direction:column;overflow:hidden;border-radius:16px;background:#f8f3e8;color:#37334d;position:relative;isolation:isolate}.df-game-v72 *{box-sizing:border-box}.df-hud{height:46px;flex:0 0 46px;display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:#393852;color:#fff6dd;z-index:6}.df-hud strong{font-size:14px;display:block}.df-hud small{display:block;font-size:9px;letter-spacing:1px;color:#cfbfdd;margin-top:2px}.df-lives{font-size:15px;letter-spacing:1px;color:#f2abac;white-space:nowrap}.df-field{position:relative;flex:1;min-height:0;background:#c4bacb url('./assets/defense-field-v72.webp') center/100% 100%;overflow:hidden;isolation:isolate}.df-friend,.df-monster{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:clamp(39px,12vw,80px);height:clamp(54px,16vw,100px);z-index:3;pointer-events:none}.df-actor{height:100%;width:100%;position:relative;transform-origin:50% 85%;animation:df-idle 5.8s ease-in-out infinite;animation-delay:var(--delay)}.df-actor img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #3b354938);position:relative;z-index:1}.df-friend[data-df-hero="6"]{z-index:5;width:clamp(45px,14vw,89px);height:clamp(58px,18vw,113px)}.df-current:before{content:'';position:absolute;left:5%;right:5%;bottom:-5px;height:9px;border:2px solid #fff6bc;border-radius:50%;box-shadow:0 0 12px #ffea84;background:#ffe98c66}.df-current .df-name{background:#fff0b7;color:#544425;border-color:#d7b758}.df-name{display:block;position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:700;white-space:nowrap;background:#fffae9da;border:1px solid #aa9ba833;border-radius:8px;padding:1px 5px;z-index:5}.df-fallen{opacity:.24;filter:grayscale(.5);z-index:1}.df-fallen .df-actor{animation:none;transform:translateY(5px) rotate(-18deg)}.df-fallen .df-name{text-decoration:line-through}.df-monster{width:clamp(42px,13vw,85px);height:clamp(56px,17vw,111px);z-index:2}.df-monster-art{display:block;width:100%;height:100%;background-image:url('./assets/defense-monsters-v72.webp');background-size:400% 200%;background-position:var(--mx) var(--my);animation:df-monster-idle 4.6s ease-in-out infinite;animation-delay:var(--delay);transform-origin:50% 90%}.df-monster-health{position:absolute;bottom:0;left:20%;right:20%;height:4px;background:#78617288;border-radius:3px;overflow:hidden}.df-monster-health i{display:block;height:100%;width:100%;background:#d1e397;transform-origin:left;transition:transform .25s}.df-dead{opacity:0;visibility:hidden}.df-boss{width:clamp(78px,26vw,150px);height:clamp(105px,35vw,205px);animation:df-boss-entry .9s ease-out both}.df-boss .df-monster-health{height:6px}.df-boss-label{position:absolute;top:8px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:800;padding:5px 14px;color:#fff4d2;background:#6c4e72;border:1px solid #d5b68b;border-radius:20px;z-index:6;animation:df-boss-title 1.3s ease both}
.df-quiz{flex:0 0 27%;min-height:164px;max-height:230px;padding:7px 9px 8px;background:#fffdf4;border-top:3px solid #e1cfa9;display:flex;flex-direction:column;gap:4px;z-index:8}.df-question-head{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:29px}.df-question-head strong{font-size:13px;line-height:1.3;white-space:pre-line}.df-clock{display:flex;align-items:baseline;gap:2px;background:#eee9dd;border-radius:10px;padding:3px 6px;font-size:10px;flex-shrink:0}.df-clock b{font-size:18px;font-variant-numeric:tabular-nums;color:#7f4e39;min-width:29px}.df-question-cue{flex:1;min-height:24px;max-height:54px;display:flex;align-items:center;justify-content:center;font-size:clamp(18px,5vw,26px);font-weight:800}.df-question-cue .df-word-art{width:45px;max-width:45px;height:auto;max-height:52px;mix-blend-mode:multiply}.df-question-cue .df-word-art img{max-width:none}.df-listen{min-height:36px;display:flex;align-items:center;gap:7px;padding:3px 14px;border:1px solid #d5cdb8;background:#f2f2de;border-radius:12px;font-size:12px}.df-time-track{height:4px;background:#e7e4d7;border-radius:4px;overflow:hidden;flex-shrink:0}.df-time-track i{display:block;width:100%;height:100%;background:#81ad91;transform-origin:left;transition:transform .04s linear}.df-choices{display:grid;grid-template-columns:1fr 1fr;gap:5px;flex-shrink:0}.df-choices button{min-height:40px;border:1.5px solid #d3c6ac;border-radius:11px;background:#fffdf6;color:#434153;font-size:14px;font-weight:750;padding:4px 3px;box-shadow:0 2px 0 #d8cbae;white-space:normal;line-height:1.2;overflow-wrap:anywhere}.df-choices button:active{transform:translateY(2px)}.df-choices button.is-answer{background:#d9edbd;border-color:#6b9d69;color:#33523c}.df-choices button.is-wrong{background:#f8d9d0;border-color:#d18d7f}.df-choices button:disabled{opacity:1}.df-locked .df-time-track i{background:#d9b777}.df-quiz:has(.df-question-cue span[lang=en]) .df-question-cue{font-family:inherit}.df-game-v72[data-phase=boss-entry] .df-question-cue,.df-game-v72[data-phase=boss-entry] .df-choices{visibility:hidden}
.df-start-panel{flex:0 0 28%;min-height:159px;max-height:215px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:9px 10px;background:#fffaf0;border-top:3px solid #dfcda8;text-align:center;z-index:8}.df-start-panel h2{font-size:17px}.df-start-panel p{font-size:11px;line-height:1.5;color:#726476}.df-start-panel small{font-size:9px;color:#82707d}.df-start{min-height:44px;min-width:190px;border:1px solid #e0bd7c;border-radius:14px;background:linear-gradient(#625483,#443e62);color:#fff4d9;font-weight:800;font-size:16px;padding:9px 20px;box-shadow:0 3px 0 #322c48}.df-start:disabled{opacity:.65}.df-results{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:10px;text-align:center;background:radial-gradient(ellipse at top,#fbf2c9,#f2eadf)}.df-results.is-loss{background:radial-gradient(ellipse at top,#eae5f7,#f6efe7)}.df-result-picture{width:min(63%,230px);flex:1;min-height:100px;max-height:240px;background:url('./assets/defense-results-v72.webp') left center/200% 100% no-repeat;border-radius:24px;animation:df-victory 2.4s ease-in-out infinite}.is-loss .df-result-picture{background-position:right center;animation:df-idle 5s ease-in-out infinite}.df-results h2{font-size:23px}.df-results p{font-size:12px;max-width:95%;line-height:1.45}.df-results small{font-size:10px}.df-result-rewards{display:flex;gap:10px}.df-result-rewards b{padding:8px 17px;border-radius:13px;border:1px solid #d6b96c;background:#fff2c3;font-size:20px;color:#81591f}.df-result-friends{height:50px;display:flex;gap:4px;max-width:100%}.df-result-friends img{height:100%;width:32px;object-fit:contain;animation:df-victory 2.4s ease-in-out infinite}.df-home{border:0;background:none;text-decoration:underline;color:#736880;min-height:36px;font-size:12px}.df-fx{position:absolute;inset:0;pointer-events:none;z-index:20;overflow:hidden}.df-projectile{position:absolute;width:36px;height:36px;display:block;filter:drop-shadow(0 0 5px #ffe6af);transform:translate(-50%,-50%)}.df-projectile svg{width:100%;height:100%;overflow:visible}.df-projectile-roll{filter:drop-shadow(-6px 0 5px #8fd9ef)}.df-projectile-ram{filter:drop-shadow(-6px 0 5px #f3bc92)}.df-impact{position:absolute;width:36px;height:36px;margin:-18px;border:4px solid #ffecb3;border-radius:50%;box-shadow:0 0 13px #fff1b9;animation:df-impact .5s ease-out both}.df-lightning{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 3px #e1eaff)}.df-lightning path{fill:none;stroke-linejoin:round;stroke-linecap:round}.df-bolt-outer{stroke:#a4b9ef;stroke-width:7;opacity:.65}.df-bolt-inner{stroke:#fff1a2;stroke-width:2.5}.df-charge{position:absolute;left:15%;right:15%;top:25%;bottom:10%;border-radius:50%;background:#fff4a450;box-shadow:0 0 20px #fbe7a4;opacity:0;z-index:0}.df-power .df-charge{opacity:1;animation:df-charge .4s ease-in-out infinite alternate}.df-ground-wave{position:absolute;width:38px;height:24px;border:4px solid #f4cc7e;border-radius:50%;box-shadow:0 0 8px #d69c72}.df-friend:has(.df-power){z-index:18}
@keyframes df-idle{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-1.5px) rotate(.7deg)}70%{transform:translateY(0) rotate(-.7deg)}}@keyframes df-monster-idle{0%,100%{transform:scale(1)}50%{transform:translateY(-2px) scale(1.015,.985)}}@keyframes df-impact{from{opacity:1;transform:scale(.3)}to{opacity:0;transform:scale(1.8)}}@keyframes df-charge{to{transform:scale(1.12);opacity:.7}}@keyframes df-victory{0%,75%,100%{transform:translateY(0)}35%{transform:translateY(-5px)}}@keyframes df-boss-entry{from{opacity:0;transform:translate(20%,-50%) scale(.6)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes df-boss-title{0%{opacity:0;transform:translate(-50%,-12px)}20%,100%{opacity:1;transform:translate(-50%,0)}}
@media(min-width:761px){.df-field{background-size:cover;background-position:center 60%}.df-friend,.df-monster{width:80px;height:100px}.df-quiz{max-height:210px}.df-choices{grid-template-columns:repeat(4,1fr);max-width:900px;width:100%;margin:auto}.df-choices button{min-height:44px}.df-question-cue{font-size:25px}.df-game-v72{max-width:100%;margin:0}.df-hud strong{font-size:18px}.df-lives{font-size:19px}}
@media(max-height:650px){.df-hud{height:38px;flex-basis:38px;padding:4px 7px}.df-hud strong{font-size:12px}.df-lives{font-size:13px;letter-spacing:0}.df-quiz{min-height:156px;padding:5px 7px;gap:3px}.df-question-head strong{font-size:12px}.df-choices button{min-height:36px;font-size:13px}.df-question-cue{max-height:35px;font-size:19px}.df-question-cue .df-word-art{width:32px;max-height:34px}.df-friend{width:38px;height:49px}.df-friend[data-df-hero="6"]{width:43px;height:55px}.df-monster{width:39px;height:52px}.df-name{font-size:8px;bottom:-8px;padding:0 3px}.df-boss{width:85px;height:112px}.df-start-panel{min-height:151px;gap:5px}.df-start-panel h2{font-size:15px}.df-start-panel p{font-size:10px}.df-results{gap:5px}.df-results h2{font-size:20px}.df-result-friends{height:32px}.df-result-picture{max-height:150px}.df-result-rewards b{font-size:17px;padding:5px 12px}.df-home{min-height:30px}.gb-home .gb-defense-entry{height:40px;min-width:195px;bottom:57px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.df-game-v72 *{animation:none!important;transition:none!important}}
.gb-home .gb-defense-entry{background:linear-gradient(120deg,#375682,#49577c)!important;color:#fff4d6!important}.gb-home .gb-defense-entry span{color:#ffe19a!important}
.df-result-picture{height:min(25dvh,230px);width:auto;aspect-ratio:3/4;flex:0 0 auto;min-height:0;max-height:none}@media(max-height:650px){.df-result-picture{height:140px;max-height:140px}}
/* v73: generous sprite gutters; complete chevron and 30% larger actors. */
.df-field{container-type:size}
.df-friend{width:clamp(50.7px,15.6vw,104px);height:clamp(70.2px,20.8vw,130px)}
.df-friend[data-df-hero="6"]{width:clamp(58.5px,18.2vw,115.7px);height:clamp(75.4px,23.4vw,146.9px)}
.df-actor img{transform:scaleX(var(--face,1))}
.df-monster{width:clamp(54.6px,16.9vw,110.5px);height:clamp(54.6px,16.9vw,110.5px)}
.df-monster-art{background-image:url('./assets/defense-monsters-v73.webp');background-size:400% 400%;animation:df-slime-breathe 3.6s ease-in-out infinite;animation-delay:var(--delay);transform-origin:50% 75%}
.df-creature-snail{animation-name:df-snail-glide;animation-duration:5s}.df-creature-spore{animation-name:df-mushroom-bob;animation-duration:3.5s}.df-creature-pig{animation-name:df-pig-wiggle;animation-duration:4.2s}.df-creature-banana{animation-name:df-monkey-bounce;animation-duration:3.4s}.df-creature-gorilla{animation-name:df-gorilla-breathe;animation-duration:4.8s}
.df-boss{width:clamp(101px,33.8vw,195px);height:clamp(101px,33.8vw,195px)}
.df-fallen{opacity:.5;filter:grayscale(.25)}.df-fallen .df-actor{transform:translateY(5px) rotate(-70deg)}.df-fallen .df-name,.df-dying .df-name,.df-dead .df-name{display:none}.df-fallen:before{display:none}.df-dead{visibility:visible;opacity:.5;filter:grayscale(.5)}.df-dead .df-monster-art{animation:none;transform:rotate(75deg) scale(.85)}.df-dead .df-monster-health,.df-dying .df-monster-health{display:none}
.df-clock{position:relative;background:conic-gradient(#71a18c calc(var(--time,1)*1turn),#e9e4d9 0);width:47px;height:47px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;font-size:0;isolation:isolate}.df-clock:before{content:'';position:absolute;inset:4px;border-radius:50%;background:#fffaf0;z-index:-1}.df-clock b{font-size:13px;min-width:0;position:relative;padding-top:15px;color:#5d6671}.df-clock-face{position:absolute;top:6px;left:15px;width:17px;height:17px;fill:none;stroke:#739387;stroke-width:2.5;stroke-linecap:round}.df-clock.is-urgent{background:conic-gradient(#db7965 calc(var(--time)*1turn),#f3dbce 0)}.df-clock.is-urgent b{color:#a94b3b}.df-clock.is-urgent .df-clock-face{stroke:#ba6652;animation:df-clock-beat 1s ease infinite}
.df-question-cue{font-size:clamp(14px,4.5vw,23px);line-height:1.25;text-align:center}.df-question-cue span{overflow-wrap:anywhere}.df-question-head strong{font-size:12px;max-width:calc(100% - 53px)}.df-question-head{min-height:47px}.df-quiz{min-height:180px}
.df-earth-crack{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.df-earth-crack path{fill:none;stroke-linecap:round;stroke-linejoin:round}.df-crack-shadow{stroke:#574039;stroke-width:10}.df-crack-core{stroke:#efb765;stroke-width:3;filter:drop-shadow(0 0 3px #f9d68c)}.df-lightning{filter:drop-shadow(0 0 4px #9fcaff)}.df-bolt-outer{stroke:#7cafff;stroke-width:10;opacity:.8}.df-bolt-inner{stroke:#fffbd1;stroke-width:3}
.df-results{position:relative;isolation:isolate;overflow:hidden}.df-results>*:not(.df-celebration){z-index:1}.df-celebration{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}.df-celebration i{font-style:normal;position:absolute;left:calc(3% + mod(var(--n)*17,94)*1%);top:-8%;font-size:calc(11px + mod(var(--n),4)*4px);color:hsl(var(--hue) 70% 62%);animation:df-confetti calc(3.4s + mod(var(--n),5)*.2s) linear infinite;animation-delay:calc(var(--n)*-.17s)}.is-loss .df-celebration i{color:#9c96b9;animation-name:df-hope;opacity:.5}.is-win h2{animation:df-win-title .8s cubic-bezier(.2,1.6,.5,1) both}.is-win .df-result-rewards{animation:df-win-title .9s .2s both}
@keyframes df-slime-breathe{0%,100%{transform:scale(1)}40%{transform:translateY(-3px) scale(.97,1.04)}75%{transform:scale(1.04,.96)}}
@keyframes df-snail-glide{0%,100%{transform:translateX(2px) rotate(0)}50%{transform:translateX(-3px) rotate(-2deg)}}
@keyframes df-mushroom-bob{0%,100%{transform:rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}}
@keyframes df-pig-wiggle{0%,100%{transform:translateY(0)}35%{transform:rotate(2deg) translateY(-2px)}65%{transform:rotate(-2deg)}}
@keyframes df-monkey-bounce{0%,70%,100%{transform:translateY(0)}35%{transform:translateY(-5px) rotate(-3deg)}}
@keyframes df-gorilla-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025,1.04) translateY(-1px)}}
@keyframes df-clock-beat{50%{transform:scale(1.15)}}
@keyframes df-confetti{from{transform:translateY(0) rotate(0);opacity:0}10%{opacity:.8}to{transform:translateY(85dvh) rotate(420deg);opacity:0}}
@keyframes df-hope{from{transform:translateY(75dvh) rotate(-20deg);opacity:0}25%{opacity:.5}to{transform:translateY(0) rotate(30deg);opacity:0}}
@keyframes df-win-title{from{transform:scale(.65);opacity:0}to{transform:scale(1);opacity:1}}
@media(min-width:761px){.df-friend{width:104px;height:130px}.df-monster{width:110px;height:110px}.df-boss{width:195px;height:195px}}
@media(max-height:650px){.df-friend{width:49.4px;height:63.7px}.df-friend[data-df-hero="6"]{width:55.9px;height:71.5px}.df-monster{width:50.7px;height:50.7px}.df-boss{width:110px;height:110px}.df-quiz{min-height:172px;gap:2px}.df-clock{width:40px;height:40px}.df-clock-face{top:4px;left:13px;width:15px;height:15px}.df-clock b{font-size:12px;padding-top:12px}.df-question-head{min-height:40px}.df-question-head strong{font-size:11px}.df-question-cue{font-size:14px;max-height:32px}.df-name{font-size:7px}.df-start-panel{min-height:151px}}
@media(prefers-reduced-motion:reduce){.df-game-v72 *{animation:none!important;transition:none!important}}

.df-monster-art{background-image:none}.df-monster-art svg{width:100%;height:100%;overflow:hidden;display:block}.df-monster-health{bottom:-4px}
.df-celebration i{left:calc(3% + var(--x)*1%);font-size:18px;animation-duration:4s}

.df-friend,.df-monster:not(.df-boss){top:calc(var(--y) + var(--pad,0px))}
