/* Mobile flow is activated for touch devices and compact windows by mobile-ui.js. */
.mobile-only{display:none}
#game-menu{border:2px solid var(--ink);border-radius:18px;padding:24px;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--ink);background:var(--paper);box-shadow:8px 8px 0 #20294720}
#game-menu::backdrop{background:#18213cb8}.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.menu-heading h2{font-size:21px}.menu-heading>button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:28px;background:white}.menu-note{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 20px}.menu-options{display:flex;flex-direction:column;gap:8px;margin:18px 0}.menu-options>button{display:flex;justify-content:space-between;align-items:center;min-height:52px;border:1px solid var(--line);border-radius:9px;background:white;padding:12px 16px;font-size:14px}.menu-options span{font-size:13px;color:var(--muted)}.button.danger{background:var(--danger);color:white}.help-diagram{display:flex;gap:16px;margin:20px 0}.help-diagram>span{flex:1;background:white;border:1px solid var(--line);border-radius:10px;padding:20px 6px;text-align:center;font-size:19px;color:var(--blue)}.help-diagram b{display:block;font-size:12px;color:var(--muted);margin-top:12px}#menu-help-panel ul{padding-left:22px;font-size:14px;line-height:1.8}#menu-help-panel li+li{margin-top:8px}#menu-help-panel p,#menu-confirm p{font-size:13px;color:var(--muted);line-height:1.8;margin:18px 0}#menu-confirm h3{font-size:22px;margin-top:20px}

body.mobile-ui{--mobile-gutter:20px;overscroll-behavior-y:none}body.mobile-ui .mobile-only{display:block}body.mobile-ui .site-shell{max-width:620px;padding:0 max(var(--mobile-gutter),env(safe-area-inset-right)) 0 max(var(--mobile-gutter),env(safe-area-inset-left));padding-top:env(safe-area-inset-top)}body.mobile-ui .site-header{padding:18px 0;border-bottom:0}body.mobile-ui .brand-number{font-size:44px}body.mobile-ui .brand-type{font-size:17px}body.mobile-ui .header-right{gap:8px;flex-direction:column;align-items:end}body.mobile-ui .connection{font-size:11px}body.mobile-ui .header-right .text-link{font-size:11px}body.mobile-ui .intro,body.mobile-ui .site-footer,body.mobile-ui .controls-guide,body.mobile-ui .arena-footnote{display:none}body.mobile-ui .game-layout{display:block;margin:0}body.mobile-ui .arena-column,body.mobile-ui #mobile-home,body.mobile-ui #mobile-flow,body.mobile-ui #mobile-result,body.mobile-ui .setup-panel{display:none}body.mobile-ui .setup-panel{border:0;background:transparent;border-radius:0;overflow:visible}body.mobile-ui .character-section,body.mobile-ui .room-section{border:0;background:transparent;padding:0}body.mobile-ui .notice{background:transparent;padding:12px 0;font-size:13px}body.mobile-ui .notice:empty{display:none}body.mobile-ui .small-button{min-height:44px}body.mobile-ui .button{min-height:52px;border-radius:10px;font-size:15px;padding:13px 18px}body.mobile-ui input{font-size:16px;height:50px;border-radius:9px}body.mobile-ui [data-open-menu],body.mobile-ui #mobile-back{min-width:44px;min-height:44px}

