.lsr{--ac:#B4232A;--ac2:#FEE2E2;--acg:linear-gradient(90deg,#B4232A,#DC2626 50%,#06B6D4)}
.lsr [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(185,28,28,.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:#7F1D1D;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#FEF2F2;background:#FEF2F2}
.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%,#FECACA 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,#B4232A,#DC2626);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(185,28,28,.3)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#FEF2F2;border:1px solid #FECACA}
.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 #FECACA}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#B4232A}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#1A0A0C}
.aiput{margin-top:8px;min-height:40px;padding:8px 14px;border:0;border-radius:99px;background:#B4232A;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,#B4232A,#EF4444);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;touch-action:manipulation;box-shadow:0 8px 20px rgba(185,28,28,.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>p{margin:6px 0 0}.res code{padding:1px 5px;border-radius:6px;background:rgba(15,23,42,.07);font-size:12.5px;word-break:break-all}
.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:#B45309}.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:#1A0A0C;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)}
/* はじめの説明 */
.lsr-kd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.lsr-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}
.lsr-kd span{display:block;font-size:18px;line-height:1.2}.lsr-kd b{display:block;font-size:12.5px;font-weight:900;color:#1A0A0C}
.lsr-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}
/* データのカード */
.lsr-st{padding:12px 14px;border-radius:18px;background:#1A0A0C;color:#FEE2E2}.lsr-st>b{display:block;font-size:16px;font-weight:900;color:#fff;line-height:1.5}
.lsr-st p{margin:6px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}.lsr-st p b{color:#FCA5A5;font-weight:900}
.lsr-to{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:8px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.08);font-size:12.5px;font-weight:800;line-height:1.5}
.lsr-to i{font-style:normal;color:#FCA5A5}.lsr-to code{display:inline-block;padding:2px 8px;border-radius:8px;background:#FEF3C7;color:#1A0A0C;font-size:14px;font-weight:900;letter-spacing:.02em;word-break:break-all}
/* 盤面 */
.lsr-bw{position:relative;margin:12px 0 0;border-radius:16px;background:#2A1416;padding:4px;box-shadow:inset 0 0 0 2px rgba(185,28,28,.25)}
.lsr-bd{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:2px;aspect-ratio:1/1}
.lsr-bw svg.lsr-bm{position:absolute;left:4px;top:4px;width:calc(100% - 8px)!important;height:calc(100% - 8px)!important;stroke:none;fill:none;pointer-events:none;overflow:visible;transition:opacity .25s}
.lsr-bm.lsr-old{opacity:.3}
.lsr-c{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;border-radius:8px;background:#3A1E21;line-height:1}
.lsr-c>span{font-size:clamp(17px,5.4vw,26px);line-height:1}
.lsr-c>small{margin-top:2px;max-width:100%;overflow:hidden;font-size:clamp(8.5px,2.4vw,11px);font-weight:900;line-height:1.1;white-space:nowrap;color:#FEE2E2}
.lsr-fl{background:#3A1E21}
.lsr-wl{background:#475569}
.lsr-sr{background:#7F1D1D}
.lsr-sv{background:#334155;box-shadow:inset 0 0 0 2px #94A3B8}.lsr-sv>small{color:#fff;font-size:clamp(10px,3vw,13px)}
.lsr-lg{background:#4C1D95}
.lsr-wf{background:#1E3A8A}
button.lsr-c{padding:0;border:0;font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:#4A2A2E;box-shadow:inset 0 0 0 2px #FCA5A5}
button.lsr-c:disabled{cursor:default}
button.lsr-c:focus-visible{outline:3px solid #FDE047;outline-offset:1px}
.lsr-bar{position:absolute;left:12%;right:12%;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:linear-gradient(180deg,#F8FAFC,#94A3B8);box-shadow:0 0 0 1px rgba(15,23,42,.5);transition:transform .22s var(--ease)}
.lsr-mi::after{content:"";position:absolute;left:50%;top:50%;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:#FCA5A5}
.lsr-pd{background:rgba(255,255,255,.04)!important;box-shadow:none!important;border:2px dashed rgba(254,202,202,.55)!important}
.lsr-pd .lsr-bar{opacity:0}.lsr-pd.lsr-on .lsr-bar{opacity:1}
.lsr-pd.lsr-e0::before{content:"+";font-size:18px;font-weight:900;color:rgba(254,202,202,.6)}
.lsr-lk{display:none;font-size:clamp(17px,5.4vw,26px);line-height:1}
.lsr-pd.lsr-bx{background:rgba(6,182,212,.2)!important;border-color:#67E8F9!important}.lsr-pd.lsr-bx .lsr-lk{display:block}
.lsr-ray{fill:none;stroke:#F87171;stroke-width:12;stroke-linecap:round;stroke-linejoin:round}
.lsr-gw{fill:none;stroke:rgba(239,68,68,.35);stroke-width:30;stroke-linecap:round;stroke-linejoin:round}
.lsr-raye{stroke:#67E8F9}.lsr-gwe{stroke:rgba(103,232,249,.35)}
.lsr-bm text,.lsr-mn text{text-anchor:middle;stroke:none;fill:#000}
.lsr-pl{fill:rgba(220,38,38,.35);stroke:#FCA5A5;stroke-width:4}
.lsr-po{fill:rgba(34,197,94,.25);stroke:#86EFAC;stroke-width:6}
.lsr-pop{animation:lsrpop .5s var(--ease)}
.lsr-pop.lsr-st{animation:none}
@keyframes lsrpop{0%{opacity:0}40%{opacity:1}100%{opacity:1}}
.lsr-ct{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:12.5px;font-weight:800;color:#334155}.lsr-ct b{font-size:15px;color:#B4232A}
.lsr-sl{margin-top:8px;padding:10px 12px;border-radius:14px;background:#F8FAFC;border:1px solid #E2E8F0}
.lsr-slh{margin:0 0 4px;font-size:12px;font-weight:900;color:#7F1D1D}
.lsr-sl ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.lsr-sl li{display:grid;grid-template-columns:24px 22px 1fr;align-items:center;gap:4px;font-size:13px;font-weight:800;line-height:1.5}
.lsr-sl li>b{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#334155;color:#fff;font-size:12px}
.lsr-sl code{font-size:14px;font-weight:900;color:#1A0A0C;letter-spacing:.02em;word-break:break-all}
.lsr-sl ul.lsr-sxs{margin-top:6px;padding-top:6px;border-top:1px dashed #E2E8F0}
.lsr-sl li.lsr-sx{grid-template-columns:24px 1fr;font-size:12px;font-weight:700;color:#475569}.lsr-sl li.lsr-sx>b{background:none;color:inherit;font-size:15px}
.lsr-left{font-weight:800;color:#334155}
.lsr-fail{font-weight:900;color:#DC2626}
.lsr-rt{font-size:12.5px;font-weight:800;color:#475569}
.lsr-why{font-size:11.5px;color:#64748B}
/* 結果：タイプと大きな数字 */
.lsr-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#1A0A0C;color:#FEE2E2;text-align:center}
.lsr-tyl{margin:0;font-size:12px;font-weight:800;color:#FCA5A5}
.lsr-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.lsr-tyn span{margin-right:6px}
.lsr-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.lsr-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(254,226,226,.25)}
.lsr-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.lsr-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#FECACA}
.lsr-kp b{display:block;margin-top:4px;font-size:clamp(36px,12vw,50px);font-weight:900;line-height:1.05;color:#FCA5A5;font-variant-numeric:tabular-nums}.lsr-kp div+div b{color:#67E8F9}
.lsr-kp b i{margin-left:2px;font-style:normal;font-size:.42em}
.lsr-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#FEE2E2;line-height:1.5}
.lsr-ai{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#FECACA}.lsr-ai b{color:#fff}
/* ふりかえり */
.lsr-rl{display:grid;gap:12px}
.lsr-rv{padding:10px;border-radius:14px;background:#F8FAFC;border:1px solid #E2E8F0}
.lsr-rv h4{display:flex;justify-content:space-between;gap:8px;margin:0;font-size:14px;font-weight:900;color:#1A0A0C}.lsr-rv h4 b{color:#B4232A;white-space:nowrap}
.lsr-rvt{margin:2px 0 8px;font-size:12px;font-weight:800;color:#475569}.lsr-rvt code{font-weight:900;color:#1A0A0C;word-break:break-all}
.lsr-rvb{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lsr-rvb figure{margin:0}.lsr-rvb figcaption{margin-top:4px;text-align:center;font-size:11.5px;font-weight:800;color:#475569}
.lsr-rvb svg.lsr-mn{display:block;width:100%!important;height:auto!important;stroke:none;fill:none}
.lsr-mnb{fill:#2A1416}
.lsr-mc{fill:#3A1E21}.lsr-mc-w{fill:#475569}.lsr-mc-s{fill:#7F1D1D}.lsr-mc-i{fill:#1E3A8A}.lsr-mc-m{fill:#4A2A2E}
.lsr-mc-t{fill:#14532D;stroke:#4ADE80;stroke-width:1.6}.lsr-mc-x{fill:#7F1D1D;stroke:#F87171;stroke-width:1.6}
.lsr-ml{stroke:#E2E8F0;stroke-width:2.4;stroke-linecap:round}
.lsr-rva{margin:6px 0 0;font-size:12px;font-weight:700;color:#475569;line-height:1.6}
.lsr .sbd-tl{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:380px){.game{padding:12px 10px}.lsr-bw{margin-left:-4px;margin-right:-4px;padding:3px}.lsr-bw svg.lsr-bm{left:3px;top:3px;width:calc(100% - 6px)!important;height:calc(100% - 6px)!important}}
