.ys-game--fog-harbor,.ys-game--ember-breach{max-width:1000px}
.arc-btn{border:1px solid #526260;background:#25363a;color:#fff5e5;border-radius:9px;padding:.6em .75em;font:700 .9rem/1.25 system-ui;cursor:pointer}
.arc-btn:hover,.arc-btn:focus-visible{border-color:#b6f1c3}
.arc-btn:disabled{opacity:.55;cursor:default}
.ys-board--fog-harbor{background:#14262b;display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,230px);gap:14px}
.fh-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}
.fh-cell{position:relative;display:grid;place-items:center;aspect-ratio:1.23;min-width:0;padding:0;border:1px solid transparent;background:#293e3b;color:#b0a785;font:700 clamp(.75rem,2.5vw,1.35rem)/1 system-ui;cursor:pointer}
.fh-cell:nth-child(odd){filter:brightness(1.045)}
.fh-cell.water{background:repeating-linear-gradient(0deg,#193741 0 9px,#224550 9px 10px)}
.fh-cell.cover{background:#394837}
.fh-cell.beacon{background:#504a32;color:#ffd98c}
.fh-cell.move{border-color:#669c82;color:#b0eac3;background:#365448}
.fh-cell.target{border-color:#ffa187;box-shadow:inset 0 0 0 1px #ffa187}
.fh-cell:focus-visible{outline:2px solid #fff5df;z-index:1}
.fh-token{display:grid;place-items:center;width:60%;aspect-ratio:1;border:1px solid currentColor;border-radius:50%;line-height:1}
.fh-token.ally{color:#adeec5;background:#215953}.fh-token.enemy{color:#ff9d80;background:#653c35}
.fh-token.selected{outline:2px solid currentColor;outline-offset:2px}
.fh-cell i{position:absolute;bottom:6%;width:60%;height:3px;background:linear-gradient(to right,#a8e9c2 var(--hp),#162529 var(--hp))}
.fh-cell:has(.enemy) i{background:linear-gradient(to right,#ff9d80 var(--hp),#162529 var(--hp))}
.fh-team{display:grid;gap:6px}.fh-team button{text-align:left}
.fh-team button[aria-pressed=true]{border-color:#ace8bc;background:#31534a}
.fh-team small{display:block;font-weight:500;color:#d2ddd3;margin-top:4px}
.fh-notice{color:#d3ded8;font:500 .85rem/1.4 system-ui;min-height:2.8em}
.fh-end{width:100%;background:#a8e9c2;color:#162728}
.ys-board--ember-breach{background:#171f22;color:#fbebd8}
.eb-frame{position:relative}
.eb-frame canvas{width:100%;height:auto;display:block;border:1px solid #655341;border-radius:10px;background:#1a2023;touch-action:none;cursor:crosshair}
.eb-overlay{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;padding:12px;text-align:center;background:#0a1015cc;border-radius:10px}
.eb-overlay[hidden]{display:none}.eb-overlay strong{font:800 clamp(1.2rem,5vw,2.4rem)/1.2 system-ui}.eb-overlay p{margin:0 0 5px;font:.9rem/1.35 system-ui}
.eb-overlay button{background:#ffbd70;color:#171f22}
.eb-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-top:10px}
.eb-controls span{flex:1 0 200px;color:#c9d0c9;font:.84rem/1.35 system-ui}
.eb-controls .arc-btn{touch-action:manipulation}
@media(max-width:640px){.ys-board--fog-harbor{grid-template-columns:minmax(0,1fr);gap:8px}.fh-team{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.fh-team button{padding:6px;font-size:.72rem}.fh-team small{font-size:.65rem}.fh-notice{min-height:0;margin:.55em 0}.ys-board--ember-breach,.ys-board--fog-harbor{padding:8px}.ys-game--fog-harbor .ys-game__bar,.ys-game--ember-breach .ys-game__bar{gap:7px}.ys-game--fog-harbor .ys-game__restart,.ys-game--ember-breach .ys-game__restart{padding:6px 8px;font-size:.75rem}}
