
body.adventure-playing,body.duel-playing{margin:0;padding:0;overflow:hidden;background:#0b172c;height:100dvh;overscroll-behavior:none}
body.adventure-playing main{margin:0;padding:0;max-width:none}body.adventure-playing #play{position:fixed;inset:0;display:block;padding:0;background:#0b172c}
body.adventure-playing .topbar{position:fixed;top:0;left:0;right:0;z-index:35;height:58px;padding:6px 12px;background:#0b172cba;border:0;pointer-events:none}body.adventure-playing .top-actions{pointer-events:auto;margin-left:auto;padding-right:5px}body.adventure-playing .brand,body.adventure-playing .age-chip,body.adventure-playing #help{display:none}
body.adventure-playing #play .game-heading{position:absolute;top:62px;left:12px;right:12px;z-index:30;padding:0;pointer-events:none}body.adventure-playing .game-heading>div:first-child{display:none}body.adventure-playing .game-toolbar{pointer-events:auto;margin-left:auto}body.adventure-playing .stage-journey{position:absolute;top:7px;left:12px;width:200px;z-index:40;height:42px;margin:0;pointer-events:none}body.adventure-playing .journey-building svg{height:38px}
body.adventure-playing #play .arena-wrap{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;background:#0b172c}body.adventure-playing #play canvas{display:block;width:100%;height:100%;max-height:none;object-fit:contain;aspect-ratio:auto}
body.adventure-playing .game-hud{top:62px;left:12px;right:140px;gap:8px}body.adventure-playing .mission-card{display:none}body.adventure-playing .health-card{max-width:80%}body.adventure-playing .game-tip,body.adventure-playing .play-note{display:none}
body.duel-playing .duel-shell{position:fixed;inset:0;width:100%;max-width:none;margin:0;padding:0}body.duel-playing .duel-header{position:absolute;top:0;left:12px;right:12px;z-index:35;height:54px;min-height:54px;padding:0 122px 0 0;border:0}body.duel-playing #battle{position:absolute;inset:0;display:block}body.duel-playing .duel-score{position:absolute;top:60px;left:12px;right:12px;z-index:25;margin:0;padding:8px 12px;background:#0c192caf;border-radius:12px;pointer-events:none}body.duel-playing .duel-arena{position:absolute;inset:0;min-height:0;border:0;border-radius:0}body.duel-playing .duel-arena canvas{width:100%;height:100%;object-fit:contain;aspect-ratio:auto}body.duel-playing #duel-tip{display:none}
body.adventure-playing #play .controls,body.duel-playing .duel-controls{position:absolute;inset:0;z-index:30;display:block;margin:0;padding:0;pointer-events:none;max-width:none}
#play .controls button,.duel-controls button{pointer-events:auto;touch-action:none}
body.adventure-playing #jump,body.adventure-playing #power,body.duel-playing #duel-wall,body.duel-playing #duel-super{position:absolute;bottom:max(25px,env(safe-area-inset-bottom));width:84px;height:84px;min-height:0;border-radius:50%;padding:10px;font-size:0!important;box-shadow:0 4px 0 #0007,inset 0 1px 0 #ffffff70;border:2px solid #ffffff90;opacity:.92;color:white;background:#226680cc}
body.adventure-playing #jump,body.duel-playing #duel-wall{right:130px}body.adventure-playing #power,body.duel-playing #duel-super{right:22px;background:#c0912bcf;width:96px;height:96px;bottom:max(45px,env(safe-area-inset-bottom))}
#jump>*,#power>*,#duel-wall>*,#duel-super>*{display:none!important}#jump:before,#duel-wall:before{content:'↟';display:block;font-size:44px;line-height:1}#jump[aria-pressed=true]:before{content:'↧'}#power:before,#duel-super:before{content:'✦';display:block;font-size:48px;line-height:1}
.aim-stick{position:absolute!important;left:max(24px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));width:146px!important;height:146px!important;min-height:0!important;padding:0!important;border:2px solid #c9e9ff66!important;border-radius:50%!important;background:#bddfff13!important;box-shadow:inset 0 0 20px #dbf5ff0c!important;touch-action:none!important;cursor:grab;user-select:none}
.aim-stick .stick-ring{display:block!important;position:absolute;inset:15px;border:1px solid #d5efff40;border-radius:50%;margin:0!important}.stick-ring:after,.stick-ring:before{content:'';position:absolute;background:#cfe9ff35}.stick-ring:after{width:1px;top:0;bottom:0;left:50%}.stick-ring:before{height:1px;left:0;right:0;top:50%}.stick-ring b{position:absolute;left:50%;top:50%;width:60px;height:60px;display:grid;place-items:center;border-radius:50%;border:2px solid #dff5ff90;background:#b2dffb44;color:#effbff;font-size:30px;transform:translate(calc(-50% + var(--stick-x,0px)),calc(-50% + var(--stick-y,0px)));box-shadow:0 2px 12px #0004}.aim-stick.active{border-color:#a9f2ff!important;background:#9deaff24!important}.aim-stick.active b{background:#8fe6ff80;box-shadow:0 0 16px #8beeff50}
@media(max-height:500px){.aim-stick{width:120px!important;height:120px!important;bottom:12px}body.adventure-playing #jump,body.duel-playing #duel-wall{width:70px;height:70px;right:111px;bottom:15px}body.adventure-playing #power,body.duel-playing #duel-super{width:80px;height:80px;right:18px;bottom:28px}.game-hud{transform:scale(.85);transform-origin:top left}.duel-score{top:48px!important;padding:2px 8px!important}}
@media(max-width:600px){body.adventure-playing .stage-journey{width:130px}.aim-stick{width:126px!important;height:126px!important;left:14px}body.adventure-playing #jump,body.duel-playing #duel-wall{right:110px;width:72px;height:72px}body.adventure-playing #power,body.duel-playing #duel-super{right:14px;width:84px;height:84px}}

.hp-meter{--hp:100%;position:relative!important;display:block!important;isolation:isolate;min-width:180px;height:24px!important;line-height:24px!important;border:2px solid #8fbacb;border-radius:4px;background:#312b34!important;overflow:hidden;color:white!important;text-align:center;font-size:12px!important;letter-spacing:0!important;font-weight:900;text-shadow:0 1px 3px #000}
.hp-meter:before{content:'';position:absolute;inset:0 auto 0 0;width:var(--hp);background:linear-gradient(#ccfff5,#39d7bd 40%,#168d8e);z-index:-1;transition:width .18s ease-out}.hp-meter[data-low=true]:before{background:linear-gradient(#ffcba4,#e76257 40%,#b02d41)}.duel-score>div:last-child .hp-meter:before{left:auto;right:0}
.duel-score{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)!important;gap:8px}.duel-score .hp-meter{min-width:0;width:100%;margin-top:5px!important}.duel-score b{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px!important}.duel-score i{display:flex;gap:6px;margin-top:7px}.duel-score>div:last-child i{justify-content:flex-end}.round-dot{display:inline-block;width:14px;height:14px;border:2px solid #9ab7c7;border-radius:50%;background:#18293e;box-shadow:inset 0 1px 3px #000}.round-dot.won{background:#f8d86b;border-color:#fff2ad;box-shadow:0 0 10px #f8d86b88}
.upgrade-ranks{display:grid!important;grid-template-columns:repeat(13,1fr);gap:3px;width:100%;position:absolute;bottom:9px;left:7px;width:calc(100% - 14px)}.upgrade-ranks i{height:9px;background:#b7c8d5;border-radius:2px}.upgrade-ranks .filled{background:#269bae;box-shadow:0 0 3px #5ddbdf}.picture-upgrade{padding-bottom:28px!important}.picture-upgrade:disabled{opacity:.55;background:#d8e7df!important}.picture-upgrade .upgrade-plus{display:block!important}

.level-track{height:7px;background:#263c53;border-radius:6px;overflow:hidden;min-width:90px;flex:1}.level-track i{display:block;height:100%;background:linear-gradient(90deg,#649ceb,#bd8bff);transition:width .25s}.hero-level,#hero-level-hud{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:bold;margin-top:6px}.hero-level{color:#5c4a96}.next-stage-picture{display:block;margin:20px auto 0;width:150px;padding:12px}.next-stage-picture svg{width:90px;height:65px}

#game-settings-button{position:fixed;right:max(10px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));z-index:60;width:48px;height:48px;padding:8px;border:1px solid #b4d3e2;border-radius:14px;background:#142b42e8;color:#def4ff}.top-icon svg{width:100%;height:100%}#duel-home{right:max(68px,env(safe-area-inset-right))!important}#leave-waiting,#leave-battle{right:max(128px,env(safe-area-inset-right))!important}
body.adventure-playing .top-actions{padding-right:57px;gap:7px;display:flex}body.adventure-playing .top-actions>button,.battle-top-tools>button{min-width:46px;width:46px;height:46px;min-height:46px;padding:7px!important;border-radius:13px;background:#132b45d9;border:1px solid #b6dae6;color:#e7f9ff;font-size:0!important;box-shadow:none}.top-actions #pause svg{width:29px;height:29px}.top-actions .cards-picture-count,.battle-top-tools .cards-picture-count{display:none}.top-actions .cards-picture-button svg,.battle-top-tools .cards-picture-button svg{width:34px;height:31px}.top-actions #assist:before,.battle-top-tools #duel-assist:before{content:'◎';display:block;font-size:32px;line-height:1}.top-actions #assist[aria-pressed=true],#duel-assist[aria-pressed=true]{background:#296d61;color:#e0ffd9;border-color:#91efbd}
.battle-top-tools{position:absolute;right:194px;top:8px;z-index:40;display:flex;gap:7px}.battle-top-tools #duel-pause{font-size:28px!important;font-weight:900}.duel-playing .duel-header>span{display:none}.duel-playing .duel-header{pointer-events:none}#game-settings-panel .settings-options{display:grid;gap:12px;margin-top:22px}#game-settings-panel button:not(.game-corner-exit){font-size:16px;min-height:50px;width:100%;display:block!important}#game-settings-panel #music span,#game-settings-panel #sound span{display:inline!important}#game-settings-panel #help{display:block!important}#game-settings-panel{min-width:280px;background:#eef6fc;color:#17324a}
@media(max-width:600px){body.adventure-playing .stage-journey{width:100px}.battle-top-tools{right:190px;gap:4px}.battle-top-tools>button{width:42px;min-width:42px}.duel-playing #connection{position:absolute;left:0;top:59px;font-size:8px;max-width:130px}.duel-score{top:85px!important}}

body.mini-game-active #play .controls{visibility:hidden!important;pointer-events:none!important}body.mini-game-active #play .controls button{pointer-events:none!important}

body:not(.adventure-playing) #pause{display:none}

.aim-stick{max-height:none!important}.stick-ring b svg{width:34px!important;height:34px!important;display:block}body.duel-playing #duel-wall,body.duel-playing #duel-super{max-height:none}

body.adventure-playing .game-hud{display:flex;justify-content:flex-start;align-items:flex-start;right:12px;pointer-events:none}body.adventure-playing .score-card{flex:none;min-width:48px;margin:0;font-size:15px;padding:9px 10px}body.adventure-playing .health-card{flex:0 1 230px;min-width:0}body.adventure-playing .game-toolbar:empty{display:none}
body.adventure-playing .topbar{min-height:0!important;height:58px!important}body.adventure-playing .top-actions{align-items:center;flex-wrap:nowrap}

.repeat-fire{position:absolute;right:22px;bottom:max(22px,env(safe-area-inset-bottom));width:96px;height:96px;max-height:none!important;min-height:0!important;border:2px solid #ffe2d6;border-radius:50%;background:linear-gradient(#e36b52ee,#ab352ddd);color:#fff3e8;box-shadow:0 4px 0 #572926;padding:20px!important;touch-action:none}.repeat-fire svg{display:block;width:100%;height:100%}.repeat-fire:active{background:#fc9671;transform:scale(.96)}
body.adventure-playing #power,body.duel-playing #duel-super{width:78px;height:78px;right:30px;bottom:max(139px,calc(env(safe-area-inset-bottom) + 130px));opacity:1!important;border:4px solid transparent!important;background:linear-gradient(#263647,#263647) padding-box,conic-gradient(#829cae var(--charge,0%),#253348 0) border-box;filter:none!important;box-shadow:0 4px 0 #071321;overflow:visible}
body.adventure-playing #power.skill-ready,body.duel-playing #duel-super.skill-ready{background:linear-gradient(#fff3a5,#d99a24) padding-box,linear-gradient(#fff9d6,#fff1a3) border-box;color:#754211;box-shadow:0 0 20px #ffd575a0,0 4px 0 #846015;animation:skill-ready-breathe 1.8s ease-in-out infinite}
#power.skill-cooling:before,#duel-super.skill-cooling:before{content:''!important;display:block;width:34px;height:37px;margin:auto;background:#a4b5c5;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M9 19V12a11 11 0 0122 0v7h4v23H5V19zm5 0h12v-7a6 6 0 00-12 0z' fill='black' fill-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.8}
#power.skill-cooling:after,#duel-super.skill-cooling:after{content:attr(data-cooldown);position:absolute;bottom:3px;right:-7px;display:grid;place-items:center;background:#071522;border:2px solid #9eafbd;color:white;border-radius:50%;min-width:29px;height:29px;font:900 15px sans-serif}
@keyframes skill-ready-breathe{50%{box-shadow:0 0 28px #ffe7a0d9,0 4px 0 #846015}}
@media(max-width:600px),(max-height:500px){.repeat-fire{right:14px;width:82px;height:82px;bottom:18px;padding:17px!important}body.adventure-playing #power,body.duel-playing #duel-super{right:24px;width:66px;height:66px;bottom:116px}#power.skill-ready:before,#duel-super.skill-ready:before{font-size:36px}}
@media(prefers-reduced-motion:reduce){.skill-ready{animation:none!important}}

.repeat-fire{border:4px solid transparent;background:linear-gradient(#e36b52,#ab352d) padding-box,conic-gradient(#fff1ad var(--repeat-fill,100%),#354457 0) border-box}.repeat-fire.repeat-cooling{background:linear-gradient(#39485b,#263346) padding-box,conic-gradient(#9ecbe0 var(--repeat-fill,0%),#192536 0) border-box;color:#8495a6;box-shadow:0 3px 0 #111c2a}.repeat-fire.repeat-cooling:after{content:attr(data-cool);position:absolute;inset:0;display:grid;place-items:center;font-size:30px;font-weight:900;color:white;background:#1825369c;border-radius:50%}

.main-fire{position:absolute;right:20px;bottom:max(22px,env(safe-area-inset-bottom));width:112px;height:112px;min-height:0;max-height:none!important;border-radius:50%;padding:24px;border:3px solid #ffdfcf;color:#fff5ed;background:linear-gradient(#f77957,#b72d2e);box-shadow:0 5px 0 #612025,inset 0 2px 3px #ffd4ab99;touch-action:none}.main-fire svg{width:100%;height:100%;display:block}.main-fire:active{filter:brightness(1.2)}.repeat-fire{right:149px;bottom:max(120px,calc(env(safe-area-inset-bottom) + 108px));width:66px;height:66px;padding:12px!important}body.adventure-playing #jump,body.duel-playing #duel-wall{right:146px;width:76px;height:76px}body.adventure-playing #power,body.duel-playing #duel-super{right:40px;bottom:max(152px,calc(env(safe-area-inset-bottom) + 140px));width:72px;height:72px}
@media(max-width:700px),(max-height:540px){.main-fire{width:96px;height:96px;right:14px;bottom:max(18px,env(safe-area-inset-bottom));padding:20px}.repeat-fire{width:60px;height:60px;right:123px;bottom:104px;padding:11px!important}body.adventure-playing #jump,body.duel-playing #duel-wall{right:121px;width:64px;height:64px;bottom:23px}body.adventure-playing #power,body.duel-playing #duel-super{width:66px;height:66px;right:29px;bottom:130px}}

#stage-intro{position:fixed;inset:0;z-index:45;display:grid;place-items:center;pointer-events:none;background:linear-gradient(transparent,#091629b8,transparent);text-align:center;color:#effbff}#stage-intro>div{width:min(94vw,1000px);padding:26px 12px;background:linear-gradient(90deg,transparent,#102441da,transparent)}#stage-intro small{display:block;font-size:clamp(14px,3vw,24px);color:#a5dbe9}#stage-intro strong{display:block;font-weight:950;font-size:clamp(26px,6.5vw,76px);margin:14px 0;text-shadow:0 3px 0 #1d3e62,0 0 28px #51c9ec88}#stage-intro span{display:flex;gap:10px;justify-content:center}#stage-intro i{width:23px;height:23px;border:2px solid #9bc5d7;border-radius:50%;background:#102039}#stage-intro i.lit{background:#83e6d9;box-shadow:0 0 12px #67efdb77}#stage-intro b{display:block;margin-top:20px;font-size:30px;color:#ffe199}#stage-intro.go strong{opacity:.55}body.stage-intro-active #play .controls{visibility:hidden;pointer-events:none}body:not(.stage-intro-active) #stage-intro{visibility:hidden}
