:root {
  --coal: #0b0b0b;
  --coal-2: #151515;
  --coal-3: #202020;
  --line: rgb(246 243 235 / 0.1);
  --bone: #f6f3eb;
  --dim: #a9a59c;
  --lime: #c7f000;
  --red: #ff5c6c;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--coal); color: var(--bone); }
body {
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(600px 300px at 85% -10%, rgb(199 240 0 / 0.09), transparent 70%),
    radial-gradient(500px 300px at 0% 110%, rgb(199 240 0 / 0.05), transparent 70%),
    var(--coal);
}
a { color: var(--lime); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.shell { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.brand svg { width: 30px; height: 38px; }
.brand b { font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; }
.brand small { display: block; color: var(--dim); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }

h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.lead { margin: 0 0 26px; color: var(--dim); }
.for-app { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgb(199 240 0 / 0.1); color: var(--lime); font-size: 13px; font-weight: 600; }

.card { background: var(--coal-2); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.stack { display: grid; gap: 12px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; border: 0; border-radius: 16px; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease), filter 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-lime { background: var(--lime); color: #0b0b0b; }
.btn-lime:hover { filter: brightness(1.08); }
.btn-ghost { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.btn-danger { background: rgb(255 92 108 / 0.12); color: var(--red); }
.btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

label { display: block; font-size: 13px; color: var(--dim); margin: 0 0 6px 2px; }
.field { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--coal-3); box-shadow: inset 0 0 0 1px var(--line); outline: none; font-size: 16px; }
.field:focus { box-shadow: inset 0 0 0 2px var(--lime); }
.code { text-align: center; letter-spacing: 0.5em; font-size: 26px; font-weight: 700; }
.hint { min-height: 22px; margin: 8px 2px 0; font-size: 13px; color: var(--dim); }
.hint.ok { color: var(--lime); }
.hint.bad { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 0; background: rgb(255 255 255 / 0.07); cursor: pointer; font-size: 13px; }
.link { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 14px; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
.error { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgb(255 92 108 / 0.1); color: var(--red); font-size: 14px; }

.who { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--lime); color: #0b0b0b; font-weight: 800; font-size: 28px; }
.who h1 { margin: 0; font-size: 26px; word-break: break-all; }
.who p { margin: 2px 0 0; color: var(--dim); font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border-bottom: 0; }
.list small { color: var(--dim); }
.section { margin: 26px 2px 10px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim); }

.loading { display: grid; place-items: center; min-height: 50vh; }
.loading span { width: 28px; height: 28px; border-radius: 999px; border: 3px solid var(--line); border-top-color: var(--lime); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.in { animation: rise 0.45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.foot { padding: 18px 20px max(18px, env(safe-area-inset-bottom)); text-align: center; color: #6f6c66; font-size: 12px; }
.foot a { color: #8f8b84; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
