.gx-count{width:100%;max-width:680px;margin:20px auto;color:#183d5a;font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif}.gx-count *{box-sizing:border-box}.gx-count [hidden],.cb-shell [hidden]{display:none!important}.cb-shell{display:grid;grid-template-areas:"head" "hud" "progress" "stage" "choices" "tools" "foot";gap:6px;padding:8px;border:2px solid #386c8b;border-radius:18px;background:linear-gradient(145deg,#fbedd1,#e9f5ef 60%,#d3e6e8);box-shadow:0 10px 30px #17374b22;isolation:isolate}.cb-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}.cb-brand small{display:block;font-size:8px;letter-spacing:2px;color:#497389;font-weight:900}.cb-brand strong{display:block;white-space:nowrap;font-size:clamp(17px,4.5vw,24px);font-weight:950;letter-spacing:-.6px;text-shadow:0 1px #fff}.cb-head-tools{display:flex;gap:4px}.cb-shell button,.cb-shell select{font-family:inherit;font-size:13px;font-weight:800;line-height:1.25;color:#173d5a;border:1px solid #3b6e8c;background:#f8fbef;border-radius:10px;cursor:pointer;min-height:44px;touch-action:manipulation}.cb-shell button{padding:8px 10px;box-shadow:0 3px 0 #3c69854d}.cb-head-tools button{min-width:44px;padding:6px 4px;font:800 11px/1.2 system-ui}.cb-shell button:hover:not(:disabled){background:#fff9df}.cb-shell button:focus-visible,.cb-shell select:focus-visible{outline:3px solid #c05525;outline-offset:2px}.cb-shell button:disabled{cursor:default;opacity:.48;box-shadow:none}.cb-primary{background:#bc4e39!important;color:#fff9e8!important;border-color:#943627!important}.cb-hud{grid-area:hud;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:5px}.cb-hud>div{padding:5px 8px;border:1px solid #7399a8;border-radius:9px;background:#fff9e4}.cb-hud span,.cb-stats span{display:block;font-size:10px;font-weight:800;color:#527282}.cb-hud strong{display:block;font-size:20px;line-height:1.15;font-weight:950;color:#153b59}.cb-progress{grid-area:progress;display:flex;justify-content:space-between;gap:5px;font-size:11px;line-height:20px}.cb-progress .is-low{color:#a32d35;font-weight:900}.cb-arena{grid-area:stage;position:relative;min-width:0;min-height:0;height:clamp(300px,80vw,360px);border-radius:13px;overflow:hidden;border:1px solid #3c789b;background:#9bd6ed}.cb-canvas{display:block;width:100%;height:100%;touch-action:none}.cb-panel{position:absolute;inset:6px;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:10px;border-radius:12px;border:1px solid #41708a;background:#fbf3df;box-shadow:0 6px 20px #17405b33;text-align:center;overflow:auto}.cb-panel-bar{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex-shrink:0}.cb-panel h2{margin:0;font-size:clamp(17px,4.7vw,23px);font-weight:950;line-height:1.2;flex:1;color:#173d5a}.cb-back{width:44px;min-width:44px;height:44px;flex:none;font-size:11px!important;padding:5px!important}.cb-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.cb-modes button{padding:7px 3px;font-size:12px}.cb-modes [aria-pressed=true]{background:#276c8b!important;color:#fff9dc!important}.cb-level{display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:12px;font-weight:850}.cb-level select{flex:1;padding:8px 12px;min-width:0}.cb-note{margin:0;font-size:12px;line-height:1.45;color:#3f6274}.cb-choices{grid-area:choices;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.cb-choices button{height:54px;font-size:27px;font-weight:950;touch-action:none}.cb-choices button.is-correct{opacity:1!important;background:#c3ecd5;border:3px solid #23815d}.cb-choices button.is-wrong{opacity:1!important;background:#ffd6cf;border:3px solid #b23243}.cb-single-action{grid-template-columns:1fr}.cb-single-action button{font-size:18px}.cb-play-tools{grid-area:tools;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px}.cb-play-tools button{min-width:150px}.cb-play-tools>span{font-size:12px;font-weight:800;color:#825126}.cb-foot{grid-area:foot;display:flex;justify-content:space-between;gap:6px;min-height:14px;font-size:9px;line-height:14px;color:#3c657b}.cb-status{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}.cb-points strong{display:block;font-size:34px;line-height:1;font-weight:950;color:#a74832}.cb-points span{font-size:9px;letter-spacing:3px;font-weight:850}.cb-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.cb-stats>div{border:1px solid #8da9ad;border-radius:7px;padding:5px 3px;background:#fffbed}.cb-stats strong{display:block;font-size:17px;line-height:1.2;color:#183e5b}.cb-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cb-result-actions button{padding:7px 3px;font-size:12px}.cb-supplies{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cb-supplies button{min-height:54px;padding:5px}.cb-supplies strong,.cb-supplies span{display:block}.cb-supplies span{font-size:10px;margin-top:3px}.cb-portal{position:fixed!important;inset:0!important;width:auto!important;max-width:none!important;margin:0!important;z-index:2147483600!important;padding:0!important}.cb-expanded,.cb-shell:fullscreen{width:100%;max-width:none;height:100dvh;height:100svh;border-radius:0;border:0;padding:max(7px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto}.cb-expanded .cb-arena,.cb-shell:fullscreen .cb-arena{height:auto}.cb-shell:fullscreen::backdrop{background:#183e5b}@media(max-width:340px){.cb-shell{padding:6px}.cb-brand strong{font-size:17px}.cb-head-tools{gap:3px}.cb-note{font-size:11px}.cb-panel{padding:8px;gap:6px}.cb-modes button{font-size:11px}.cb-hud strong{font-size:18px}.cb-hud>div{padding:4px 7px}.cb-foot{font-size:8px}.cb-progress{font-size:10px}}@media(max-height:480px) and (min-width:500px){.cb-expanded,.cb-shell:fullscreen{grid-template-columns:minmax(200px,.65fr) minmax(260px,1fr);grid-template-areas:"head stage" "hud stage" "progress stage" "choices stage" "tools stage" "foot stage";grid-template-rows:44px 40px 20px minmax(88px,1fr) 44px 14px;gap:6px}.cb-expanded .cb-brand strong,.cb-shell:fullscreen .cb-brand strong{font-size:17px}.cb-expanded .cb-brand small,.cb-shell:fullscreen .cb-brand small{display:none}.cb-expanded .cb-head,.cb-shell:fullscreen .cb-head{flex-wrap:wrap;align-content:center}.cb-expanded .cb-head-tools,.cb-shell:fullscreen .cb-head-tools{gap:4px}.cb-expanded .cb-head-tools button,.cb-shell:fullscreen .cb-head-tools button{height:44px}.cb-expanded .cb-brand,.cb-shell:fullscreen .cb-brand{display:none}.cb-expanded .cb-choices,.cb-shell:fullscreen .cb-choices{grid-template-columns:1fr 1fr}.cb-expanded .cb-choices button,.cb-shell:fullscreen .cb-choices button{height:auto;min-height:44px}.cb-expanded .cb-single-action,.cb-shell:fullscreen .cb-single-action{grid-template-columns:1fr}.cb-expanded .cb-progress,.cb-shell:fullscreen .cb-progress{font-size:10px}.cb-expanded .cb-play-tools,.cb-shell:fullscreen .cb-play-tools{gap:5px}.cb-expanded .cb-play-tools button,.cb-shell:fullscreen .cb-play-tools button{min-width:130px}.cb-expanded .cb-panel,.cb-shell:fullscreen .cb-panel{padding:7px;gap:5px}.cb-expanded .cb-panel h2,.cb-shell:fullscreen .cb-panel h2{font-size:17px}.cb-expanded .cb-points strong,.cb-shell:fullscreen .cb-points strong{font-size:28px}.cb-expanded .cb-stats>div,.cb-shell:fullscreen .cb-stats>div{padding:3px}.cb-expanded .cb-stats strong,.cb-shell:fullscreen .cb-stats strong{font-size:15px}.cb-expanded .cb-note,.cb-shell:fullscreen .cb-note{font-size:11px}.cb-expanded .cb-modes button,.cb-shell:fullscreen .cb-modes button{font-size:11px}}@media(prefers-reduced-motion:reduce){.gx-count *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep the theme article heading treatment outside the game panels. */
.gx-count .cb-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.7vw,23px)!important;line-height:1.2!important;letter-spacing:0!important}.gx-count .cb-panel h2::before,.gx-count .cb-panel h2::after{display:none!important}@media(max-height:480px) and (min-width:500px){.gx-count .cb-panel h2{font-size:17px!important}}