body.mobile-ui[data-screen=home] #mobile-home{display:block;padding-bottom:max(20px,env(safe-area-inset-bottom))}.home-scene{height:clamp(150px,24svh,230px);margin:10px 0 24px;position:relative;overflow:hidden;border:2px solid var(--ink);border-radius:20px;background:#fff url('/assets/bg.png') center 55%/cover;isolation:isolate;box-shadow:5px 5px 0 #20294712}.home-scene:before{content:"";position:absolute;inset:0;background:#ffffff90;z-index:-1}.door-number{position:absolute;left:50%;top:12px;transform:translateX(-50%) rotate(-4deg);font:bold 30px/1.2 Consolas,monospace;background:var(--yellow);border:2px solid var(--ink);padding:3px 13px;border-radius:5px}.home-fighter{position:absolute;width:180px;height:120px;object-fit:contain;bottom:20px;image-rendering:pixelated}.home-leader{left:-5px;transform:scaleX(-1)}.home-dragon{right:-5px}.home-versus{position:absolute;left:50%;top:50%;transform:translate(-50%,-20%) rotate(-9deg);font:italic 900 32px Impact,sans-serif;color:var(--blue);text-shadow:2px 2px 0 white}.home-scene-label{position:absolute;bottom:0;left:0;right:0;text-align:center;padding:7px;background:var(--ink);color:white;font-size:11px;letter-spacing:2px}.home-heading{margin-bottom:23px}.home-heading p{font-size:12px;color:var(--muted);margin-bottom:8px}.home-heading h1{font-size:30px;font-weight:900;letter-spacing:-1px}.home-actions{display:flex;flex-direction:column;gap:12px}.mode-button{display:flex;align-items:center;gap:15px;padding:15px 18px;border:1px solid #c4cada;border-radius:13px;background:#fff;text-align:left;min-height:78px;box-shadow:0 3px 0 #2029470c}.mode-button>span:nth-child(2){flex:1}.mode-button b{display:block;font-size:17px}.mode-button small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.mode-symbol{display:grid;place-items:center;width:39px;height:39px;border:1px solid #d7def1;border-radius:12px;font-size:27px;color:var(--blue);background:var(--soft)}.mode-button>span:last-child{font-size:25px}.mode-primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 4px 0 #273b93}.mode-primary small{color:#e2e8ff}.mode-primary .mode-symbol{color:white;background:#ffffff15;border-color:#ffffff40}.mode-practice .mode-symbol{color:#755813;background:#fff5cd;border-color:#eddea6}.home-help{display:block;margin:18px auto 0;border:0;background:transparent;font-size:13px;color:var(--blue);padding:12px;min-height:44px}.home-footer{text-align:center;font-size:11px;color:var(--muted);padding:10px 0}

body.mobile-ui[data-screen=select] #mobile-flow,body.mobile-ui[data-screen=room] #mobile-flow{display:flex}.mobile-flow{align-items:center;gap:10px;margin:14px 0 25px}.mobile-flow>div{flex:1}.mobile-flow>button{border:0;background:transparent;padding:8px 0;font-size:13px}.mobile-flow>button:first-child{margin-right:8px}.mobile-flow span{font-size:11px;color:var(--muted);display:block;margin-bottom:5px}.mobile-flow h1{font-size:23px;letter-spacing:-.7px}.mobile-flow .mobile-help-button{border:1px solid var(--line);background:white;border-radius:50%;font-size:18px}body.mobile-ui[data-screen=select] .setup-panel{display:flex;flex-direction:column}body.mobile-ui[data-screen=select] .character-section{display:block}body.mobile-ui[data-screen=select] #room-panel{display:none}body.mobile-ui .section-title{margin-bottom:14px}body.mobile-ui .section-title h2{font-size:14px;color:var(--muted);font-weight:500}body.mobile-ui .section-title>span{font-size:12px}body.mobile-ui .roster{max-height:330px;gap:12px;padding:3px 3px 6px}body.mobile-ui .character-card{min-height:146px;border-radius:12px;background:white;padding:12px 7px}body.mobile-ui .character-card[aria-pressed=true]{padding:11px 6px;background:var(--soft);box-shadow:0 4px 0 #334dc51a}body.mobile-ui .character-card b{font-size:15px}body.mobile-ui .character-card small{font-size:11px}body.mobile-ui .character-card img{height:92px}body.mobile-ui .picked{font-size:11px;top:8px;right:8px;border-radius:5px}body.mobile-ui .character-detail{padding:16px 2px 20px}body.mobile-ui .character-quote{font-size:13px;text-align:center}body.mobile-ui .stat-row{padding:12px 0;margin:0 0 16px;border-color:#dce0e8}body.mobile-ui .stat-row b{font-size:22px}body.mobile-ui .stat-row span{font-size:11px}body.mobile-ui .skill-list{gap:12px}body.mobile-ui .skill-row{grid-template-columns:38px 1fr;gap:10px}body.mobile-ui .skill-row kbd{width:38px;min-height:27px;font:11px "Microsoft YaHei",sans-serif;border-width:1px;border-radius:6px;background:var(--soft);color:var(--blue)}body.mobile-ui .skill-row b{font-size:13px}body.mobile-ui .skill-row small,body.mobile-ui .skill-row p{font-size:11px}body.mobile-ui #lobby-panel{padding-top:18px;border-top:1px solid var(--line)}body.mobile-ui .field-label{font-size:13px;margin-bottom:9px}body.mobile-ui #nickname{height:50px;margin-bottom:12px}body.mobile-ui #create-room,body.mobile-ui #practice,body.mobile-ui .join-divider,body.mobile-ui #join-room{display:none}body.mobile-ui .join-row{display:none;flex-direction:column;gap:8px;margin-bottom:12px}body.mobile-ui[data-mode=join] .join-row{display:flex}body.mobile-ui .join-row label{position:static;width:auto;height:auto;clip:auto;overflow:visible;font-size:13px;font-weight:600}body.mobile-ui .join-row input{font-size:18px;letter-spacing:3px;flex:auto;text-transform:uppercase}body.mobile-ui .mobile-next-wrap{display:none;position:sticky;bottom:0;background:var(--paper);padding:14px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid #d8dce3;z-index:2;margin-top:12px}body.mobile-ui[data-screen=select] .mobile-next-wrap{display:block}.mobile-next-wrap>p{text-align:center;font-size:11px;color:var(--muted);margin-top:10px;line-height:1.5}

body.mobile-ui[data-screen=room] .setup-panel{display:block}body.mobile-ui[data-screen=room] .character-section,body.mobile-ui[data-screen=room] #lobby-panel{display:none}body.mobile-ui #room-panel{padding-bottom:max(20px,env(safe-area-inset-bottom))}body.mobile-ui .room-title{font-size:13px}body.mobile-ui .room-title .text-button{display:none}body.mobile-ui .room-code-row{background:var(--ink);border-radius:15px;padding:23px 18px;margin:12px 0 24px;color:white;gap:12px}body.mobile-ui .room-code-row strong{font-size:32px;letter-spacing:4px}body.mobile-ui .room-code-row .small-button{border-color:#ffffff40;background:#ffffff12;color:white;white-space:nowrap}body.mobile-ui .room-player{border-radius:12px;min-height:89px;padding:16px;margin-bottom:12px;background:white}body.mobile-ui .room-player b{font-size:15px;max-width:220px}body.mobile-ui .room-player small{font-size:12px;margin-top:7px}body.mobile-ui .player-status{font-size:12px}body.mobile-ui .change-character{min-height:48px;width:100%;border:1px dashed #adb8d1;border-radius:10px;background:transparent;color:var(--blue);font-size:13px;margin:3px 0 16px}body.mobile-ui .room-tip{font-size:13px;line-height:1.8;margin:10px 0 20px}body.mobile-ui .room-player .ready{color:#287454}

