.lgq{--ac:#3B0F80;--ac2:#EDE4FB;--acg:linear-gradient(90deg,#3B0F80,#6D28D9 50%,#FACC15)}
.lgq [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,15,128,.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:#3B0F80;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#F5F0FE;background:#F5F0FE}
.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%,#DDD0F7 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,#3B0F80,#6D28D9);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(59,15,128,.3)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#F5F0FE;border:1px solid #DDD0F7}
.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 #DDD0F7}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#5B21B6}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#1E0A45}
.aiput{margin-top:8px;padding:8px 14px;border:0;border-radius:99px;background:#5B21B6;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: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}
.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:#5B21B6}.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:#1E0A45;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)}
/* はじめの説明（部品の見本） */
.lgq-kd{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.lgq-kd p{margin:0;padding:8px 6px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:11.5px;font-weight:700;line-height:1.5;color:#334155;text-align:center}
.lgq-kd b{display:block;margin:0 auto 4px;width:max-content;max-width:100%;padding:3px 8px;border-radius:8px;font-size:13px;font-weight:900;color:#fff}
.lgq-kd .lgq-k1 b{background:#2563EB}.lgq-kd .lgq-k2 b{background:#059669}.lgq-kd .lgq-k3 b{background:#DB2777}
.lgq-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}
/* お題 */
.lgq-tk{padding:12px 14px;border-radius:18px;background:#1E0A45;color:#EDE4FB}.lgq-tk>b{display:block;font-size:16px;font-weight:900;color:#fff;line-height:1.5}
.lgq-tk small{display:block;margin-top:8px;font-size:11px;font-weight:800;color:#C4B5FD}
.lgq-tk p{margin:3px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}.lgq-tk p b{color:#FACC15;font-weight:900}
/* 盤 */
.lgq-bh{display:flex;justify-content:space-between;gap:8px;margin:12px 0 4px;font-size:11px;font-weight:800;color:#5B21B6;line-height:1.4}
.lgq-bh span:last-child{text-align:right}
.lgq-bdw{border-radius:18px;background:#1E0A45;padding:2px 6px;box-shadow:inset 0 0 0 2px rgba(196,181,253,.25)}
.lgq-bd{position:relative;width:100%;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.lgq-bd svg.lgq-wr{position:absolute;left:0;top:0;width:100%!important;height:100%!important;fill:none!important;stroke:none;overflow:visible;pointer-events:none}
.lgq-wr polyline{fill:none;stroke-width:4px;stroke-linejoin:round;stroke-linecap:round;transition:stroke .2s}
.lgq-wr polyline.lgq-w1{stroke:#FACC15;filter:drop-shadow(0 0 3px rgba(250,204,21,.8))}
.lgq-wr polyline.lgq-w0{stroke:#5B4A85}
.lgq-wr polyline.lgq-wx{stroke:#4C3D73;stroke-dasharray:3 5}
.lgq-lp{position:absolute;left:0;width:27%;height:52px;padding:3px 4px;border:2px solid #4C3D73;border-radius:12px;background:#2A1458;color:#C4B5FD;font:inherit;cursor:pointer;touch-action:manipulation;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.15;transition:background .2s,border-color .2s,color .2s}
.lgq-lp span{font-size:15px;line-height:1;filter:grayscale(.7);opacity:.7}
.lgq-lp b{font-size:10.5px;font-weight:900;text-align:center;overflow-wrap:anywhere;max-width:100%}
.lgq-lp.lgq-on{background:#FEF3C7;border-color:#FACC15;color:#1E0A45;box-shadow:0 0 12px rgba(250,204,21,.6)}.lgq-lp.lgq-on span{filter:none;opacity:1}
.lgq-lp:disabled{cursor:default}
.lgq-sl{position:absolute;padding:0;border:2px dashed #8B7BB5;border-radius:10px;background:rgba(30,10,69,.35);color:#C4B5FD;font:inherit;cursor:pointer;touch-action:manipulation;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.lgq-sl.lgq-sn{left:28.5%;width:15%;height:40px;border-radius:8px}
.lgq-sl.lgq-sg{width:16%;height:48px}
.lgq-sl i{font-style:normal;font-size:20px;color:#8B7BB5}
.lgq-sl.lgq-can{border-color:#FACC15;background:rgba(250,204,21,.16);animation:lgqblink 1s ease-in-out infinite}
.lgq-sl.lgq-ov{border-style:solid;border-color:#FACC15;background:rgba(250,204,21,.35)}
@keyframes lgqblink{50%{background:rgba(250,204,21,.04)}}
.lgq-sl.lgq-f{border-style:solid;color:#fff;touch-action:none}
.lgq-sl b,.lgq-pt b,.lgq-gh b{font-size:13px;font-weight:900;line-height:1.1;white-space:nowrap}
.lgq-sl small,.lgq-pt small,.lgq-gh small{font-size:9px;font-weight:800;opacity:.85}
.lgq-sl.lgq-sn b{font-size:9.5px;letter-spacing:-.04em}.lgq-sl.lgq-sn small{font-size:8px}
.lgq-and{background:#2563EB!important;border-color:#93C5FD!important}
.lgq-or{background:#059669!important;border-color:#6EE7B7!important}
.lgq-not{background:#DB2777!important;border-color:#F9A8D4!important}
.lgq-sl:disabled{cursor:default}
.lgq-pop{animation:lgqpop .35s var(--ease)}
@keyframes lgqpop{0%{transform:scale(.7)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
.lgq-shk{animation:lgqshk .35s}
@keyframes lgqshk{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.lgq-out{position:absolute;left:87%;width:13%;height:48px;border-radius:14px;display:grid;place-items:center;font-size:22px;line-height:1;background:#2A1458;border:2px solid #4C3D73;color:#8B7BB5;font-weight:900;transition:background .2s,box-shadow .2s}
.lgq-out.lgq-on{background:#FACC15;border-color:#FEF08A;box-shadow:0 0 16px rgba(250,204,21,.8)}
.lgq-out.lgq-off{background:#475569;border-color:#94A3B8}
.lgq-st{margin:8px 0 0;padding:8px 12px;border-radius:12px;background:#F1F5F9;font-size:12.5px;font-weight:700;color:#475569;text-align:center;line-height:1.5}
.lgq-st b{font-size:14px;font-weight:900}.lgq-st.lgq-on{background:#FEF9C3;color:#713F12}.lgq-st.lgq-off{background:#E2E8F0;color:#1E293B}
.lgq-dd{min-height:1.5em;margin:6px 0 0;font-size:12px;font-weight:800;color:#3B0F80;line-height:1.5;text-align:center}
.lgq-hm{min-height:1.4em;margin:4px 0 0;font-size:11.5px;font-weight:800;color:#B91C1C;text-align:center;line-height:1.5;opacity:0}
.lgq-hm.lgq-hmon{animation:lgqhm 3s forwards}
@keyframes lgqhm{0%,80%{opacity:1}100%{opacity:0}}
/* 部品のトレー */
.lgq-try{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 0;padding:0;list-style:none}
.lgq-pt{width:100%;height:54px;border:2px solid transparent;border-radius:14px;color:#fff;font:inherit;cursor:grab;touch-action:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 4px 0 rgba(15,23,42,.25);user-select:none;-webkit-user-select:none}
.lgq-pt.lgq-sel{outline:3px solid #FACC15;outline-offset:2px}
.lgq-pt:disabled{opacity:.4;cursor:default}
.lgq-pt b{font-size:15px}
.lgq-trh{margin:10px 0 0;font-size:11.5px;font-weight:800;color:#64748B;text-align:center;line-height:1.5}
.lgq-gh{position:fixed;left:0;top:0;z-index:80;margin:-26px 0 0 -34px;width:68px;height:52px;border-radius:12px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;box-shadow:0 10px 24px rgba(0,0,0,.35);opacity:.92}
.lgq-tools{display:flex;justify-content:flex-end;margin-top:8px}
.lgq-clr{min-height:36px;padding:6px 12px;border:1px solid #CBD5E1;border-radius:99px;background:#fff;color:#475569;font:inherit;font-size:12px;font-weight:800;cursor:pointer;touch-action:manipulation}.lgq-clr:disabled{opacity:.4;cursor:default}
/* テスト書類 */
.lgq-dh{margin:14px 0 6px;font-size:12px;font-weight:900;color:#3B0F80;line-height:1.5}.lgq-dh small{display:block;font-size:11px;font-weight:700;color:#64748B}
.lgq-docs{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.lgq-dc{width:100%;min-height:58px;padding:6px 8px;border:2px solid #E2E8F0;border-radius:12px;background:#fff;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation;display:grid;gap:3px;color:#1E0A45;transition:background .2s,border-color .2s}
.lgq-dc>b{display:block;font-size:12px;font-weight:900;line-height:1.35;overflow-wrap:anywhere}.lgq-dc>b span{margin-right:3px}
.lgq-di{display:flex;gap:3px}
.lgq-di i{display:grid;place-items:center;width:24px;height:22px;border-radius:6px;background:#F1F5F9;font-style:normal;font-size:13px;line-height:1;filter:grayscale(1);opacity:.4}
.lgq-di i.lgq-y{background:#FEF3C7;box-shadow:inset 0 0 0 1.5px #FACC15;filter:none;opacity:1}
.lgq-dr{font-style:normal;font-size:11px;font-weight:900;line-height:1.3;min-height:0}
.lgq-dr:empty{display:none}
.lgq-dc.lgq-pk{border-color:#6D28D9;background:#F5F0FE;box-shadow:0 0 0 2px rgba(109,40,217,.25)}
.lgq-dc.lgq-ok{border-color:#86EFAC;background:#F0FDF4}.lgq-dc.lgq-ok .lgq-dr{color:#15803D}
.lgq-dc.lgq-acc{border-color:#FCA5A5;background:#FEF2F2}.lgq-dc.lgq-acc .lgq-dr{color:#B91C1C}
.lgq-dc.lgq-bk{border-color:#FDBA74;background:#FFF7ED}.lgq-dc.lgq-bk .lgq-dr{color:#C2410C}
.lgq-dc:disabled{cursor:default}
/* 1問の結果 */
.lgq-rc{margin:6px 0 0;display:grid;gap:2px;font-size:12.5px;font-weight:800;line-height:1.55}.lgq-ra{color:#B91C1C}.lgq-rb{color:#C2410C}
.lgq-ms{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.lgq-ms li{padding:5px 10px;border-radius:10px;background:#fff;border-left:4px solid #94A3B8;font-size:12.5px;line-height:1.55}
.lgq-ms li.lgq-l-acc{border-left-color:#DC2626}.lgq-ms li.lgq-l-bk{border-left-color:#EA580C}
.lgq-ai{margin:8px 0 0;font-size:12px;font-weight:800;color:#475569}
.lgq-why{margin:6px 0 0;font-size:11.5px;color:#64748B}
/* 結果：タイプと大きな数字 */
.lgq-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#1E0A45;color:#EDE4FB;text-align:center}
.lgq-tyl{margin:0;font-size:12px;font-weight:800;color:#C4B5FD}
.lgq-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.lgq-tyn span{margin-right:6px}
.lgq-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.lgq-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(237,228,251,.25)}
.lgq-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.lgq-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#DDD0F7}
.lgq-kp b{display:block;margin-top:4px;font-size:clamp(36px,12vw,50px);font-weight:900;line-height:1.05;color:#FACC15;font-variant-numeric:tabular-nums}.lgq-kp div+div b{color:#FCA5A5}
.lgq-kp b i{margin-left:2px;font-style:normal;font-size:.42em}
.lgq-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#EDE4FB;line-height:1.5}
.lgq-aiw{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#DDD0F7}.lgq-aiw b{color:#fff}
/* ふりかえり */
.lgq-lgd{margin:0 0 8px;font-size:11.5px;font-weight:800;color:#475569;line-height:1.6}
.lgq-rq{margin:0 0 10px;padding:10px 12px;border-radius:14px;background:#F8FAFC;border:1px solid #E2E8F0}
.lgq-rqh{display:flex;justify-content:space-between;gap:8px;font-size:13.5px;font-weight:900;color:#1E0A45;line-height:1.5}.lgq-rqh em{font-style:normal;color:#5B21B6;white-space:nowrap}
.lgq-rr{margin:4px 0 6px;font-size:12px;line-height:1.65;color:#475569}.lgq-rr b{color:#1E0A45}
.lgq-rq dl{margin:0;display:grid;gap:2px}
.lgq-rq dt{font-size:11px;font-weight:900;color:#64748B;margin-top:4px}
.lgq-rq dd{margin:0;font-size:12.5px;font-weight:700;line-height:1.6;color:#1E293B;overflow-wrap:anywhere}
.lgq-rq dd.lgq-good{color:#15803D}
.lgq-dt{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}
.lgq-dt i{width:12px;height:12px;border-radius:50%;background:#4ADE80}.lgq-dt i.lgq-a{background:#F87171}.lgq-dt i.lgq-b{background:#FB923C}
.lgq .sbd-tl{grid-template-columns:repeat(5,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}.lgq-lp b{font-size:9.5px}.lgq-sl.lgq-sn b{font-size:9.5px}.lgq-sl b{font-size:12px}.lgq-di i{width:21px}.lgq-dc{padding:5px 6px}.lgq-dc>b{font-size:11.5px}.lgq-bdw{padding:2px 3px}}
@media(prefers-reduced-motion:reduce){.res,.end{animation:none}.lgq-sl.lgq-can,.lgq-pop,.lgq-shk{animation:none}.lgq-wr polyline,.lgq-lp,.lgq-out,.lgq-dc{transition:none}.lgq-hm.lgq-hmon{animation:none;opacity:1}}
