#license-gate {
  position: absolute;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: calc(var(--phone-safe-top, 0px) + 48px) 24px calc(env(safe-area-inset-bottom, 0px) + 32px);
  color: #293044;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.78), transparent 42%),
    rgba(246, 248, 252, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

#license-gate[hidden] {
  display: none !important;
}

.license-gate-content {
  width: min(100%, 286px);
  text-align: center;
}

.license-gate-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 1px solid rgba(141, 128, 179, 0.22);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 231, 247, 0.76));
  box-shadow: 0 9px 20px rgba(92, 83, 132, 0.12);
}

.license-gate-eyebrow {
  margin: 0 0 7px;
  color: #8d80b3;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.license-gate-title {
  margin: 0;
  color: #30364b;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.license-gate-hint {
  margin: 12px 0 22px;
  color: #7b8195;
  font-size: 13px;
}

.license-gate-form {
  display: grid;
  gap: 10px;
}

.license-gate-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(141, 128, 179, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.8);
  color: #30364b;
  font: inherit;
  font-size: 14px;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.license-gate-input::placeholder {
  color: #a6aabd;
}

.license-gate-input:focus {
  border-color: rgba(141, 128, 179, 0.62);
  box-shadow: 0 0 0 3px rgba(141, 128, 179, 0.12);
}

.license-gate-button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #8d80b3;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(101, 90, 143, 0.18);
  transition: transform 160ms ease, opacity 160ms ease;
}

.license-gate-button:active {
  transform: translateY(1px);
}

.license-gate-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.license-gate-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: #7b8195;
  font-size: 11px;
  line-height: 1.5;
}

.license-gate-status[data-tone="error"] {
  color: #ad5c6d;
}

@media (prefers-reduced-motion: reduce) {
  .license-gate-input,
  .license-gate-button {
    transition: none;
  }
}
