:root {
  --card: rgba(13, 22, 34, .72);
  --line: rgba(110, 160, 220, .16);
  --text: #e6eef8;
  --muted: #8ea3bb;
  --accent: #4a8fd6;
  --accent-2: #2b5fa0;
  --ok: #3ecf8e;
  --err: #f0616d;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 16px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: #0b131c url(/assets/bg.jpg) center / cover fixed;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 30px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: in .5s ease both;
}

@keyframes in { from { opacity: 0; transform: translateY(12px); } }

.logo {
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  filter: brightness(1.7) saturate(1.15) drop-shadow(0 0 18px rgba(74, 143, 214, .55));
}

h1 { font-size: 22px; font-weight: 700; letter-spacing: .2px; }
.sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.sub b { color: var(--text); font-weight: 600; }
.text { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.steps {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 22px 0 20px;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}
.steps li { display: flex; align-items: center; gap: 7px; }
.steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}
.steps .active { color: var(--text); }
.steps .active span { border-color: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(74, 143, 214, .18); }
.steps .done span { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-align: left;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.user img { width: 38px; height: 38px; border-radius: 50%; }
.user b { display: block; font-size: 14px; }
.user small { font-size: 12px; color: var(--muted); }

.task { margin: 22px 0 14px; font-size: 15px; }
.task b { color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid button {
  display: grid;
  place-items: center;
  height: 72px;
  cursor: pointer;
  color: #c9d8ea;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: .15s ease;
}
.grid button:hover { color: #fff; border-color: var(--accent); background: rgba(74, 143, 214, .12); transform: translateY(-2px); }
.grid button svg { width: 30px; height: 30px; fill: currentColor; }
.grid[data-locked] { opacity: .4; pointer-events: none; }

.cf-turnstile { margin-top: 16px; display: flex; justify-content: center; }

.alert {
  margin-bottom: 14px;
  padding: 9px 12px;
  font-size: 13px;
  color: #ffd5d8;
  background: rgba(240, 97, 109, .12);
  border: 1px solid rgba(240, 97, 109, .35);
  border-radius: 10px;
}

.state { width: 54px; height: 54px; margin: -4px auto 14px; display: block; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.state.ok { stroke: var(--ok); }
.state.err { stroke: var(--err); }

.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(43, 95, 160, .35);
  transition: .15s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

footer { font-size: 12px; color: rgba(142, 163, 187, .6); }

@media (max-width: 420px) {
  .card { padding: 28px 20px 24px; }
  .steps { gap: 12px; }
}
