.mrb{--ac:#1A6B8A;--ac2:#D6F1F8;--acg:linear-gradient(90deg,#1A6B8A,#2A9BB8 50%,#F59E0B)}
.mrb [hidden]{display:none!important}
.ghero{position:relative;text-align:center;padding:5svh 0 18px}
.game{position:relative;background:#fff;border-radius:28px;padding:16px;box-shadow:0 1px 2px rgba(14,17,22,.05),0 20px 50px rgba(26,107,138,.16);overflow:hidden}
.gtop{margin-bottom:12px}
.ghud{display:flex;justify-content:space-between;gap:6px;font-size:12px;font-weight:800;color:var(--ink2);white-space:nowrap}.ghud b{font-size:16px;font-variant-numeric:tabular-nums}
/* はじめの説明 */
.il{margin:0 0 10px;font-size:13px;font-weight:800;color:#0E3A4B;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#E3F3F8;background:#E3F3F8}
.doc h4{margin:0 0 6px;font-size:14px;font-weight:900}
.doc ul{margin:0;padding:0;list-style:none}.doc li{display:grid;grid-template-columns:1.8em 1fr;gap:6px;padding:5px 0;border-top:1px dashed rgba(15,23,42,.1);font-size:13px;line-height:1.65;font-weight:600;color:var(--ink)}.doc li:first-child{border-top:0}
.doc li b{font-size:11.5px;color:var(--ink2);padding-top:1px}
.doc mark{background:linear-gradient(transparent 55%,#B6E3F0 55%);color:inherit;font-weight:800}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#1A6B8A,#2A9BB8);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(26,107,138,.3)}
.mrb-kd{display:grid;gap:6px;margin-top:10px}
.mrb-kd p{display:grid;grid-template-columns:30px 1fr;gap:2px 8px;align-items:center;margin:0;padding:8px 10px;border-radius:12px;background:#F8FAFC;font-size:12.5px;font-weight:700;line-height:1.5;color:#334155}
.mrb-kd p>span{grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:16px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.mrb-kd p>b{font-size:13px;font-weight:900;color:#0E3A4B}
/* 面の条件 */
.mrb-day{padding:12px 14px;border-radius:18px;background:#0E3A4B;color:#D6F1F8}.mrb-day>b{display:flex;gap:6px;align-items:center;font-size:16px;font-weight:900;color:#fff}
.mrb-day p#mbcond{margin:6px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}.mrb-day p#mbcond b{color:#FBBF24;font-weight:900}
.mrb-rule{margin:8px 0 0;padding-top:8px;border-top:1px dashed rgba(214,241,248,.25);font-size:12.5px;line-height:1.65;font-weight:700;color:#A9D8E6}.mrb-rule b{color:#fff}
/* 玉の種類 */
.mrb-leg{display:grid;gap:4px;margin:10px 0 8px}
.mrb-leg span{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;font-size:12px;font-weight:800;color:#0E3A4B;line-height:1.45}
.mrb-leg i,.mrb-ans b i{display:inline-grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;font-style:normal;font-size:11px;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
.mrb-leg em{font-style:normal;color:#475569;font-weight:700}
/* 盤 */
.mrb-bw{position:relative;border-radius:18px;overflow:hidden;background:#DCEFF5;box-shadow:inset 0 0 0 2px rgba(26,107,138,.18);max-width:420px;margin:0 auto}
.mrb .mrb-bw svg.mrb-svg,.mrb .mrb-ms svg{display:block;width:100%!important;height:auto!important;stroke:none;fill:none;overflow:hidden}
.mrb-svg{touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
:where(.mrb-svg,.mrb-ms) text{stroke:none;text-anchor:middle}
.mrb-bg{fill:#DCEFF5}
.mrb-cl{fill:#F6FBFD;stroke:#BFDDE8;stroke-width:.3;cursor:pointer;outline:none;transition:fill .15s}
.mrb-cl.mrb-clk{fill:#E2E8F0;cursor:default}
.mrb-cl:focus-visible{stroke:#1A6B8A;stroke-width:.8}
.mrb-cl.mrb-hov{fill:#FEF3C7;stroke:#F59E0B;stroke-width:.7}
.mrb-pg{fill:#9CC7D6}
.mrb-fn{fill:#0E3A4B;opacity:.85}
.mrb-ball{stroke:#fff;stroke-width:.5}
.mrb-em{fill:#000}
.mrb-cn circle{fill:#fff;stroke:#0E3A4B;stroke-width:.35}.mrb-cn text{font-size:2.3px;font-weight:900;fill:#0E3A4B}
.mrb-bl{font-size:2.3px;font-weight:900}
.mrb-bc{font-size:2.3px;font-weight:900;fill:#334155;font-variant-numeric:tabular-nums}.mrb-bc.mrb-full{fill:#DC2626}
.mrb-pl{cursor:grab;touch-action:none}
.mrb-hit{fill:transparent}
.mrb-pw{fill:none;stroke:#A16207;stroke-width:1.9;stroke-linecap:round}
.mrb-ph{fill:#A16207;stroke:none}
.mrb-plk{cursor:default;pointer-events:none}.mrb-plk .mrb-pw{stroke:#64748B}.mrb-plk .mrb-ph{fill:#64748B}
.mrb-pl.mrb-lift{opacity:.3}
.mrb-pt{fill:none;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1.6 1.2;opacity:.75}
#mbball,#mbpath{pointer-events:none}
.mrb-gh{position:fixed;left:0;top:0;z-index:60;width:44px;height:44px;border-radius:12px;background:rgba(254,243,199,.92);box-shadow:0 8px 20px rgba(0,0,0,.25);pointer-events:none}
.mrb-gh svg{display:block;width:100%!important;height:100%!important;fill:none}
.mrb-gh .mrb-pw{stroke:#A16207;stroke-width:1.9}
.mrb-bnr{position:absolute;left:50%;top:8px;transform:translate(-50%,0) scale(.85);margin:0;padding:7px 14px;border-radius:14px;font-size:14px;font-weight:900;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:calc(100% - 16px)}
.mrb-bnr.mrb-bad{opacity:1;transform:translate(-50%,0);background:#DC2626;color:#fff;box-shadow:0 10px 30px rgba(220,38,38,.4)}
.mrb-bnr.mrb-good{opacity:1;transform:translate(-50%,0);background:#15803D;color:#fff;box-shadow:0 10px 30px rgba(21,128,61,.35)}
.mrb-say{display:flex;align-items:center;justify-content:center;min-height:40px;margin:8px 0;padding:6px 10px;border-radius:12px;background:#F1F9FC;color:#0E3A4B;font-size:12px;font-weight:800;line-height:1.5;text-align:center;transition:background .2s,color .2s}
.mrb-say.mrb-show{background:#0E3A4B;color:#fff}
/* 試しに1こ流す */
.mrb-ts{max-width:420px;margin:0 auto 6px}
.mrb-ts p{margin:0 0 4px;font-size:12px;font-weight:800;color:#0E3A4B;line-height:1.5}.mrb-ts p b{color:#1A6B8A;font-size:15px}
.mrb-tst{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.mrb-tbt{display:flex;align-items:center;justify-content:center;gap:1px;min-height:40px;padding:0;border:2px solid var(--c);border-radius:12px;background:#fff;font:inherit;font-size:13px;cursor:pointer;touch-action:manipulation}.mrb-tbt i{font-style:normal}
.mrb-tbt:disabled{opacity:.35;cursor:default}
/* 板の置き場 */
.mrb-tb{display:flex;align-items:center;gap:8px;margin-top:4px}
.mrb-tray{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:6px 10px 6px 6px;border-radius:16px;background:#FFF7E6;border:2px dashed #F2C76E}
.mrb-pc{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#FEF3C7;box-shadow:0 0 0 2px #F59E0B,0 4px 10px rgba(161,98,7,.25);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;outline:none}
.mrb-pc:focus-visible{box-shadow:0 0 0 3px #1A6B8A}
.mrb-pc svg{display:block;width:34px!important;height:34px!important;fill:none}
.mrb-pc.mrb-out{opacity:.35;cursor:default}
.mrb-tray p{margin:0;font-size:12px;font-weight:800;color:#7C5A1B;line-height:1.45}.mrb-tray p b{font-size:18px;color:#A16207;font-variant-numeric:tabular-nums}
.ghost2{padding:8px 12px;border:2px solid #CBD5E1;border-radius:14px;background:#fff;font:inherit;font-size:12px;font-weight:800;color:#334155;cursor:pointer;touch-action:manipulation;white-space:nowrap;min-height:44px}
.ghost2:disabled{opacity:.45;cursor:default}
.mrb-how{margin:6px 0 0;font-size:12px;font-weight:700;line-height:1.65;color:#475569}
/* AIの最短コース */
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#E3F3F8;border:1px solid #B6E3F0}
.aiad .av{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:26px;line-height:1;background:#fff;box-shadow:0 0 0 2px #B6E3F0}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#1A6B8A}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#0E3A4B}
.aiput{margin-top:8px;padding:8px 14px;min-height:40px;border:0;border-radius:99px;background:#1A6B8A;color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer;touch-action:manipulation}.aiput:disabled{opacity:.4;cursor:default}
.go2{display:block;width:100%;margin-top:12px;padding:14px;border:0;border-radius:16px;background:linear-gradient(90deg,#D97706,#F59E0B);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;touch-action:manipulation;box-shadow:0 8px 20px rgba(217,119,6,.28)}
.go2:disabled{background:#E2E8F0;color:#94A3B8;cursor:default;box-shadow:none}
/* 答え合わせ */
.res{margin-top:12px;border-radius:16px;padding:14px;font-size:13px;line-height:1.75;animation:pop .35s}
.res.right{background:#F0FDF4}.res.wrong{background:#FEF2F2}.res.half{background:#FFFBEB}
.res>b{display:block;font-size:16px;line-height:1.55}.res.right>b{color:#16A34A}.res.wrong>b{color:#DC2626}.res.half>b{color:#B45309}
.mrb-cmp{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0 4px}.mrb-cmp div{padding:7px 4px;border-radius:12px;background:#fff;border:1px solid #E2E8F0;text-align:center;min-width:0}
.mrb-cmp small{display:block;font-size:10.5px;font-weight:800;color:var(--mut);line-height:1.4}.mrb-cmp b{display:block;margin:2px 0 0;font-size:18px;font-weight:900;color:#0a0a0a;font-variant-numeric:tabular-nums;white-space:nowrap}
.mrb-cmp em{display:block;font-style:normal;font-size:10px;font-weight:700;color:#64748B;line-height:1.45}
.mrb-cmp .mrb-cp{background:#E3F3F8;border-color:#9FD3E4}.mrb-cmp .mrb-cp b{color:#1A6B8A}
.mrb-ans{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.mrb-ans li{padding:9px 12px;border-radius:12px;background:#F8FAFC;border-left:4px solid #94A3B8}
.mrb-ans li.mrb-a-ok{border-left-color:#16A34A}.mrb-ans li.mrb-a-mid{border-left-color:#D97706}.mrb-ans li.mrb-a-ng{border-left-color:#DC2626}
.mrb-ans li.mrb-a-gd{border-left-color:#1A6B8A;background:#fff}
.mrb-ans li>b{display:block;font-size:13.5px;line-height:1.6;color:var(--ink)}.mrb-ans b i{display:inline-grid;vertical-align:-4px;margin-right:5px}
.mrb-ans span{display:block;margin-top:2px;font-size:13px;line-height:1.75;color:var(--ink2)}
.res .nx{display:block;width:100%;margin-top:12px;height:52px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer}
.res,.nx{scroll-margin-bottom:110px}
.hint{margin:10px 0 0;text-align:center;font-size:11px;color:var(--mut);line-height:1.6}
.fx{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:6;font-size:clamp(18px,6vw,26px);font-weight:900;white-space:nowrap;pointer-events:none;text-shadow:0 2px 0 #fff,0 4px 14px rgba(0,0,0,.15);animation:fx 1.3s var(--ease) forwards}
.fx.A{color:#16A34A}.fx.B{color:#1A6B8A}.fx.C{color:#DC2626}
@keyframes fx{0%{opacity:0;transform:translate(-50%,10px) scale(.7)}25%{opacity:1;transform:translate(-50%,0) scale(1.08)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-24px)}}
.end{margin-top:4px;animation:pop .4s var(--ease)}
/* 結果：タイプと、正しく流れた仕事 */
.mrb-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#0E3A4B;color:#D6F1F8;text-align:center}
.mrb-tyl{margin:0;font-size:12px;font-weight:800;color:#9FD3E4}
.mrb-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.mrb-tyn span{margin-right:6px}
.mrb-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.mrb-kp{margin:12px 0 0;padding-top:12px;border-top:1px dashed rgba(214,241,248,.25);font-size:13px;font-weight:800}
.mrb-kp b{display:block;margin-top:2px;font-size:clamp(40px,13vw,56px);font-weight:900;line-height:1.15;color:#FBBF24;font-variant-numeric:tabular-nums}
.mrb-kp small{display:block;margin-top:4px;font-size:12px;color:#9FD3E4;line-height:1.6}
/* ふりかえり */
.mrb-rv{padding:14px 0;border-bottom:1px solid #F1F5F9}.mrb-rv>b{display:block;font-size:14px;line-height:1.6}
.mrb-pr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.mrb-mf{margin:0;min-width:0}
.mrb-ms{border-radius:10px;overflow:hidden;background:#DCEFF5}
.mrb-mf figcaption{margin-top:4px;font-size:11.5px;font-weight:800;color:#334155;text-align:center;line-height:1.4}.mrb-mf figcaption b{display:block;font-size:14px;color:#1A6B8A;font-variant-numeric:tabular-nums}.mrb-mf figcaption span{display:block;font-size:10.5px;color:#64748B}
.mrb-df{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#F1F9FC;font-size:12.5px;font-weight:700;color:#0E3A4B;line-height:1.7}
.mrb-rv p.q{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.75;color:#0E3A4B}
.rvw{display:grid;grid-template-columns:28px 1fr;gap:4px 10px;padding:14px 0;border-bottom:1px solid #F1F5F9}.rvw:last-child{border-bottom:0}.rvw .mk{font-size:18px}.rvw b{font-size:13.5px;line-height:1.6}
.rvw p{grid-column:2;margin:0;font-size:12.5px;color:var(--ink2);line-height:1.75}.rvw p.q{font-size:13.5px;font-weight:700;color:#0E3A4B;margin:4px 0}
.tips{margin:0;padding-left:1.3em;color:#C9CCD6;font-size:14px;line-height:1.8}.tips li{margin:0 0 12px}.tips b{display:block;color:#fff}
.mt0{margin:0 0 10px;font-size:13px;color:var(--ink2);line-height:1.75}
.ctap{color:#C9CCD6;font-size:14px;margin:0 0 16px;line-height:1.75}.cta-c h3{color:var(--ac2)}
.mrb .sbd-tl{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:360px){.game{padding:12px}.ghud{gap:4px;font-size:10.5px;letter-spacing:-.02em}.ghud b{font-size:14px}.mrb-day p#mbcond{font-size:13px}.mrb-cmp b{font-size:15px}.ghost2{padding:7px 9px;font-size:11.5px}.mrb-bnr{font-size:12.5px;padding:6px 10px}.mrb-tray{gap:8px}.mrb-tray p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.res,.end{animation:none}.mrb-say,.mrb-bnr,.mrb-cl{transition:none}}
