.lgt{--ac:#CA8A04;--ac2:#FEF3C7;--acg:linear-gradient(90deg,#CA8A04,#EAB308 50%,#F97316)}
.lgt [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(202,138,4,.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:#713F12;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#FEFCE8;background:#FEFCE8}
.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}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#CA8A04,#EAB308);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(202,138,4,.32)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#FEFCE8;border:1px solid #FDE68A}
.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 #FDE68A}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#A16207}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#1C1917}
.aiput{margin-top:8px;padding:8px 14px;border:0;border-radius:99px;background:#A16207;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:#A16207}.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:#1C1917;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)}
/* はじめの説明（光の目安） */
.lgt-kd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.lgt-kd p{margin:0;padding:8px 10px;border-radius:12px;background:#FAFAF9;border:1px solid #E7E5E4;font-size:12px;font-weight:700;line-height:1.5;color:#44403C}
.lgt-kd span{display:block;font-size:18px;line-height:1.2}.lgt-kd b{display:block;font-size:12.5px;font-weight:900;color:#1C1917}
.lgt-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}
/* その日 */
.lgt-dy{padding:12px 14px;border-radius:18px;background:#1C1917;color:#FEF3C7}
.lgt-dy>b{display:flex;align-items:baseline;gap:8px;font-size:17px;font-weight:900;color:#fff;line-height:1.5}.lgt-dy>b small{font-size:11.5px;color:#FCD34D;font-weight:800}
.lgt-dy p{margin:6px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}.lgt-dy p b{color:#FCD34D;font-weight:900}
.lgt-dy .lgt-fq{margin-top:8px;padding-top:8px;border-top:1px dashed rgba(254,243,199,.25);font-size:12px;color:#FDE68A}.lgt-fq b{color:#fff!important}
/* 今の予定 */
.lgt-st{display:grid;grid-template-columns:44px 1fr;gap:0 10px;align-items:center;margin-top:12px;padding:10px 12px;border-radius:16px;background:#FEFCE8;border:2px solid #FDE68A}
.lgt-sic{grid-row:span 2;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:24px;background:#fff;box-shadow:0 0 0 2px #FDE68A}
.lgt-st b{font-size:15.5px;font-weight:900;color:#1C1917;line-height:1.45;font-variant-numeric:tabular-nums}.lgt-st b em{margin-left:6px;padding:1px 7px;border-radius:99px;background:#DC2626;color:#fff;font-style:normal;font-size:10.5px;vertical-align:2px;white-space:nowrap}
.lgt-st small{font-size:12px;font-weight:700;color:#57534E;line-height:1.55}
.lgt-zn{margin:6px 0 0;padding:6px 10px;border-radius:10px;font-size:12px;font-weight:800;line-height:1.5}
.lgt-z-am,.lgt-z-mid{background:#FEF9C3;color:#854D0E}.lgt-z-day{background:#E0F2FE;color:#075985}.lgt-z-eve{background:#FFEDD5;color:#9A3412}.lgt-z-night{background:#EDE9FE;color:#5B21B6}
/* 部屋とメーター */
.lgt-rw{margin-top:10px;border-radius:18px;overflow:hidden;background:#1C1917;box-shadow:inset 0 0 0 2px rgba(202,138,4,.2)}
.lgt-rw svg.lgt-room{display:block;width:100%!important;height:auto!important;max-height:170px;stroke:none!important;fill:none!important}
.lgt-room text{stroke:none;text-anchor:middle}
.lgt-wf{fill:none;stroke:#fff!important;stroke-width:3!important}.lgt-wb{fill:none;stroke:#E7E5E4!important;stroke-width:3!important}
.lgt-rn{fill:none;stroke:rgba(255,255,255,.75)!important;stroke-width:1.6!important;stroke-linecap:round}
.lgt-cd2{fill:none;stroke:#334155!important;stroke-width:2!important}
.lgt-mt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;background:#fff}
.lgt-mt>div{min-width:0;padding:6px 7px;border-radius:10px;background:#FAFAF9;border:1px solid #E7E5E4}
.lgt-mt small{display:block;font-size:10.5px;font-weight:800;color:#57534E;line-height:1.35;min-height:2.7em}
.lgt-mt b{display:block;margin-top:2px;font-size:14px;font-weight:900;color:#1C1917;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.02em}
.lgt-bar{display:block;height:6px;margin-top:4px;border-radius:99px;background:#E7E5E4;overflow:hidden}
.lgt-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#22C55E,#16A34A);transition:width .25s var(--ease)}
#lhmb i{background:linear-gradient(90deg,#93C5FD,#2563EB)}#lhmc i{background:linear-gradient(90deg,#FDE68A,#CA8A04)}
.lgt-bar i.lgt-mid{background:linear-gradient(90deg,#FBBF24,#D97706)!important}.lgt-bar i.lgt-low{background:linear-gradient(90deg,#F97316,#DC2626)!important}
/* 色の帯 */
.lgt-val{margin:10px 0 6px;text-align:center;font-size:13px;font-weight:900;color:#1C1917;font-variant-numeric:tabular-nums}
.lgt-bd{position:relative;height:150px;border-radius:18px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;outline:none;
 background:linear-gradient(180deg,rgba(22,24,40,0) 0%,rgba(22,24,40,.86) 100%),linear-gradient(90deg,#CEE2FF 0%,#FFF7E8 50%,#FF9638 100%);box-shadow:inset 0 0 0 2px rgba(28,25,23,.12);-webkit-tap-highlight-color:transparent}
.lgt-bd:focus-visible{box-shadow:0 0 0 3px #CA8A04}
.lgt-bd.lgt-lock{opacity:.6;cursor:default}
.lgt-bt,.lgt-bb{position:absolute;left:10px;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:900;pointer-events:none}
.lgt-bt{top:8px;background:rgba(255,255,255,.8);color:#1C1917}.lgt-bb{bottom:8px;background:rgba(0,0,0,.45);color:#fff}
.lgt-kn{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:4px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.35),0 0 0 2px #1C1917;pointer-events:none;transition:left .08s,top .08s}
.lgt-bd.lgt-on .lgt-kn{transform:scale(1.12);transition:none}
.lgt-bl2{display:flex;justify-content:space-between;gap:6px;margin-top:5px;font-size:11.5px;font-weight:800;color:#57534E}
/* 1日の弧 */
.lgt-aw{position:relative;margin-top:12px;border-radius:18px;overflow:hidden;background:#1C1917}
.lgt-aw svg.lgt-arc{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important;touch-action:pan-y}
.lgt-arc text{stroke:none;text-anchor:middle}.lgt-arc text:not([class]),.lgt-room text:not([class]){fill:#000}
.lgt-sky{transition:fill .3s}
.lgt-ap{fill:none;stroke:rgba(255,255,255,.7)!important;stroke-width:2.5!important;stroke-dasharray:3 5;stroke-linecap:round}
.lgt-hr{font-size:10px;font-weight:900;fill:rgba(255,255,255,.85)}
.lgt-mk circle{fill:#fff;stroke:#78716C!important;stroke-width:1.5!important}
.lgt-mk.lgt-mkd circle{stroke:#fff!important;stroke-width:2!important}
.lgt-mk.lgt-mkc circle{stroke:#CA8A04!important;stroke-width:3!important}
.lgt-sh{fill:rgba(253,224,71,.35)}.lgt-sc{fill:#FDE047;stroke:#fff!important;stroke-width:2.5!important}
.lgt-nt .lgt-sh{fill:rgba(196,181,253,.35)}.lgt-nt .lgt-sc{fill:#312E81}
.lgt-ct{font-size:26px;font-weight:900;fill:#fff;font-variant-numeric:tabular-nums;paint-order:stroke;stroke:rgba(0,0,0,.35)!important;stroke-width:3px!important}
.lgt-cd{font-size:11px;font-weight:800;fill:rgba(255,255,255,.9)}
.lgt-sunb{position:absolute;width:52px;height:52px;margin:-26px 0 0 -26px;padding:0;border:0;border-radius:50%;background:transparent;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent}
.lgt-sunb:focus-visible{outline:3px solid #fff;outline-offset:-4px}.lgt-sunb:disabled{cursor:default}
.lgt-drg .lgt-sunb{cursor:grabbing}
.lgt-dh{position:absolute;left:50%;top:6px;transform:translateX(-50%);margin:0;padding:4px 12px;border-radius:99px;background:rgba(28,25,23,.85);color:#fff;font-size:11.5px;font-weight:800;white-space:nowrap;pointer-events:none;transition:opacity .3s}
.lgt-dh.lgt-hide{opacity:0}
/* その日の夜の結果 */
.res>b small{display:block;font-size:12.5px;font-weight:800;color:#57534E}
.lgt-nl{margin:6px 0 0;font-size:12.5px;font-weight:700;color:#44403C;line-height:1.7}.lgt-nl b{color:#1C1917}
.lgt-ln{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:5px}
.lgt-ln li{display:grid;grid-template-columns:22px 1fr;gap:0 8px;align-items:center;padding:6px 10px;border-radius:12px;background:#fff}
.lgt-ln li>i{grid-row:span 2;width:22px;height:22px;border-radius:7px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.lgt-ln b{font-size:12.5px;line-height:1.45;font-variant-numeric:tabular-nums}
.lgt-ln span{font-size:11.5px;line-height:1.5;color:#57534E;font-weight:700}.lgt-ln em{font-style:normal;font-weight:900;color:#15803D;white-space:nowrap}
.lgt-ln em.lgt-bad{color:#B91C1C}.lgt-ln em.lgt-good{color:#15803D}
.lgt-ai{margin:8px 0 0;font-size:12px;font-weight:800;color:#44403C}
.lgt-why{margin:6px 0 0;font-size:11.5px;color:#78716C}
/* 5日間の記録 */
.lgt-hs{margin-top:12px;padding:10px 10px 8px;border-radius:16px;background:#FAFAF9;border:1px solid #E7E5E4}
.lgt-hst{margin:0 0 6px;font-size:12px;font-weight:900;color:#713F12}
.lgt-hl{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.lgt-hl li{display:grid;grid-template-columns:2.6em 1fr 3.6em;gap:6px;align-items:center;padding:3px 6px;border-radius:8px;border:1px solid transparent}
.lgt-hl li.lgt-hnow{border-color:#CA8A04;background:#FEFCE8}
.lgt-hl small{font-size:11px;font-weight:900;color:#57534E;white-space:nowrap}
.lgt-hl svg{display:block;width:100%!important;height:14px!important;stroke:none!important;fill:none!important;border-radius:4px}
.lgt-hl b{font-size:11.5px;font-weight:900;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;color:#57534E}
.lgt-hl b.lgt-good{color:#15803D}.lgt-hl b.lgt-bad{color:#B91C1C}
/* 結果：タイプと大きな数字 */
.lgt-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#1C1917;color:#FEF3C7;text-align:center}
.lgt-tyl{margin:0;font-size:12px;font-weight:800;color:#FCD34D}
.lgt-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.lgt-tyn span{margin-right:6px}
.lgt-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.lgt-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,243,199,.25)}
.lgt-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.lgt-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#FDE68A}
.lgt-kp b{display:block;margin-top:4px;font-size:clamp(36px,12vw,50px);font-weight:900;line-height:1.05;color:#FDE68A;font-variant-numeric:tabular-nums}.lgt-kp div+div b{color:#FDBA74}
.lgt-kp b i{margin-left:2px;font-style:normal;font-size:.42em}
.lgt-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#FEF3C7;line-height:1.5}
.lgt-aiv{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#FDE68A}.lgt-aiv b{color:#fff}
/* ふりかえり */
.lgt-bdw{display:grid;gap:12px}
.lgt-bx{margin:0;padding:10px;border-radius:14px;background:#FAFAF9;border:1px solid #E7E5E4}
.lgt-bx figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin-bottom:6px;font-size:13px;font-weight:900;color:#1C1917}.lgt-bx figcaption b{font-size:16px;color:#A16207}.lgt-bx figcaption span{font-size:11px;color:#78716C;font-weight:800}
.lgt-bx svg{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important}
.lgt-bx text{stroke:none}
.lgt-bh{font-size:9px;font-weight:800;fill:#78716C;text-anchor:middle}
.lgt-bl{font-size:11px;font-weight:900;fill:#1C1917;text-anchor:start}
.lgt-bq{font-size:11px;font-weight:900;fill:#57534E;text-anchor:start}.lgt-bqg{fill:#15803D}.lgt-bqb{fill:#B91C1C}
.lgt-tbw{margin-top:12px;overflow-x:auto}
.lgt-tb{width:100%;border-collapse:collapse;font-size:12.5px}
.lgt-tb th,.lgt-tb td{padding:7px 6px;border-bottom:1px solid #E7E5E4;text-align:left;vertical-align:top;line-height:1.45}
.lgt-tb thead th{font-size:11.5px;color:#78716C}.lgt-tb thead small{display:block;font-size:9.5px;font-weight:700}
.lgt-tb tbody th{font-weight:900;color:#1C1917;white-space:nowrap}.lgt-tb small{display:block;font-size:10.5px;color:#78716C;font-weight:700}
.lgt-tb td b{font-size:14px;color:#A16207;white-space:nowrap}
.lgt .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}.lgt-mt{gap:4px;padding:6px}.lgt-mt>div{padding:5px}.lgt-mt small{font-size:9.5px}.lgt-mt b{font-size:12.5px}.lgt-st{grid-template-columns:40px 1fr}.lgt-sic{width:40px;height:40px;font-size:21px}.lgt-kp b{font-size:34px}.lgt-bd{height:140px}}
@media(prefers-reduced-motion:reduce){.res,.end{animation:none}.lgt-bar i,.lgt-kn,.lgt-sky{transition:none}}
