.gf-frame:has(.ms-game){overflow:hidden}
.gf-root:has(.ms-game){display:flex;min-height:0;overflow:hidden;padding:12px}
.ms-game{display:flex;flex-direction:column;width:100%;max-width:760px;min-width:0;min-height:0;margin:0 auto;color:#f6e9ee}
.ms-meta{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#e8b9be;font-variant-numeric:tabular-nums;flex-shrink:0}
.ms-meta button{padding:8px 12px}.ms-meta button[aria-pressed=true]{background:#683f54;color:#fff}
.ms-help,.ms-status{font-size:.8rem;line-height:1.4;margin:8px 0;flex-shrink:0}
.ms-scroll{min-height:44px;min-width:0;overflow:auto;overscroll-behavior:contain;border:1px solid #976f83;border-radius:10px;background:#241722;touch-action:pan-x pan-y}
.ms-board{display:grid;width:calc(var(--size)*44px);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.gf-frame .ms-cell{width:44px;height:44px;min-width:44px;min-height:44px;max-width:none;padding:0;border:1px solid #654353;border-radius:5px;background:linear-gradient(135deg,#523747,#34232f);color:#f8c4a9;font:800 1.25rem var(--font-body);box-shadow:inset 0 1px 1px #876175}
.gf-frame .ms-open{background:#251b26;border-color:#48333f;box-shadow:none;border-radius:0}
.ms-cell[data-number="1"]{color:#91bdff}.ms-cell[data-number="2"]{color:#8edaa1}.ms-cell[data-number="3"]{color:#ff969d}.ms-cell[data-number="4"]{color:#b8a7ff}.ms-cell[data-number="5"]{color:#f3b289}.ms-cell[data-number="6"]{color:#80dce0}.ms-cell[data-number="7"]{color:#f4e6d5}.ms-cell[data-number="8"]{color:#c4bec9}
.gf-frame .ms-mine{background:#6c3741}.ms-ember{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:42%;background:radial-gradient(circle at 35% 28%,#614b49,#100e13 65%);color:#f5a078;box-shadow:0 0 0 1px #da8967;font-size:24px}
@media(orientation:landscape) and (max-height:500px){.ms-help{font-size:.72rem;margin:4px 0}.ms-status{margin:4px 0}.gf-root:has(.ms-game){padding:6px 12px}}

.ms-board.ms-fit{width:100%;max-width:calc(var(--size)*44px)}
.gf-frame .ms-fit .ms-cell{box-sizing:border-box;width:100%;height:auto;min-width:0;min-height:0;aspect-ratio:1}
.ms-fit .ms-ember{width:80%;height:auto;aspect-ratio:1;font-size:1em}
