.lfb{--ac:#0E6168;--ac2:#CCFBF1;--acg:linear-gradient(90deg,#0E6168,#14B8A6 55%,#F59E0B)}
.lfb [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(14,97,104,.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}
/* 腰の疲れゲージ */
.lfb-gauge{margin-top:8px;padding:7px 10px;border-radius:14px;background:#F0FDFA;border:2px solid #99F6E4;transition:background .3s,border-color .3s}
.lfb-gauge p{display:flex;align-items:baseline;gap:6px;margin:0;line-height:1.2}
.lfb-gauge p span{font-size:12px;font-weight:900;color:#334155}
.lfb-gauge p b{font-size:20px;font-weight:900;color:#0F766E;font-variant-numeric:tabular-nums}
.lfb-gauge p small{margin-left:auto;font-size:10.5px;font-weight:800;color:#64748B}
.lfb-gb{display:block;position:relative;height:10px;margin-top:5px;border-radius:99px;background:rgba(15,23,42,.08);overflow:hidden}
.lfb-gb i{display:block;height:100%;width:0;border-radius:99px;background:#14B8A6;transition:width .5s var(--ease)}
.lfb-gauge[data-lv="b"]{background:#FFFBEB;border-color:#FCD34D}.lfb-gauge[data-lv="b"] p b{color:#B45309}.lfb-gauge[data-lv="b"] .lfb-gb i{background:#F59E0B}
.lfb-gauge[data-lv="c"]{background:#FEF2F2;border-color:#FCA5A5}.lfb-gauge[data-lv="c"] p b{color:#B91C1C}.lfb-gauge[data-lv="c"] .lfb-gb i{background:#EF4444}
/* 遊び方 */
.il{margin:0 0 10px;font-size:13px;font-weight:800;color:#0E6168;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#ECFBF9;background:#ECFBF9}
.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%,#FDE68A 55%);color:inherit;font-weight:800}
.lfb-tt{display:grid;gap:4px;margin-top:10px}
.lfb-tt p{margin:0;padding:6px 10px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:12px;font-weight:700;line-height:1.5;color:#334155}
.lfb-tt b{display:inline-block;margin-right:6px;font-weight:900;color:#0F172A}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#0E6168,#0A474C);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(14,97,104,.3)}
/* 場面 */
.lfb-dhd{margin:0;padding:8px 12px;border-radius:14px;background:#0E6168;color:#fff;font-size:14px;font-weight:900;line-height:1.45}
.lfb-bn{margin:8px 0 0;font-size:13px;font-weight:700;color:#334155;line-height:1.5}.lfb-bn b{font-weight:900;color:#0F172A}
.lfb-wrap{position:relative;margin-top:6px;border-radius:18px;overflow:hidden;border:1px solid #CDE9E6;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.lfb-wrap svg.lfb-fig{display:block;width:100%;height:auto;fill:none;stroke:none}
.lfb-fig .lfb-wall{fill:#F3FAF9}.lfb-fig .lfb-flr{fill:#D9C7A7}.lfb-fig .lfb-door{fill:#E2EFEE;stroke:#B6D6D2;stroke-width:1.2}.lfb-fig .lfb-dt{font-size:12px}
.lfb-fig .lfb-bx{fill:#D6A86B;stroke:#9A6B34;stroke-width:1.2}.lfb-fig .lfb-tp{stroke:#B7834A;stroke-width:3}
.lfb-fig text{fill:#0F172A;stroke:none}
.lfb-fig .lfb-kgt{font-size:9px;font-weight:900;fill:#0F172A}
.lfb-hip{position:absolute;left:28%;top:54%;width:48px;height:48px;margin:-24px 0 0 -24px;padding:0;border:0;border-radius:50%;background:transparent;touch-action:none;cursor:grab;display:grid;place-items:center;-webkit-tap-highlight-color:transparent;z-index:2}
.lfb-hip i{display:block;width:22px;height:22px;box-sizing:border-box;border-radius:50%;background:#FDE68A;border:4px solid #F59E0B;box-shadow:0 2px 6px rgba(0,0,0,.3);transition:transform .15s}
.lfb-hip.lfb-drg{cursor:grabbing}.lfb-hip.lfb-drg i{transform:scale(1.3)}
.lfb-hip:disabled{cursor:default}.lfb-hip:disabled i{opacity:.35}
.lfb-hip:focus-visible{outline:3px solid #0E6168;outline-offset:0}
.lfb-new .lfb-hip i{animation:lfbpls 1.2s ease-in-out infinite}
@keyframes lfbpls{50%{box-shadow:0 0 0 9px rgba(245,158,11,.3),0 2px 6px rgba(0,0,0,.3)}}
.lfb-md{position:absolute;left:8px;top:8px;margin:0;max-width:calc(100% - 16px);padding:3px 10px;border-radius:99px;background:rgba(15,23,42,.72);color:#fff;font-size:12px;font-weight:900;line-height:1.5}
.lfb-md.lfb-mk{background:#0F766E}.lfb-md.lfb-mb{background:#DC2626}.lfb-md.lfb-mg{background:#B45309}
.lfb-mt{position:absolute;left:8px;right:8px;bottom:8px;padding:5px 8px;border-radius:12px;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.lfb-mt p{display:flex;justify-content:space-between;margin:0 0 3px;font-size:11px;font-weight:900;color:#334155}
.lfb-mt p b{color:#0F766E}.lfb-mt[data-v="0"] p b{color:#DC2626}.lfb-mt[data-v="2"] p b{color:#0E6168}
.lfb-mz{position:relative;display:grid;grid-template-columns:25% 42% 33%;height:16px;border-radius:8px;overflow:hidden}
.lfb-mz i{display:grid;place-items:center;font-style:normal;font-size:9.5px;font-weight:900;color:#fff;line-height:1}
.lfb-mz i:nth-child(1){background:#F87171}.lfb-mz i:nth-child(2){background:#FBBF24;color:#78350F}.lfb-mz i:nth-child(3){background:#2DD4BF;color:#134E4A}
.lfb-mz b{position:absolute;top:0;left:0;width:4px;height:100%;margin-left:-2px;background:#0F172A;border-radius:2px}
/* 今日の箱 */
.lfb-q{display:flex;gap:5px;margin:8px 0 0;padding:0;list-style:none;overflow:hidden}
.lfb-q li{flex:1;min-width:0;display:grid;justify-items:center;padding:4px 2px;border-radius:10px;background:#F8FAFC;border:1px solid #E2E8F0}
.lfb-q li span{font-size:18px;line-height:1.2}.lfb-q li small{font-size:10px;font-weight:900;color:#475569;font-variant-numeric:tabular-nums}
.lfb-q li.lfb-qn{background:#FEF3C7;border:2px solid #F59E0B}.lfb-q li.lfb-qx{border:2px dashed #94A3B8}
.lfb-nb{margin:4px 0 0;font-size:11.5px;font-weight:800;color:#64748B}
/* 結果のひとこと */
.lfb-msg{min-height:3.2em;margin-top:8px}
.lfb-msg p{margin:0;padding:7px 10px;border-radius:14px;font-size:13px;font-weight:700;line-height:1.55;animation:pop .3s var(--ease)}
.lfb-msg p em{display:inline-block;margin-left:6px;padding:0 7px;border-radius:99px;font-style:normal;font-size:11px;font-weight:900;color:#fff}
.lfb-r.lfb-l0{background:#F0FDFA;color:#134E4A}.lfb-r.lfb-l0 em{background:#0F766E}
.lfb-r.lfb-l1{background:#F7FEE7;color:#365314}.lfb-r.lfb-l1 em{background:#65A30D}
.lfb-r.lfb-l2{background:#FFFBEB;color:#78350F}.lfb-r.lfb-l2 em{background:#D97706}
.lfb-r.lfb-l3{background:#FEF2F2;color:#7F1D1D}.lfb-r.lfb-l3 em{background:#DC2626}
.lfb-pm{background:#EFF6FF;color:#1E3A8A}.lfb-ng{background:#FEF2F2;color:#991B1B}
/* 手のボタン */
.lfb-act{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.lfb-ab{display:grid;align-content:center;gap:2px;min-height:58px;padding:6px 4px;border:2px solid #CDE9E6;border-radius:14px;background:#fff;font:inherit;font-size:12.5px;font-weight:900;line-height:1.3;color:#0F172A;cursor:pointer;touch-action:manipulation}
.lfb-ab small{font-size:10px;font-weight:700;color:#64748B;line-height:1.3}
.lfb-ab:disabled{opacity:.4;cursor:default}
.lfb-ab:not(:disabled):active{transform:scale(.97)}
.lfb-alt{margin-top:8px;padding:8px;border-radius:14px;background:#F8FAFC;border:1px solid #E2E8F0}
.lfb-alt>p{margin:0 0 6px;font-size:11.5px;font-weight:800;color:#475569}
.lfb-ps{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.lfb-vs3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px}
.lfb-alt button{min-height:44px;padding:4px;border:2px solid #E2E8F0;border-radius:12px;background:#fff;font:inherit;font-size:12.5px;font-weight:900;line-height:1.25;color:#0F172A;cursor:pointer;touch-action:manipulation}
.lfb-alt button small{display:block;font-size:9.5px;font-weight:700;color:#64748B}
.lfb-ps button[aria-pressed="true"]{border-color:#0E6168;background:#ECFBF9;box-shadow:0 0 0 2px #99F6E4}
.lfb-vs3 button{background:#0E6168;border-color:#0E6168;color:#fff}.lfb-vs3 button small{color:#CCFBF1}
.lfb-alt button:disabled{opacity:.4;cursor:default}
/* AIのことば */
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:18px;background:#EEF2FF;border:1px solid #C7D2FE}
.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 #C7D2FE}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#4338CA}
.aiad p{margin:2px 0 0;font-size:13px;line-height:1.65;font-weight:700;color:#1E1B4B}
.go2{display:block;width:100%;margin-top:12px;padding:14px;border:0;border-radius:16px;background:#0E6168;color:#fff;font:inherit;font-size:15px;font-weight:900;cursor:pointer;touch-action:manipulation}
.go2:disabled{background:#E2E8F0;color:#94A3B8;cursor:default}
/* 1日の終わり */
.lfb-day{margin-top:10px;padding:12px;border-radius:18px;background:#062B2E;color:#E6FFFA;animation:pop .4s var(--ease)}
.lfb-dh{margin:0;font-size:16px;font-weight:900;color:#FDE68A}
.lfb-ds{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}.lfb-ds span{padding:2px 8px;border-radius:99px;background:rgba(255,255,255,.1);font-size:12px;font-weight:800}
.lfb-dll{display:grid;gap:4px;margin:8px 0 0;padding:0;list-style:none}
.lfb-dll li{display:grid;grid-template-columns:2.2em 1fr auto;align-items:center;gap:6px;padding:5px 8px;border-radius:10px;background:rgba(255,255,255,.07);font-size:12.5px}
.lfb-dll li span{font-size:17px;line-height:1}
.lfb-dll li b{min-width:0;font-weight:800;line-height:1.35}.lfb-dll li b small{display:block;font-size:10.5px;font-weight:700;color:#99F6E4}
.lfb-dll li em{font-style:normal;font-weight:900;font-variant-numeric:tabular-nums}
.lfb-dll .lfb-l0 em{color:#5EEAD4}.lfb-dll .lfb-l1 em{color:#BEF264}.lfb-dll .lfb-l2 em{color:#FCD34D}.lfb-dll .lfb-l3 em{color:#FCA5A5}
.lfb-dl{margin:8px 0 0;font-size:13px;font-weight:800;line-height:1.55;color:#CCFBF1}
.lfb-dl.lfb-rsh{color:#FCD34D}
.lfb-inj{margin:8px 0 0;padding:8px 10px;border-radius:12px;background:#7F1D1D;color:#fff;font-size:13px;font-weight:900;line-height:1.55}
.lfb-day .go2{background:#14B8A6;color:#042F2E}
.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(16px,5.4vw,24px);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) both}
.fx.A{color:#0F766E}.fx.B{color:#D97706}.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)}}
.game.shake{animation:shk .45s}@keyframes shk{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.end{margin-top:4px;animation:pop .4s var(--ease)}
/* 結果の大きな数字 */
.lfb-big{margin:14px 0 4px;padding:14px;border-radius:18px;background:#062B2E;color:#E6FFFA;text-align:center}
.lfb-big>small{display:block;font-size:12.5px;font-weight:800;color:#FDE68A}
.lfb-big>b{display:block;margin-top:2px;font-size:clamp(46px,15vw,70px);font-weight:900;line-height:1.1;color:#5EEAD4;font-variant-numeric:tabular-nums}.lfb-big>b span{font-size:.4em;margin-left:2px;color:#fff}
.lfb-big>em{display:block;font-style:normal;font-size:13px;font-weight:800;color:#CCFBF1}
.lfb-ty{margin:12px 0 0;padding:10px;border-radius:14px;background:rgba(255,255,255,.08)}
.lfb-ty small{display:block;font-size:11px;font-weight:800;color:#FDE68A}.lfb-ty b{display:block;font-size:20px;font-weight:900;color:#fff}.lfb-ty span{display:block;margin-top:2px;font-size:12.5px;font-weight:700;line-height:1.6;color:#E6FFFA}
.lfb-vs{margin:8px 0 0;font-size:12.5px;font-weight:800;line-height:1.6;color:#B2F5EA}.lfb-vs b{color:#fff;white-space:nowrap}
/* ふりかえり */
.lfb-rd{margin:0 0 12px}
.lfb-rh{margin:0 0 4px;font-size:13.5px;font-weight:900;color:#0E6168}
.lfb-tb{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11.5px;line-height:1.4}
.lfb-tb th,.lfb-tb td{padding:5px 3px;border-bottom:1px solid #F1F5F9;text-align:left;vertical-align:top}
.lfb-tb thead th{font-size:10.5px;font-weight:800;color:#64748B}
.lfb-tb tbody th{width:40%;font-weight:800;color:#1E293B}.lfb-tb tbody th small{display:block;font-size:10.5px;font-weight:900;color:#B45309}
.lfb-c{display:block;font-weight:800}.lfb-c small{display:block;font-size:10.5px;font-variant-numeric:tabular-nums}
.lfb-c.lfb-l0{color:#0F766E}.lfb-c.lfb-l1{color:#4D7C0F}.lfb-c.lfb-l2{color:#B45309}.lfb-c.lfb-l3{color:#B91C1C}
.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:13px;font-weight:700;color:#134E4A;margin:4px 0 0}
.lfb-lg{margin:10px 0 0;font-size:11.5px;font-weight:700;line-height:1.7;color:#475569}
.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)}
.lfb .sbd-tl{grid-template-columns:repeat(6,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}
 .lfb-ab{font-size:11.5px;min-height:56px}.lfb-ab small{font-size:9.5px}.lfb-alt button{font-size:11.5px}.lfb-md{font-size:11px}.aiad{padding:10px}.aiad .av{width:34px;height:34px;font-size:22px}.lfb-tb{font-size:10.5px}.lfb-q li span{font-size:16px}}
@media(prefers-reduced-motion:reduce){.end,.fx,.lfb-day,.lfb-msg p,.lfb-new .lfb-hip i{animation:none}.lfb-gb i,.lfb-hip i{transition:none}}
