/* Life Counter — new-game setup screen. */

.lc-setup {
	max-width: 620px;
	margin: 0 auto;
	padding: 28px 20px 64px;
}

.lc-setup-head { text-align: center; margin-bottom: 30px; }

.lc-setup-head h1 {
	font-family: var(--serif);
	font-size: 2.1rem;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 8px;
}

.lc-tagline {
	color: var(--text-dim);
	font-size: .95rem;
	line-height: 1.5;
	max-width: 46ch;
	margin: 0 auto;
}

.lc-form {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.lc-field { display: flex; flex-direction: column; gap: 10px; }

.lc-field-label {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--text-mute);
}

.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.lc-chip {
	min-width: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	background: var(--bg-elev);
	color: var(--text);
	border-radius: var(--radius);
	font-family: var(--mono);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}

.lc-chip:hover { border-color: var(--accent-soft); }

.lc-chip.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.lc-life-custom {
	width: 84px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	background: var(--bg-elev);
	color: var(--text);
	border-radius: var(--radius);
	font-family: var(--mono);
	font-size: 1rem;
}

.lc-life-custom:focus { outline: none; border-color: var(--accent); }

/* Toggle */
.lc-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}
.lc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.lc-toggle-track {
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: var(--line);
	position: relative;
	flex-shrink: 0;
	transition: background .18s;
}
.lc-toggle-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bg-card);
	box-shadow: 0 1px 2px rgba(0,0,0,.25);
	transition: transform .18s;
}
.lc-toggle input:checked + .lc-toggle-track { background: var(--accent); }
.lc-toggle input:checked + .lc-toggle-track .lc-toggle-thumb { transform: translateX(18px); }
.lc-toggle-label { color: var(--text); font-size: .95rem; }

.lc-start {
	margin-top: 4px;
	padding: 14px;
	border: none;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font-family: var(--sans);
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s;
}
.lc-start:hover { opacity: .92; }
.lc-start:disabled { opacity: .55; cursor: default; }

.lc-guest-hint {
	margin: 0;
	text-align: center;
	font-size: .85rem;
	color: var(--text-mute);
}

/* Recent games */
.lc-recent { margin-top: 34px; }
.lc-recent-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
}
.lc-recent-head h2 {
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}
.lc-recent-link { color: var(--accent); font-size: .88rem; text-decoration: none; }
.lc-recent-link:hover { text-decoration: underline; }

.lc-recent-list { display: flex; flex-direction: column; gap: 8px; }
.lc-recent-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-card);
	text-decoration: none;
	transition: border-color .15s;
}
.lc-recent-item:hover { border-color: var(--accent-soft); }
.lc-recent-name { color: var(--text); font-weight: 500; }
.lc-recent-meta { color: var(--text-mute); font-size: .82rem; font-family: var(--mono); }

@media (max-width: 520px) {
	.lc-setup-head h1 { font-size: 1.7rem; }
	.lc-recent-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
