.stage-sheet{position:absolute;inset:0;z-index:6;overflow:auto;overscroll-behavior:contain;padding:10px 12px;background:var(--panel);color:var(--fg);border:var(--bw) solid var(--edge);border-radius:var(--r)}
.stage-sheet[hidden]{display:none}
.stage-sheet .sheet-head{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;margin-bottom:6px}
.stage-sheet .sheet-head .small{width:100%;margin:0;opacity:.85}
.sub{font-size:.95rem;margin:10px 0 4px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mini2{min-height:44px;font-size:.8rem;padding:2px 10px}
body[data-battle=on] #sheet-battle{top:auto;max-height:48%}
body[data-battle=on] #sheet-battle>:not(.fight):not(.sheet-head){display:none}
body:not([data-battle=on]) #b-back{display:none}
.army{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.army .wave{width:64px;height:64px;min-height:0;padding:2px;border-radius:14px;display:grid;place-items:center}
.army .wave canvas{width:56px;height:56px}
.me{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
#me-art{width:110px;height:110px;flex:none}
.me-stats{flex:1 1 200px;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:0;font-size:.85rem}
.me-stats dt{font-weight:700}.me-stats dd{margin:0;overflow-wrap:anywhere}
.hudtop{position:absolute;left:0;right:0;top:0;z-index:8;display:flex;flex-direction:column;gap:4px;padding:6px;pointer-events:none}
.hudtop>*{pointer-events:auto}
.tut{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:4px 8px;border:2px solid var(--edge);border-radius:12px;background:var(--panel);color:var(--fg);font-size:.8rem}
.tut[hidden],.eggs[hidden],.nodes[hidden]{display:none}
.tut p{margin:0;font-weight:800;flex:1 1 auto}
.tut-steps{display:flex;gap:4px;margin:0;padding:0;list-style:none;flex:1 1 100%;order:3}
.tut-steps li{flex:1 1 0;font-size:.62rem;text-align:center;padding:1px 2px;border-radius:6px;border:1px solid var(--edge);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tut-steps li[data-state=done]{background:var(--accent);color:var(--onAccent)}
.tut-steps li[data-state=now]{outline:2px solid var(--accent);font-weight:800}
.eggs{display:flex;gap:6px;flex-wrap:wrap}
.egg{min-height:44px;min-width:64px;padding:2px 8px;border-radius:12px;display:grid;gap:2px;font-size:.75rem;text-align:center}
.egg .bar{display:block;height:6px;border-radius:3px;background:color-mix(in srgb,var(--edge) 25%,transparent);overflow:hidden}
.egg .bar i{display:block;height:100%;background:var(--accent)}
.nodes{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9;width:min(92%,380px);display:grid;gap:8px;padding:12px;border:3px solid var(--edge);border-radius:16px;background:var(--panel);color:var(--fg);box-shadow:6px 6px 0 var(--edge)}
.nodes p{margin:0}.nodes a{display:flex;align-items:center;justify-content:center;min-height:48px;border:3px solid var(--edge);border-radius:12px;font-weight:800;color:var(--onAccent);background:var(--accent);text-decoration:none}
body[data-tut=on] .face button:not(.tut-target):not(.tut-free):not(#speaker):not(#radio-again):not([type=submit]),body[data-tut=on] #joy{opacity:.35;pointer-events:none}
.tut-target{outline:4px solid var(--accent);outline-offset:3px;animation:tutpulse 1.2s ease-in-out infinite}
@keyframes tutpulse{50%{outline-offset:7px}}
@media (prefers-reduced-motion:reduce){.tut-target{animation:none;outline-width:6px}}
.foes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px}
.foe{width:100%;display:grid;text-align:left;min-height:52px;padding:4px 10px}
.foe span{font-size:.75rem;font-weight:500}
body[data-battle=on] #sheet-battle .prep,body:not([data-battle=on]) #sheet-battle .fight{display:none}
.tickline{margin:0 0 6px;font-weight:800}
.life{display:flex;flex-wrap:wrap;gap:4px 10px;padding:0;list-style:none;margin:6px 0}
.chip{width:44px;min-width:44px;height:44px;border-radius:50%;padding:0}
.warn{border-style:dashed}
.stage-sheet{top:var(--hudh,0)}
.honest-footer{font-size:.8rem;margin-top:8px}
