/* Password gate (shared by the landing page and every locked room). */
.gate-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 8, 10, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gate-plate { width: min(380px, 100%); border-radius: 12px; padding: 3px;
  background: linear-gradient(160deg, #e2c06a, #a8792b 55%, #d5aa4f); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.gate-inner { background: linear-gradient(180deg, #f7ecd3, #eadbb8); border-radius: 10px; padding: 24px 22px 18px;
  color: #2b2416; text-align: center; font-family: Georgia, "Times New Roman", serif; }
.gate-inner h2 { margin: 0; font-size: 21px; letter-spacing: 0.02em; font-weight: 600; }
.gate-inner p { margin: 6px 0 16px; font-size: 13px; color: #5a4a2c; }
.keyhole { width: 22px; height: 30px; margin: 0 auto 12px; position: relative; }
.keyhole::before { content: ""; position: absolute; left: 3px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #2b2416; }
.keyhole::after { content: ""; position: absolute; left: 7px; top: 12px; width: 8px; height: 18px; background: #2b2416;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.gate-form { display: flex; gap: 8px; }
.gate-form input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 8px 10px; border: 1px solid #a88b55; border-radius: 6px;
  background: #fffaf0; color: #2b2416; letter-spacing: 0.35em; text-align: center; }
.gate-form input:focus { outline: 2px solid #a8792b; outline-offset: 1px; }
.gate-form button { font: inherit; font-size: 14px; padding: 8px 16px; border: 0; border-radius: 6px; background: #2b2416; color: #f6ead0; cursor: pointer; }
.gate-form button:hover { background: #3d3320; }
.gate-error { min-height: 18px; font-size: 12px; color: #8a2b1d; margin-top: 8px; }
.gate-back { display: inline-block; margin-top: 10px; font-size: 12px; color: #5a4a2c; }
.gate-plate.shake { animation: gate-shake 0.4s; }
@keyframes gate-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) { .gate-plate.shake { animation: none; } }
