:root{--lh-bg: #0f2a4a;--lh-bg2: #163a63;--lh-paper: #fbf6ea;--lh-ink: #1e293b;--lh-gold: #f5b83d;--lh-blue: #2563eb;--lh-line: #e2d6b8}body.lhp-body{background:radial-gradient(ellipse at 30% 0%,#24548a 0%,var(--lh-bg) 60%,#091a30 100%);color:var(--lh-ink);font-family:"Baloo 2",system-ui,sans-serif;height:100dvh;overflow:hidden;user-select:none;-webkit-user-select:none}body.lhp-body button{font-family:inherit;cursor:pointer}.lhp-game{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.lhp-btn{border:0;border-radius:12px;padding:7px 14px;font-weight:700;font-size:15px;line-height:1.2;background:#fff;color:var(--lh-ink);box-shadow:0 2px #c9bd9f;min-height:38px}.lhp-btn:active{transform:translateY(1px);box-shadow:none}.lhp-btn:disabled{opacity:.45;cursor:default}.lhp-btn.ghost{background:#ffffff24;color:#fff;box-shadow:none}.lhp-btn.big{font-size:17px;padding:9px 18px}.lhp-btn.go{background:linear-gradient(#ffcf5c,var(--lh-gold));box-shadow:0 3px #b7791f;color:#3b2300}.lhp-btn.sm{padding:4px 10px;font-size:14px;min-height:34px}.lhp-btn.on{background:var(--lh-blue);color:#fff;box-shadow:0 2px #1e3a8a}.lhp-btn.swap{background:#c7d2fe}.lhp-top{display:flex;align-items:center;gap:10px;padding:6px 10px;color:#fff;flex:none}.lhp-title{flex:1;min-width:0;display:flex;align-items:baseline;gap:10px;white-space:nowrap;overflow:hidden}.lhp-title b{font-size:19px}.lhp-title span{font-size:14px;opacity:.85;overflow:hidden;text-overflow:ellipsis}.lhp-main{flex:1;min-height:0;display:flex;gap:8px;padding:0 8px 8px}.lhp-boardwrap{flex:1 1 62%;min-width:0;display:flex;flex-direction:column;position:relative}#lhp-board{flex:1;min-height:0;position:relative;border-radius:16px;overflow:hidden;background:#0000002e;box-shadow:inset 0 0 0 3px #ffffff1f}#lhp-board canvas{display:block}.lhp-phase{position:absolute;z-index:2;left:10px;top:8px;padding:2px 12px;border-radius:999px;font-weight:800;font-size:14px;background:#0f2a4ad9;color:#fff;pointer-events:none}.lhp-phase[data-p=run]{background:#b91c1c}.lhp-phase[data-p=swap]{background:#4338ca}.lhp-phase[data-p=replay]{background:#0f766e}.lhp-ctrl{flex:none;display:flex;align-items:center;gap:6px;padding-top:6px;min-height:42px;color:#dbeafe;flex-wrap:wrap}.lhp-ctrl .hint{font-size:13px;opacity:.85}.lhp-ctrl input[type=range]{flex:1;min-width:80px;accent-color:var(--lh-gold);height:30px}.lhp-speeds{display:inline-flex;gap:3px}.lhp-tick{margin-left:auto;font-weight:800;color:#fff}.lhp-panel{flex:0 0 38%;max-width:440px;min-width:280px;display:flex;flex-direction:column;min-height:0;background:var(--lh-paper);border-radius:16px;overflow:hidden;box-shadow:0 6px 24px #00000059;position:relative}.lhp-shiroe{flex:none;display:flex;gap:8px;align-items:center;padding:8px 10px 6px;background:linear-gradient(135deg,#1d4ed8,#0f2a4a);color:#fff}.lhp-shiroe-pic{flex:none;width:74px;height:74px;border-radius:50%;position:relative;background:radial-gradient(circle,#fff7d6,#93c5fd 60%,#1d4ed8);box-shadow:0 0 0 3px #fff,0 0 18px 4px #93c5fde6;animation:lhpGlow 2.6s ease-in-out infinite}.lhp-shiroe-pic img{position:absolute;left:50%;bottom:-2px;height:112%;transform:translate(-50%)}@keyframes lhpGlow{50%{box-shadow:0 0 0 3px #fff,0 0 26px 8px #facc15bf}}.lhp-say{flex:1;min-width:0;font-size:14px;line-height:1.35}.lhp-say>b{display:block;font-size:16px;color:#fde68a}.lhp-say small{color:#bfdbfe;font-weight:600}.lhp-pbody{flex:1;min-height:0;overflow-y:auto;padding:6px 10px 10px;-webkit-overflow-scrolling:touch}.lhp-foot{flex:none;display:flex;gap:8px;align-items:center;justify-content:flex-end;padding:8px 10px;border-top:2px solid var(--lh-line);background:#f4ecd8}.lhp-foot .lhp-btn.ghost{background:#e7dcc1;color:var(--lh-ink)}.lhp-count{margin-right:auto;font-weight:800;font-size:16px}.lhp-count small{font-weight:600;opacity:.7}.lhp-count.ok{color:#15803d}.lhp-sec{font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#92400e;margin:8px 0 4px}.lhp-team{display:flex;gap:8px;flex-wrap:wrap}.lhp-mate{display:flex;flex-direction:column;align-items:center;width:78px;padding:4px;border-radius:12px;background:#fff;border:3px solid var(--c)}.lhp-mate img{height:56px}.lhp-mate b{font-size:14px;line-height:1.1}.lhp-mate small{font-size:11px;opacity:.7}.lhp-cards{display:grid;gap:6px}.lhp-card{background:#fff;border-radius:12px;padding:6px 10px;border-left:6px solid var(--lh-gold);font-size:14px;line-height:1.35}.lhp-card b{display:block;font-size:15px}.lhp-card.locked{background:#ece4d0;border-left-color:#a8a29e;color:#78716c}.lhp-card.fresh{border-left-color:#2563eb;animation:lhpFlip .6s ease-out both}@keyframes lhpFlip{0%{transform:perspective(600px) rotateY(90deg);opacity:0}}.lhp-tips{margin:0;padding-left:18px;font-size:14px}.lhp-tabs{display:flex;gap:5px;overflow-x:auto;padding-bottom:4px}.lhp-tab{flex:1 0 auto;display:flex;flex-direction:column;align-items:center;gap:0;padding:3px 6px 2px;min-width:64px;border:3px solid transparent;border-radius:12px;background:#efe6d0;font-size:13px;font-weight:700;color:var(--lh-ink)}.lhp-tab img{height:40px}.lhp-tab b{font-size:11px;opacity:.7}.lhp-tab.on{border-color:var(--c);background:#fff;box-shadow:0 2px 0 var(--c)}.lhp-hero-line{font-size:13px;padding:2px 6px;border-radius:8px;background:color-mix(in srgb,var(--c) 18%,white);margin:2px 0 4px}.lhp-steps{list-style:none;margin:0;padding:0;display:grid;gap:4px}.lhp-step{display:flex;align-items:center;gap:6px;background:#fff;border-radius:10px;padding:3px 4px 3px 6px;min-height:40px;border-left:5px solid var(--c);font-size:14px;font-weight:600}.lhp-step.if{background:#fef9c3;border-left-color:#ca8a04}.lhp-step .n{flex:none;width:22px;height:22px;border-radius:50%;background:var(--c);color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center}.lhp-step .ic{flex:none}.lhp-step .tx{flex:1;min-width:0;line-height:1.2}.lhp-step .ctl{flex:none;display:flex;gap:2px}.lhp-step .ctl button{width:32px;height:32px;border:0;border-radius:8px;background:#f1ead8;font-size:13px;color:var(--lh-ink)}.lhp-step .ctl button:disabled{opacity:.3}.lhp-step .ctl .del{background:#fee2e2;color:#b91c1c}.lhp-empty{font-size:14px;color:#78716c;padding:4px 6px;list-style:none}.lhp-auto{font-size:13px;color:#78716c;padding:2px 6px;list-style:none;font-style:italic}.lhp-add{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}.lhp-add button{border:0;border-radius:12px;background:#fff;box-shadow:0 2px #d6c9a8;padding:4px 2px;font-size:20px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--lh-ink)}.lhp-add button span{font-size:13px;font-weight:700}.lhp-add button.if{background:#fef08a}.lhp-add button:disabled{opacity:.4}.lhp-planner{position:static}.lhp-sheet{position:absolute;left:0;right:0;bottom:0;max-height:78%;z-index:20;display:flex;flex-direction:column;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px #0000004d;animation:lhpUp .18s ease-out}@keyframes lhpUp{0%{transform:translateY(40%);opacity:0}}.lhp-sheet-h{display:flex;align-items:flex-start;gap:8px;padding:10px 12px 6px;font-weight:800;font-size:16px}.lhp-sheet-h span{flex:1}.lhp-sheet-h small{display:block;font-weight:600;font-size:13px;color:#57534e}.lhp-sheet-h .x{border:0;background:#f1ead8;border-radius:10px;width:36px;height:36px;font-size:16px}.lhp-sheet-b{overflow-y:auto;padding:0 12px 12px;display:grid;gap:6px}.lhp-sheet-b.grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}.lhp-sheet-b button{border:0;border-radius:12px;background:#eff6ff;padding:8px 10px;text-align:left;font-size:15px;font-weight:700;min-height:44px;color:var(--lh-ink)}.lhp-sheet-b.grid button{text-align:center}.lhp-sheet-b button small{display:block;font-weight:500;font-size:13px;color:#475569}.lhp-sheet-b button:active{background:#dbeafe}.lhp-log{list-style:none;margin:0;padding:0;font-size:14px;line-height:1.3}.lhp-log li{padding:3px 4px;border-bottom:1px dashed var(--lh-line)}.lhp-log li i{display:inline-block;min-width:24px;font-style:normal;font-weight:800;color:#a8a29e;font-size:12px}.lhp-log .ev-die,.lhp-log .ev-spot,.lhp-log .ev-blast{color:#b91c1c;font-weight:700}.lhp-log .ev-signal,.lhp-log .ev-if,.lhp-log .ev-swap{color:#1d4ed8;font-weight:700}.lhp-log .ev-rescue,.lhp-log .ev-end{font-weight:800}.lhp-rp{background:#fff;border-radius:12px;padding:4px 8px;margin-bottom:6px;border-left:5px solid var(--c)}.lhp-rp-h{display:flex;align-items:center;gap:6px}.lhp-rp-h img{height:32px}.lhp-rp-h span{margin-left:auto;font-size:13px}.lhp-rp ol{list-style:none;margin:2px 0;padding:0;font-size:13px}.lhp-rp li{padding:1px 6px;border-radius:6px;color:#78716c}.lhp-rp li.now{background:var(--c);color:#fff;font-weight:700}.lhp-rp li.if{color:#a16207}.lhp-rp li.auto{font-style:italic}.lhp-menu{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;overflow-y:auto;color:#fff;background:linear-gradient(90deg,#091a3026,#091a308c 55%,#091a30c7),url(../lh/bg/bg-title.jpg) center / cover no-repeat,var(--lh-bg)}.lhp-menu[hidden]{display:none}.lhp-menu-in{min-height:100%;display:flex;align-items:center;justify-content:center;gap:24px;padding:16px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left))}.lhp-hero-stage{position:relative;flex:0 1 42%;display:flex;align-items:flex-end;justify-content:center;min-height:260px}.lhp-star-hero{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center}.lhp-star-hero img{height:min(52vh,340px);filter:drop-shadow(0 0 22px rgba(147,197,253,.9)) drop-shadow(0 8px 10px rgba(0,0,0,.4));animation:lhpFloat 3s ease-in-out infinite}.lhp-star-hero span{margin-top:-6px;padding:2px 14px;border-radius:999px;background:var(--lh-gold);color:#3b2300;font-weight:800}@keyframes lhpFloat{50%{transform:translateY(-8px)}}.lhp-side{display:flex;flex-direction:column;align-items:center;opacity:.92}.lhp-side img{height:min(32vh,200px);filter:drop-shadow(0 6px 8px rgba(0,0,0,.4))}.lhp-side span{font-size:13px;font-weight:700}.lhp-side.l{margin-right:-30px}.lhp-side.r{margin-left:-30px}.lhp-menu-text{flex:0 1 460px}.lhp-kicker{letter-spacing:.18em;font-size:12px;font-weight:800;color:#93c5fd}.lhp-menu h1{margin:0;font-size:clamp(30px,6vh,46px);line-height:1.05;color:#fde68a;text-shadow:0 3px 0 #92400e}.lhp-menu p{margin:6px 0 12px;font-size:15px;line-height:1.4;color:#dbeafe}.lhp-levels{display:grid;gap:8px}.lhp-level{display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:16px;padding:8px 14px;color:var(--lh-ink);background:var(--lh-paper);box-shadow:0 4px #c9bd9f}.lhp-level:active{transform:translateY(2px);box-shadow:0 2px #c9bd9f}.lhp-level .num{flex:none;width:38px;height:38px;border-radius:50%;background:var(--lh-blue);color:#fff;font-weight:800;font-size:20px;display:grid;place-items:center}.lhp-level .nm{flex:1;min-width:0;display:flex;flex-direction:column}.lhp-level .nm b{font-size:17px}.lhp-level .nm small{font-size:13px;color:#57534e;line-height:1.2}.lhp-level .st{font-size:20px;color:var(--lh-gold);white-space:nowrap}.lhp-level .st i{font-style:normal;color:#d6cfc0}.lhp-total{margin-top:8px;font-weight:700;color:#fde68a}.lhp-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:12px;background:#061121b8}.lhp-modal[hidden]{display:none}.lhp-result{display:flex;gap:16px;align-items:center;width:min(760px,100%);max-height:100%;overflow-y:auto;background:var(--lh-paper);border-radius:22px;padding:16px 20px;box-shadow:0 10px 40px #00000080;animation:lhpUp .25s ease-out}.lhp-result-pic{flex:none;width:30%;max-width:200px;text-align:center}.lhp-result-pic img{width:100%;filter:drop-shadow(0 0 16px rgba(147,197,253,.9))}.lhp-result.lose .lhp-result-pic img{filter:drop-shadow(0 0 12px rgba(239,68,68,.6)) saturate(.8)}.lhp-result-body{flex:1;min-width:0}.lhp-result h2{margin:0;font-size:26px;line-height:1.1}.lhp-result.win h2{color:#15803d}.lhp-result.lose h2{color:#b91c1c}.lhp-why{font-size:14px;color:#57534e}.lhp-stars{font-size:46px;line-height:1;margin:4px 0}.lhp-stars span{color:#d6cfc0;display:inline-block}.lhp-stars span.on{color:var(--lh-gold);animation:lhpPop .5s ease-out both;text-shadow:0 2px 0 #b7791f}@keyframes lhpPop{0%{transform:scale(0) rotate(-30deg)}70%{transform:scale(1.3)}}.lhp-starlist{list-style:none;margin:0;padding:0;font-size:14px;color:#a8a29e}.lhp-starlist li.on{color:#1e293b;font-weight:700}.lhp-quote{margin:8px 0;padding:6px 10px;border-radius:10px;background:#dbeafe;font-weight:700;font-size:15px}.lhp-result-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.lhp-dlg{width:min(560px,100%);max-height:100%;overflow-y:auto;background:var(--lh-paper);border-radius:18px;padding:12px 14px}.lhp-dlg-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:17px}.lhp-dlg-h .lhp-btn.ghost{background:#e7dcc1;color:var(--lh-ink)}.lhp-rotate{display:none}@media (max-height: 480px){.lhp-top{padding:3px 8px}.lhp-title b{font-size:16px}.lhp-shiroe{padding:4px 8px}.lhp-shiroe-pic{width:44px;height:44px}.lhp-say{font-size:12px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.lhp-say>b{font-size:13px;display:inline;margin-right:4px}.lhp-tab{flex-direction:row;gap:4px;min-width:0;padding:2px 6px}.lhp-tab img{height:26px}.lhp-hero-line{display:none}.lhp-count{font-size:14px;line-height:1.1}.lhp-count small{display:block}.lhp-foot .lhp-btn{white-space:nowrap}.lhp-step{min-height:34px;font-size:13px}.lhp-step .ctl button{width:28px;height:28px}.lhp-btn{min-height:34px;padding:5px 10px;font-size:14px}.lhp-btn.big{font-size:15px;padding:6px 12px}.lhp-ctrl{min-height:36px;padding-top:4px}.lhp-add button{min-height:40px;font-size:17px}.lhp-foot{padding:5px 8px}.lhp-panel{min-width:260px}.lhp-result-pic{width:22%}.lhp-stars{font-size:34px}}@media (orientation: portrait){.lhp-main{flex-direction:column}.lhp-boardwrap{flex:none}#lhp-board{flex:none;aspect-ratio:12 / 7}.lhp-panel{flex:1;max-width:none;min-width:0}.lhp-menu-in{flex-direction:column}.lhp-hero-stage{min-height:0}.lhp-star-hero img{height:28vh}.lhp-side img{height:18vh}.lhp-result{flex-direction:column}.lhp-rotate{display:block;position:fixed;left:50%;bottom:8px;transform:translate(-50%);z-index:50;pointer-events:none;background:#0f2a4ae6;color:#fff;padding:4px 12px;border-radius:999px;font-size:13px;white-space:nowrap}}
