/* qdoor-access-gate-v1: compact game-entry password verification, visually aligned with the reference site. */
.qdoor-access-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: #f7f7f8;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.qdoor-access-card {
  width: min(100%, 360px);
  box-sizing: border-box;
  padding: 1.65rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  color: #1f2937;
  animation: qdoor-access-in 180ms ease-out;
}
.qdoor-access-mark {
  width: 5.4rem;
  height: 2.35rem;
  margin: 0 auto 0.7rem;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: #000;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.18);
}
.qdoor-access-card img.qdoor-access-mark {
  width: 5.4rem !important;
  min-width: 5.4rem !important;
  height: 2.35rem !important;
}
.qdoor-access-heading { margin-bottom: 1.45rem; text-align: center; }
.qdoor-access-title { color: #1f2937; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em; }
.qdoor-access-subtitle { margin-top: 0.35rem; color: #6b7280; font-size: 0.75rem; line-height: 1.6; }
.qdoor-access-field { margin-bottom: 0.85rem; }
.qdoor-access-field label { display: block; margin-bottom: 0.42rem; color: #374151; font-size: 0.75rem; font-weight: 600; }
.qdoor-access-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.82rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
  outline: none;
}
.qdoor-access-field input:focus { border-color: #374151; box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.12); }
.qdoor-access-error { min-height: 1rem; margin-top: 0.38rem; color: #dc2626; font-size: 0.7rem; }
.qdoor-access-submit {
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #1f2937;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.qdoor-access-submit:hover { background: #111827; }
.qdoor-access-submit:disabled { cursor: wait; opacity: 0.72; }
.qdoor-access-group-link {
  display: block;
  margin-top: 0.95rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fafafa;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.qdoor-access-group-link:hover { background: #f3f4f6; }
.qdoor-access-footer { margin-top: 0.75rem; color: #9ca3af; font-size: 0.66rem; line-height: 1.55; text-align: center; }
@keyframes qdoor-access-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
