Commit 00e50fe1 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: backgammon board height-driven — fills viewport vertically

Height set to min(calc(100vh - 160px), 680px) with aspect-ratio
driving the width. On 900px screen = 740px height = fills viewport.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent bc03ea7b
...@@ -46,9 +46,10 @@ ...@@ -46,9 +46,10 @@
/* ─── Board Frame ────────────────────────────────────────────────────────── */ /* ─── Board Frame ────────────────────────────────────────────────────────── */
.bg-board { .bg-board {
position: relative; position: relative;
width: 100%; height: min(calc(100vh - 160px), 680px);
max-width: 820px;
aspect-ratio: 1.35 / 1; aspect-ratio: 1.35 / 1;
width: auto;
max-width: 100%;
background: var(--bg-board-wood); background: var(--bg-board-wood);
border-width: 10px; border-width: 10px;
border-style: solid; border-style: solid;
...@@ -997,7 +998,7 @@ ...@@ -997,7 +998,7 @@
/* ─── Responsive: Large screens ──────────────────────────────────────────── */ /* ─── Responsive: Large screens ──────────────────────────────────────────── */
@media (min-width: 1024px) { @media (min-width: 1024px) {
.bg-board { .bg-board {
max-width: 900px; height: min(calc(100vh - 140px), 740px);
} }
:root { :root {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment