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

@@ -130,12 +130,27 @@ const CSS = `
.yt-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.yt-bar > span { display: block; height: 100%; background: var(--success); transition: width .3s; }
.yt-pname { display: inline-block; max-width: 72px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
/* PC: fill the play column. Dice tray (left) and score sheet (right) take the full height; dice grow with the tray,
the sheet's rows stretch to the column height and its text grows with it. */
@media (min-width: 1100px) {
.yt-wrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: start; max-height: 100%; }
.yt-die { --s: 64px; }
.yt-sheet { max-height: calc(100vh - var(--site-h) - 52px - 40px); }
.yt-wrap { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
max-width: none; flex: 1 1 auto; min-height: 0; align-self: stretch; }
/* Head on top; dice, roll button and notes centred in the rest of the tray. */
.yt-tray > :last-child { margin-bottom: auto; }
.yt-dice { --s: clamp(64px, min(calc((var(--play-w) - 12px) * .5 / 6.4), calc(var(--play-h) * .12)), 150px); margin-top: auto;
gap: clamp(8px, calc(var(--play-w) * .008), 18px); padding-bottom: calc(var(--s) * .3); }
.yt-die { --s: inherit; border-radius: calc(var(--s) * .22); }
.yt-die.held { transform: translateY(calc(var(--s) * .2)); }
.yt-lock { font-size: clamp(.72rem, calc(var(--s) * .14), .95rem); bottom: calc(var(--s) * -.14); }
.yt-roll { min-height: clamp(64px, calc(var(--play-h) * .075), 84px); font-size: clamp(1.2rem, calc(var(--play-h) * .022), 1.5rem); }
.yt-sheet { max-height: 100%; }
.yt-table { height: 100%; font-size: clamp(1rem, calc(var(--play-h) * .017), 1.25rem); }
.yt-table th, .yt-table td { height: 34px; }
.yt-cell { height: 30px; }
.yt-table thead th { font-size: .9em; }
.yt-table td.mine { font-size: 1.08em; }
.yt-table tr.yt-sum th, .yt-table tr.yt-sum td { font-size: .92em; }
.yt-table tr.yt-total th, .yt-table tr.yt-total td { font-size: 1.1em; }
.yt-cell { height: clamp(30px, calc(var(--play-h) * .04), 44px); }
}
@media (prefers-reduced-motion: reduce) {
.yt-die, .yt-die.held { transition: none; }