body.mobile-ui[data-screen=battle]{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;background:#e6e9f4;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}body.mobile-ui[data-screen=battle] .site-shell{max-width:none;padding:0;width:100%;height:100%}body.mobile-ui[data-screen=battle] .site-header,body.mobile-ui[data-screen=battle] .setup-panel{display:none}body.mobile-ui[data-screen=battle] main,body.mobile-ui[data-screen=battle] .game-layout{height:100%;margin:0}body.mobile-ui[data-screen=battle] .arena-column{position:relative;display:flex;flex-direction:column;justify-content:center;gap:0;height:100%;height:100dvh;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:hidden}body.mobile-ui[data-screen=battle] .arena-frame{width:100%;border:1px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 #20294710;flex:none;max-width:700px;margin:0 auto}body.mobile-ui[data-screen=battle] .arena-bar{padding:6px 12px;min-height:44px;background:var(--ink);font-size:11px}body.mobile-ui[data-screen=battle] .arena-tools #sound,body.mobile-ui[data-screen=battle] .arena-tools #fullscreen{display:none}body.mobile-ui #battle-menu{min-height:36px;padding:5px 12px;border-radius:7px}body.mobile-ui[data-screen=battle] .hud{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);padding:12px 12px 8px;gap:12px}body.mobile-ui[data-screen=battle] .fighter-name{display:flex;flex-wrap:wrap;gap:3px;min-height:26px}body.mobile-ui[data-screen=battle] .fighter-name b{font-size:11px;display:block;width:100%;max-width:100%}body.mobile-ui[data-screen=battle] .fighter-name span{font-size:9px}body.mobile-ui[data-screen=battle] .rival .fighter-name{justify-content:end;text-align:right}body.mobile-ui[data-screen=battle] .health-track{height:12px}body.mobile-ui[data-screen=battle] .round-clock b{font-size:28px}body.mobile-ui[data-screen=battle] .round-clock span{font-size:9px}body.mobile-ui[data-screen=battle] .canvas-wrap{width:100%}body.mobile-ui[data-screen=battle] .stage-stamp{display:none}body.mobile-ui[data-screen=battle] .battle-status{font-size:10px;min-height:32px;padding:8px 12px}body.mobile-ui[data-screen=battle] #battle-hint{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.mobile-ui[data-screen=battle] .stage-overlay{padding:0;place-items:center}body.mobile-ui[data-screen=battle] .overlay-content{padding:12px;max-width:92%}body.mobile-ui[data-screen=battle] .overlay-content strong{font-size:20px}body.mobile-ui[data-screen=battle] .overlay-content p{font-size:11px}body.mobile-ui[data-screen=battle] .stage-overlay.countdown strong{font-size:70px}body.mobile-ui .rotate-hint{display:none}body.mobile-ui[data-screen=battle] .rotate-hint{display:block;text-align:center;color:var(--muted);font-size:10px;padding:8px 0 0}

body.mobile-ui .touch-controls{display:none}body.mobile-ui[data-screen=battle] .touch-controls:not([hidden]){display:flex;flex:none;width:100%;max-width:650px;margin:18px auto 0;justify-content:space-between;align-items:end;gap:8px;position:relative;padding:0 4px 17px;touch-action:none}body.mobile-ui .touch-controls>div{position:relative;display:block}body.mobile-ui .touch-controls .direction-buttons{width:132px;height:158px}body.mobile-ui .touch-controls .action-buttons{width:188px;height:158px}body.mobile-ui .touch-controls button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:4px;border:2px solid #8793b1;background:#f9faff;color:var(--ink);box-shadow:0 4px 0 #8e9ab3;border-radius:50%;min-width:0;min-height:0;width:56px;height:56px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overflow:hidden;font-size:13px;transition:background .08s,box-shadow .08s}body.mobile-ui .touch-controls button b{font-size:13px;position:relative;z-index:1}body.mobile-ui .touch-controls button small{font-size:9px;position:relative;z-index:1;white-space:nowrap}body.mobile-ui .touch-controls button>span{font-size:21px;line-height:1.1;position:relative;z-index:1}body.mobile-ui .touch-controls .touch-block{top:2px;left:36px;width:58px;height:58px;background:#edf0f8}body.mobile-ui .touch-controls .touch-block span{font-size:16px}body.mobile-ui .touch-controls .touch-block b{font-size:11px}body.mobile-ui .touch-controls .touch-block small{font-size:8px}body.mobile-ui .dpad{position:absolute;bottom:13px;left:0;width:132px;height:66px;border:1px solid #9aa6be;border-radius:26px;background:#cfd6e6;box-shadow:0 4px 0 #97a4bb;display:flex;padding:5px;gap:6px}body.mobile-ui .touch-controls .dpad button{position:relative;flex:1;height:54px;border-radius:20px;box-shadow:none;border:1px solid #9aa6be;background:white;font-size:22px}body.mobile-ui .touch-controls .touch-jump{top:3px;left:15px;width:54px;height:54px}body.mobile-ui .touch-controls .touch-jump b{font-size:11px}body.mobile-ui .touch-controls .touch-ultimate{top:0;right:11px;width:58px;height:58px;background:#ffedaa;border-color:#ba9638;box-shadow:0 4px 0 #ba9638;color:#634500}body.mobile-ui .touch-controls .touch-skill{bottom:16px;left:0;width:58px;height:58px;border-color:#8b99cd;background:#e5eaff;color:#273b93;box-shadow:0 4px 0 #8b99cd}body.mobile-ui .touch-controls .touch-attack{bottom:7px;right:22px;width:79px;height:79px;background:var(--blue);border-color:#273b93;box-shadow:0 5px 0 #243687;color:white}body.mobile-ui .touch-controls .touch-attack b{font-size:18px}body.mobile-ui .touch-controls .touch-attack small{font-size:10px}body.mobile-ui .touch-controls .pressed{box-shadow:0 1px 0 #687793!important;filter:brightness(.86);outline:2px solid #ffffffd0;outline-offset:-5px}body.mobile-ui .touch-controls .control-caption{position:absolute;bottom:-12px;width:100%;text-align:center;font-size:10px;color:#626b80;letter-spacing:2px}body.mobile-ui .touch-controls button.cooling:before{content:"";position:absolute;inset:0;transform:translateY(calc((1 - var(--cooldown,0))*100%));background:#2029472b;pointer-events:none}body.mobile-ui .touch-controls button.rage-ready{outline:3px solid #d4a833;outline-offset:3px}body.mobile-ui .touch-controls button:disabled{opacity:.55;cursor:default}body.mobile-ui #toast{z-index:20;bottom:max(20px,env(safe-area-inset-bottom));font-size:12px;width:max-content;max-width:calc(100vw - 36px)}

body.mobile-ui[data-screen=result] #mobile-result{display:block;text-align:center;padding:10px 0 max(24px,env(safe-area-inset-bottom))}.result-art{height:190px;position:relative;display:grid;place-items:center;margin-bottom:20px;border:1px solid #d7dce7;border-radius:20px;background:repeating-conic-gradient(from 12deg at 50% 60%,#e4e9fa 0deg 14deg,#f1f3fc 14deg 28deg);overflow:hidden}.result-art img{width:230px;height:154px;object-fit:contain;image-rendering:pixelated;transform:scaleX(-1);margin-top:22px}#result-badge{position:absolute;top:15px;left:50%;transform:translateX(-50%) rotate(-4deg);z-index:1;background:var(--yellow);border:2px solid var(--ink);padding:6px 18px;font-size:17px;font-weight:900;border-radius:5px;white-space:nowrap}#result-kicker{font-size:12px;color:var(--muted);margin-bottom:9px}#result-title{font-size:29px;letter-spacing:-1px;overflow-wrap:anywhere}#result-description{font-size:13px;line-height:1.8;color:var(--muted);margin-top:12px}.result-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 26px}.result-score{padding:16px 8px;border:1px solid var(--line);background:#fff;border-radius:12px;min-width:0}.result-score b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-score strong{display:block;font:bold 24px Consolas,monospace;margin:12px 0 5px;color:var(--blue)}.result-score small{font-size:11px;color:var(--muted)}.result-actions .text-button{margin-top:16px;font-size:13px;min-height:48px}.result-actions .button+.button{margin-top:12px}

@media(max-width:359px){body.mobile-ui{--mobile-gutter:14px}body.mobile-ui .touch-controls .direction-buttons{width:116px}body.mobile-ui .dpad{width:116px}body.mobile-ui .touch-controls .touch-block{left:29px}body.mobile-ui .touch-controls .action-buttons{width:168px}body.mobile-ui .touch-controls .touch-attack{right:9px;width:73px;height:73px}body.mobile-ui .touch-controls .touch-ultimate{right:4px}body.mobile-ui .touch-controls .touch-jump{left:7px}body.mobile-ui .home-heading h1{font-size:26px}body.mobile-ui .mode-button{min-height:70px;padding:12px 14px}}
@media(orientation:landscape){body.mobile-ui[data-screen=home] .site-shell{max-width:950px}body.mobile-ui[data-screen=home] #mobile-home{display:grid;grid-template-columns:1fr 1fr;column-gap:30px;padding-bottom:20px}.home-heading{grid-column:1;grid-row:1}.home-scene{grid-column:1;grid-row:2/5}.home-actions{grid-column:2;grid-row:1/4}.home-help{grid-column:2;grid-row:4}.home-footer{grid-column:1;grid-row:5}body.mobile-ui[data-screen=battle] .arena-column{display:block;padding:0;background:#202947}body.mobile-ui[data-screen=battle] .arena-frame{border:0;border-radius:0;box-shadow:none;background:transparent;position:absolute;inset:0;max-width:none;width:100%;height:100%;margin:0}body.mobile-ui[data-screen=battle] .arena-bar{position:absolute;top:max(4px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));z-index:4;background:transparent;min-height:36px;padding:0;color:var(--ink)}body.mobile-ui[data-screen=battle] .arena-bar>span{background:#ffffffed;border-radius:8px;font-size:10px;padding:7px 10px}body.mobile-ui[data-screen=battle] .arena-tools #battle-menu{background:#202947e8;border:1px solid #fff7;min-height:38px}body.mobile-ui[data-screen=battle] .canvas-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden}body.mobile-ui[data-screen=battle] #arena{width:100%;height:100%;object-fit:contain}body.mobile-ui[data-screen=battle] .hud{position:absolute;top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:3;width:52%;max-width:650px;gap:10px;background:#ffffffed;border-radius:0 0 12px 12px;padding:7px 12px;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr)}body.mobile-ui[data-screen=battle] .fighter-name{min-height:20px;flex-wrap:nowrap;gap:5px;margin-bottom:3px}body.mobile-ui[data-screen=battle] .fighter-name b{font-size:10px;width:auto;max-width:100%}body.mobile-ui[data-screen=battle] .fighter-name span{font-size:8px;display:none}body.mobile-ui[data-screen=battle] .round-clock b{font-size:24px}body.mobile-ui[data-screen=battle] .round-clock span{font-size:8px;margin-top:3px}body.mobile-ui[data-screen=battle] .rage-track{margin-top:3px}body.mobile-ui[data-screen=battle] .battle-status{position:absolute;bottom:max(5px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 340px);border:0;border-radius:5px;background:#ffffffe8;padding:5px 8px;min-height:0;font-size:9px;z-index:2}body.mobile-ui[data-screen=battle] #battle-hint{max-width:180px}body.mobile-ui[data-screen=battle] .touch-controls:not([hidden]){position:absolute;inset:auto max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));margin:0;width:auto;max-width:none;padding:0;z-index:5;pointer-events:none}body.mobile-ui[data-screen=battle] .touch-controls button,body.mobile-ui[data-screen=battle] .dpad{pointer-events:auto}body.mobile-ui .touch-controls .control-caption{display:none}body.mobile-ui[data-screen=battle] .rotate-hint{display:none}body.mobile-ui .touch-controls .direction-buttons{height:140px}body.mobile-ui .touch-controls .action-buttons{height:146px}body.mobile-ui .touch-controls .dpad{bottom:8px}body.mobile-ui[data-screen=battle] .stage-overlay{inset:25% 25% 20%;z-index:4}body.mobile-ui[data-screen=battle] .overlay-content p{font-size:10px}body.mobile-ui[data-screen=result] .site-shell{max-width:760px}body.mobile-ui[data-screen=result] #mobile-result{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}.result-art{grid-row:1/5;grid-column:1;margin:0;height:220px}.result-actions{grid-column:2}.result-scores{margin:8px 0;grid-column:2}body.mobile-ui[data-screen=result] #result-kicker{display:none}body.mobile-ui[data-screen=result] #result-title{font-size:24px}body.mobile-ui[data-screen=result] #result-description{font-size:12px;margin:0}}
@media(orientation:portrait) and (max-height:680px){body.mobile-ui[data-screen=battle] .arena-column{justify-content:center;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:max(5px,env(safe-area-inset-bottom))}body.mobile-ui[data-screen=battle] .touch-controls:not([hidden]){margin-top:10px}body.mobile-ui[data-screen=battle] .rotate-hint{padding-top:4px}body.mobile-ui[data-screen=battle] .hud{padding-top:7px;padding-bottom:5px}body.mobile-ui[data-screen=battle] .battle-status{padding:5px 10px;min-height:25px}}
@media(prefers-reduced-motion:reduce){body.mobile-ui .touch-controls button{transition:none}}
body.mobile-ui .skill-toggle{width:100%;border:0;background:transparent;min-height:44px;padding:8px 0;color:var(--blue);font-size:12px;text-align:left}body.mobile-ui .skill-toggle[aria-expanded=false]+.skill-list{display:none}body.mobile-ui .skill-toggle[aria-expanded=true]+.skill-list{padding-top:10px}body.mobile-ui .character-detail{padding-bottom:12px}body.mobile-ui .stat-row{margin-bottom:5px}body.mobile-ui .mobile-next-wrap{position:static}body.mobile-ui .character-card{scroll-margin-top:20px}body.mobile-ui input{scroll-margin-block:25px}
