From 89883161522f24402e4f803945162671c3289c93 Mon Sep 17 00:00:00 2001
From: Claude
Date: Mon, 16 Nov 2026 23:17:20 -0500
Subject: [PATCH] Play: clearer tiebreak result text; lanes fill the phone
screen
Co-Authored-By: Claude Opus 5.5
---
src/game/Results.tsx | 4 +++-
src/game/play.css | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/game/Results.tsx b/src/game/Results.tsx
index 1d74cdf..94f7976 100644
--- a/src/game/Results.tsx
+++ b/src/game/Results.tsx
@@ -4,12 +4,14 @@ import type { ResultView } from './types.ts';
export function Results({ result, modeName, onRematch, onLobby }: { result: ResultView; modeName: string; onRematch: () => void; onLobby: () => void }) {
const outcome = result.winner === null ? 'draw' : result.winner === 0 ? 'win' : 'loss';
const won = result.lanes.filter(l => l.winner === 0).length;
+ const lost = result.lanes.filter(l => l.winner === 1).length;
+ const tiebreak = result.reason === 'lanes' && won === lost;
return
{modeName.toUpperCase()} · {result.turns} TURNS
{outcome === 'win' ? 'Victory!' : outcome === 'loss' ? 'Defeat' : 'Draw'}
{result.reason === 'concede' ? (outcome === 'win' ? 'Your opponent conceded.' : 'You conceded.')
- : `You won ${won} of ${result.lanes.length} lanes.`}
+ : `You won ${won} of ${result.lanes.length} lanes${tiebreak ? ', so total power decided it' : ''}.`}
{result.lanes.map(l => -
{l.name}{l.myPower} – {l.theirPower}{l.winner === 0 ? 'Won' : l.winner === 1 ? 'Lost' : 'Tied'}
diff --git a/src/game/play.css b/src/game/play.css
index 2efd1bb..7509097 100644
--- a/src/game/play.css
+++ b/src/game/play.css
@@ -165,7 +165,8 @@
/* Phones: the match takes the whole screen so the board and the thumb dock both fit. */
@media(max-width:760px){
.match{position:fixed;inset:0;z-index:30;margin:0;max-width:none;border:0;border-radius:0;padding-top:env(safe-area-inset-top);overflow:hidden}
- .match .lanes{flex:1 1 auto;overflow-y:auto;align-content:start}
+ .match .lanes{flex:1 1 auto;overflow-y:auto;align-content:stretch}
+ .match .lane-side{flex:1 1 auto}
.match-dock{position:static;border-radius:0}
.lane-side{min-height:84px}
}