/* ── Kiosk full-screen styles ───────────────────────────── */

body.tc-kiosk {
	background: #111;
	color: #fff;
	font-family: var(--font);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 1rem;
	-webkit-user-select: none;
	user-select: none;
}

#kiosk-app {
	width: 100%;
	max-width: 700px;
	text-align: center;
}

.k-step h1 {
	font-size: 2.2rem;
	margin-bottom: .5rem;
}

.k-sub {
	color: #aaa;
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

/* ── User grid ──────────────────────────────────────────── */

.k-secret-input {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.1rem;
	border: 2px solid #444;
	border-radius: 10px;
	background: #222;
	color: #fff;
	text-align: center;
	outline: none;
}
.k-secret-input:focus {
	border-color: #0078d4;
}

.k-user-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
	max-height: 60vh;
	overflow-y: auto;
	padding: .5rem;
}

.k-user-btn {
	background: #222;
	color: #fff;
	border: 2px solid #444;
	border-radius: 12px;
	padding: 1.25rem 1rem;
	font-size: 1.15rem;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s;
}

.k-user-btn:hover, .k-user-btn:focus {
	border-color: var(--clr-primary);
	background: #1a1a2e;
	transform: scale(1.03);
}

/* ── PIN entry ──────────────────────────────────────────── */
.k-pin-display {
	display: flex;
	justify-content: center;
	gap: .75rem;
	margin-bottom: 2rem;
}

.k-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #555;
	background: transparent;
	transition: all .15s;
}

.k-dot--filled {
	background: var(--clr-primary);
	border-color: var(--clr-primary);
}

.k-keypad {
	display: grid;
	grid-template-columns: repeat(3, 80px);
	gap: .75rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.k-key {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 2px solid #444;
	background: #222;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	cursor: pointer;
	transition: all .1s;
}

.k-key:hover, .k-key:active {
	background: #333;
	border-color: #666;
}

.k-key:active {
	transform: scale(.93);
}

.k-key--fn {
	font-size: 1.2rem;
	background: #333;
}

.k-key--go {
	background: var(--clr-primary);
	border-color: var(--clr-primary);
}

.k-back {
	background: none;
	border: none;
	color: #888;
	font-size: 1rem;
	cursor: pointer;
	margin-top: .5rem;
}

.k-back:hover {
	color: #fff;
}

.k-error {
	color: #ff6b6b;
	font-size: 1rem;
	margin-top: 1rem;
}

/* ── Clock action step ──────────────────────────────────── */
.k-actions {
	display: flex;
	gap: 2rem;
	justify-content: center;
	margin: 2rem 0;
}

.k-big-btn {
	padding: 2rem 3rem;
	border: none;
	border-radius: 20px;
	font-size: 1.5rem;
	font-weight: 700;
	cursor: pointer;
	transition: all .15s;
	min-width: 200px;
}

.k-big-btn:active {
	transform: scale(.95);
}

.k-big-btn--in {
	background: #28a745;
	color: #fff;
}

.k-big-btn--in:hover {
	background: #218838;
}

.k-big-btn--out {
	background: #dc3545;
	color: #fff;
}

.k-big-btn--out:hover {
	background: #c82333;
}

.k-msg {
	font-size: 1.3rem;
	margin-top: 1.5rem;
	font-weight: 600;
}

.k-msg--success { color: #28a745; }
.k-msg--error   { color: #dc3545; }

.k-timer {
	color: #666;
	font-size: .9rem;
	margin-top: 2rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
	.k-step h1 { font-size: 1.6rem; }
	.k-keypad { grid-template-columns: repeat(3, 65px); gap: .5rem; }
	.k-key { width: 65px; height: 65px; font-size: 1.2rem; }
	.k-big-btn { padding: 1.5rem 2rem; font-size: 1.2rem; min-width: 150px; }
	.k-actions { gap: 1rem; }
}
