*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--bg: #0a0a0a;
	--surface: #141414;
	--surface2: #1e1e1e;
	--border: #2a2a2a;
	--text: #f0f0f0;
	--muted: #6b6b6b;
	--accent: #7c3aed;
	--accent2: #06b6d4;
	--danger: #ef4444;
	--success: #22c55e;
	--warn: #f59e0b;
	--radius: 10px;
	--font: system-ui, -apple-system, sans-serif;
}

body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; }

/* ── Shared ── */
.logo {
	font-size: 1.6rem; font-weight: 900; letter-spacing: -1px;
	background: linear-gradient(135deg, var(--accent), var(--accent2));
	-webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	padding: 0.55rem 1.1rem; border-radius: var(--radius); border: none;
	font-size: 0.875rem; font-weight: 600; cursor: pointer; text-decoration: none;
	transition: opacity 0.15s, transform 0.1s; white-space: nowrap;
}
.btn:hover:not(:disabled) { opacity: 0.85; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

input[type="text"], textarea {
	background: var(--surface2); border: 1px solid var(--border); color: var(--text);
	border-radius: var(--radius); padding: 0.6rem 0.875rem;
	font-size: 0.9rem; font-family: var(--font); width: 100%; outline: none;
	transition: border-color 0.15s;
}
input[type="text"]:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }

.hidden { display: none !important; }

/* ── Home page ── */
.home {
	max-width: 680px; margin: 0 auto; padding: 3rem 1.5rem;
}

.home-header { text-align: center; margin-bottom: 2.5rem; }
.home-header .logo { font-size: 2.5rem; margin-bottom: 0.5rem; }
.home-header p { color: var(--muted); font-size: 1rem; }

.games-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }

.game-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem;
	transition: border-color 0.15s;
}
.game-card:hover { border-color: var(--accent); }
.game-emoji { font-size: 2rem; flex-shrink: 0; }
.game-info { flex: 1; min-width: 0; }
.game-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.game-info p  { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.game-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.vote-btn {
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	background: none; border: 1px solid var(--border); border-radius: 6px;
	padding: 0.3rem 0.5rem; cursor: pointer; color: var(--muted);
	font-size: 0.75rem; font-weight: 600; transition: all 0.15s;
	min-width: 42px;
}
.vote-btn:hover, .vote-btn.voted { border-color: var(--accent); color: var(--accent); }
.vote-btn .arrow { font-size: 0.7rem; }
