#voiceAnswer{display:none!important}
.game-keyboard{display:none}
@media(max-width:600px){
body.custom-game-keyboard .game-keyboard{display:grid;gap:5px;padding:6px 0 2px;flex-shrink:0;width:100%}
body.custom-game-keyboard #answerForm{display:block!important;margin:4px 8px!important;padding:0!important;flex-shrink:0}
body.custom-game-keyboard #answerForm .input-row{display:flex!important;width:100%;margin:0!important}
body.custom-game-keyboard #answer{width:100%!important;min-height:37px!important;height:37px!important;font-size:18px!important;padding:5px 12px!important;box-sizing:border-box}
body.custom-game-keyboard .key-row{display:flex;justify-content:center;gap:4px;width:100%}
body.custom-game-keyboard .key-row button{flex:1;min-width:0;max-width:48px;height:38px;min-height:38px;padding:0;border:1px solid #d9cfe8;border-radius:7px;background:#fff;color:#49356c;font:bold 15px system-ui;box-shadow:0 2px 0 #d9cfe8;touch-action:manipulation}
body.custom-game-keyboard .key-row:nth-child(2){width:94%;margin:auto}
body.custom-game-keyboard .key-row:nth-child(3){width:89%;margin:auto}
body.custom-game-keyboard .key-actions{display:flex;gap:6px;margin-top:3px}
body.custom-game-keyboard .key-actions button{position:static!important;transform:none!important;border-radius:9px!important;width:auto!important;height:42px!important;min-height:42px!important;flex:1;padding:4px 7px!important;font-size:12px!important;white-space:nowrap;touch-action:manipulation}
body.custom-game-keyboard .key-actions #submit{flex:2.7!important;background:#7754b5!important;color:white!important;font-size:17px!important;font-weight:700}
body.custom-game-keyboard .key-actions #start{background:#eee6f7!important;color:#57347d!important}
body.custom-game-keyboard .key-actions #start:before,body.custom-game-keyboard .key-actions #start:after{display:none!important;content:none!important}
body.custom-game-keyboard .toolbar #pause{position:static!important;transform:none!important;width:auto!important;height:30px!important;min-height:30px!important;font-size:11px!important;padding:3px 8px!important}
body.custom-game-keyboard .mode-choice-guide{display:block!important;font-size:11px!important;margin:3px 8px!important;text-align:center!important}
body.custom-game-keyboard .game-number{display:inline!important;margin-right:5px}
body.custom-game-keyboard .stage{min-height:150px!important;flex:1 1 auto!important}
body.custom-game-keyboard.is-playing .game>#feedback{height:22px!important;min-height:22px!important;max-height:22px!important;margin-top:2px!important;margin-bottom:2px!important}
body.custom-game-keyboard .key-row button:active{background:#e5d8f5;box-shadow:none}
}

@media(max-width:600px){
body.custom-game-keyboard:not(.is-playing) .stage{height:150px!important;min-height:150px!important;max-height:150px!important;flex:0 0 150px!important}
body.custom-game-keyboard .key-actions{gap:12px}
body.custom-game-keyboard .game-keyboard{padding-bottom:calc(2px + env(safe-area-inset-bottom,0px))}
}

/* User keyboard revision 2026-10-24: compact notices, hint, reliable pointer input. */
@media(max-width:600px){
body.custom-game-keyboard .mode-choice-guide{display:none!important}
body.custom-game-keyboard.is-playing .bottom-game-select{display:none!important}
body.custom-game-keyboard .keyboard-answer-dock{display:flex;flex-direction:column;gap:2px;min-width:0}
body.custom-game-keyboard #answerForm #feedback{order:0;min-height:22px!important;height:22px!important;max-height:22px!important;margin:0!important;padding:0 5px!important;display:flex;align-items:center;font-size:11px!important;line-height:1.2!important;overflow:hidden;border-radius:7px;flex-shrink:0}
body.custom-game-keyboard #answerForm #feedback:empty{visibility:hidden}
body.custom-game-keyboard #answerForm #feedback .answer-result-heading{font-size:11px;display:flex;align-items:center;gap:3px;white-space:nowrap;margin:0}
body.custom-game-keyboard #answerForm #feedback .answer-result-detail{margin:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.custom-game-keyboard #answerForm #feedback .answer-result-mark{width:17px;height:17px;min-width:17px;line-height:17px;font-size:12px}
body.custom-game-keyboard .keyboard-answer-dock .input-row{order:1}
body.custom-game-keyboard .keyboard-answer-dock .level-track{order:2;margin:1px 4px!important;height:3px!important;flex-shrink:0}
body.custom-game-keyboard .key-actions #keyboardHint{background:#eee6f7;color:#57347d;flex:1}
body.custom-game-keyboard .key-actions #start{font-size:15px!important;white-space:nowrap!important}
body.custom-game-keyboard #answer{outline:none!important;box-shadow:none!important}
body.custom-game-keyboard .key-row button{user-select:none;-webkit-user-select:none;touch-action:none}
body.custom-game-keyboard[data-game-state=paused] .stage .overlay{inset:var(--ge-notice-top,10px) 8px auto!important;min-height:0!important;height:auto!important;max-height:110px;padding:5px 8px!important;gap:3px!important;background:rgba(255,255,255,.18)!important;backdrop-filter:none!important;pointer-events:none;border:0;box-shadow:none}
body.custom-game-keyboard[data-game-state=paused] .overlay #overlayTitle{font-size:18px!important;line-height:1.15!important;white-space:nowrap!important;margin:0!important;padding:0!important;letter-spacing:0}
body.custom-game-keyboard[data-game-state=paused] .overlay #overlayText{font-size:12px!important;line-height:1.3!important;margin:0!important;padding:0!important;color:#50366a}
body.custom-game-keyboard[data-game-state=paused] .overlay #overlayText:empty{display:none!important}
body.custom-game-keyboard[data-game-state=paused] .drop{opacity:1!important;filter:none!important}
body.custom-game-keyboard .key-actions{gap:8px!important;margin-top:2px}
}

/* compact4: endline guidance and reclaim empty feedback space for larger keys. */
@media(max-width:600px){
body.custom-game-keyboard:not(.is-playing) .endline .mode-choice-guide{display:block!important;position:absolute;left:0;right:44px;top:2px;margin:0!important;padding:0!important;background:transparent;font-size:clamp(8px,2.35vw,10px)!important;line-height:17px;white-space:nowrap;text-align:center!important}
body.custom-game-keyboard #answerForm #feedback:empty{display:none!important}
body.custom-game-keyboard .key-row button{height:45px;min-height:45px;font-size:17px}
}

@media(max-width:600px) and (max-height:650px){body.custom-game-keyboard .key-row button{height:39px;min-height:39px}}