/* games/ttt — Tic Tac Toe: an ink grid on the graph paper, X in ballpoint, O in red pen, tally marks below */
.ttt{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding-bottom:24px}
.ttt-board{width:min(320px,100%);aspect-ratio:1;overflow:visible;touch-action:manipulation}
.ttt-board path{pointer-events:none}
.ttt-board .cell{fill:transparent}
.ttt-board.my-turn .cell{cursor:pointer}
.ttt-board .ghost{opacity:.22}
.ttt-board .pen.pencil{stroke:var(--pencil);stroke-width:2.5;opacity:.85}
.ttt-board .winline{opacity:.92}
@keyframes ttt-draw{to{stroke-dashoffset:0}}
.ttt-drawtext{font-family:var(--font-title);font-weight:700;font-size:66px;fill:var(--pencil);transform-box:fill-box;transform-origin:center}
.ttt-drawtext.pop{animation:ttt-pop .4s var(--ease-pop) both}
@keyframes ttt-pop{from{transform:scale(.3) rotate(8deg);opacity:0}to{transform:none;opacity:1}}

/* round tally */
.ttt-tally{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;width:min(320px,100%)}
.ttt-side{display:flex;flex-direction:column;gap:2px;min-width:0}
.ttt-who{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.ttt-who .sym{font-family:var(--font-title);font-weight:700;font-size:28px;line-height:1;margin-right:6px;vertical-align:-2px}
.ttt-side.p1 .ttt-who{color:var(--red)}
.ttt-side svg{width:140px;height:30px;overflow:visible}
.ttt-draws{grid-column:1/-1;text-align:center;font-size:15px;color:var(--pencil);min-height:20px}
