UX overhaul: card layout, admin overlay, status bar, and phase-safe inputs

This commit is contained in:
2026-01-28 15:37:11 +01:00
parent 16e7067902
commit abd0720821
3 changed files with 230 additions and 108 deletions

View File

@@ -1,43 +1,42 @@
:root {
font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
background: radial-gradient(circle at 20% 20%, #1f2937, #0b1224);
background: radial-gradient(circle at 20% 20%, #0f172a, #050816);
color: #e5e7eb;
}
body {
margin: 0;
padding: 24px;
padding: 20px;
}
.hero {
.status-bar {
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(135deg, #111827, #0f172a);
gap: 10px;
padding: 10px 12px;
background: rgba(15, 23, 42, 0.8);
border: 1px solid #1f2937;
border-radius: 12px;
padding: 16px 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
border-radius: 10px;
box-shadow: 0 10px 24px rgba(0,0,0,0.25);
max-width: 540px;
}
.subtitle {
margin: 4px 0 0;
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 10px #22c55e;
}
.counts {
color: #9ca3af;
}
.phase-pill {
padding: 8px 12px;
background: #1d4ed8;
color: white;
border-radius: 999px;
font-weight: 600;
min-width: 96px;
text-align: center;
font-size: 13px;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-template-columns: 1fr;
gap: 16px;
margin-top: 16px;
}
@@ -55,6 +54,23 @@ body {
margin-bottom: 8px;
}
.split {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
flex-wrap: wrap;
}
.name-box {
min-width: 220px;
max-width: 260px;
background: #0b1224;
border: 1px solid #1f2937;
padding: 10px;
border-radius: 10px;
}
.stack {
display: flex;
flex-direction: column;
@@ -92,16 +108,70 @@ button.danger {
border-color: #b91c1c;
}
button.ghost {
background: transparent;
border-color: #374151;
}
.label { color: #9ca3af; font-size: 12px; }
.hint { color: #9ca3af; font-size: 12px; margin: 8px 0 0; }
.list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.list li { padding: 12px; border: 1px solid #1f2937; border-radius: 8px; background: #0b1224; }
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 12px;
margin-top: 12px;
}
.vote-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.vote-controls { display: flex; gap: 10px; align-items: center; min-width: 180px; }
.game-card {
background: #0b1224;
border: 1px solid #1f2937;
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 220px;
}
.card-visual {
height: 140px;
background: linear-gradient(135deg, #1d4ed8, #22c55e);
background-size: cover;
background-position: center;
}
.card-body {
padding: 12px;
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
}
.card-title-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
}
.card-title-row h3 { margin: 0; font-size: 18px; }
.muted { color: #9ca3af; margin: 0; }
.link { color: #93c5fd; text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.chip {
background: #1f2937;
color: #e5e7eb;
padding: 4px 8px;
border-radius: 999px;
font-size: 12px;
}
.vote-controls { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.score { font-weight: 700; }
.results-grid .game-card { border-color: #2563eb44; }
.hidden { display: none !important; }
.toast {
@@ -116,3 +186,31 @@ button.danger {
max-width: 320px;
}
.toast.error { background: #dc2626; }
.admin-toggle {
position: fixed;
bottom: 18px;
right: 18px;
width: 44px;
height: 44px;
border-radius: 50%;
border: 1px solid #1f2937;
background: #0f172a;
color: #9ca3af;
font-weight: 700;
box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.admin-panel {
position: fixed;
bottom: 70px;
right: 18px;
width: 320px;
z-index: 20;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
}