.rbt{--ac:#3B82F6;--ac2:#DBEAFE;--acg:linear-gradient(90deg,#2563EB,#3B82F6 50%,#22D3EE)}
.rbt [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(59,130,246,.18);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:#1E3A8A;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#EFF6FF;background:#EFF6FF}
.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%,#BFDBFE 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,#2563EB,#3B82F6);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(59,130,246,.32)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#EFF6FF;border:1px solid #BFDBFE}
.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 #BFDBFE}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#2563EB}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#0B1530}
.aiput{margin-top:8px;min-height:40px;padding:8px 14px;border:0;border-radius:99px;background:#2563EB;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}
.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:#2563EB}.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)}
.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:#0B1530;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)}
/* はじめの説明：5つの仕事の予定と部品 */
.rbt-plan{margin:10px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.rbt-plan li{display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 2px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;text-align:center;min-width:0}
.rbt-plan span{font-size:22px;line-height:1.2}.rbt-plan b{font-size:11px;font-weight:900;color:#0B1530;line-height:1.35;overflow-wrap:anywhere}.rbt-plan small{font-size:10px;font-weight:800;color:#2563EB}
.rbt-kd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.rbt-kd p{margin:0;padding:8px 10px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:12px;font-weight:700;line-height:1.5;color:#334155}
.rbt-kd b{display:block;font-size:13px;font-weight:900;color:#0B1530}
.rbt-tip{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#FFFBEB;font-size:12.5px;font-weight:700;line-height:1.7;color:#78350F}
/* その仕事の説明 */
.rbt-wk{padding:12px 14px;border-radius:18px;background:#0B1530;color:#DBEAFE}.rbt-wk>b{display:block;font-size:16px;font-weight:900;color:#fff;line-height:1.5}
.rbt-wk p{margin:6px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}.rbt-wk p b{color:#FCD34D;font-weight:900}
.rbt-wk .rbt-hr{margin-top:4px;font-size:12px;color:#93C5FD}
/* 今週の10個 */
.rbt-qh{margin:10px 0 4px;font-size:12px;font-weight:900;color:#1E3A8A}
.rbt-q{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.rbt-q li{display:flex;flex-direction:column;align-items:center;min-width:0;padding:4px 0 3px;border-radius:8px;background:#F1F5F9;border:2px solid transparent;transition:background .2s,border-color .2s}
.rbt-q span{font-size:16px;line-height:1.2}.rbt-q small{font-size:10px;font-weight:900;color:#64748B;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.rbt-q .rbt-q-s small{color:#2563EB}.rbt-q .rbt-q-b small{color:#7C3AED}.rbt-q .rbt-q-r small{color:#C2410C}.rbt-q .rbt-q-x{background:#FEF3C7}.rbt-q .rbt-q-x small{color:#B45309}
.rbt-q .rbt-q-r span{transform:rotate(40deg)}
.rbt-q li.rbt-qnow{border-color:#3B82F6}
.rbt-q li.rbt-r-ok{background:#DCFCE7}.rbt-q li.rbt-r-hum{background:#DBEAFE}.rbt-q li.rbt-r-ng{background:#FEE2E2}
/* ロボットの画面 */
.rbt-sw{position:relative;margin-top:10px;border-radius:18px;overflow:hidden;box-shadow:inset 0 0 0 2px rgba(59,130,246,.2)}
.rbt-sw svg.rbt-svg{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:grab}
.rbt-svg text,.rbt-mini text{stroke:none;text-anchor:middle;fill:#0B1530}
.rbt-fl{fill:#EEF2F7}
.rbt-belt{fill:#475569}.rbt-be{fill:none;stroke:#1E293B;stroke-width:2}
.rbt-st{fill:none;stroke:#64748B;stroke-width:3}
.rbt-svg.rbt-run .rbt-roll{animation:rbtbelt .5s linear infinite}
@keyframes rbtbelt{from{transform:translateX(0)}to{transform:translateX(20px)}}
.rbt-ob{fill:rgba(248,113,113,.16);stroke:#EF4444;stroke-width:1.6;stroke-dasharray:5 4}
.rbt-lb{font-size:10px;font-weight:900;fill:#334155!important}.rbt-lbo{fill:#B91C1C!important}
.rbt-box{fill:#DBEAFE;stroke:#2563EB;stroke-width:2}
.rbt-pk{fill:rgba(250,204,21,.16);stroke:#CA8A04;stroke-width:1.2;stroke-dasharray:3 3}
.rbt-cen{fill:#DC2626;stroke:#fff;stroke-width:1}
.rbt-base{fill:#64748B}
.rbt-pl{fill:none;stroke:#2563EB;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.rbt-plx{stroke:#DC2626}
.rbt-pld{opacity:.35;stroke-dasharray:4 4}
.rbt-pg{fill:none;stroke:#16A34A;stroke-width:3;stroke-dasharray:2 5;stroke-linecap:round;opacity:.9}
.rbt-a1,.rbt-a2{stroke:#94A3B8;stroke-width:12;stroke-linecap:round}.rbt-a2{stroke:#CBD5E1;stroke-width:9}
.rbt-j{fill:#334155;stroke:#fff;stroke-width:2}
.rbt-tp{fill:#3B82F6;stroke:#fff;stroke-width:2.5}
.rbt-ring{fill:rgba(59,130,246,.18);stroke:#3B82F6;stroke-width:2;transform-box:fill-box;transform-origin:center;animation:rbtring 1.4s ease-in-out infinite}
@keyframes rbtring{0%,100%{transform:scale(.85);opacity:1}50%{transform:scale(1.15);opacity:.55}}
.rbt-itb{fill:#FEF9C3;stroke:#A16207;stroke-width:1.4}.rbt-itx{fill:#FED7AA;stroke:#C2410C;stroke-width:2}
.rbt-it.rbt-ng .rbt-itb{fill:#FECACA;stroke:#DC2626}
.rbt-it.rbt-in{opacity:.85}
.rbt-svg.rbt-stp .rbt-fl{fill:#FEE2E2}
/* 教える道具 */
.rbt-msg{margin:8px 0 0;padding:8px 12px;border-radius:12px;background:#F1F5F9;font-size:12.5px;font-weight:800;line-height:1.6;color:#334155;min-height:2.6em}
.rbt-msg.rbt-mok{background:#DCFCE7;color:#166534}.rbt-msg.rbt-mng{background:#FEE2E2;color:#B91C1C}
.rbt-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.rbt-pt{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:58px;padding:8px 10px;border:2px solid #BFDBFE;border-radius:14px;background:#fff;color:#0B1530;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.rbt-pt b{font-size:14px;font-weight:900}.rbt-pt small{font-size:11px;font-weight:700;color:#64748B;line-height:1.4}.rbt-pt em{font-style:normal;font-size:12px;font-weight:900;color:#2563EB}
.rbt-pt.rbt-on{background:#2563EB;border-color:#2563EB;color:#fff}.rbt-pt.rbt-on small,.rbt-pt.rbt-on em{color:#DBEAFE}
.rbt-pt:disabled{opacity:.45;cursor:default}
.rbt-cost{margin:6px 0 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 10px;font-size:12px;font-weight:800;color:#334155}
.rbt-cost b{color:#2563EB}.rbt-cost small{flex-basis:100%;font-size:11px;color:#B91C1C}
.rbt-redo{display:block;margin:8px 0 0 auto;min-height:44px;padding:8px 16px;border:2px solid #CBD5E1;border-radius:99px;background:#fff;color:#334155;font:inherit;font-size:13px;font-weight:900;cursor:pointer;touch-action:manipulation}.rbt-redo:disabled{opacity:.4;cursor:default}
/* 結果 */
.rbt-cn{margin:6px 0 0;font-weight:900;font-size:14px}
.rbt-why{margin:6px 0 0;font-weight:700;color:#334155}.rbt-why.rbt-bad{color:#B91C1C;font-weight:800}
.rbt-fr{margin:8px 0 0;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.7);font-weight:700}.rbt-fr b{font-size:16px;color:#2563EB}
.rbt-ai{margin:6px 0 0;font-size:12px;font-weight:700;color:#64748B}
/* 5つの仕事の記録 */
.rbt-hs{margin-top:14px}.rbt-hst{margin:0 0 6px;font-size:12px;font-weight:900;color:#1E3A8A}
.rbt-hl{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.rbt-hl li{display:flex;flex-direction:column;align-items:center;padding:6px 2px;border-radius:10px;background:#F1F5F9;min-width:0}
.rbt-hl small{font-size:15px;line-height:1.2}.rbt-hl b{font-size:11px;font-weight:900;color:#0B1530;text-align:center;line-height:1.3}.rbt-hl em{font-style:normal;font-size:12px;min-height:1.2em}
.rbt-hl .rbt-hg{background:#DCFCE7}.rbt-hl .rbt-hm{background:#FEF3C7}.rbt-hl .rbt-hb{background:#FEE2E2}.rbt-hl .rbt-hnow{box-shadow:inset 0 0 0 2px #3B82F6;background:#fff}
/* 結果画面：タイプと大きな数字 */
.rbt-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#0B1530;color:#DBEAFE;text-align:center}
.rbt-tyl{margin:0;font-size:12px;font-weight:800;color:#93C5FD}
.rbt-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.rbt-tyn span{margin-right:6px}
.rbt-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.rbt-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(219,234,254,.25)}
.rbt-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.rbt-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#BFDBFE}
.rbt-kp b{display:block;margin-top:4px;font-size:clamp(34px,11vw,50px);font-weight:900;line-height:1.05;color:#FCD34D;font-variant-numeric:tabular-nums}.rbt-kp div+div b{color:#93C5FD}
.rbt-kp b i{margin-left:2px;font-style:normal;font-size:.4em}
.rbt-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#DBEAFE;line-height:1.5}
.rbt-aiv{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#BFDBFE}.rbt-aiv b{color:#fff}
/* ふりかえり */
.rbt-rleg{margin:0 0 8px;font-size:12px;font-weight:800;color:#334155}
.rbt-rjw{display:grid;gap:10px}
.rbt-rj{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:start;padding:10px;border-radius:14px;background:#F8FAFC;border:2px solid #E2E8F0}
.rbt-rj.rbt-rjg{border-color:#BBF7D0}.rbt-rj.rbt-rjm{border-color:#FDE68A}.rbt-rj.rbt-rjb{border-color:#FECACA}
.rbt-rj svg.rbt-mini{display:block;width:120px!important;height:auto!important;stroke:none!important;fill:none!important}
.rbt-rd{min-width:0}.rbt-rd b{display:block;font-size:13.5px;font-weight:900;color:#0B1530}
.rbt-rd p{margin:3px 0 0;font-size:12px;font-weight:700;line-height:1.5;color:#334155}
.rbt-rd p span{display:inline-block;min-width:4.6em;margin-right:4px;font-size:11px;font-weight:900;color:#64748B}
.rbt-rd strong{color:#2563EB}.rbt-rd em{font-style:normal;color:#B91C1C;font-weight:800}
@media(max-width:360px){.game{padding:12px}.ghud{gap:4px;font-size:10.5px;letter-spacing:-.02em}.ghud b{font-size:14px}.rbt-plan b{font-size:10px}.rbt-q small{font-size:9px}.rbt-rj{grid-template-columns:96px 1fr;gap:8px}.rbt-rj svg.rbt-mini{width:96px!important}.rbt-kp b{font-size:32px}.rbt-pt{padding:7px 8px}.rbt-pt b{font-size:13px}}
@media(prefers-reduced-motion:reduce){.res,.end{animation:none}.rbt-ring,.rbt-svg.rbt-run .rbt-roll{animation:none}.rbt-q li{transition:none}}
