:root {
  --ink: #111310;
  --paper: #f1efe8;
  --acid: #d7ff37;
  --plum: #553067;
  --violet: #8d6dff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--paper); background: #0e0c11; font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
.gate-film { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.gate-shade { position: fixed; inset: 0; background: linear-gradient(90deg, rgba(7,7,8,.9) 0%, rgba(16,11,19,.68) 48%, rgba(9,8,10,.86) 100%); }
.gate-shell { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 520px); gap: 8vw; align-items: center; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0; }
.gate-story { min-height: calc(100vh - 96px); display: flex; flex-direction: column; justify-content: space-between; }
.gate-brand { color: inherit; text-decoration: none; font: 700 20px/1 "Manrope"; display: flex; align-items: center; gap: 11px; letter-spacing: -.04em; }
.gate-brand > span:last-child span { color: #c4a8dc; }
.gate-mark { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.gate-mark::after { content: ""; position: absolute; width: 7px; height: 7px; right: -4px; top: -3px; border: 1px solid #111; border-radius: 50%; background: var(--acid); }
.gate-kicker, .gate-label { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; }
.gate-story h1 { margin: 0; max-width: 700px; font: 500 clamp(64px, 7vw, 112px)/.9 "Manrope"; letter-spacing: -.075em; }
.gate-story div > p:last-child { max-width: 560px; margin: 30px 0 0; font-size: 19px; line-height: 1.65; color: rgba(241,239,232,.68); }
.gate-foot { margin: 0; color: rgba(241,239,232,.48); font-size: 12px; }
.gate-card { color: var(--ink); background: rgba(241,239,232,.96); border-radius: 18px; padding: 46px; box-shadow: 0 40px 120px rgba(0,0,0,.42); backdrop-filter: blur(14px); }
.gate-step { display: flex; align-items: center; margin-bottom: 52px; color: rgba(17,19,16,.28); font: 600 11px/1 "Manrope"; }
.gate-step span.active { color: var(--plum); }
.gate-step i { width: 60px; height: 1px; margin: 0 12px; background: rgba(17,19,16,.16); }
.gate-label { color: var(--plum); margin-bottom: 14px; }
.gate-card h2 { margin: 0; font: 500 52px/.96 "Manrope"; letter-spacing: -.065em; }
.gate-card h2 + p { margin: 22px 0 30px; color: rgba(17,19,16,.62); line-height: 1.6; }
.google-button { min-height: 44px; }
.dev-auth { width: 100%; margin-top: 14px; padding: 13px 16px; border: 1px solid rgba(17,19,16,.22); border-radius: 999px; background: transparent; cursor: pointer; }
.configuration-note { padding: 14px; border-radius: 8px; background: rgba(85,48,103,.08); color: var(--plum); font-size: 13px; line-height: 1.5; }
.identity-chip { display: flex; gap: 12px; align-items: center; margin: 26px 0 34px; padding: 12px; border: 1px solid rgba(17,19,16,.12); border-radius: 10px; }
.identity-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--plum); font-weight: 700; background-size: cover; }
.identity-chip strong, .identity-chip span { display: block; }
.identity-chip strong { font-size: 13px; }
.identity-chip span { margin-top: 2px; color: rgba(17,19,16,.52); font-size: 11px; }
#phrase-form label { display: block; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 600; }
.phrase-row { display: flex; gap: 10px; }
.phrase-row input { width: 100%; min-width: 0; border: 1px solid rgba(17,19,16,.22); border-radius: 9px; padding: 13px 14px; background: #faf9f5; outline: none; }
.phrase-row input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(85,48,103,.09); }
.phrase-row button { border: 0; border-radius: 9px; padding: 13px 18px; color: var(--ink); background: var(--acid); font-weight: 700; cursor: pointer; }
.restart-auth { margin-top: 18px; padding: 0; border: 0; border-bottom: 1px solid rgba(17,19,16,.34); background: transparent; font-size: 12px; cursor: pointer; }
.auth-status { min-height: 20px; margin: 18px 0 0; color: #932e44; font-size: 12px; }
.gate-privacy { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(17,19,16,.1); color: rgba(17,19,16,.43); font-size: 10px; line-height: 1.5; }

@media (max-width: 880px) {
  .gate-shell { grid-template-columns: 1fr; width: min(100% - 32px, 560px); padding: 20px 0; }
  .gate-story { min-height: 42vh; padding: 18px 8px; }
  .gate-story h1 { font-size: clamp(54px, 15vw, 84px); }
  .gate-story div > p:last-child { font-size: 16px; }
  .gate-foot { display: none; }
  .gate-card { padding: 34px 24px; margin-bottom: 16px; }
  .gate-step { margin-bottom: 34px; }
  .gate-card h2 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-film { display: none; }
  body { background: radial-gradient(circle at 70% 20%, #3c2549, #0e0c11 55%); }
}
