html.locked { overflow: hidden; }
html.locked body > *:not(.gate) { visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: var(--bg-bottom, #07200f); color: #fff; font-family: "DM Sans", -apple-system, "Helvetica Neue", Arial, sans-serif; transition: opacity .4s ease; }
.gate { transition: opacity .6s ease .1s; }
.gate.out { opacity: 0; pointer-events: none; }
.gate.out .gate-card { transform: translateY(-14px) scale(.97); transition: transform .5s ease; }
.gate-card { width: min(420px, 100%); text-align: left; }
.gate-card svg { width: 34px; height: 34px; fill: none; stroke: var(--head-on, #b9f0cb); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.gate-card h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.gate-card p { margin: 0 0 22px; color: rgba(255,255,255,.7); font-size: 16px; }
/* Same field as the GigAI prompt bar on the landing page */
.gate-row { display: flex; gap: 8px; align-items: center; border: 2px solid #111; border-radius: 16px; padding: 5px 5px 5px 16px; background: #fff; transition: box-shadow .2s ease; }
.gate-row:focus-within { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.gate-card .gate-row > svg { width: 18px; height: 18px; margin: 0; flex: none; stroke: #111; }
.gate-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #111; font: 500 16px "DM Sans", sans-serif; padding: 8px 0; }
.gate-row input::placeholder { color: #8a8a8a; }
.gate-row button { width: 36px; height: 36px; border-radius: 11px; border: 0; background: #111; cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.gate-row button:hover { opacity: .8; }
.gate-card .gate-row button svg { width: 17px; height: 17px; margin: 0; fill: none; stroke: #fff; stroke-width: 2.4; }
.gate-err { min-height: 22px; margin-top: 10px; color: #ffb4a8; font-size: 14px; }
.gate-card.shake { animation: gate-shake .35s ease; }
@keyframes gate-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* After unlocking, the page rises in piece by piece */
@keyframes gate-rise { from { opacity: 0; transform: translateY(28px) scale(.985); } }
html.reveal body > *:not(.gate) { animation: gate-rise .95s cubic-bezier(.2, .8, .2, 1) both; }
html.reveal body > *:nth-child(3) { animation-delay: .08s; }
html.reveal body > *:nth-child(4) { animation-delay: .16s; }
html.reveal body > *:nth-child(5) { animation-delay: .24s; }
html.reveal body > *:nth-child(n+6) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { html.reveal body > *:not(.gate), .gate-card.shake { animation: none; } }
