:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#241c16;--cream:#fff6e8;--moss:#1f8a78;--coral:#e25b4a;--gold:#f0b429;--night:#1a2433;font-family:WenQuanYi Micro Hei,Droid Sans Fallback,PingFang SC,Noto Sans SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}html,body{height:100%;margin:0}body{min-height:100dvh;color:var(--cream);background:radial-gradient(circle at 15% 10%,#f0b42929,#0000 28%),radial-gradient(circle at 90% 0,#50a0782e,#0000 32%),linear-gradient(#121a28 0%,#1b332c 55%,#101910 100%)}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}button:disabled{cursor:default}#frame{height:100dvh;display:flex}#app{flex:1;min-width:0;height:100%;position:relative;overflow:hidden}#companion{display:none}.stage{-webkit-user-select:none;user-select:none;flex-direction:column;height:100%;min-height:0;display:flex}.stage[data-screen=title]{background:radial-gradient(circle at 50% 22%,#f0b42961,#0000 28%),linear-gradient(#24344a 0%,#1d3a32 58%,#14241c 100%)}.stage[data-screen=map]{background:radial-gradient(circle at 50% 0,#f0b42938,#0000 32%),linear-gradient(#1c3044 0%,#234838 72%,#15241e 100%)}.stage[data-screen=combat]{background:radial-gradient(at 50% 108%,#00000047,#0000 46%),radial-gradient(circle at 50% 18%,#ffd69633,#0000 24%),linear-gradient(#24344c 0%,#3d6a50 62%,#173028 100%)}.stage[data-screen=reward]{background:linear-gradient(#3a2a22 0%,#6a4034 42%,#241c16 100%)}.stage[data-screen=rest]{background:radial-gradient(circle at 50% 42%,#f08c3c6b,#0000 28%),linear-gradient(#1b2430,#3a241c)}.stage[data-screen=win]{color:var(--ink);background:linear-gradient(#f3ddb0 0%,#8fb073 46%,#24543c 100%)}.stage[data-screen=lose]{background:linear-gradient(#2c3648 0%,#1a2030 62%,#12151c 100%)}.topbar{padding:calc(10px + env(safe-area-inset-top)) 12px 6px;justify-content:space-between;align-items:center;gap:8px;display:flex}.titles{text-align:center;flex-direction:column;min-width:0;display:flex}.titles strong{font-size:18px}.eyebrow,.kicker{letter-spacing:.12em;opacity:.72;text-transform:none;font-size:11px}.ghost,.hp-chip{background:#fff6e824;border:0;border-radius:999px;min-height:40px;padding:8px 12px}.stage[data-screen=win] .ghost,.stage[data-screen=win] .hp-chip{background:#241c1614}.caption,.flavor,.lede{text-align:center;margin:0;line-height:1.45}.caption{opacity:.86;padding:0 16px 4px;font-size:13px}.flavor{opacity:.8;font-size:13px}.scroll{min-height:0;padding:8px 16px calc(18px + env(safe-area-inset-bottom));flex-direction:column;flex:1;gap:12px;display:flex;overflow:auto}.stage[data-screen=reward] .scroll,.stage[data-screen=rest] .scroll,.stage[data-screen=win] .scroll,.stage[data-screen=lose] .scroll{justify-content:center}.center-copy{text-align:center;justify-content:center;align-items:center}.title-copy{gap:10px}h1,h2{margin:0;font-weight:800}h1{letter-spacing:.08em;font-size:40px}.lede{opacity:.86;font-size:16px}.hero{align-items:flex-end;gap:8px;display:flex}.hero .actor{width:120px}.lantern{width:64px}.rules-brief,.rules-list,.stats{text-align:left;flex-direction:column;gap:8px;width:min(100%,340px);margin:0;padding:0;font-size:14px;line-height:1.45;list-style:none;display:flex}.rules-brief li,.stats li{background:#0000002e;border-radius:12px;padding:8px 10px}.stage[data-screen=win] .rules-brief li,.stage[data-screen=win] .stats li{background:#fff6e873}.primary,.quiet{border-radius:999px;min-height:48px;padding:12px 18px;font-weight:800}.primary{background:var(--gold);color:var(--ink);border:3px solid var(--ink);box-shadow:0 5px 0 var(--ink)}.primary:active{box-shadow:0 2px 0 var(--ink);transform:translateY(3px)}.quiet{background:0 0;border:2px solid}.wide{width:min(100%,340px)}.danger-text{color:#9d2c2c}.enemy-zone{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;min-height:0;padding:0 14px;display:flex}.intent{color:var(--ink);text-align:center;background:#fff6e8f0;border-radius:16px;padding:6px 10px 7px;animation:1.8s ease-in-out infinite bob;box-shadow:0 6px #241c162e}.intent p{margin:2px 0 0;font-size:13px;font-weight:700}.intent-row{justify-content:center;gap:6px;display:flex}.chip{background:#fff;border-radius:999px;align-items:center;gap:3px;padding:2px 7px 2px 4px;font-weight:800;display:inline-flex}.chip .icon{width:18px;height:18px}.chip.sword{color:var(--coral)}.chip.shield{color:#3d74d6}.chip.up{color:#c4553a}.chip.down{color:#5d6d86}.chip.drop{color:#7a45b5}.chip.crack{color:#d06a22}.coach{opacity:.85;text-align:center;margin:0;font-size:12px}.sprite-wrap{width:min(158px,30vh);position:relative}.sprite-wrap .actor{transform-origin:bottom;width:100%;height:auto;animation:2.6s ease-in-out infinite idle;display:block}.avatar{flex:none;width:74px;position:relative}.avatar .actor{width:100%;height:auto;display:block}.end-art{width:min(180px,40vw);margin-bottom:4px}.block-badge{color:#fff;background:#4c8dff;border:2px solid #17315f;border-radius:50%;place-items:center;min-width:32px;height:32px;padding:0 6px;font-weight:800;display:grid;position:absolute;bottom:8px;right:0;box-shadow:0 2px #00000040}.hit{filter:brightness(1.45)saturate(1.2)}.plate,.readout{flex-direction:column;gap:4px;width:min(100%,320px);display:flex}.hp-line{font-variant-numeric:tabular-nums;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;font-size:13px;font-weight:700;display:grid}.bar{background:#00000059;border:1px solid #fff6e840;border-radius:99px;height:10px;overflow:hidden}.bar>span{background:linear-gradient(90deg,#ff8d7a,#e23d3d);height:100%;display:block}.pills{flex-wrap:wrap;gap:4px;min-height:22px;display:flex}.pill{background:#fff6e829;border-radius:999px;padding:2px 7px;font-size:12px;font-weight:800}.pill.strength{background:#e25b4a47}.pill.vulnerable{background:#e07a3d4d}.pill.weak{background:#7f8ea359}.pill.poison{background:#8d5bd159}.pill.power{background:#e0a10647}.player-zone{align-items:center;gap:10px;padding:4px 14px 2px;display:flex}.pips{align-items:center;gap:5px;display:flex}.pips i{background:#fff6e833;border-radius:50%;width:14px;height:14px;box-shadow:inset 0 0 0 2px #f0b429b3}.pips i.on{background:var(--gold);box-shadow:0 0 0 3px #f0b42940}.pips b{margin-left:4px;font-size:13px}.hint,.subhint{text-align:center;margin:4px 12px 0;font-size:13px;line-height:1.35}.hint{background:#00000047;border-radius:12px;padding:7px 10px;font-weight:700}.hint.danger{background:#e25b4a61}.hint.safe{background:#1f8a7861}.subhint{opacity:.85;min-height:0;margin-top:2px}.subhint:empty{display:none}.exhaust-link{opacity:.8;background:0 0;border:0;align-self:flex-end;margin:0 16px;font-size:12px;text-decoration:underline}.hand{overscroll-behavior-x:contain;scroll-snap-type:x mandatory;gap:8px;min-height:0;padding:8px 12px 2px;display:flex;overflow-x:auto}.hand::-webkit-scrollbar{height:0}.empty-hand{opacity:.8;margin:auto;font-size:14px}.card{scroll-snap-align:center;height:156px;color:var(--ink);text-align:center;background:linear-gradient(#e25b4a,#e25b4a) top/100% 8px no-repeat,linear-gradient(#ffffffb3,#0000 30%),#fff8ee;border:0;border-radius:14px;flex-direction:column;flex:0 0 108px;align-items:center;gap:2px;padding:22px 8px 8px;display:flex;position:relative;box-shadow:0 6px #241c1638}.card.skill{background:linear-gradient(#1f8a78,#1f8a78) top/100% 8px no-repeat,linear-gradient(#fff,#0000 30%),#fff8ee}.card.power{background:linear-gradient(#e0a106,#e0a106) top/100% 8px no-repeat,linear-gradient(#fff,#0000 30%),#fff8ee}.card:active{transform:translateY(3px);box-shadow:0 2px #241c1638}.card.locked{filter:saturate(.45)brightness(.95)}.card.hot .ctext{color:#b4532a;font-weight:800}.card .cost{background:var(--ink);width:24px;height:24px;color:var(--cream);border-radius:50%;place-items:center;font-size:13px;font-weight:800;display:grid;position:absolute;top:12px;left:6px}.card.attack .cost{background:var(--coral)}.card.skill .cost{background:var(--moss)}.card.power .cost{background:#c9891a}.card .kind{opacity:.6;font-size:10px;position:absolute;top:14px;right:8px}.card .cname{font-size:15px;font-weight:800}.card .art{color:var(--coral);place-items:center;height:32px;display:grid}.card.skill .art{color:var(--moss)}.card.power .art{color:#c9891a}.card .art .icon{width:28px;height:28px}.card .ctext{-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:11px;line-height:1.3;display:-webkit-box;overflow:hidden}.dock{padding:6px 12px calc(10px + env(safe-area-inset-bottom));grid-template-columns:72px 1fr 72px;place-items:center;gap:8px;display:grid}.pile{background:#00000038;border:2px solid #fff6e873;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;width:64px;height:64px;line-height:1.1;display:flex}.pile small{opacity:.75;font-size:11px}.pile strong{font-size:18px}.endturn{border:3px solid var(--ink);width:84px;height:84px;color:var(--ink);box-shadow:0 6px 0 var(--ink);background:#e7d3a4;border-radius:50%;font-weight:800;line-height:1.05}.endturn.awake{background:var(--gold);box-shadow:0 6px 0 var(--ink), 0 0 0 6px #f0b42959}.endturn:active{transform:translateY(3px)}.map-board{flex:1;min-height:280px;position:relative}.map-lines{width:100%;height:100%;position:absolute;inset:0;overflow:visible}.map-lines .edge{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-width:3px}.edge.idle{stroke:#fff6e847}.edge.open{stroke:var(--gold);stroke-width:4px}.edge.walked{stroke:#fff6e8d1}.node{z-index:1;border:3px solid var(--ink);width:74px;height:74px;box-shadow:0 4px 0 var(--ink);color:var(--ink);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:1px;font-size:13px;font-weight:800;display:flex;position:absolute;transform:translate(-50%,-50%)}.node .icon{width:22px;height:22px}.node.fight{background:#f6c7be}.node.rest{background:#f6d7a2}.node.elite{background:#e4c8f4}.node.boss{background:var(--gold)}.node.done{filter:saturate(.7)}.node.locked,.node:disabled{opacity:.4}.node.here{box-shadow:0 0 0 4px #fff6e8d9, 0 4px 0 var(--ink)}.node.ready{animation:1.35s ease-in-out infinite pulse}.map-foot{padding:8px 14px calc(12px + env(safe-area-inset-bottom));justify-content:space-between;align-items:center;font-size:13px;display:flex}.map-foot .quiet{min-height:40px;padding:8px 14px}.rewards{flex-direction:column;gap:10px;display:flex}.reward{text-align:left;width:100%;min-height:104px;color:var(--ink);background:#fff8ee;border:0;border-radius:16px;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px;display:grid;box-shadow:0 6px #241c1640}.reward.attack{box-shadow:inset 6px 0 0 var(--coral), 0 6px 0 #241c1640}.reward.skill{box-shadow:inset 6px 0 0 var(--moss), 0 6px 0 #241c1640}.reward.power{box-shadow:inset 6px 0 #e0a106,0 6px #241c1640}.reward .cost{background:var(--ink);width:36px;height:36px;color:var(--cream);border-radius:50%;place-items:center;font-weight:800;display:grid}.reward.attack .cost{background:var(--coral)}.reward.skill .cost{background:var(--moss)}.reward.power .cost{background:#c9891a}.reward-copy{flex-direction:column;gap:2px;display:flex}.reward-copy strong{font-size:18px}.reward-copy span:last-child{font-size:13px;line-height:1.35}.reward .art{color:var(--coral)}.reward.skill .art{color:var(--moss)}.reward.power .art{color:#c9891a}.reward .icon{width:36px;height:36px}.reward:active{transform:translateY(3px)}.fire{width:min(180px,50vw)}.scrim{z-index:50;background:#120e0a80;align-items:end;padding:12px;display:grid;position:absolute;inset:0}.sheet{background:var(--cream);color:var(--ink);max-height:min(78dvh,680px);padding:8px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px;flex-direction:column;gap:10px;display:flex;overflow:auto;box-shadow:0 16px 40px #0000004d}.grabber{background:#241c1633;border-radius:99px;width:42px;height:5px;margin:4px auto 2px}.sheet-list{flex-direction:column;gap:8px;display:flex}.sheet-card{background:#fff;border-radius:14px;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:10px;display:grid}.sheet-card .cost{background:var(--ink);width:28px;height:28px;color:var(--cream);border-radius:50%;place-items:center;font-weight:800;display:grid}.sheet-card.attack .cost{background:var(--coral)}.sheet-card.skill .cost{background:var(--moss)}.sheet-card.power .cost{background:#c9891a}.sheet-card strong{display:block}.sheet-card em{opacity:.6;font-size:12px;font-style:normal}.sheet-card p{margin:4px 0 0;font-size:13px;line-height:1.4}.floater{z-index:40;pointer-events:none;text-shadow:0 2px #00000059;font-size:28px;font-weight:800;animation:.76s ease-out forwards float-up;position:absolute;transform:translate(-50%)}.floater.dmg{color:#ff5a45;-webkit-text-stroke:7px #2a160f;paint-order:stroke fill;font-size:42px}.floater.blocked{color:#d5e4ff;font-size:20px}.floater.block{color:#b7d4ff;font-size:22px}.floater.poison{color:#e4ccff;font-size:22px}.floater.status{color:#ffe3a3;font-size:18px}.ghost-card{z-index:45;width:88px;height:42px;color:var(--ink);pointer-events:none;background:#fff8ee;border-radius:10px;place-items:center;font-weight:800;transition:transform .38s cubic-bezier(.2,.8,.2,1),opacity .38s;display:grid;position:absolute;box-shadow:0 10px 24px #00000047}.confetti{pointer-events:none;position:absolute;inset:0;overflow:hidden}.confetti i{border-radius:2px;width:8px;height:14px;animation:1.8s ease-in forwards fall;position:absolute;top:-12px}.confetti i:first-child{background:#e25b4a;animation-delay:50ms;left:12%}.confetti i:nth-child(2){background:#f0b429;animation-delay:.2s;left:28%}.confetti i:nth-child(3){background:#1f8a78;animation-delay:0s;left:44%}.confetti i:nth-child(4){background:#fff;animation-delay:.3s;left:58%}.confetti i:nth-child(5){background:#e25b4a;animation-delay:.12s;left:70%}.confetti i:nth-child(6){background:#f0b429;animation-delay:.24s;left:82%}.confetti i:nth-child(7){background:#8d5bd1;animation-delay:.4s;left:20%}.confetti i:nth-child(8){background:#4c8dff;animation-delay:80ms;left:90%}#app.shake{animation:.28s linear shake}#app.shake-big{animation:.34s linear shake-big}.card.wiggle{animation:.28s wiggle}.journal{padding:22px 18px}.journal h2{margin-bottom:8px;font-size:22px}.journal h3{margin:16px 0 6px;font-size:14px}.journal ol,.deck-mini{flex-direction:column;gap:6px;margin:0;padding-left:18px;line-height:1.4;display:flex}.deck-mini{max-height:280px;padding:0;list-style:none;overflow:auto}.deck-mini li{background:#ffffff73;border-radius:10px;align-items:baseline;gap:8px;padding:6px 8px;display:flex}.deck-mini b{width:1.2em}.deck-mini span{opacity:.6;margin-left:auto;font-size:12px}.log{max-height:240px;font-size:13px;overflow:auto}.note{opacity:.7;font-size:12px}@keyframes bob{50%{transform:translateY(-4px)}}@keyframes idle{50%{transform:translateY(-3px)scale(1.02,.98)}}@keyframes pulse{50%{transform:translate(-50%,-50%)scale(1.07)}}@keyframes float-up{0%{opacity:0;transform:translate(-50%,8px)scale(.8)}18%{opacity:1;transform:translate(-50%,-6px)scale(1.08)}to{opacity:0;transform:translate(-50%,-52px)scale(1)}}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(5px)}60%{transform:translate(-3px)}80%{transform:translate(2px)}}@keyframes shake-big{0%,to{transform:translate(0)}20%{transform:translate(-10px)}40%{transform:translate(8px)}60%{transform:translate(-5px)}80%{transform:translate(3px)}}@keyframes wiggle{25%{transform:translate(-4px)}75%{transform:translate(4px)}}@keyframes fall{to{opacity:.15;transform:translateY(105vh)rotate(200deg)}}@media (width<=360px){.card{flex-basis:96px;height:146px}.endturn{width:72px;height:72px}.node{width:64px;height:64px}}@media (height<=700px){.sprite-wrap{width:min(120px,24vh)}.card{height:136px}.flavor,.coach{display:none}}@media (width>=1040px){body{place-items:center;padding:24px;display:grid}#frame{filter:drop-shadow(0 24px 40px #00000059);align-items:stretch;height:auto}#app{aspect-ratio:9/16;border:3px solid var(--ink);border-right:0;border-radius:28px 0 0 28px;flex:none;width:min(420px,56.25dvh - 31.5px);height:auto}#companion{width:300px;color:var(--ink);border:3px solid var(--ink);background:#f4e7d1;border-radius:0 28px 28px 0;max-height:calc(1.77778*min(420px,56.25dvh - 31.5px));display:block;overflow:auto}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
