/* Loaded last. Mobile layouts retain game rules and allow normal page scrolling. */
.mobile-game-bar,.mobile-game-hint,.mobile-game-status{display:none}
body.mobile-enabled[data-game] .mobile-game-status:not(:empty){display:block;padding:6px 10px;background:#f4f8fe;color:#324561;text-align:center;font:700 13px/1.3 system-ui}
body.mobile-enabled[data-game]{display:block!important;height:auto!important;margin:0;overflow:auto!important;min-width:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.mobile-enabled[data-game] .mobile-game-bar{display:flex;position:sticky;top:0;z-index:30;gap:5px;align-items:center;justify-content:center;padding:calc(6px + env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) 8px max(6px,env(safe-area-inset-left));background:#f4f8fe;color:#18243a;box-shadow:0 2px 8px #18243a22}
.mobile-game-bar button,.mobile-game-bar a{flex:1;min-width:0;min-height:40px;padding:7px 5px;border:1px solid #bdcadb;border-radius:10px;background:#fff;color:#18243a;font:700 13px/1.2 system-ui;text-align:center;text-decoration:none;touch-action:manipulation}
.mobile-game-bar #mobileTextbook{background:linear-gradient(#fff098,#ffb53b);color:#573008;border-color:#b76612;box-shadow:0 3px 0 #a65b12}
.mobile-game-bar #mobileStart{background:#446be5;color:white;border-color:#3556c0}
body.mobile-enabled[data-game] .mobile-game-hint:not([hidden]){display:block;margin:0;padding:8px 12px;background:#fff4cd;color:#473500;font:14px/1.5 system-ui}
body.mobile-enabled[data-game]:not(.mobile-settings-open) :is(.arcade2-top,.arcade2-controls,.match-header,.match-controls,.dictation-app>h1,.dictation-toolbar,.hm-header,.textbook-bar){display:none!important}
body.mobile-enabled[data-game].mobile-settings-open :is(.arcade2-top,.match-header,.hm-header){position:static;display:flex;flex-wrap:wrap;gap:8px;padding:8px;min-height:0}
body.mobile-enabled[data-game].mobile-settings-open :is(.arcade2-controls,.match-controls,.dictation-toolbar,.hm-toolbar){max-height:none;flex-wrap:wrap;overflow:visible}
body.mobile-enabled[data-game] :is(button,a,input,select){touch-action:manipulation}
body.mobile-enabled[data-game] :is(button,select){min-width:0;max-width:100%}
body.mobile-enabled[data-game] :is(.arcade2-app,.match-app,.dictation-app,.hanmai-app){width:100%;height:auto!important;min-height:calc(100dvh - 54px);margin:0;padding:8px!important;border-radius:0;box-sizing:border-box;overflow:visible!important;border:0}
body.mobile-enabled[data-game] :is(.arcade2-stage,.dictation-game,.hm-stage,.match-board-wrap){width:100%;min-width:0;min-height:0!important;height:auto;flex:none;overflow:visible!important;padding:8px!important;box-sizing:border-box}
body.mobile-enabled[data-game] .arcade2-stage>section{width:100%;min-width:0;min-height:0!important;height:auto;box-sizing:border-box}
body.mobile-enabled[data-game] :is(.quick-settings,.stage-actions,.judge-tools){gap:6px;flex-wrap:wrap}
body.mobile-enabled[data-game] :is(.stage-actions,.quick-settings) button{min-height:40px;font-size:13px;padding:7px 10px}
body.mobile-enabled[data-game] .big-prompt{width:100%;max-width:100%;min-height:110px;padding:12px!important;box-sizing:border-box}
body.mobile-enabled[data-game] .big-prompt h2{font-size:28px;line-height:1.2}
body.mobile-enabled[data-game] .spell-upgraded{grid-template-rows:auto minmax(110px,1fr) auto auto auto!important;gap:10px;min-height:calc(100dvh - 100px)!important}
body.mobile-enabled[data-game] .spell-slots{flex-wrap:wrap;gap:5px;padding:8px}
body.mobile-enabled[data-game] .spell-slots button{width:32px!important;height:42px!important;font-size:25px!important}
body.mobile-enabled[data-game] .spell-letters button{width:40px!important;height:44px!important;font-size:26px!important}
body.mobile-enabled[data-game] .spell-battle{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr;gap:8px}
body.mobile-enabled[data-game] .spell-battle-toolbar{grid-column:1/-1}
body.mobile-enabled[data-game] .spell-team{padding:8px;overflow:visible}
body.mobile-enabled[data-game] .spell-team-prompt b{font-size:20px}
body.mobile-enabled[data-game] .spell-team .spell-slots button{width:25px!important;height:36px!important;font-size:22px!important}
/* Pair games keep both languages visible together. */
body.mobile-enabled[data-game] .match-board{min-height:0!important;height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:8px!important}
body.mobile-enabled[data-game] .match-board-wrap{padding-top:44px!important}
body.mobile-enabled[data-game] .pair-console{display:none!important}
body.mobile-enabled[data-game] .match-lane{grid-template-rows:auto 1fr;padding:5px!important;overflow:visible;gap:6px}
body.mobile-enabled[data-game] .match-lane::after{display:none}
body.mobile-enabled[data-game] .lane-grid{grid-template-columns:1fr!important;grid-auto-rows:minmax(64px,auto);gap:7px!important}
body.mobile-enabled[data-game] .match-card{height:auto!important;min-height:64px!important;padding:6px!important;gap:3px;overflow:visible}
body.mobile-enabled[data-game] .card-main{min-height:28px!important;font-size:22px;line-height:1.2}
body.mobile-enabled[data-game] .card-meta{font-size:10px;overflow-wrap:anywhere}
body.mobile-enabled[data-game] .lane-title{min-height:30px;gap:5px}
body.mobile-enabled[data-game] .lane-mark{width:24px;height:24px;font-size:14px}
body.mobile-enabled[data-game] .lane-title b{font-size:13px}
body.mobile-enabled[data-game] .lane-title small{display:none}
body.mobile-enabled[data-game] .link-stage{display:grid;grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;height:600px!important;gap:5px!important}
body.mobile-enabled[data-game] .link-col{padding:6px;gap:6px;grid-template-rows:28px repeat(var(--link-count,6),minmax(0,1fr))}
body.mobile-enabled[data-game] .link-center{padding:4px;gap:6px}
body.mobile-enabled[data-game] .link-center strong{font-size:26px}
body.mobile-enabled[data-game] .link-center :is(em,button){font-size:11px;white-space:normal;padding:5px 2px}
body.mobile-enabled[data-game] .link-node{padding:4px;min-height:44px}
/* PK teams and the buzzer question each get usable width on a phone. */
body.mobile-enabled[data-game] .pk-stage{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr;gap:8px}
body.mobile-enabled[data-game] .pk-answer-side{min-height:440px!important;grid-template-rows:auto minmax(120px,1fr) auto;padding:8px;gap:8px}
body.mobile-enabled[data-game] .pk-team-head strong{font-size:28px}
body.mobile-enabled[data-game] .pk-team-head span{font-size:17px}
body.mobile-enabled[data-game] .pk-side-question{min-height:140px;height:auto;grid-template-rows:auto 1fr auto;padding:6px}
body.mobile-enabled[data-game] .pk-side-options{grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(48px,auto));gap:7px}
body.mobile-enabled[data-game] .pk-side-answer{padding:7px!important;min-height:48px!important;grid-template-columns:18px minmax(0,1fr)}
body.mobile-enabled[data-game] .battle-buzzer{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto auto;align-items:stretch;gap:10px}
body.mobile-enabled[data-game] .battle-console{grid-column:1/-1;grid-row:1;grid-template-rows:minmax(140px,auto) minmax(120px,auto) auto auto;height:auto}
body.mobile-enabled[data-game] .battle-team{grid-row:2;min-height:140px!important;padding:8px;gap:5px}
body.mobile-enabled[data-game] .battle-team .team-avatar{display:none}
body.mobile-enabled[data-game] .battle-team h2{font-size:20px}
body.mobile-enabled[data-game] .battle-team strong{font-size:30px}
body.mobile-enabled[data-game] .battle-question{min-height:140px!important}
body.mobile-enabled[data-game] .buzzer-choice{min-height:54px!important;padding:8px!important}
body.mobile-enabled[data-game] .buzzer-options{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(54px,auto))}
/* Compact chant stage, preserving all four positions and synchronized highlights. */
body.mobile-enabled[data-game] .hm-stage{display:grid!important;grid-template-rows:auto auto;gap:10px!important}
body.mobile-enabled[data-game] .hm-top-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,100px);gap:7px;min-height:0;flex-basis:auto}
body.mobile-enabled[data-game] .hm-cn-card{min-height:0!important;height:100px;padding:8px;font-size:22px;overflow-wrap:anywhere;line-height:1.2}
body.mobile-enabled[data-game] .hm-bottom-area{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)!important;gap:7px;min-height:260px}
body.mobile-enabled[data-game] .hm-bottom-col{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(120px,1fr));gap:8px;min-height:0}
body.mobile-enabled[data-game] .hm-bottom-area{height:270px;grid-template-rows:minmax(0,1fr)}
body.mobile-enabled[data-game] .hm-bottom-col:first-child{grid-column:1;grid-row:1;min-width:0}
body.mobile-enabled[data-game] .hm-bottom-col:last-child{grid-column:3;grid-row:1;min-width:0}
body.mobile-enabled[data-game] .hm-mic-zone{grid-column:2;grid-row:1}
body.mobile-enabled[data-game] .hm-en-card{min-height:120px!important;padding:8px;border-radius:15px}
body.mobile-enabled[data-game] .hm-en-card span{display:block;width:100%;height:100%;min-height:0;align-content:center;overflow-wrap:anywhere;line-height:1.2}
body.mobile-enabled[data-game] .hm-mic-zone{order:0;min-width:0;min-height:0!important;padding:6px;gap:8px;border-radius:16px}
body.mobile-enabled[data-game] .hm-mic-zone::before,body.mobile-enabled[data-game] .hm-mic-zone::after{display:none}
body.mobile-enabled[data-game] .hm-mic{width:48px;font-size:24px}
body.mobile-enabled[data-game] .hm-wave{height:24px}
body.mobile-enabled[data-game] .hm-progress{padding:7px 2px;min-width:0}
body.mobile-enabled[data-game] .hm-progress b{font-size:20px}
body.mobile-enabled[data-game] .hm-coach{font-size:11px;min-height:24px;padding:4px}
body.mobile-enabled[data-game] .dt-prompt-card{height:150px!important;min-height:150px;flex:none}
body.mobile-enabled[data-game] .dictation-game{display:flex;flex-direction:column;gap:12px;min-height:calc(100dvh - 120px)!important}
body.mobile-enabled[data-game] .dt-cn{font-size:28px}
body.mobile-enabled[data-game] .dt-slot,body.mobile-enabled[data-game] .dt-letter{width:36px;height:44px;font-size:25px}
body.mobile-enabled[data-game] .dt-footer{flex-wrap:wrap;gap:10px}
/* Boards can scroll vertically; words are never clipped to an ellipsis. */
body.mobile-enabled[data-game] .gomoku2{grid-template-columns:1fr!important;gap:12px}
body.mobile-enabled[data-game] .gomoku-info{padding:10px}
body.mobile-enabled[data-game] .gomoku-board{height:auto;grid-template-rows:repeat(var(--n),minmax(60px,auto));gap:3px;padding:4px;border-width:3px}
body.mobile-enabled[data-game] .gomoku-board button{min-height:60px;height:auto;overflow:visible;padding:3px}
body.mobile-enabled[data-game] .gomoku-board button span{font-size:12px!important;overflow-wrap:anywhere}
body.mobile-enabled[data-game] .bloom-cross{grid-template-columns:1fr!important;gap:10px}
body.mobile-enabled[data-game] .bloom-cross aside{padding:10px}
body.mobile-enabled[data-game] .bloom-clues{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.mobile-enabled[data-game] .bloom-rules{display:none}
body.mobile-enabled[data-game] .bloom-play{min-width:0;grid-template-rows:300px auto auto auto;padding:6px;gap:8px}
body.mobile-enabled[data-game] .bloom-board-wrap{min-width:0;overflow:hidden}
body.mobile-enabled[data-game] .bloom-clue{min-height:65px!important}
body.mobile-enabled[data-game] .meteor-upgraded{grid-template-rows:auto minmax(320px,1fr) 36px}
body.mobile-enabled[data-game] .meteor-hud{flex-wrap:wrap;padding:10px}
body.mobile-enabled[data-game] .meteor-sky{min-height:320px}
body.mobile-enabled[data-game] .meteor-card{width:30%;max-width:30%;height:104px;padding:6px;left:calc(1% + var(--x,0));font-size:17px}
body.mobile-enabled[data-game] .meteor-sky .m1,body.mobile-enabled[data-game] .meteor-sky .m4{--x:34%}
body.mobile-enabled[data-game] .meteor-sky .m2,body.mobile-enabled[data-game] .meteor-sky .m5{--x:68%}
body.mobile-enabled[data-game] .meteor-sky .m3{--x:0%}
body.mobile-enabled[data-game] .fruit-field{touch-action:none;min-height:340px}
body.mobile-enabled[data-game] .fruit-card{max-width:32%;font-size:18px!important;min-height:70px}
body.mobile-enabled[data-game] .quick-hero-card{min-height:300px!important;padding:12px!important;grid-template-rows:auto auto minmax(120px,1fr) auto auto auto}
body.mobile-enabled[data-game] .quick-hero-card::before{display:none!important}
body.mobile-enabled[data-game] .quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
body.mobile-enabled[data-game] .quick-actions button{min-width:0;min-height:48px;font-size:17px;padding:8px}
body.mobile-enabled[data-game] .wheel-face{width:260px;height:260px;max-width:100%;font-size:60px}
body.mobile-enabled[data-game] .wheel-show{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:8px}
body.mobile-enabled[data-game] .wheel-lane{padding:8px!important;min-width:0;min-height:0;height:auto}
body.mobile-enabled[data-game] .wheel-lane>span{font-size:10px;padding:5px;white-space:normal}
body.mobile-enabled[data-game] .wheel-lane .wheel-face{width:min(220px,calc((100vw - 88px)/2));height:auto!important;aspect-ratio:1;border-width:8px;box-sizing:border-box}
body.mobile-enabled[data-game] .wheel-face>b{font-size:24px;border-width:3px;min-width:0;overflow-wrap:anywhere}
body.mobile-enabled[data-game] .wheel-used{grid-column:1/-1;font-size:12px;padding:8px}
body.mobile-enabled[data-game] :is(.wheel2,.police2,.recite2){grid-template-columns:1fr!important;gap:12px}
body.mobile-enabled[data-game] .train-line{max-width:100%;overflow:auto}
body.mobile-enabled[data-game] .train-track{flex-wrap:wrap;min-width:0}
body.mobile-enabled[data-game] .cars button{min-width:70px;min-height:46px;padding:8px;font-size:18px}
body.mobile-enabled[data-game] :is(.unit-bank-dialog,.textbook-dialog,.modal-card){max-width:94vw;max-height:86dvh;overflow:auto;box-sizing:border-box}
body.mobile-enabled[data-game] :is(.match-modal,.victory-layer){width:100%;box-sizing:border-box}
body.mobile-enabled[data-game] .match-modal:not(.active):not(.is-open),body.mobile-enabled[data-game] .victory-layer:not(.active){display:none}
body.mobile-enabled[data-game] :is(.match-modal-card,.victory-card){max-width:100%;box-sizing:border-box;max-height:86dvh;overflow:auto;padding:18px}
body.mobile-enabled[data-game] .police-route{grid-template-columns:repeat(var(--police-cols,8),minmax(0,1fr));gap:4px;padding:8px;min-width:0}
body.mobile-enabled[data-game] .police-tile{min-width:0;min-height:46px;font-size:12px}
body.mobile-enabled[data-game] .police-board-head{grid-template-columns:auto 1fr;gap:5px;padding:8px;min-width:0}
body.mobile-enabled[data-game] .police-board-head strong{font-size:18px;min-width:0}
body.mobile-enabled[data-game] .police-board-head em{grid-column:1/-1;text-align:center}
body.mobile-enabled[data-game] .witch-board{grid-template-columns:1fr!important;gap:12px}
body.mobile-enabled[data-game] .witch-board-panel{padding:12px;min-width:0}
body.mobile-enabled[data-game] .witch-board-panel::before{display:none}
body.mobile-enabled[data-game] .witch-board-panel h2{font-size:24px;margin:6px 0}
body.mobile-enabled[data-game] .witch-board-panel p{font-size:14px;line-height:1.5;margin:6px 0}
body.mobile-enabled[data-game] .witch-player-list{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
body.mobile-enabled[data-game] .witch-player-list b{padding:8px;font-size:13px;flex:1}
body.mobile-enabled[data-game] .witch-score-row{margin:8px 0;gap:6px}
body.mobile-enabled[data-game] .witch-score-row b{padding:6px;font-size:13px}
body.mobile-enabled[data-game] .witch-score-row strong{font-size:24px}
body.mobile-enabled[data-game] .witch-board-grid{min-width:0;height:auto!important;gap:6px}
body.mobile-enabled[data-game] .witch-board-grid button{min-width:0;height:auto;min-height:65px;aspect-ratio:1}
body.mobile-enabled[data-game] .spell-upgraded .big-prompt{min-height:180px!important;grid-template-rows:auto minmax(64px,1fr) auto auto}
body.mobile-enabled[data-game] .spell-upgraded .big-prompt h2{line-height:1.2}
body.mobile-enabled[data-game] input,body.mobile-enabled[data-game] select,body.mobile-enabled[data-game] textarea{font-size:16px}
.voice-retry{position:fixed;z-index:1000;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:90vw;min-height:44px;padding:10px 16px;border:2px solid #a65b12;border-radius:14px;background:#fff1ac;color:#573008;font:bold 15px/1.3 system-ui;box-shadow:0 4px 12px #0003}
.mobile-audio-tools,.mobile-audio-panel{display:none}
body.mobile-enabled[data-game] .mobile-audio-tools{display:flex;gap:8px;padding:4px 8px;justify-content:center;background:#f4f8fe}
.mobile-audio-tools button,.mobile-audio-panel button{min-height:32px;padding:5px 10px;border:1px solid #a8bbd2;border-radius:9px;background:white;color:#263c59;font:700 12px/1.2 system-ui}
body.mobile-enabled[data-game] .mobile-audio-panel:not([hidden]){display:block;padding:8px;background:#f4f8fe;color:#263c59;font:14px/1.4 system-ui}
.mobile-audio-panel p{margin:4px 0}
/* The actual playfield, rather than the phone height, defines fruit trajectories. */
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-stage{height:calc(var(--mobile-view-height,100vh) - var(--mobile-chrome-height,90px) - 20px);min-height:430px!important;grid-template-rows:auto minmax(280px,1fr)}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-target{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px;min-height:0}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-target>div{grid-column:1/-1}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-target h2{font-size:22px;line-height:1.2;margin:3px 0}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-target button{min-height:36px;padding:5px 10px;font-size:13px}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-playground{height:100%;min-height:280px;box-sizing:border-box}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-card{top:100%;width:26%;max-width:26%;height:100px;animation-name:mobileFruitLaunch}
@keyframes mobileFruitLaunch{0%,100%{opacity:0;transform:translate(-50%,0) rotate(-12deg)}8%{opacity:1;transform:translate(-50%,calc(var(--mobile-fruit-height,320px) * -.35)) rotate(-8deg)}35%{opacity:1;transform:translate(-50%,calc(var(--mobile-fruit-height,320px) * -.92)) rotate(8deg)}55%{opacity:1;transform:translate(-50%,calc(var(--mobile-fruit-height,320px) * -1)) rotate(16deg)}82%{opacity:1;transform:translate(-50%,calc(var(--mobile-fruit-height,320px) * -.55)) rotate(34deg)}94%{opacity:1;transform:translate(-50%,calc(var(--mobile-fruit-height,320px) * -.2)) rotate(45deg)}}
/* Chanting stays within the real viewport while controls are collapsed. */
body.mobile-enabled[data-game]:not(.mobile-settings-open) .hanmai-app{height:calc(var(--mobile-view-height,100vh) - var(--mobile-chrome-height,90px))!important;min-height:0}
body.mobile-enabled[data-game] .hm-stage{flex:1 1 0;height:100%;grid-template-rows:minmax(0,1fr) minmax(0,1.7fr);min-height:0!important}
body.mobile-enabled[data-game] .hm-stage::before,body.mobile-enabled[data-game] .hm-stage::after{display:none}
body.mobile-enabled[data-game] .hm-top-row{height:100%;grid-template-rows:repeat(2,minmax(0,1fr));min-height:0;padding:6px}
body.mobile-enabled[data-game] .hm-cn-card{height:100%;min-height:0!important;padding:6px}
body.mobile-enabled[data-game] .hm-bottom-area{height:100%;min-height:0;grid-template-rows:minmax(0,1fr)}
body.mobile-enabled[data-game] .hm-bottom-col{grid-template-rows:repeat(2,minmax(0,1fr));min-height:0}
body.mobile-enabled[data-game] .hm-en-card{height:100%;min-height:0!important;min-width:0;grid-template-columns:minmax(0,1fr);box-sizing:border-box}
body.mobile-enabled[data-game] .hm-en-card span{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
body.mobile-enabled[data-game][data-chant-mode=word] .hm-en-card span{white-space:nowrap;overflow-wrap:normal;word-break:normal}
body.mobile-enabled[data-game][data-chant-mode=sentence] .hm-en-card span{overflow-wrap:normal;word-break:normal}
@media(orientation:landscape){
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-stage{min-height:240px!important;grid-template-rows:auto minmax(180px,1fr)}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-target{grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-target>div{grid-column:auto}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-target h2{font-size:18px}
body.mobile-enabled[data-game=fruit].fruit-play-mode .fruit-playground{min-height:180px}
body.mobile-enabled[data-game] .hm-top-row{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:minmax(60px,auto)}
body.mobile-enabled[data-game] .hm-bottom-area{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)!important;min-height:180px}
body.mobile-enabled[data-game] .hm-bottom-area{height:180px}
body.mobile-enabled[data-game] .hm-bottom-col{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(150px,1fr)}
body.mobile-enabled[data-game] .hm-en-card{min-height:150px!important}
body.mobile-enabled[data-game] .lane-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.mobile-enabled[data-game] .link-stage{height:460px!important}
body.mobile-enabled[data-game] .pk-answer-side{min-height:300px!important;grid-template-rows:auto minmax(90px,1fr) auto}
body.mobile-enabled[data-game] .pk-side-options{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(48px,auto))}
body.mobile-enabled[data-game] .pk-side-question{min-height:90px}
body.mobile-enabled[data-game] .battle-buzzer{grid-template-columns:minmax(100px,.6fr) minmax(0,2fr) minmax(100px,.6fr)!important;grid-template-rows:auto}
body.mobile-enabled[data-game] .battle-console{grid-column:2;grid-row:1}
body.mobile-enabled[data-game] .battle-team{grid-row:1}
body.mobile-enabled[data-game] .battle-team.red{grid-column:3}
body.mobile-enabled[data-game] .bloom-cross{grid-template-columns:220px minmax(0,1fr)!important}
body.mobile-enabled[data-game] .bloom-clues{grid-template-columns:1fr}
body.mobile-enabled[data-game] .bloom-play{grid-template-rows:240px auto auto auto}
body.mobile-enabled[data-game] .wheel2{grid-template-columns:260px minmax(0,1fr)!important}
body.mobile-enabled[data-game] .police2{grid-template-columns:minmax(0,1fr) 240px!important}
body.mobile-enabled[data-game] .witch-board{grid-template-columns:220px minmax(0,1fr)!important}
body.mobile-enabled[data-game] .police-console{padding:10px}
body.mobile-enabled[data-game] .police-role-art{height:70px;min-height:0}
body.mobile-enabled[data-game] .police-console h2{font-size:22px;margin:5px}
body.mobile-enabled[data-game] .police-console p{font-size:13px;margin:5px}
body.mobile-enabled[data-game] .dice-face{width:70px;height:70px}
body.mobile-enabled[data-game] .hm-top-row{height:100%;grid-template-rows:minmax(0,1fr)}
body.mobile-enabled[data-game] .hm-bottom-area{height:100%;min-height:0}
body.mobile-enabled[data-game] .hm-bottom-col{grid-template-rows:minmax(0,1fr)}
body.mobile-enabled[data-game] .hm-en-card{min-height:0!important}
body.mobile-enabled[data-game] .hm-wave,body.mobile-enabled[data-game] .hm-coach{display:none}
body.mobile-enabled[data-game] .hm-mic{width:32px;height:32px;font-size:20px}
body.mobile-enabled[data-game] .hm-progress{padding:3px;font-size:10px}
body.mobile-enabled[data-game] .hm-progress b{font-size:16px}
body.mobile-enabled[data-game] .hm-mic-zone{gap:4px;padding:4px}
}
