/* The table tennis table (pong.js), inside its game sheet (sheet.css). The table is a canvas sized to fit the court. */
.pong-court { position: relative; display: flex; justify-content: center; align-items: center; height: min(620px, calc(100dvh - 190px)); margin-top: 6px; touch-action: none; }
.pong-court canvas { display: block; background: #2f6f62 var(--grain); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 4px 0 #1f2a4440; rotate: -.4deg; cursor: none; }
.pong-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; }
.pong-end[hidden] { display: none; }
.pong-result { margin: 0; padding: 4px 12px 6px; background: #efd276 var(--grain); border: 2px solid var(--ink); box-shadow: 3px 3px 0 #1f2a44; rotate: -4deg; font: 26px 'Permanent Marker', cursive; }
.pong-buttons { display: flex; gap: 10px; }
.pong-buttons button { min-width: 112px; min-height: 54px; font-size: 19px; font-weight: 900; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); background: #f2d478; rotate: -1deg; }
.pong-buttons .pong-done { background: #ede7d4; rotate: 1deg; }
@media (min-width: 701px) { #pong { width: min(440px, calc(100vw - 32px)); } }
@media (max-width: 700px) { .pong-court { height: min(calc(100dvh - 170px), calc((100vw - 24px) * 1.6)); } }
