모든 게임이 남는 화면 전체를 쓰도록: 게임별 폭 상한 제거, 판·카드·말을 --play-w/--play-h에 맞춰 키움

- 카드 게임: 펠트가 남는 높이를 채우고 손패·가운데 더미·자리 크기가 화면에 따라 커짐
- 판 게임: 체스·바둑·오목 등은 높이를 다 쓰고, 장기·쿼리도·젬블로는 넓은 화면에서 조작판을 판 옆으로
- 섯다: 자리를 판 크기에 맞춘 타원 위에 고르게 두고, 많을 때 자리 크기를 줄여 8명에서도 겹치지 않게
- 바퀴벌레 포커 6명·야단법석 달리기 5명 선수 뽑기가 PC에서 넘치지 않게
- 휴대폰·태블릿(1100px 아래) 배치는 그대로
- layout-survey: 컴퓨터 넣기 버튼 기다림, 넘친 높이(px) 표시

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-17 16:17:15 +09:00
parent adc3b5337a
commit ca8baf5cc8
40 changed files with 1025 additions and 403 deletions

View File

@@ -43,6 +43,8 @@ const OMOK_CSS = `
@keyframes om-forbid { 0% { transform: scale(.3); opacity: 0; } 18% { transform: scale(1.25); opacity: 1; } 32% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.om-forbid-t { animation: om-forbid-t .9s ease-out both; pointer-events: none; }
@keyframes om-forbid-t { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-.9px); opacity: 0; } }
/* PC: the board takes the whole play-area height minus the row that can show under it (--om-rows). */
@media (min-width: 1100px) { .board-wrap.om-fit { max-width: min(100%, calc(var(--play-h) - var(--om-rows, 0px))); } }
`;
function OmokBoard({ view: v, act, pending, tapConfirm }: BoardProps<OmokView>) {
@@ -153,7 +155,8 @@ function OmokBoard({ view: v, act, pending, tapConfirm }: BoardProps<OmokView>)
const ghost = preview ?? (hover && canPlace(hover) ? hover : null);
const pad = 0.9;
return (
<div className="board-wrap stack" style={{ gap: 10 }}>
// Touch with tap-confirm shows [두기][취소] under the board: keep room for it.
<div className="board-wrap stack om-fit" style={{ gap: 10, '--om-rows': tapConfirm ? 'calc(var(--btn-h) + 10px)' : '0px' } as React.CSSProperties}>
<style>{BOARD_MOTION_CSS + OMOK_CSS}</style>
<svg
ref={svgRef}