.t3-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8px;
  background: var(--line);
  border-radius: var(--radius);
}
[data-theme="retro"] .t3-board { background: var(--a2); padding: 0; gap: 6px; border: 6px solid var(--c-bg); box-shadow: 0 0 18px var(--a2); }
.t3-cell {
  border: 0;
  background: var(--c-bg);
  border-radius: calc(var(--radius) - 6px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 13vw, 80px);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
[data-theme="retro"] .t3-cell { border-radius: 0; font-weight: 400; font-size: clamp(28px, 9vw, 54px); }
.t3-cell:hover:not(:disabled) { background: var(--panel-2); }
.t3-cell:disabled { cursor: default; color: inherit; }
.t3-cell.x { color: var(--a1); }
.t3-cell.o { color: var(--a2); }
[data-theme="retro"] .t3-cell.x, [data-theme="retro"] .t3-cell.o { text-shadow: 0 0 10px currentColor; }
.t3-cell.placed { animation: t3-in .18s ease; }
.t3-cell.win { background: color-mix(in srgb, var(--a3) 22%, var(--c-bg)); }
@keyframes t3-in { from { transform: scale(.4); opacity: 0; } }
.t3-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t3-line line { stroke: var(--a3); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.t3-board.struck .t3-line line { animation: t3-strike .35s ease forwards; }
[data-theme="retro"] .t3-line line { stroke-linecap: square; filter: drop-shadow(0 0 4px var(--a3)); }
@keyframes t3-strike { to { stroke-dashoffset: 0; } }
