:root {
  --night: #0A1B4A; --surface: #112B6B; --line: #25448F; --dim: #1B3677;
  --text: #F2F5FC; --muted: #B6C4E6; --lamp: #FFD21F; --lamp-ink: #0A1230;
  --red: #D62828; --red-hover: #E84040; --red-bright: #FF5A52; --ok: #5BD68A;
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 1.0625rem/1.65 var(--font-body); padding-inline: 20px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 720px; margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.logo { font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 2.5rem); text-decoration: none; font-stretch: 120%; letter-spacing: -0.01em; line-height: 1; }
.logo span { font-weight: 300; } .logo b { font-weight: 850; color: var(--lamp); }
.top .who { color: var(--muted); font-size: 0.92rem; display: flex; gap: 14px; align-items: center; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); font-weight: 800; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: 1.35rem; font-weight: 700; font-stretch: 108%; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.muted { color: var(--muted); }
main { padding-bottom: 72px; }
.stack { display: grid; gap: 18px; }
.screen { display: grid; gap: 24px; padding-top: 18px; }
.card { background: var(--surface); border-radius: 16px; padding: clamp(20px, 4vw, 32px); }
label { display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted); }
label .hint { font-size: 0.85rem; opacity: 0.85; }
input, textarea, select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--night); color: var(--text); font: inherit; font-size: 1rem;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.check input { width: 22px; min-height: 22px; margin-top: 3px; flex: none; accent-color: var(--lamp); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 10px; font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; } .btn-primary:hover:not([disabled]) { background: var(--red-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; } .btn-ghost:hover { border-color: var(--muted); }
.btn-lamp { background: var(--lamp); color: var(--lamp-ink); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.msg { min-height: 1.2em; font-size: 0.95rem; }
.msg.err { color: var(--red-bright); } .msg.ok { color: var(--ok); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.choice { text-align: left; background: var(--surface); border: 1.5px solid var(--line); color: var(--text); border-radius: 16px; padding: 24px; cursor: pointer; display: grid; gap: 10px; font: inherit; }
.choice:hover, .choice.pre { border-color: var(--lamp); }
.choice svg { width: 40px; height: 40px; color: var(--lamp); }
.choice p { color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.contract { max-height: 52vh; overflow: auto; background: var(--night); border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; white-space: pre-wrap; font-size: 0.97rem; line-height: 1.6; color: var(--muted); }
.big { font-family: var(--font-display); font-weight: 850; font-stretch: 120%; font-size: clamp(4rem, 16vw, 7rem); line-height: 1; color: var(--lamp); }
.stars { display: flex; gap: 8px; }
.stars button { font-size: 2rem; line-height: 1; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; }
.stars button.on { color: var(--lamp); }
.notice { border: 1.5px solid var(--lamp); border-radius: 12px; padding: 14px 18px; color: var(--muted); font-size: 0.95rem; }
.alert { border: 1.5px solid var(--red-bright); border-radius: 12px; padding: 14px 18px; color: var(--muted); font-size: 0.95rem; }
.alert a { color: var(--lamp); font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.pill.on { border-color: var(--ok); color: var(--ok); }
.btn svg { width: 20px; height: 20px; flex: none; }
.invite-box {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start;
  border: 1.5px solid var(--lamp); border-radius: 16px; padding: clamp(18px, 4vw, 26px);
  background: rgba(255, 210, 31, 0.07);
}
.invite-box strong { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: 1.15rem; }
.invite-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--lamp); color: var(--lamp); }
.invite-icon svg { width: 28px; height: 28px; }
@media (max-width: 480px) { .invite-box { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 560px) { .row .btn { flex: 1 1 100%; } }

[tabindex="-1"]:focus { outline: none; }
