refactor: streamline new-game player selection ux

Consolidate new-game wizard steps into reusable components and remove legacy duplicate files.
Replace inline player inputs with a chip-first flow and minimal name-entry modal, while improving compact-screen spacing and step-specific selection behavior.

Made-with: Cursor
This commit is contained in:
Frank Schwenk
2026-04-14 15:22:56 +02:00
parent 5deb38ebb7
commit ed7c6232c1
21 changed files with 825 additions and 1018 deletions
@@ -0,0 +1,66 @@
.modalOverlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 16px;
}
.modalContent {
width: min(420px, 100%);
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.modalTitle {
margin: 0;
font-size: 1.1rem;
color: var(--color-text);
}
.modalInput {
width: 100%;
}
.modalActions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.actionButton {
border: 1px solid var(--color-border);
background: var(--color-secondary);
color: var(--color-text);
border-radius: var(--radius-md);
padding: 10px 14px;
cursor: pointer;
min-height: var(--touch-target-min);
}
.actionButton:hover,
.actionButton:focus {
border-color: var(--color-primary);
outline: none;
}
.confirmButton {
background: var(--color-primary);
border-color: var(--color-primary);
color: #fff;
}
.errorText {
color: var(--color-danger);
font-size: 0.9rem;
margin: 0;
}