/* 数字炸弹：10×10 数字格 */
.nb-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.nb-mode { font: inherit; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.nb-mode:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.nb-mode.on { background: var(--ink); color: #fff; }
.nb-status { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.nb-turn { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.nb-turn.p0 { color: var(--ink); } .nb-turn.p1 { color: #2563eb; } .nb-turn.p2 { color: #16a34a; } .nb-turn.p3 { color: #c026d3; }
.nb-range { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.nb-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 560px; margin: 0 auto; }
.nb-cell { min-width: 0; aspect-ratio: 1; font: inherit; font-weight: 750; font-size: clamp(11px, 3.1vw, 19px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; border: 1.5px solid var(--ink); border-radius: 9px; background: #fff; cursor: pointer; padding: 0; box-shadow: 0 3px 0 var(--ink); transition: transform .08s, box-shadow .08s, opacity .25s, background .2s; -webkit-tap-highlight-color: transparent; }
.nb-cell:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.nb-cell.picked { background: var(--soft); }
/* 已出局的数字：扁平、变淡，看得出不能再点 */
.nb-cell.gone { opacity: .12; box-shadow: none; transform: scale(.86); cursor: default; }
.nb-cell.bomb { background: var(--accent); border-color: var(--ink); position: relative; animation: pop .4s ease-out; }
.nb-cell.bomb::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: var(--ink); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1.15); } }
.shake { animation: shake .45s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@media (max-width: 420px) { .nb-grid { gap: 4px; } .nb-cell { border-radius: 7px; box-shadow: 0 2px 0 var(--ink); } .stage { padding: 12px; } }
