:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#f4efe6;--muted:#d5c7b0;--dim:#a89478;--bg:#120f0c;--panel:#100d0bd1;--line:#d6b07273;--ochre:#e0c089;--ember:#e07a3d;--pine:#8eae92;--danger:#d4654a;--focus:#f3ddb0;--serif:"Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;--sans:"Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;font-family:var(--sans);background:var(--bg);color:var(--ink)}*{box-sizing:border-box}html,body,#root{max-width:100%;min-height:100%;margin:0;overflow-x:hidden}body{min-height:100dvh}button,input{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}p{line-height:1.5}.app{min-height:100dvh;position:relative}.sky{z-index:0;position:fixed;inset:0}.canyon,.fortress{object-fit:cover;object-position:center 42%;width:100%;height:100%;position:absolute;inset:0}.fortress{z-index:1}.scrim{z-index:2;background:linear-gradient(#0806051f 0%,#0806050a 30%,#08060547 68%,#08060575 100%);position:absolute;inset:0}.torch{filter:blur(2px);background:radial-gradient(circle,#e07a3d59,#0000 70%);border-radius:50%;width:140px;height:140px;position:absolute}.app:before,.app:after{content:"";z-index:1;pointer-events:none;background:radial-gradient(circle,#e07a3d47,#0000 68%);width:180px;height:180px;animation:4.5s ease-in-out infinite flicker;position:fixed}.app:before{top:28vh;left:6vw}.app:after{animation-delay:-2s;top:36vh;right:10vw}@keyframes flicker{50%{opacity:.55}}.topbar,main{z-index:2;position:relative}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;padding:8px 12px 0;display:flex}.brand{flex-direction:column;min-width:0;display:flex}.brand strong{font-family:var(--serif);letter-spacing:.04em;font-size:1.15rem}.brand span,.fiction-inline,.kicker,.note{color:var(--muted)}.fiction-inline{max-width:36rem;font-size:.78rem}.kicker{letter-spacing:.08em;text-transform:none;margin-bottom:.2rem;font-size:.82rem}.top-actions,.row,.stores{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.stores{font-size:.85rem}.stores b{color:var(--ochre);font-variant-numeric:tabular-nums}.btn{border:1px solid var(--line);min-height:44px;color:var(--ink);background:#1c1610e0;border-radius:999px;padding:8px 14px}.btn.primary{background:linear-gradient(#a86432,#6e3c1d);border-color:#e0b56a}.btn.danger{background:#5c2a22;border-color:#d4654a}.btn.quiet,.btn.ghost{background:#14100cbf}.btn:disabled{opacity:.45;cursor:not-allowed}main{padding:8px 12px 16px}.title-screen,.sheet,.play{max-width:1100px;margin:0 auto}.title-screen{padding-top:4vh}h1,h2{font-family:var(--serif);letter-spacing:.03em;margin:.2rem 0 .6rem;font-weight:600}h1{text-shadow:0 10px 30px #00000073;font-size:clamp(2.4rem,8vw,5rem);line-height:1.05}.subtitle{color:var(--ochre);margin-top:0;font-size:1.15rem}.cast{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0;display:grid}.cast-card,.sheet,.dock,.modal,.unit-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px #00000047}.cast-card{padding:10px}.cast-card h2{font-size:1.15rem}.cast-card p,.sheet p{margin:.35rem 0}.portrait{aspect-ratio:3/4;object-fit:cover;object-position:center 18%;background:#2a241c;border-radius:12px;width:100%;display:block}.portrait.round,.portrait.token{aspect-ratio:1;object-position:center 15%;border-radius:50%;width:72px;height:72px}.portrait.token{width:70%;height:70%}.portrait.fallback{place-items:center;display:grid;overflow:hidden}.portrait.fallback svg{width:80%;height:80%}.cast.compact{grid-template-columns:repeat(3,72px);justify-content:start}.cast.compact .portrait{width:72px}.sheet{margin-top:12px;padding:16px}.sheet.narrow{max-width:720px}.speaker{grid-template-columns:120px 1fr;align-items:center;gap:12px;display:grid}.speaker .portrait{width:120px}.note{font-size:.92rem}.play{gap:12px;display:grid}.board-col{min-width:0}.board-frame{--cell:clamp(44px, (100dvh - 292px) / 7, 64px);width:min(100%, calc(var(--cell) * 5 + 1.6rem + 20px));margin-inline:auto}.cols,.board-row{grid-template-columns:1.4rem repeat(5, var(--cell));justify-content:center;gap:3px;display:grid}.cols{color:var(--dim);text-align:center;margin-bottom:4px;font-size:.75rem}.row-index{color:var(--dim);place-items:center;font-size:.75rem;display:grid}.cell{width:var(--cell);height:var(--cell);background:#5c442ab8;border:1px solid #f4efe624;border-radius:8px;min-width:0;min-height:0;padding:0;position:relative}.cell.rubble{background:#4a4036e0}.cell.slope{background:#181614eb}.cell.gate{box-shadow:inset 0 -3px #e07a3dd9}.cell.mark-move{outline:2px solid var(--pine)}.cell.mark-attack,.cell.mark-skill{outline:2px solid var(--ochre)}.cell.mark-intent{outline:2px dashed var(--ember)}.cell.mark-pending{outline:2px solid var(--focus);background:#e0b05a59}.cell.mark-cursor{box-shadow:inset 0 0 0 2px var(--focus)}.cell.signal:after{content:"";background:#d6cebe47;border-radius:50%;position:absolute;inset:18%}.timber{height:16%;opacity:calc(.45 + (var(--hp) * .55));background:repeating-linear-gradient(90deg,#6a4a28 0 6px,#3d2a16 6px 8px);border-radius:2px;position:absolute;top:42%;left:8%;right:8%}.token{place-items:center;display:grid;position:absolute;inset:8%}.token em{color:var(--ink);background:#000000b8;border-radius:999px;padding:0 4px;font-size:.68rem;font-style:normal;position:absolute;bottom:-2px;right:-2px}.glyph{width:78%;height:78%}.token.enemy .glyph{filter:drop-shadow(0 0 2px #0009)}.dock{padding:12px}.unit-card{align-items:center;gap:10px;padding:10px;display:flex}.hp{background:#2a241c;border-radius:99px;height:8px;margin-top:4px;display:block;overflow:hidden}.hp>span{background:linear-gradient(90deg,#8a3d22,#e0b56a);height:100%;display:block}.choices{gap:8px;display:grid}.choice,.roster button{text-align:left;border:1px solid var(--line);background:#16120ee0;border-radius:12px;min-height:44px;padding:8px 10px}.choice{flex-direction:column;display:flex}.choice strong{color:var(--ochre)}.choice:disabled{opacity:.45}.roster{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.roster .on{border-color:var(--focus)}.phase,.coach,.intents,.preview,.banner,.result,.log{border:1px solid var(--line);background:#0c0a08c7;border-radius:12px;margin:0 0 6px;padding:8px 10px}.phase{flex-wrap:wrap;justify-content:space-between;gap:8px;display:flex}.coach button{min-height:44px;margin-left:8px}.intents{margin:8px 0;padding-left:1.2rem}.preview{color:var(--ochre)}.banner{color:#ffd0c2}.log{max-height:160px;padding-left:1.2rem;overflow:auto}.legend{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:.85rem;display:flex}.swatch{border:1px solid var(--line);border-radius:3px;width:14px;height:14px;display:inline-block}.swatch.road{background:#6a4a30}.swatch.rubble{background:#4a4036}.swatch.slope{background:#1c1a18}.swatch.timber{background:#6a4a28}.swatch.gate{background:#e07a3d}.swatch.intent{border-style:dashed;border-color:var(--ember);background:0 0}.swatch.pending{background:#e0b56a}.cursor-read{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.modal-back{z-index:5;background:#0000008c;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{width:min(100%,520px);max-height:min(80dvh,720px);padding:16px;overflow:auto}.modal.menu details{margin-top:8px}.ending h1{font-size:clamp(2rem,6vw,3.4rem)}@media (width>=960px){.play{grid-template-columns:minmax(0,1fr) 340px;align-items:end}.dock{position:sticky;bottom:12px}.title-screen{padding-top:8vh}}@media (width<=720px){.cast{grid-template-columns:1fr}.cast-card{grid-template-columns:96px 1fr;align-items:center;gap:10px;display:grid}.speaker{grid-template-columns:88px 1fr}.dock{position:static}}html[data-motion=reduce] .app:before,html[data-motion=reduce] .app:after,html[data-motion=reduce] .torch{animation:none}@media (prefers-reduced-motion:reduce){.app:before,.app:after{animation:none}}
