html.game-fit-root{overflow:hidden;overscroll-behavior:none}
body.game-fit{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}
body.game-fit>.app-header,body.game-fit>footer{display:none!important}
body.game-fit>main{width:100%;max-width:none;height:100%;padding:0!important;margin:0;overflow:hidden}
body.game-fit main>.screen.active{height:100%;width:100%;padding:0!important;overflow:hidden}
body.game-fit .fit-frame{display:flex!important;flex-direction:column;gap:6px!important;width:100%!important;max-width:850px;height:100%;min-height:0;margin:0 auto!important;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;overflow:hidden}
.fit-toolbar{display:flex;align-items:center;gap:7px;flex:none;height:40px;min-width:0}
.fit-toolbar h1{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(13px,3.6vw,20px);margin:0;color:#225963}
.fit-toolbar button{display:grid;place-items:center;flex:none;width:40px!important;min-width:40px;height:38px!important;min-height:38px;padding:0!important;border:1px solid #bddbd7;border-radius:12px;background:#fff;color:#235d67;font-size:19px;box-shadow:0 2px 0 #d2e5df;touch-action:manipulation}
.fit-toolbar #vikingBgm{font-size:10px}
.fit-hud{flex:none;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;margin:0!important;width:100%;padding:0!important}
body.game-fit .fit-hud>div{padding:5px 3px!important;min-height:38px;min-width:0;border-radius:10px!important;box-shadow:0 2px 0 #deebe6!important}
body.game-fit .fit-hud span{font-size:8px!important;line-height:1.1;display:block}
body.game-fit .fit-hud :is(b,strong){font-size:16px!important;line-height:1.2}
.fit-playfield{flex:1 1 0;min-height:0;min-width:0;width:100%;display:grid;place-items:center;overflow:hidden;padding:2px 0 7px}
body.game-fit .fit-stage{width:var(--fit-width,0px)!important;height:var(--fit-height,0px)!important;max-width:none!important;max-height:none!important;min-height:0!important;min-width:0!important;aspect-ratio:auto!important;flex:none;margin:0!important;overflow:hidden;border-radius:18px!important;box-sizing:border-box;box-shadow:0 4px 0 #bfd8cf!important}
body.game-fit .fit-stage canvas{display:block;width:100%!important;height:100%!important;aspect-ratio:auto!important;touch-action:none}
.fit-aux{flex:none;margin:0!important;padding:0!important;min-height:0}
body.game-fit .fit-aux .merge-evolution{padding:0;border:0;background:none;gap:0}
body.game-fit .fit-aux .merge-level-ring{width:34px;height:34px}
body.game-fit .fit-aux .merge-level-value{gap:1px}
body.game-fit .fit-aux .merge-level-value strong{font-size:13px}
body.game-fit .fit-aux .merge-level-value small{font-size:7px}
body.game-fit .fit-aux .merge-level-copy{display:none}
body.game-fit .fit-aux.puzzle-level-title{height:22px;gap:8px}
body.game-fit .fit-aux.puzzle-level-title h3{font-size:12px}
body.game-fit .fit-aux.keeper-rounds{gap:5px;height:20px;justify-content:center}
body.game-fit .fit-aux.keeper-rounds span{width:18px;height:18px;font-size:9px}
.fit-status{flex:none;min-height:0!important;margin:0!important;padding:5px 8px!important;border-radius:9px!important;background:#ffffffc7;box-shadow:none!important;max-height:54px;overflow:hidden;font-size:11px!important;line-height:1.35!important;display:block!important}
.fit-status :is(strong,p){font-size:11px!important;margin:0!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fit-status #bellReactionMeter:not([hidden]){margin-top:2px;padding:2px;font-size:10px;min-height:0}
.fit-status #bellReactionMeter>div{padding:0}
body.game-fit .fit-controls{position:static!important;flex:none;display:flex!important;gap:6px!important;margin:0!important;padding:0!important;min-width:0;width:100%;background:transparent;border:0;box-shadow:none}
body.game-fit .fit-controls>button{flex:1;min-width:0;min-height:48px!important;height:48px!important;max-width:none;margin:0!important;padding:5px 8px!important;border-radius:12px!important;font-size:14px!important;line-height:1.2;touch-action:none;box-shadow:0 3px 0 #a5bfb8!important}
body.game-fit .fit-controls>button[hidden],.fit-status [hidden]{display:none!important}
body.game-fit .fit-controls :is(span,small){font-size:9px!important}
body.game-fit .fit-controls strong{font-size:17px!important}
.fit-controls:has(#pulloutNext:not([hidden])) #pulloutStart{display:none!important}
.fit-controls:empty{display:none!important}
body.game-fit .fit-controls .sorter-lane-button{display:flex;align-items:center;justify-content:center;gap:2px;font-size:10px!important;padding:3px!important}
body.game-fit .fit-controls .sorter-lane-button img{width:23px;height:30px;flex:none;object-fit:contain}
body.game-fit .fit-controls .sorter-lane-button b{font-size:9px}
body.game-fit .fit-controls .sorter-lane-button small{display:none}
body.game-fit #whackBoard{padding:4%;gap:3%;animation:none!important}
body.game-fit #whackBoard .whack-target{width:100%;height:90%;max-width:150px;max-height:100%;bottom:5%}
body.game-fit #whackBoard .whack-hit-pop{font-size:10px;padding:3px 5px;border-width:2px;white-space:nowrap}
body.game-fit #bellArena{grid-template-columns:minmax(0,1fr) minmax(76px,.8fr) minmax(0,1fr);gap:4px;padding:10px}
body.game-fit #bellArena .bell-center{min-width:0;gap:6px}
body.game-fit #bellArena .bell-status{min-width:0;max-width:100%;font-size:13px;padding:6px;border-width:2px}
body.game-fit #bellArena .bell-tap-button{width:clamp(65px,17dvh,110px);height:clamp(65px,17dvh,110px);min-height:0;font-size:18px;padding:8px}
body.game-fit #bellArena :is(.bell-buddy,.bell-enemy-img){width:100%;height:clamp(60px,20dvh,170px);max-height:calc(var(--fit-height) - 48px)}
body.game-fit #bellArena .bell-fighter-name{font-size:9px;padding:3px 5px;white-space:nowrap}
body.game-fit #bazookaTapButton{width:auto;font-size:19px!important;border-radius:14px!important}
body.game-fit #bazookaTapButton.is-charging{animation:none!important}
body.game-fit :is(.arcade-overlay,.hold-game-overlay,.batting-game-overlay,.sorter-game-overlay,.keeper-overlay,.puzzle-result){position:fixed!important;inset:0!important;z-index:80;overflow:auto;overscroll-behavior:contain;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))!important;max-height:none!important}
body.game-fit :is(.arcade-overlay,.hold-game-overlay,.batting-game-overlay,.sorter-game-overlay,.keeper-overlay,.puzzle-result)>div{max-height:calc(100dvh - 32px)!important;overflow:auto;overscroll-behavior:contain;width:min(100%,420px);margin:auto}
body.game-fit .fit-result-home{display:block;width:100%;min-height:44px;padding:10px;margin-top:10px!important;background:#e4eee7!important;color:#305e55!important;border:1px solid #bdd2c5!important;border-radius:12px;font-size:14px!important;font-weight:800;box-shadow:none!important}
body.game-fit :is(.arcade-overlay,.hold-game-overlay,.batting-game-overlay,.sorter-game-overlay,.keeper-overlay,.puzzle-result)[hidden]{display:none!important}
.fit-help{box-sizing:border-box;width:min(94vw,620px);max-height:90dvh;padding:18px;border:2px solid #bbd9d0;border-radius:23px;background:#f7fcf7;color:#24555d;overflow:auto;overscroll-behavior:contain}
.fit-help::backdrop{background:#193c4db3}.fit-help>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.fit-help h2{font-size:18px;margin:0}.fit-help>header button{width:40px;height:40px;border:1px solid #bfd9cd;background:white;border-radius:12px;font-size:24px;color:#38685e}
.fit-help-content{display:grid;gap:14px;margin-top:15px;font-size:13px;line-height:1.7}.fit-help-content>header>button[data-home-screen],.fit-help-content>header [data-home-screen],.fit-help-content>header h2,.fit-help-content>header h3,.fit-help-content>header small,.fit-help-content .home-eyebrow{display:none!important}.fit-help-content .arcade-top,.fit-help-content .keeper-header,.fit-help-content .puzzle-header{display:block}.fit-help-content>header:empty{display:none}.fit-help-content p{margin:4px 0}.fit-help-content :is(.bell-hero,.bazooka-hero,.whack-hero){padding:10px!important;box-shadow:none!important}.fit-help-content .keeper-instructions{margin:0}.fit-help-content button{min-height:44px}.fit-help-content .arcade-tip{font-size:13px}.fit-help-content .sorter-start-panel{display:none}
.fit-help-content .whack-difficulty{display:grid}
body.game-fit #toast{pointer-events:none;bottom:80px;font-size:12px}
@media(orientation:landscape) and (max-height:600px){body.game-fit .fit-frame{max-width:1100px;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,31%);grid-template-rows:40px auto auto minmax(0,1fr) auto;column-gap:12px!important;row-gap:6px!important}.fit-toolbar{grid-column:1/-1;grid-row:1}.fit-playfield{grid-column:1;grid-row:2/6;align-self:stretch;height:100%;padding:0 0 5px}.fit-hud{grid-column:2;grid-row:2}.fit-aux{grid-column:2;grid-row:3}.fit-status{grid-column:2;grid-row:4;align-self:start;max-height:100px}.fit-controls{grid-column:2;grid-row:5;align-self:end;flex-wrap:wrap}.fit-controls .sorter-lane-button{flex-basis:27%!important}.fit-controls #sorterPrimary{flex-basis:100%!important}.fit-toolbar h1{font-size:16px}.fit-toolbar{height:38px}.fit-hud>div{min-height:36px!important}body.game-fit .fit-controls>button{min-height:44px!important;height:44px!important}body.game-fit #bellArena .bell-signal{height:24px}body.game-fit #bellArena .bell-center{gap:3px}body.game-fit #bellArena .bell-status{font-size:11px;padding:3px}}
@media(max-height:600px) and (orientation:portrait){.fit-frame{gap:4px!important}.fit-toolbar{height:36px}.fit-toolbar button{min-height:34px;height:34px!important}.fit-toolbar h1{font-size:13px}.fit-status{max-height:30px}.fit-hud>div{padding:3px!important;min-height:32px!important}.fit-hud :is(b,strong){font-size:14px!important}}
