모든 게임이 남는 화면 전체를 쓰도록: 게임별 폭 상한 제거, 판·카드·말을 --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

@@ -840,7 +840,14 @@ function Rules({ options }: { options?: SixNimmtOptions }) {
// ---------------------------------------------------------------- styles
const CSS = `
.sx-wrap { width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: 10px; }
.sx-wrap { width: 100%; display: flex; flex-direction: column; gap: 10px;
/* Card width: the 4 rows + the hand share the play height left after the bars, hints and buttons. */
--sx-c: clamp(64px, (var(--play-h) - 400px) / 7, 140px); }
@media (min-width: 1100px) {
.sx-wrap { flex: 1 1 auto; min-height: 0; }
.sx-wrap > * { flex: none; }
.sx-wrap > .sx-rows { flex: 1 0 auto; justify-content: center; }
}
.game-main:has(> .sx-wrap) { justify-content: flex-start; }
.sx-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; padding: 8px 14px; }
.sx-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
@@ -860,7 +867,7 @@ const CSS = `
.sx-player.timed { padding-right: 40px; }
.sx-rows { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--felt); border-radius: 16px; padding: 8px; }
.sx-row { width: 100%; max-width: 480px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px; align-items: center; border-radius: 10px; padding: 2px; transition: background .2s; }
.sx-row { width: 100%; max-width: calc(var(--sx-c) * 6 + 96px); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px; align-items: center; border-radius: 10px; padding: 2px; transition: background .2s; }
.sx-row.glow { background: rgba(255, 255, 255, .16); }
.sx-row.take { animation: sx-shake .45s ease both; background: rgba(239, 68, 68, .35); }
@keyframes sx-shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@@ -869,10 +876,10 @@ const CSS = `
.sx-rowbulls { white-space: nowrap; }
.sx-mark { border-radius: 6px; padding: 1px 3px; font-weight: 900; font-size: .72rem; background: #fff; color: #1c1e21; white-space: nowrap; }
.sx-mark.mountain { background: #d9f99d; }
.sx-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 64px)); gap: 4px; }
.sx-slots { display: grid; grid-template-columns: repeat(6, minmax(0, var(--sx-c))); gap: 4px; }
.sx-takebtn { grid-column: 2; justify-self: start; min-height: 40px; }
@media (min-width: 720px) {
.sx-row:has(.sx-takebtn) { max-width: 680px; grid-template-columns: 30px minmax(0, 1fr) auto; }
.sx-row:has(.sx-takebtn) { max-width: calc(var(--sx-c) * 6 + 296px); grid-template-columns: 30px minmax(0, 1fr) auto; }
.sx-row .sx-takebtn { grid-column: 3; }
}
.sx-card { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid #3b3f46; color: #1c1e21; background: #fff; font-weight: 900; user-select: none; box-sizing: border-box; }
@@ -886,8 +893,8 @@ const CSS = `
.sx-card.cow { background: #f1f5f9; border-style: dashed; }
.sx-card.new { animation: sx-in .35s ease-out both; box-shadow: 0 0 0 3px var(--focus); }
@keyframes sx-in { from { transform: translateY(-14px) scale(1.15); opacity: .3; } }
.sx-bulls { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-size: .62rem; font-weight: 700; line-height: 1; }
.sx-n { font-size: clamp(.95rem, 4.2vw, 1.5rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sx-bulls { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-size: clamp(.62rem, calc(var(--sx-c) * .15), .95rem); font-weight: 700; line-height: 1; }
.sx-n { font-size: clamp(.95rem, min(4.2vw, calc(var(--sx-c) * .37)), 2.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sx-card.mini .sx-n { font-size: 1.05rem; }
.sx-card.mini .sx-bulls { font-size: .55rem; }
.sx-orig { position: absolute; bottom: 2px; font-size: .55rem; font-weight: 700; color: #334155; }
@@ -910,7 +917,7 @@ const CSS = `
.sx-hand-wrap { display: flex; flex-direction: column; gap: 6px; }
.sx-hint { margin: 0; }
.sx-hand { display: grid; grid-template-columns: repeat(10, minmax(0, 72px)); gap: 6px; justify-content: center; padding-top: 12px; }
.sx-hand { display: grid; grid-template-columns: repeat(10, minmax(0, calc(var(--sx-c) + 8px))); gap: 6px; justify-content: center; padding-top: 12px; }
@media (max-width: 720px) { .sx-hand { grid-template-columns: repeat(5, minmax(0, 64px)); } }
.sx-hcard { all: unset; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; border-radius: 10px; transition: transform .15s; min-width: 0; }
.sx-hcard:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }