.back { display: inline-block; margin-bottom: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nono { display: grid; gap: 3px; justify-content: start; user-select: none; touch-action: manipulation; }
.nono .corner { background: transparent; }
.cc, .rc { color: var(--navy); font-weight: 700; font-size: clamp(9px, 2.4vw, 13px); display: grid; place-items: center; }
.cc { align-content: end; gap: 1px; padding-bottom: 3px; }
.cc span { line-height: 1.05; }
.rc { grid-auto-flow: column; gap: 4px; justify-content: end; padding-right: 5px; min-width: 26px; }
.cell {
  width: clamp(26px, 8vw, 40px); aspect-ratio: 1; border: 1px solid #cdd8e4; background: #fff;
  border-radius: 4px; padding: 0; cursor: pointer;
}
.cell.fill { background: var(--navy); border-color: var(--navy-deep); }
.cell.x { position: relative; }
.cell.x::after { content: '✕'; color: var(--bad); font-weight: 800; font-size: 60%; }
.msg { min-height: 22px; margin: 12px 0; font-weight: 700; }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--good); }

.reveal { text-align: center; }
.reveal .pic { display: grid; gap: 2px; justify-content: center; margin: 12px auto; }
.reveal .pic span { width: 16px; height: 16px; border-radius: 3px; background: var(--surface-2); }
.reveal .pic span.on { background: var(--amber); }
.hidden { display: none; }
