:root {
  --bg: #07081a; --card: #10122bcc; --line: #262a55; --text: #eceefa; --muted: #9296b8;
  --luna: #8b6cf0; --luna2: #c4b5ff; --ok: #7fd1b9; --err: #ef7d92; --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.55 Inter, system-ui, sans-serif; color: var(--text);
  background: radial-gradient(900px 500px at 80% -10%, #2a1d5a 0%, transparent 60%), radial-gradient(700px 500px at -10% 110%, #12235a 0%, transparent 60%), var(--bg);
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.shell { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 32px 16px 40px; min-height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; color: var(--luna2); letter-spacing: .32em; font-weight: 700; }
.brand svg { width: 28px; height: 28px; filter: drop-shadow(0 0 12px #8b6cf0aa); }
.brand span { color: var(--text); }
.card { background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; box-shadow: 0 30px 80px #0009; }
@media (max-width: 480px) { .card { padding: 24px 18px; } }
footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: auto; padding-top: 24px; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; font-weight: 800; }
p { margin: 0 0 16px; color: var(--muted); }
.who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #0a0b1f; border: 1px solid var(--line); margin: 18px 0; }
.who img { width: 44px; height: 44px; border-radius: 50%; }
.who b { display: block; }
.who small { color: var(--muted); }
.progress { height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 22px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--luna), var(--luna2)); transition: width .35s ease; }
.step-label { color: var(--luna2); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.opt { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a0b1f; cursor: pointer; transition: .15s; font-weight: 500; }
.opt:hover { border-color: #4a4f8f; }
.opt:focus-visible { outline: 2px solid var(--luna2); outline-offset: 2px; }
.opt.on { border-color: var(--luna); background: #8b6cf024; box-shadow: inset 0 0 0 1px var(--luna); }
.opt .e { font-size: 20px; line-height: 1; }
textarea { width: 100%; min-height: 96px; resize: vertical; margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a0b1f; color: var(--text); font: inherit; }
textarea:focus { outline: none; border-color: var(--luna); }
.rules { max-height: 300px; overflow: auto; padding: 4px 18px; border-radius: 12px; border: 1px solid var(--line); background: #0a0b1f; margin-bottom: 6px; font-size: 14px; }
.rules p { color: var(--text); margin: 8px 0; }
.rules h3, .rules h4, .rules h5 { margin: 16px 0 6px; color: var(--luna2); font-size: 15px; }
.rules ul { margin: 6px 0; padding-left: 20px; } .rules li { margin: 4px 0; }
.rules blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--luna); color: var(--muted); }
.rules code { background: #1a1d3a; padding: 1px 5px; border-radius: 5px; }
.rules a { color: var(--luna2); }
.rules:focus-visible { outline: 2px solid var(--luna2); }
.check input:disabled + span { opacity: .5; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a0b1f; cursor: pointer; margin: 6px 0 4px; }
.check input { width: 20px; height: 20px; accent-color: var(--luna); margin: 1px 0 0; flex: none; }
.nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.btn { all: unset; box-sizing: border-box; text-align: center; padding: 12px 22px; border-radius: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); }
.btn.primary { background: linear-gradient(135deg, var(--luna), #6a4fd8); border-color: transparent; color: #fff; flex: 1; box-shadow: 0 10px 30px #8b6cf044; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--luna2); outline-offset: 2px; }
.captcha { display: flex; justify-content: center; margin: 22px 0 6px; min-height: 70px; }
.err { color: var(--err); background: #ef7d9214; border: 1px solid #ef7d9244; padding: 10px 14px; border-radius: 12px; margin-top: 14px; font-size: 14px; }
.done { text-align: center; padding: 10px 0; }
.done .moon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e7dfff, #8b6cf0); box-shadow: 0 0 60px #8b6cf0aa; animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 90px #8b6cf0; } }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); padding: 30px 0; }
.loading i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--luna); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
