/* The palette takes the former hints column; the four zones share the whiteboard area. */
.pong-root{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.pong-root[hidden]{display:none!important}
.pong-heading{display:flex;align-items:center;gap:20px;padding:6px 4px;flex:none}
.pong-heading h3{margin:0;flex:1;font-size:17px}.pong-heading strong{font-variant-numeric:tabular-nums;font-size:14px}
.pong-workbench{display:grid;grid-template-columns:minmax(150px,3fr) minmax(0,5fr);gap:16px;flex:1;min-height:0}
.pong-palette{display:flex;flex-direction:column;gap:7px;min-height:0;overflow:auto;padding:12px 16px;border-radius:20px;background:var(--card,#fff);color:var(--ink,#20354b)}
.pong-palette h4,.pong-palette p{margin:0}.pong-palette p{font-size:11px;line-height:1.4}
.pong-palette button{border:1px solid #8397ac55;border-radius:10px;padding:6px 12px;background:var(--inner,#edf3fa);color:var(--ink,#182d42);touch-action:none;font:inherit;font-size:12px;flex:none;min-height:34px}
.pong-palette .pong-piece-option{display:flex;align-items:center;gap:16px;text-align:left;min-height:43px}
.pong-palette svg{display:block;width:34px;height:34px;flex:none}.pong-palette button.selected{outline:2px solid #1470dc;outline-offset:-2px}.pong-palette button:disabled{opacity:.5}
.pong-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;min-width:0;min-height:0}
.pong-zone{box-sizing:border-box;display:grid;grid-template-rows:minmax(0,1fr);gap:0;border:1px solid #b9c9da;border-radius:16px;background:var(--card,#fff);color:var(--ink,#20354b);padding:8px;min-width:0;min-height:0;overflow:hidden}
.pong-zone h4{margin:0;font-size:12px;line-height:18px}.pong-zone p{margin:0;font-size:11px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pong-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));height:100%;width:auto;max-width:100%;aspect-ratio:1;justify-self:center;min-height:0;touch-action:none}
.pong-grid button{position:relative;min-width:0;min-height:0;width:100%;height:100%;border:1px solid #d8e1ea;padding:0;border-radius:0;background:#f9fbfd;color:#22394f;touch-action:none;overflow:hidden}
.pong-grid button:disabled{opacity:1}.pong-grid svg{width:100%;height:100%;display:block;position:absolute;inset:0}.pong-grid button.selected{outline:2px solid #1470dc;outline-offset:-2px;z-index:1}
.pong-track{fill:none;stroke:#4b86bb;stroke-width:55;stroke-linecap:butt;stroke-linejoin:round}
.pong-anchor{position:absolute;left:20%;top:20%;width:60%;height:60%;border-radius:50%;background:#1b8459;color:#fff;display:grid;place-items:center;font-size:clamp(8px,1vw,13px);pointer-events:none}
.pong-anchor.finish{background:#a45520}.pong-ball:after{content:'';position:absolute;width:25%;height:25%;left:37.5%;top:37.5%;background:#fff;border:1px solid #b66d15;border-radius:50%;pointer-events:none}
.pong-hidden{background:var(--inner,#e7edf4)}.pong-mask{display:grid;place-items:center;min-height:0;color:var(--secondary,#63788e);border-radius:8px;background:repeating-linear-gradient(135deg,#7088a510,#7088a510 12px,#7088a519 12px,#7088a519 24px);font-size:11px}
.pong-axis{display:none}.pong-result,.pong-error{flex:none;margin:0;padding:6px 12px;background:var(--inner,#edf3fa);border-radius:10px;color:var(--ink,#20354b);font-size:12px;line-height:1.4}.pong-error{color:#a82232}
.pong-coordinate{position:absolute;top:0;left:1px;font-size:7px;line-height:1;color:#526a80;pointer-events:none;z-index:2}
.in-live-session #live-call.pong-room .live-private-panel,.in-live-session #live-call.pong-room .live-board-panel{display:none!important}
/* Span both original columns, retaining their 3:5 proportion inside the workbench. */
.in-live-session #live-call.pong-room .live-session-materials{grid-column:1 / -1;grid-row:2;display:block;min-height:0;overflow:hidden;padding:0}
.in-live-session #live-call.pong-room #live-pong-panel{height:100%;min-height:0;display:flex}
.in-live-session #live-call.pong-room .live-session-materials:has(#live-briefing-stage:not([hidden])){display:flex;flex-direction:column;gap:8px}
.in-live-session #live-call.pong-room #live-briefing-stage:not([hidden]){flex:none;max-height:100px;overflow:auto;padding:8px 16px}
@media(max-width:680px){.pong-workbench{grid-template-columns:minmax(108px,3fr) minmax(0,5fr);gap:6px}.pong-palette{padding:7px;gap:6px}.pong-palette .pong-piece-option{gap:8px;padding:4px;min-height:40px}.pong-palette svg{width:28px;height:28px}.pong-palette button{font-size:10px}.pong-board{gap:5px}.pong-zone{padding:5px;border-radius:10px}.pong-zone p,.pong-mask{font-size:10px}.pong-heading{gap:8px}.pong-heading h3{font-size:14px}}

.in-live-session #live-call.pong-room .live-session-layout{grid-template-columns:minmax(0,3fr) minmax(0,5fr);grid-template-rows:clamp(90px,16dvh,140px) minmax(0,1fr);gap:10px}
/* Four equal workspaces fill the whiteboard, including on wide iPad layouts. */
.in-live-session #live-call.pong-room #live-board-visibility{display:none!important}
.pong-zone{padding:0;border:1px solid #b9c9da;border-radius:10px;background:transparent;overflow:hidden}
.pong-grid{width:100%;height:100%;max-width:none;aspect-ratio:auto;align-self:stretch;justify-self:stretch}
.pong-grid button{container-type:size}
.pong-grid .pong-track{stroke-width:min(55cqw,55cqh);vector-effect:non-scaling-stroke}
.pong-mask{width:100%;height:100%;justify-self:stretch;align-self:stretch;border:0;border-radius:0}
