[data-game=minesweeper] .game-stage{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);place-items:stretch stretch}.ms{flex-direction:column;gap:8px;width:100%;min-width:0;height:100%;min-height:0;padding:8px 10px;display:flex}.ms-bar{justify-content:space-between;align-items:center;gap:8px;font-weight:800;display:flex}.ms-bar>*{border-radius:var(--r-pill);background:color-mix(in srgb, var(--surface) 80%, transparent);border:1px solid var(--border);padding:6px 12px}.ms-bar>:empty{display:none}.ms-time{color:var(--text-muted);font-variant-numeric:tabular-nums}.ms-teach{text-align:center;color:var(--text-muted);margin:0;font-size:.95rem}.ms-wrap{touch-action:pan-x pan-y;overscroll-behavior:contain;background:color-mix(in srgb, var(--text) 9%, var(--surface));border-radius:18px;flex:0 auto;min-width:0;min-height:0;margin-block:auto;padding:8px;display:flex;overflow:auto;box-shadow:inset 0 2px 8px #00000012}.ms-board{grid-template-columns:repeat(var(--w), var(--cs));grid-auto-rows:var(--cs);gap:3px;margin:auto;display:grid}.ms-cell{width:var(--cs);height:var(--cs);cursor:pointer;background:linear-gradient(180deg, color-mix(in srgb, var(--primary) 26%, var(--surface)), color-mix(in srgb, var(--primary) 40%, var(--surface)));box-shadow:inset 0 -3px 0 color-mix(in srgb, var(--primary) 45%, transparent), inset 0 2px 0 #ffffff59;color:var(--text);font:800 calc(var(--cs) * .5)/1 var(--font-head);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border:0;border-radius:8px;place-items:center;padding:0;transition:background .12s;display:grid}.ms-cell:hover:not(.is-open){background:linear-gradient(180deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), color-mix(in srgb, var(--primary) 32%, var(--surface)))}.ms-cell:focus-visible{outline:3px solid var(--text);outline-offset:-2px;z-index:1;position:relative}.ms-cell.is-open{background:color-mix(in srgb, var(--surface) 94%, var(--primary));cursor:default;box-shadow:inset 0 1px 3px #00000012}.ms-cell[data-n="1"]{color:#2f6f9e}.ms-cell[data-n="2"]{color:#2f7a55}.ms-cell[data-n="3"]{color:#9c4f17}.ms-cell[data-n="4"]{color:#6b4fa0}.ms-cell[data-n="5"]{color:#8a3b4f}.ms-cell[data-n="6"]{color:#2b6e6e}.ms-cell[data-n="7"],.ms-cell[data-n="8"]{color:var(--text)}:root[data-theme=dark] .ms-cell.is-open[data-n],.ms-cell.is-open[data-n]{filter:none}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .ms-cell[data-n="1"]{color:#8db8e0}:root:not([data-theme=light]) .ms-cell[data-n="2"]{color:#8fd3a8}:root:not([data-theme=light]) .ms-cell[data-n="3"]{color:#f0a868}:root:not([data-theme=light]) .ms-cell[data-n="4"]{color:#b3a9f0}:root:not([data-theme=light]) .ms-cell[data-n="5"]{color:#f0a3b5}:root:not([data-theme=light]) .ms-cell[data-n="6"]{color:#7fd1d1}}:root[data-theme=dark] .ms-cell[data-n="1"]{color:#8db8e0}:root[data-theme=dark] .ms-cell[data-n="2"]{color:#8fd3a8}:root[data-theme=dark] .ms-cell[data-n="3"]{color:#f0a868}:root[data-theme=dark] .ms-cell[data-n="4"]{color:#b3a9f0}:root[data-theme=dark] .ms-cell[data-n="5"]{color:#f0a3b5}:root[data-theme=dark] .ms-cell[data-n="6"]{color:#7fd1d1}.ms-cell.is-flag{color:#b8467a}:root[data-theme=dark] .ms-cell.is-flag{color:#f0a3b5}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .ms-cell.is-flag{color:#f0a3b5}}.ms-flagmode{border-radius:var(--r-pill)}.gp-ms{background:color-mix(in srgb, var(--text) 9%, var(--surface));border-radius:16%;grid-template-columns:repeat(5,1fr);gap:4%;padding:6%;display:grid;transform:rotate(-4deg)}.gp-ms span{font:800 clamp(.75rem, 3.6vw, 1.15rem)/1 var(--font-head);border-radius:18%;place-items:center;display:grid}.gp-ms .is-c{background:linear-gradient(180deg, color-mix(in srgb, var(--primary) 26%, var(--surface)), color-mix(in srgb, var(--primary) 40%, var(--surface)));box-shadow:inset 0 -3px 0 color-mix(in srgb, var(--primary) 45%, transparent), inset 0 2px 0 #ffffff59}.gp-ms .is-o{background:color-mix(in srgb, var(--surface) 94%, var(--primary))}.gp-ms .is-f{color:#b8467a}.gp-ms [data-n="1"]{color:#2f6f9e}.gp-ms [data-n="2"]{color:#2f7a55}.gp-ms [data-n="3"]{color:#9c4f17}.ms-cell.is-pebble{background:var(--surface)}.ms-cell.is-pebble:after{content:"";background:radial-gradient(circle at 35% 30%,#b7bec6,#6b737c);border-radius:50%;width:58%;height:50%;box-shadow:inset 0 -2px 4px #00000040}.ms-cell.is-proof{outline:3px solid var(--warn);outline-offset:-3px}.ms-tools{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;display:flex}.ms-tools .btn{min-height:44px}.ms-flagmode{gap:6px}.ms-flagmode svg{width:20px;height:20px}.ms-flagmode.is-on{background:var(--primary);color:var(--on-primary,#10201a);border-color:var(--primary)}.ms-zoom{gap:2px;display:inline-flex}.ms-zoom .btn-icon{width:44px;font-size:1.3rem}.ms-showtime{color:var(--text-muted);align-items:center;gap:6px;min-height:44px;font-size:.9rem;display:inline-flex}.ms-pick{text-align:center;justify-content:center;align-items:center}.ms-pick-title{font:800 1.2rem var(--font-head);margin:0}.ms-pick-row{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.ms-pick-row .btn{flex-direction:column;min-width:96px}.ms-custom{border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;justify-content:center;align-items:end;gap:8px;padding:10px;display:flex}.ms-custom label{gap:2px;font-size:.9rem;display:grid}.ms-custom input{width:84px}
