/* WebAI Lab — closed beta gate (Skynet brown console language) */
.webai-beta-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(61, 54, 50, 0.32);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

html.webai-beta-ok .webai-beta-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.webai-gate-locked {
  overflow: hidden;
}

.webai-beta-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: linear-gradient(165deg, #2A2420 0%, #1A1614 48%, #241E1A 100%);
  border: 1px solid rgba(201, 168, 124, 0.28);
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1rem;
  box-shadow:
    0 12px 32px rgba(20, 14, 10, 0.45),
    0 0 0 1px rgba(61, 54, 50, 0.35),
    inset 0 1px 0 rgba(250, 248, 245, 0.06);
  text-align: center;
  overflow: hidden;
  animation: webai-gate-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.webai-beta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(201, 168, 124, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(139, 115, 85, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.webai-beta-card > * {
  position: relative;
  z-index: 1;
}

@keyframes webai-gate-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.webai-beta-card.shake {
  animation: webai-gate-shake 0.4s ease;
}

@keyframes webai-gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.webai-beta-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #C9A87C 0%, #8B7355 55%, #5C4A3A 100%);
  border: 1px solid rgba(201, 168, 124, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(201, 168, 124, 0.18);
}

.webai-beta-icon svg {
  width: 22px;
  height: 22px;
  color: #FAF8F5;
  fill: currentColor;
}

.webai-beta-pill {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A87C;
  background: rgba(201, 168, 124, 0.1);
  border: 1px solid rgba(201, 168, 124, 0.28);
}

.webai-beta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #F5EFE6;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.webai-beta-title .font-cronde {
  font-family: 'Cronde', Arial, sans-serif !important;
  color: #F5EFE6;
  -webkit-text-fill-color: #F5EFE6;
}

.webai-beta-title-accent {
  font-weight: 600;
  background: linear-gradient(135deg, #E8D4B0, #C9A87C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.webai-beta-sub {
  font-size: 0.78rem;
  color: rgba(245, 239, 230, 0.58);
  line-height: 1.45;
  margin: 0 0 0.9rem;
}

.webai-beta-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.webai-beta-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 168, 124, 0.85);
}

.webai-beta-input {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 124, 0.28);
  background: rgba(61, 54, 50, 0.55);
  color: #F5EFE6;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.webai-beta-input::placeholder {
  color: rgba(245, 239, 230, 0.35);
}

.webai-beta-input:focus {
  border-color: rgba(201, 168, 124, 0.65);
  box-shadow: 0 0 0 2px rgba(201, 168, 124, 0.2);
}

.webai-beta-error {
  min-height: 0.95rem;
  font-size: 0.72rem;
  color: #E8A09A;
  text-align: center;
  margin: 0;
}

.webai-beta-submit {
  margin-top: 0.15rem;
  width: 100%;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(201, 168, 124, 0.35);
  border-radius: 9999px;
  background: linear-gradient(145deg, #8B7355 0%, #6B5344 55%, #3D3632 100%);
  color: #FAF8F5;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.webai-beta-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 248, 245, 0.35);
}

.webai-beta-back {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: rgba(201, 168, 124, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.webai-beta-back:hover {
  color: #F5EFE6;
}