/* Made by sye — Zzzs redeem site */
:root {
  --bg: #000;
  --card: #0c0c0c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --soft: #1a1a1a;
  --white: #fff;
  --danger: #fb7185;
  --ok: #4ade80;
  --radius: 18px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.bg-orb {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.bg-orb-a {
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, #3f3f46, transparent 70%);
}
.bg-orb-b {
  right: -10%;
  bottom: -18%;
  background: radial-gradient(circle, #27272a, transparent 70%);
}

.top {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #d4d4d4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.pill-link:hover { background: rgba(255,255,255,0.06); color: #fff; }

.wrap {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.sub {
  margin: 12px auto 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.card {
  margin-top: 28px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #101010, #0a0a0a);
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2px 0 22px;
  padding: 4px 2px 8px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 64px;
  color: #666;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #777;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #666;
  transition: color .2s ease;
}
.step-rail {
  flex: 1;
  height: 1px;
  max-width: 72px;
  margin: 0 10px 22px;
  background: rgba(255,255,255,0.1);
  transition: background .2s ease;
}
.step-rail.filled {
  background: rgba(74, 222, 128, 0.55);
}
.step.active .step-num {
  color: #000;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
.step.active .step-label { color: #fff; }
.step.done .step-num {
  color: #052e16;
  background: var(--ok);
  border-color: var(--ok);
}
.step.done .step-label { color: #a7f3d0; }

.stack { display: grid; gap: 12px; }

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #cfcfcf;
}
label span em {
  font-style: normal;
  color: #666;
  font-weight: 400;
}

input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #070707;
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
input:focus {
  border-color: rgba(255,255,255,0.28);
  background: #0b0b0b;
}
input::placeholder { color: #555; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover { background: #eaeaea; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.14);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

.error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.muted { margin: 0; color: #777; font-size: 12px; }
.item-name { margin: 4px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.timer {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.done { text-align: center; padding: 12px 4px 4px; }
.done h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.check {
  width: 54px;
  height: 54px;
  margin: 4px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
  font-size: 24px;
  font-weight: 700;
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  padding: 0 20px 36px;
  color: #555;
  font-size: 13px;
}
.foot a { color: #888; text-decoration: none; }
.foot a:hover { color: #ccc; }

@media (max-width: 520px) {
  .wrap { padding-top: 34px; }
  .card { padding: 14px; border-radius: 20px; }
  .step { min-width: 52px; }
  .step-num { width: 30px; height: 30px; font-size: 12px; }
  .step-label { font-size: 11px; }
  .step-rail { margin: 0 6px 20px; max-width: 48px; }
}
