.gx-math{width:100%;max-width:680px;margin:20px auto;color:#273e4d;font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif}.gx-math *{box-sizing:border-box}.gx-math [hidden],.mm-shell [hidden]{display:none!important}.mm-shell{display:grid;grid-template-areas:"head" "hud" "progress" "stage" "choices" "tools" "foot";gap:6px;padding:8px;border:2px solid #385e7c;border-radius:18px;background:linear-gradient(145deg,#dbeefa,#b5d4e9 65%,#79a6c8);box-shadow:0 10px 30px #1c2e4033;isolation:isolate}.mm-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}.mm-brand small{display:block;font-size:8px;letter-spacing:2px;color:#6d573a;font-weight:900}.mm-brand strong{display:block;white-space:nowrap;font-size:clamp(16px,4.1vw,24px);font-weight:950;letter-spacing:-.6px;text-shadow:0 1px #fff5d7}.mm-head-tools{display:flex;gap:4px}.mm-shell button,.mm-shell select{font-family:inherit;font-size:13px;font-weight:800;line-height:1.25;color:#263d4d;border:1px solid #937647;background:#fff2d1;border-radius:10px;cursor:pointer;min-height:44px;touch-action:manipulation}.mm-shell button{padding:8px 10px;box-shadow:0 3px 0 #664f2a4d}.mm-head-tools button{min-width:44px;padding:6px 4px;font:800 11px/1.2 system-ui}.mm-shell button:hover:not(:disabled){background:#fff9e9}.mm-shell button:focus-visible,.mm-shell select:focus-visible{outline:3px solid #9a3f43;outline-offset:2px}.mm-shell button:disabled{cursor:default;opacity:.48;box-shadow:none}.mm-primary{background:#b84927!important;color:#fff5d9!important;border-color:#7b321f!important}.mm-hud{grid-area:hud;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:5px}.mm-hud>div{padding:5px 8px;border:1px solid #b09b70;border-radius:9px;background:#fff2d1}.mm-hud span,.mm-stats span{display:block;font-size:10px;font-weight:800;color:#6b604c}.mm-hud strong{display:block;font-size:20px;line-height:1.15;font-weight:950;color:#213748}.mm-progress{grid-area:progress;display:flex;justify-content:space-between;gap:5px;font-size:11px;line-height:20px}.mm-progress .is-low{color:#982737;font-weight:900}.mm-arena{grid-area:stage;position:relative;min-width:0;min-height:0;height:clamp(300px,80vw,350px);border-radius:13px;overflow:hidden;border:1px solid #876c3e;background:#162a3a}.mm-canvas{display:block;width:100%;height:100%;touch-action:none}.mm-question{position:absolute;inset:30px 24px 84px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;pointer-events:none;text-align:center}.mm-cue{display:block;padding:6px 16px;border:1px solid #f1d194;border-radius:7px;background:#e4bd74;color:#202f40;font-size:17px;line-height:1.2;font-weight:950}.mm-cue[data-cue=word]{background:#c6d9ef;border-color:#e0efff}.mm-word{display:block;font:950 clamp(65px,18vw,100px)/1.15 system-ui;text-shadow:0 3px 0 #0008}.mm-feedback{display:block;font-size:clamp(11px,3.3vw,15px);line-height:1.4;font-weight:800;color:#f4e7c7;min-height:20px}.mm-feedback.is-wrong{color:#ffd0cb}.mm-panel{position:absolute;inset:6px;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:10px;border-radius:12px;border:1px solid #aa8550;background:#f2f7f7;box-shadow:0 6px 20px #0c233d55;text-align:center;overflow:auto}.mm-panel-bar{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex-shrink:0}.gx-math .mm-panel h2{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font-family:inherit!important;font-size:clamp(17px,4.6vw,23px)!important;font-weight:950;line-height:1.2!important;letter-spacing:0!important;flex:1;color:#263d4d}.gx-math .mm-panel h2::before,.gx-math .mm-panel h2::after{display:none!important}.mm-back{width:44px;min-width:44px;height:44px;flex:none;font-size:11px!important;padding:5px!important}.mm-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.mm-modes button{padding:7px 2px;font-size:12px}.mm-modes [aria-pressed=true]{background:#35556b!important;color:#fff4d2!important}.mm-level{display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:12px;font-weight:850}.mm-level select{flex:1;padding:8px 10px;min-width:0}.mm-note{margin:0;font-size:12px;line-height:1.45;color:#635944}.mm-choices{grid-area:choices;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mm-choices button{height:51px;display:flex;justify-content:center;align-items:center;gap:12px;font-size:26px;font-weight:950;touch-action:none}.mm-choices small{font-size:10px;opacity:.6}.mm-mark{width:18px;height:18px;display:block;border:2px solid #532b3a;background:#d83f60;border-radius:50%}.mm-mark-1{border-radius:2px;background:#417dc5;border-color:#213f71}.mm-mark-2{width:20px;height:20px;border:0;border-radius:0;background:#c8a322;clip-path:polygon(50% 0,100% 100%,0 100%)}.mm-mark-3{border-radius:2px;background:#269663;border-color:#165438;transform:rotate(45deg);width:15px;height:15px}.mm-choices button.is-correct{opacity:1!important;background:#c7e9ca;border:3px solid #2a7254}.mm-choices button.is-wrong{opacity:1!important;background:#ffcecb;border:3px solid #a33143}.mm-play-tools{grid-area:tools;display:grid;grid-template-columns:1fr 1fr;gap:6px;min-height:44px}.mm-play-tools button{font-size:12px;padding:7px 3px}.mm-foot{grid-area:foot;display:flex;justify-content:space-between;gap:6px;min-height:14px;font-size:9px;line-height:14px;color:#645840}.mm-status{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}.mm-points strong{display:block;font-size:34px;line-height:1;font-weight:950;color:#b84927}.mm-points span{font-size:9px;letter-spacing:3px;font-weight:850}.mm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.mm-stats>div{border:1px solid #b59e70;border-radius:7px;padding:5px 3px;background:#fff7e3}.mm-stats strong{display:block;font-size:17px;line-height:1.2;color:#263d4d}.mm-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mm-result-actions button{padding:7px 3px;font-size:12px}.mm-supplies{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mm-supplies button{min-height:54px;padding:5px}.mm-supplies strong,.mm-supplies span{display:block}.mm-supplies span{font-size:10px;margin-top:3px}.mm-portal{position:fixed!important;inset:0!important;width:auto!important;max-width:none!important;margin:0!important;z-index:2147483600!important;padding:0!important}.mm-expanded,.mm-shell:fullscreen{width:100%;max-width:none;height:100dvh;height:100svh;border-radius:0;border:0;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto}.mm-expanded .mm-arena,.mm-shell:fullscreen .mm-arena{height:auto}.mm-shell:fullscreen::backdrop{background:#182a3b}@media(max-width:340px){.mm-shell{padding:6px}.mm-brand strong{font-size:16px}.mm-head-tools{gap:3px}.mm-note{font-size:11px}.mm-panel{padding:8px;gap:6px}.mm-modes button{font-size:11px}.mm-hud strong{font-size:18px}.mm-hud>div{padding:4px 7px}.mm-foot{font-size:8px}.mm-progress{font-size:10px}.mm-play-tools button{font-size:11px}}@media(max-height:650px){.mm-expanded .mm-question,.mm-shell:fullscreen .mm-question{inset:26px 23px 76px;gap:2px}.mm-expanded .mm-word,.mm-shell:fullscreen .mm-word{font-size:46px}.mm-expanded .mm-cue,.mm-shell:fullscreen .mm-cue{font-size:14px;padding:4px 12px}.mm-expanded .mm-feedback,.mm-shell:fullscreen .mm-feedback{font-size:11px}.mm-expanded .mm-hud strong,.mm-shell:fullscreen .mm-hud strong{font-size:18px}.mm-expanded .mm-hud>div,.mm-shell:fullscreen .mm-hud>div{padding:3px 7px}.mm-expanded .mm-choices button,.mm-shell:fullscreen .mm-choices button{height:44px}.mm-expanded,.mm-shell:fullscreen{gap:5px}}@media(max-height:480px) and (min-width:500px){.mm-expanded,.mm-shell:fullscreen{grid-template-columns:minmax(230px,.85fr) minmax(260px,1fr);grid-template-areas:"head stage" "hud stage" "progress stage" "choices stage" "tools stage" "foot stage";grid-template-rows:44px 36px 18px minmax(88px,1fr) 44px 12px;gap:5px}.mm-expanded .mm-brand,.mm-shell:fullscreen .mm-brand{display:none}.mm-expanded .mm-head,.mm-shell:fullscreen .mm-head{justify-content:center}.mm-expanded .mm-head-tools,.mm-shell:fullscreen .mm-head-tools{gap:6px}.mm-expanded .mm-progress,.mm-shell:fullscreen .mm-progress{font-size:10px}.mm-expanded .mm-panel,.mm-shell:fullscreen .mm-panel{padding:7px;gap:5px}.gx-math .mm-expanded .mm-panel h2,.gx-math .mm-shell:fullscreen .mm-panel h2{font-size:17px!important}.mm-expanded .mm-points strong,.mm-shell:fullscreen .mm-points strong{font-size:28px}.mm-expanded .mm-stats>div,.mm-shell:fullscreen .mm-stats>div{padding:3px}.mm-expanded .mm-stats strong,.mm-shell:fullscreen .mm-stats strong{font-size:15px}.mm-expanded .mm-note,.mm-shell:fullscreen .mm-note{font-size:11px}.mm-expanded .mm-modes button,.mm-shell:fullscreen .mm-modes button{font-size:11px}.mm-expanded .mm-question,.mm-shell:fullscreen .mm-question{gap:6px}.mm-expanded .mm-word,.mm-shell:fullscreen .mm-word{font-size:70px}.mm-expanded .mm-foot,.mm-shell:fullscreen .mm-foot{font-size:8px;line-height:12px}}@media(prefers-reduced-motion:reduce){.gx-math *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.mm-word{font-variant-numeric:tabular-nums;color:#fff8e5;white-space:nowrap;font-weight:950;letter-spacing:-1px}.mm-feedback{max-width:100%;overflow-wrap:anywhere}.mm-choices button{position:relative;border-style:dashed;border-width:2px;background:#fff9e9}.mm-choices button strong{font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}.mm-choices button small{position:absolute;right:9px;bottom:5px}.mm-cue{font-size:14px}.mm-supplies button{min-height:74px;background:#fff5df}.mm-supplies strong{font-size:clamp(18px,5vw,26px);font-variant-numeric:tabular-nums}.mm-supplies span{font-size:12px}.mm-question{inset:30px 18px 74px}.mm-panel[data-kind=route]{gap:12px}.mm-panel[data-kind=route] .mm-note{font-size:13px}.mm-expanded .mm-question,.mm-shell:fullscreen .mm-question{inset:26px 15px 70px}
