/* ACIDENIA — the gate. One card, a wall of light behind it, nothing else to look at. */

html, body { height: 100%; }
body { overflow: hidden auto; background: radial-gradient(900px 600px at 50% 120%, color-mix(in srgb, var(--acid) 14%, transparent), transparent 70%), radial-gradient(700px 500px at 85% -10%, color-mix(in srgb, var(--uv) 22%, transparent), transparent 70%), var(--void); }

/* three slow blooms of light, far away — a hint of what is behind the wall, none of its code */
.wall { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.wall i { position: absolute; width: 46vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: 0.28; animation: drift 26s ease-in-out infinite alternate; }
.wall i:nth-child(1) { left: -12vmax; top: 20%; background: var(--acid); }
.wall i:nth-child(2) { right: -16vmax; top: -12%; background: var(--uv); animation-duration: 34s; animation-delay: -9s; }
.wall i:nth-child(3) { left: 30%; bottom: -30vmax; background: var(--magenta); animation-duration: 40s; animation-delay: -17s; opacity: 0.18; }
@keyframes drift { to { transform: translate3d(6vmax, -4vmax, 0) scale(1.15); } }

.gate { position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: center; gap: 24px; padding: 26px var(--gutter) 48px; }
.gate > .wordmark { justify-self: start; }
.gate__card { width: min(480px, 100%); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; border-radius: var(--petal-lg); transition: transform 700ms var(--ease-bloom), opacity 600ms var(--ease-bloom), filter 600ms; }
.gate__card h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.gate__card .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--stage); }
.is-open .gate__card { transform: scale(1.06); opacity: 0; filter: blur(12px); }
.is-open .wall i { opacity: 0.6; transition: opacity 600ms; }

.tabs { display: flex; gap: 4px; }
.tabs button { padding: 9px 14px; border-radius: 9px 2px 9px 2px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); transition: color var(--t-fast), background var(--t-fast); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
label[hidden] { display: none; }
input { width: 100%; padding: 13px 14px; font-family: var(--font-text); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text); background: rgba(4, 3, 8, 0.72); border: 1px solid var(--line-strong); border-radius: 12px 3px 12px 3px; outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input:focus { border-color: var(--stage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage) 16%, transparent); }
#invite { font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.btn { justify-content: center; margin-top: 4px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.gate__err { min-height: 1.3em; font-size: 0.86rem; color: var(--danger); }
.gate__fine { font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { .wall i { animation: none; } }
