.dck{--ac:#155E76;--ac2:#CFFAFE;--acg:linear-gradient(90deg,#155E76,#0E7490 50%,#F59E0B)}
.dck [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(21,94,118,.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:#0B3A48;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#E3F3F7;background:#E3F3F7}
.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%,#A5E3EE 55%);color:inherit;font-weight:800}
.dck-kd{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:10px}
.dck-kd p{margin:0;padding:8px 2px;border-radius:12px;background:#F1F8FA;text-align:center;font-size:11px;font-weight:800;color:#0B3A48;line-height:1.3;min-width:0}.dck-kd span{display:block;font-size:22px;line-height:1.2}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#155E76,#0E7490);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(21,94,118,.3)}
/* 現場の説明 */
.dck-site{padding:12px 14px;border-radius:18px;background:#082F3A;color:#CFFAFE}.dck-site>b{display:block;font-size:16px;font-weight:900;color:#fff;line-height:1.45}
.dck-job{margin:4px 0 0;font-size:12.5px;font-weight:800;color:#7DD3E3;line-height:1.6}
#dkcond{margin:6px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}#dkcond b{color:#FBBF24;font-weight:900}
.dck-say{display:flex;gap:8px;align-items:center;margin:8px 0 0;padding-top:8px;border-top:1px dashed rgba(207,250,254,.25);font-size:12.5px;line-height:1.6;font-weight:700;color:#A5F3FC}
.dck-av{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:18px;background:rgba(255,255,255,.12)}
.dck-bar{display:flex;justify-content:space-between;gap:6px;margin:10px 0 8px;padding:8px 12px;border-radius:14px;background:#F1F8FA;border:1px solid #CDEBF1;font-size:12px;font-weight:800;color:#0B3A48;white-space:nowrap}
.dck-bar b{font-size:17px;font-weight:900;font-variant-numeric:tabular-nums}.dck-bar .dck-warn b{color:#DC2626}
/* 現場の画面 */
.dck-fw{position:relative;border-radius:18px;overflow:hidden;box-shadow:inset 0 0 0 2px rgba(21,94,118,.2);background:#CFE8B5}
.dck-fw svg.dck-fd,.dck .dck-ms{display:block;width:100%!important;height:auto!important;stroke:none;fill:none;overflow:hidden}
.dck-fd{touch-action:none;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;cursor:grab;outline:none}
.dck-fd.dck-drg{cursor:grabbing}.dck-fd:focus-visible{box-shadow:inset 0 0 0 3px #F59E0B}
:where(.dck-fd,.dck-ms) text{stroke:none;text-anchor:middle;fill:#000}
.dck-g-farm{fill:#CFE8B5}.dck-g-warehouse{fill:#D9D6D0}.dck-g-hospital{fill:#EEF6F8}.dck-g-ship{fill:#B9C7D6}.dck-g-windmill{fill:#9FB0C2}
.dck-tile{fill:#F7FCFD;stroke:#D5E7EC;stroke-width:.3}
.dck-deck{fill:none;stroke:rgba(15,23,42,.12);stroke-width:.4}
.dck-lane{fill:none;stroke:#FACC15;stroke-width:1;stroke-dasharray:3 3}
.dck-o-port{fill:#334155;stroke:#0F172A;stroke-width:.5}.dck-o-tower{fill:#F1F5F9;stroke:#64748B}
.dck-o-hull{fill:#1E3A5F}.dck-hl{fill:none;stroke:#DC2626;stroke-width:1.6}.dck-win{fill:#FDE68A;stroke:#0F172A;stroke-width:.4}
.dck-o-hay{fill:#F2CC5B;stroke:#B98B16;stroke-width:.5}
.dck-o-shelf{fill:#A16207;stroke:#713F12;stroke-width:.5}
.dck-o-new{fill:#F97316;stroke:#9A3412;stroke-width:.6;stroke-dasharray:1.6 1}
.dck-o-bed{fill:#fff;stroke:#94A3B8;stroke-width:.5}
.dck-o-pole{fill:#475569;stroke:#1E293B;stroke-width:.5}
.dck-o-box{fill:#64748B;stroke:#1E293B;stroke-width:.5}
.dck-oi{font-size:6px}
.dck-new{font-size:4.4px;font-weight:900;fill:#fff!important;letter-spacing:.06em}
.dck-rail{fill:none;stroke:#FACC15;stroke-width:.8;stroke-dasharray:1.4 1.2;opacity:.8}
.dck-skg{fill:rgba(250,204,21,.28);animation:dckp 1.4s ease-in-out infinite}
.dck-sk{fill:#FACC15;stroke:#0F172A;stroke-width:.5}
.dck-ska{fill:none;stroke:#FACC15;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
@keyframes dckp{0%,100%{opacity:.35}50%{opacity:1}}
.dck-wl{fill:none;stroke:rgba(255,255,255,.75);stroke-width:.7;stroke-linecap:round;animation:dckw 1.3s linear infinite}
@keyframes dckw{from{transform:translateX(-10px);opacity:0}20%{opacity:1}to{transform:translateX(90px);opacity:0}}
.dck-trl{fill:none;stroke:rgba(21,94,118,.45);stroke-width:.8;stroke-dasharray:1.2 1.2;stroke-linecap:round}
.dck-aip{fill:none;stroke:#7C3AED;stroke-width:1;stroke-dasharray:2 1.4;stroke-linecap:round}
.dck-tgm circle{fill:none;stroke:#0E7490;stroke-width:.6}.dck-tgm path{fill:none;stroke:#0E7490;stroke-width:.6}
.dck-ghb{fill:rgba(14,116,144,.12);stroke:#0E7490;stroke-width:.6;stroke-dasharray:1.4 1}.dck-ghp{fill:rgba(250,204,21,.4);stroke:#B45309;stroke-width:.4}
.dck-rbb{fill:#155E76;stroke:#082F3A;stroke-width:.6}.dck-rbw{fill:#0F172A}.dck-rbp{fill:#FACC15;stroke:#0F172A;stroke-width:.4}.dck-rbe{fill:#CFFAFE}.dck-rbs{fill:#fff}
.dck-rb.dck-hit .dck-rbb{fill:#DC2626}
.dck-boom{font-size:5px}
.dck-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;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
.dck-bnr.dck-bad{opacity:1;transform:translate(-50%,0);background:#DC2626;color:#fff;box-shadow:0 10px 30px rgba(220,38,38,.4)}
.dck-bnr.dck-good{opacity:1;transform:translate(-50%,0);background:#15803D;color:#fff;box-shadow:0 10px 30px rgba(21,128,61,.35)}
.dck-cover{position:absolute;inset:0;display:grid;place-items:center;padding:16px;background:rgba(8,47,58,.38)}
.dck-cover .go2{margin:0;max-width:300px}
.dck-ctl{display:grid;grid-template-columns:52px 1fr 52px;gap:8px;margin-top:10px}
.dck-rot{height:52px;border:2px solid #CDEBF1;border-radius:16px;background:#fff;font:inherit;font-size:24px;font-weight:900;color:#155E76;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}
.dck-rot:active{background:#E3F3F7}
.dck-ai{height:52px;padding:0 10px;border:2px solid #C4B5FD;border-radius:16px;background:#fff;font:inherit;font-size:14px;font-weight:900;color:#4C1D95;cursor:pointer;touch-action:manipulation;white-space:nowrap;min-width:0}
.dck-ai b{display:inline-block;margin-left:4px;padding:2px 9px;border-radius:99px;background:#E2E8F0;color:#334155;font-size:12px}
.dck-ai.dck-aion{background:#7C3AED;border-color:#7C3AED;color:#fff}.dck-ai.dck-aion b{background:#FDE68A;color:#4C1D95}
.dck-how{margin:8px 0 0;padding:8px 10px;border-radius:12px;background:#F5F3FF;font-size:12px;font-weight:800;color:#5B21B6;line-height:1.6}
.dck-lgd{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:center;margin:8px 0 0;font-size:11px;font-weight:700;color:#64748B}
.dck-lgd span::before{content:'';display:inline-block;width:10px;height:10px;margin-right:4px;border-radius:3px;vertical-align:-1px}
.dck-lg1::before{background:#155E76}.dck-lg2::before{background:rgba(14,116,144,.15);box-shadow:inset 0 0 0 1px #0E7490}.dck-lg3::before{border-radius:50%!important;box-shadow:inset 0 0 0 1.5px #0E7490}
.go2{display:block;width:100%;margin-top:14px;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}
.dck-st{display:flex;flex-wrap:wrap;gap:4px 12px;margin:6px 0 0;font-size:12.5px;font-weight:800;color:#334155}
.dck-aic{margin:8px 0 0;padding:8px 10px;border-radius:12px;background:#F5F3FF;font-size:12.5px;font-weight:800;color:#5B21B6;line-height:1.6}
.dck-why{margin:8px 0 0;font-size:13px;font-weight:700;color:#0B3A48;line-height:1.75}
.dck-pts{margin:6px 0 0;font-size:11px;font-weight:700;color:#64748B;line-height:1.6}
.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:#155E76}.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)}
/* 結果：タイプと大きな数字 */
.dck-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#082F3A;color:#CFFAFE;text-align:center}
.dck-tyl{margin:0;font-size:12px;font-weight:800;color:#7DD3E3}
.dck-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.dck-tyn span{margin-right:6px}
.dck-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.dck-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0;padding-top:12px;border-top:1px dashed rgba(207,250,254,.25)}
.dck-kp div{min-width:0}.dck-kp small{display:block;font-size:12px;font-weight:800;color:#7DD3E3;line-height:1.5}
.dck-kp b{display:block;margin-top:2px;font-size:clamp(34px,11vw,46px);font-weight:900;line-height:1.15;color:#FDE68A;font-variant-numeric:tabular-nums}.dck-kp b i{font-style:normal;font-size:.45em;margin-left:2px;color:#CFFAFE}
.dck-kp div:first-child b{color:#5EEAD4}
.dck-kp em{display:block;font-style:normal;font-size:11.5px;font-weight:700;color:#A5F3FC;line-height:1.5}
.dck-aiz{margin:12px 0 0;font-size:12.5px;font-weight:700;color:#CFFAFE;line-height:1.6}.dck-aiz b{color:#FCA5A5}
/* ふりかえり */
.dck-lg{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0 0 8px;font-size:11.5px;font-weight:800;color:#334155}
.dck-lg span::before{content:'';display:inline-block;width:16px;height:0;margin-right:4px;vertical-align:3px;border-top:3px solid}
.dck-lg span:last-child::before{display:none}
.dck-lgy::before{border-color:#155E76!important}.dck-lga::before{border-color:#DC2626!important;border-top-style:dashed!important}.dck-lgb::before{border-color:#16A34A!important;border-top-style:dotted!important}
.dck-rvg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dck-mf{margin:0;min-width:0}
.dck-ms{border-radius:12px;overflow:hidden}
.dck-ty2{fill:none;stroke:#155E76;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dck-ta{fill:none;stroke:#DC2626;stroke-width:1.2;stroke-dasharray:2.4 1.6;stroke-linecap:round}
.dck-tb{fill:none;stroke:#16A34A;stroke-width:1.4;stroke-dasharray:.4 1.6;stroke-linecap:round}
.dck-mf figcaption{margin-top:4px;font-size:11.5px;font-weight:800;color:#334155;text-align:center;line-height:1.45}.dck-mf figcaption b{display:block;font-size:12.5px;color:#0B3A48}.dck-mf figcaption span{display:block;font-size:11px;color:#64748B}.dck-mf figcaption span b{display:inline;color:#155E76}
.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:#0B3A48;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)}
.dck .sbd-tl{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(min-width:620px){.dck-rvg{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}#dkcond{font-size:13px}.dck-bar{padding:6px 10px;font-size:11px}.dck-bar b{font-size:15px}.dck-ai{font-size:12.5px;padding:0 6px}.dck-ctl{grid-template-columns:46px 1fr 46px;gap:6px}.dck-rot{height:48px}.dck-bnr{font-size:12.5px;padding:6px 10px}.dck-kd p{font-size:10px}}
@media(prefers-reduced-motion:reduce){.res,.end{animation:none}.dck-bnr{transition:none}.dck-wl,.dck-skg{animation:none}}
