:root {
	--navy: #14213d;
	--navy-2: #1d2f54;
	--teal: #0f8b8d;
	--teal-soft: #d7f0ef;
	--ink: #14213d;
	--muted: #5b6b85;
	--card: #ffffff;
	--line: #e3e8f0;
	--ok: #16a34a;
	--bad: #dc2626;
	--a: #2563eb;
	--b: #e8590c;
	--c: #7c3aed;
	--d: #0f9d58;
	--radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	background: radial-gradient(1200px 600px at 10% -10%, #24406e 0%, transparent 60%), var(--navy);
	color: #fff;
	-webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; border: 0; }
input, select { font: inherit; }

.brand {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 24px; font-weight: 700; letter-spacing: .04em; font-size: 14px;
	color: #c9d5ea;
}
.brand b { color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 16px 24px 32px; }
.center { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 16px; }

.card {
	background: var(--card); color: var(--ink); border-radius: var(--radius);
	padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); width: 100%; max-width: 440px;
}
.card h1 { margin: 0 0 6px; font-size: 26px; }
.card p.sub { margin: 0 0 20px; color: var(--muted); }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
.field {
	width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px;
	font-size: 18px; color: var(--ink); background: #fff; outline: none;
}
.field:focus { border-color: var(--teal); }
.field.pin { font-size: 28px; letter-spacing: .3em; text-align: center; font-weight: 800; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 22px; border-radius: 12px; font-weight: 800; font-size: 17px;
	background: var(--teal); color: #fff; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; margin-top: 20px; }
.btn.ghost { background: rgba(255,255,255,.12); }
.btn.light { background: #fff; color: var(--navy); }

.err { color: var(--bad); font-weight: 600; min-height: 22px; margin-top: 12px; font-size: 15px; }

.letter {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
	background: rgba(255,255,255,.22); font-weight: 900; flex: none;
}
.opt-a { background: var(--a); } .opt-b { background: var(--b); }
.opt-c { background: var(--c); } .opt-d { background: var(--d); }

.muted { color: #b9c6dc; }
.hidden { display: none !important; }

.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

.timerbar { height: 8px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.timerbar > i { display: block; height: 100%; background: #fff; width: 100%; transition: width .25s linear; }

.conn {
	position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
	background: #b45309; color: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 14px;
}
