/* access-gate.css — 漂亮令牌输入弹窗 + 被踢出提示 */
:root {
  --gate-bg: rgba(5, 9, 13, 0.94);
  --gate-card: #0e1620;
  --gate-border: rgba(46, 232, 214, 0.18);
  --gate-muted: #94a3b8;
  --gate-error: #ff5b5b;
  --gate-accent: #2ee8d6;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.access-gate.is-hidden {
  display: none !important;
}

.access-gate__backdrop {
  position: absolute;
  inset: 0;
  background: var(--gate-bg);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
}

.access-gate__card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, var(--gate-card) 0%, #0a1118 100%);
  border: 1px solid var(--gate-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(46, 232, 214, 0.04);
  text-align: center;
  animation: gate-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gate-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.access-gate__brand {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gate-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.access-gate__title {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 500;
  color: var(--text, #edf4f8);
  letter-spacing: 1px;
}

.access-gate__input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(15, 22, 32, 0.85);
  border: 1px solid rgba(159, 176, 187, 0.22);
  border-radius: 10px;
  color: var(--text, #edf4f8);
  font: inherit;
  font-size: 15px;
  letter-spacing: 1px;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}

.access-gate__input::placeholder {
  color: rgba(148, 163, 184, 0.55);
  letter-spacing: 2px;
}

.access-gate__input:focus {
  border-color: var(--gate-accent);
  box-shadow: 0 0 0 3px rgba(46, 232, 214, 0.16);
}

.access-gate__button {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2ee8d6, #46e6c8);
  border: none;
  border-radius: 10px;
  color: #03161a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.access-gate__button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px -4px rgba(46, 232, 214, 0.5);
}

.access-gate__button:active {
  transform: translateY(1px) scale(0.99);
}

.access-gate__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.access-gate__error {
  margin-top: 14px;
  min-height: 18px;
  font-size: 13px;
  color: var(--gate-error);
  letter-spacing: 0.5px;
  height: 0;
  overflow: hidden;
  transition: height 0.18s ease-out;
}

.access-gate__error.is-visible {
  height: auto;
  animation: gate-shake 0.4s;
}

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

.access-gate__hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--gate-muted);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* kicked toast */
.kicked-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 12px 24px;
  background: rgba(26, 31, 41, 0.95);
  border: 1px solid rgba(255, 91, 91, 0.32);
  border-radius: 10px;
  color: #ffe8e8;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 30px -8px rgba(255, 91, 91, 0.35);
  animation: toast-in 0.3s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.kicked-toast.is-out {
  opacity: 0;
  transition: opacity 0.3s;
}