From e55f848a26092a2b4a5b09c3c255544ea9666f1b Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Thu, 30 Oct 2025 16:55:25 -0500 Subject: [PATCH] refactor(rithmomachia): make setup phase UI more compact MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reduce spacing and font sizes throughout the setup page to make better use of screen space while maintaining readability and drama. Changes: - Reduce title font size: 6vh → 3.5vh - Reduce subtitle and description font sizes - Reduce all padding and margins (50% reduction) - Reduce ornamental corner sizes: 8vh → 2.5vh - Reduce border widths: 0.5vh → 0.3vh - Reduce shadows for subtler effect - Simplify description from 2 lines to 1 line - Reduce start button size: 4vh → 2.5vh font - Reduce threshold input width: 10vh → 6vh Result: More compact, efficient use of space without sacrificing visual appeal. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../components/RithmomachiaGame.tsx | 155 +++++++++--------- 1 file changed, 78 insertions(+), 77 deletions(-) diff --git a/apps/web/src/arcade-games/rithmomachia/components/RithmomachiaGame.tsx b/apps/web/src/arcade-games/rithmomachia/components/RithmomachiaGame.tsx index 14386314..0ad0e23f 100644 --- a/apps/web/src/arcade-games/rithmomachia/components/RithmomachiaGame.tsx +++ b/apps/web/src/arcade-games/rithmomachia/components/RithmomachiaGame.tsx @@ -416,9 +416,9 @@ function SetupPhase() { height: '100%', display: 'flex', flexDirection: 'column', - gap: '1.5vh', + gap: '1vh', overflow: 'hidden', - p: '2vh', + p: '1.5vh', })} > {lastError && ( @@ -458,93 +458,95 @@ function SetupPhase() { )} - {/* Title Section - Dramatic medieval manuscript style */} + {/* Title Section - Compact medieval manuscript style */}
- {/* Ornamental corners */} + {/* Ornamental corners - smaller */}

⚔️ RITHMOMACHIA ⚔️

@@ -563,14 +565,12 @@ function SetupPhase() {

- A medieval strategy game of mathematical combat. -
- Capture through relations • Win through harmony + Medieval strategy • Mathematical combat

@@ -582,10 +582,10 @@ function SetupPhase() { flex: 1, minHeight: 0, bg: 'rgba(255, 255, 255, 0.95)', - borderRadius: '2vh', - p: '2vh', - boxShadow: '0 2vh 6vh rgba(0,0,0,0.5)', - border: '0.3vh solid', + borderRadius: '1.5vh', + p: '1.5vh', + boxShadow: '0 1vh 3vh rgba(0,0,0,0.5)', + border: '0.2vh solid', borderColor: 'rgba(251, 191, 36, 0.4)', backdropFilter: 'blur(10px)', display: 'flex', @@ -595,13 +595,13 @@ function SetupPhase() { >

@@ -613,7 +613,7 @@ function SetupPhase() { className={css({ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(35%, 1fr))', - gap: '1.5vh', + gap: '1vh', flex: 1, minHeight: 0, alignContent: 'start', @@ -701,12 +701,12 @@ function SetupPhase() { display: 'flex', justifyContent: 'space-between', alignItems: 'center', - pt: '1vh', - borderTop: '0.2vh solid', + pt: '0.8vh', + borderTop: '0.15vh solid', borderColor: 'rgba(251, 191, 36, 0.3)', })} > -
+
Threshold:
e.stopPropagation()} min="1" className={css({ - width: '10vh', - px: '1vh', - py: '0.5vh', + width: '6vh', + minHeight: '2.5vh', + px: '0.5vh', + py: '0.3vh', borderRadius: '0.5vh', - border: '0.2vh solid', + border: '0.15vh solid', borderColor: 'rgba(251, 191, 36, 0.6)', bg: 'rgba(255, 255, 255, 0.9)', textAlign: 'center', - fontSize: '1.6vh', + fontSize: '1.4vh', fontWeight: 'bold', color: '#7c2d12', _focus: { @@ -932,7 +933,7 @@ function SetupPhase() {

- {/* Start Button - Dramatic and always visible */} + {/* Start Button - Compact but dramatic */}