#account-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, .78), transparent 42%), rgba(246, 248, 252, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

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

.account-gate-content { width: min(100%, 286px); text-align: center; }
.account-gate-mark { width: 42px; height: 42px; margin: 0 auto 18px; border: 1px solid rgba(141, 128, 179, .22); border-radius: 15px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(226,231,247,.76)); box-shadow: 0 9px 20px rgba(92,83,132,.12); }
.account-gate-eyebrow { margin: 0 0 7px; color: #8d80b3; font-size: 12px; letter-spacing: .16em; }
.account-gate-title { margin: 0; color: #30364b; font-size: 28px; font-weight: 650; letter-spacing: .08em; }
.account-gate-hint { margin: 12px 0 22px; color: #7b8195; font-size: 13px; }
.account-gate-form { display: grid; gap: 10px; text-align: left; }
.account-gate-label { display: grid; gap: 6px; color: #7b8195; font-size: 12px; }
.account-gate-input { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid rgba(141,128,179,.22); border-radius: 14px; outline: none; background: rgba(255,255,255,.8); color: #30364b; font: inherit; font-size: 14px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.account-gate-input::placeholder { color: #a6aabd; }
.account-gate-input:focus { border-color: rgba(141,128,179,.62); box-shadow: 0 0 0 3px rgba(141,128,179,.12); }
.account-gate-button { min-height: 44px; margin-top: 3px; 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,.18); transition: transform 160ms ease, opacity 160ms ease; }
.account-gate-button:active { transform: translateY(1px); }
.account-gate-button:disabled { opacity: .58; cursor: wait; }
.account-gate-status { min-height: 18px; margin: 12px 0 0; color: #7b8195; font-size: 11px; line-height: 1.5; text-align: center; }
.account-gate-status[data-tone="error"] { color: #ad5c6d; }
.account-gate-note { margin: 14px 0 0; color: #969bad; font-size: 11px; line-height: 1.5; text-align: center; }
.account-gate-local-panel { display: grid; gap: 5px; margin-top: 11px; }
.account-gate-local-button { width: 100%; min-height: 44px; border: 1px solid rgba(141,128,179,.44); border-radius: 14px; background: rgba(255,255,255,.56); color: #756a9d; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.account-gate-local-button:hover { border-color: rgba(141,128,179,.68); background: rgba(255,255,255,.86); }
.account-gate-local-button:active { transform: translateY(1px); }
.account-gate-local-button:focus-visible { outline: 2px solid rgba(141,128,179,.65); outline-offset: 2px; }
.account-gate-local-button:disabled { opacity: .58; cursor: wait; }
.account-gate-local-note, .account-gate-local-status { margin: 0; color: #969bad; font-size: 10px; line-height: 1.45; text-align: center; }
.account-gate-local-status { min-height: 0; }
.account-gate-local-status[data-tone="error"] { color: #ad5c6d; }
.account-local-acceptance-badge { display: block; color: #8b938d; font-size: 9px; font-weight: 600; line-height: 1.1; letter-spacing: .08em; white-space: nowrap; }
.account-gate-back { margin-top: 5px; border: 0; background: transparent; color: #8d80b3; font: inherit; font-size: 12px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .account-gate-input, .account-gate-button, .account-gate-local-button { transition: none; } }
