/* ============================================================
   VAN LAX — BAROQUE GOLDEN GATE  (Versailles / Peterhof style)
   Gate covers only the center image box, two panels split open
   ============================================================ */

/* ── Gate wrapper: covers the center square image area ──────── */
#gothic-gate-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* The hub-image-box is 100vh × 100vh square centered */
  width: min(100vh, 100vw);
  height: 100vh;
  z-index: 8500;
  pointer-events: none;
  overflow: hidden;
  display: flex;
}

/* Two SVG panels side by side */
#gothic-gate-container .gate-panel-left,
#gothic-gate-container .gate-panel-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  will-change: transform;
  transition: transform 2s cubic-bezier(0.4, 0, 0.1, 1);
}
#gothic-gate-container .gate-panel-left  { left: 0; }
#gothic-gate-container .gate-panel-right { right: 0; }

/* Opening animation: panels slide apart */
#gothic-gate-container.gate-opening .gate-panel-left  { transform: translateX(-100%); }
#gothic-gate-container.gate-opening .gate-panel-right { transform: translateX(100%); }

/* ── INVITE FORM ─────────────────────────────────────────── */
.wlc-invite-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.55em;
  color: rgba(229,178,54,0.5);
  text-transform: uppercase;
  margin: 0 0 14px;
  display: block;
}
.wlc-code-wrap { position: relative; margin-bottom: 6px; }
.wlc-code-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(229,178,54,0.3);
  width: 100%;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.35s;
  caret-color: #E5B236;
}
.wlc-code-input::placeholder { color: rgba(255,255,255,0.18); letter-spacing: 0.3em; }
.wlc-code-input:focus { border-bottom-color: rgba(229,178,54,0.75); }
.wlc-code-input.shake { animation: codeShake 0.5s ease; }
@keyframes codeShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.wlc-gate-error {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(255,70,70,0.85);
  min-height: 18px;
  margin: 10px 0 0;
}
.wlc-gate-success { text-align: center; }
.wlc-access-granted {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.65em;
  color: #E5B236;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: grantedPulse 1.2s ease infinite;
}
@keyframes grantedPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.wlc-gate-form { transition: opacity 0.3s; }
.wlc-gate-submit {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #E5B236;
  background: transparent;
  border: 1px solid rgba(229,178,54,0.5);
  padding: 14px 44px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin-top: 22px;
}
.wlc-gate-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,178,54,0.08), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.wlc-gate-submit:hover::before { transform: scaleX(1); }
.wlc-gate-submit:hover {
  color: #fff;
  border-color: rgba(229,178,54,0.85);
  box-shadow: 0 0 20px rgba(229,178,54,0.2);
}
.wlc-gate-submit:disabled { opacity: 0.5; cursor: default; }

/* ── Close (×) button ──────────────────────────────────────── */
.wlc-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(229,178,54,0.45);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 1;
}
.wlc-close-btn:hover {
  color: rgba(229,178,54,0.9);
  transform: scale(1.15);
}


/* ── Overlay & Popup ─────────────────────────────────────────── */
#welcome-popup-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); padding: 20px;
}
#welcome-popup {
  position: relative; max-width: 520px; width: 100%;
  background: linear-gradient(145deg, rgb(25,20,10) 0%, rgb(10,8,20) 100%);
  border: 1px solid rgba(229,178,54,0.35); border-radius: 4px;
  padding: 38px 40px 34px; text-align: center;
  box-shadow: 0 0 60px rgba(229,178,54,0.08), 0 0 120px rgba(0,0,0,0.6);
  animation: wlcSlideUp 1s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
@keyframes wlcSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#welcome-popup::before, #welcome-popup::after {
  content: ''; position: absolute; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,178,54,0.6), transparent);
}
#welcome-popup::before { top: 18px; } #welcome-popup::after { bottom: 18px; }
.wlc-crest {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.wlc-crest-img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(229,178,54,0.25));
}
.wlc-sup { font-family: 'Montserrat',sans-serif; font-weight: 200; font-size: 0.65rem; letter-spacing: 0.5em; color: rgba(229,178,54,0.55); text-transform: uppercase; margin: 0 0 4px; }
.wlc-logo { font-family: 'Cormorant Garamond',serif; font-weight: 300; font-size: clamp(2.1rem,4vw,2.7rem); letter-spacing: 0.28em; color: #E5B236; text-shadow: 0 0 30px rgba(229,178,54,0.3); margin: 0 0 12px; }
.wlc-divider { width: 60px; height: 1px; background: linear-gradient(90deg,transparent,#E5B236,transparent); margin: 0 auto 18px; }
.wlc-body { font-family: 'Cormorant Garamond',serif; font-size: clamp(0.95rem,1.8vw,1.05rem); font-weight: 300; line-height: 1.75; color: rgba(220,210,190,0.82); margin: 0 0 12px; }
.wlc-quote { font-family: 'Cormorant Garamond',serif; font-style: italic; font-size: clamp(0.98rem,2vw,1.12rem); color: rgba(229,178,54,0.75); border-left: 2px solid rgba(229,178,54,0.4); padding-left: 12px; text-align: left; margin: 14px 0 22px; line-height: 1.5; }

.wlc-invite-label { font-family: 'Montserrat',sans-serif; font-size: 0.65rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.4); text-transform: uppercase; display: block; margin-bottom: 12px; }
.wlc-code-wrap { display: flex; justify-content: center; }
.wlc-code-input { background: transparent; border: none; border-bottom: 1px solid rgba(229,178,54,0.4); color: #E5B236; font-family: 'Montserrat',sans-serif; font-size: 1.4rem; letter-spacing: 0.25em; text-align: center; width: 220px; padding: 8px 0; outline: none; }
.wlc-gate-error { font-size: 0.75rem; color: #ff6b6b; min-height: 20px; margin: 8px 0 0; }
.wlc-access-granted { font-family: 'Montserrat',sans-serif; font-size: 0.85rem; letter-spacing: 0.3em; color: #4caf50; margin-bottom: 16px; }
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9100; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 14px 28px; background: rgba(8,6,16,0.92); border-top: 1px solid rgba(229,178,54,0.2); backdrop-filter: blur(10px); font-family: 'Montserrat',sans-serif; }
#cookie-banner.hidden { animation: cookieSlideDown 0.4s ease forwards; }
@keyframes cookieSlideDown { from { transform: translateY(0); } to { transform: translateY(120%); } }
.cookie-text { font-size: 0.75rem; font-weight: 300; letter-spacing: 0.06em; color: rgba(200,190,170,0.75); line-height: 1.5; }
#cookie-accept-btn { font-family: 'Montserrat',sans-serif; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.25em; text-transform: uppercase; background: transparent; border: 1px solid rgba(229,178,54,0.5); color: #E5B236; padding: 8px 24px; cursor: pointer; flex-shrink: 0; transition: all 0.3s ease; }
#cookie-accept-btn:hover { background: rgba(229,178,54,0.1); border-color: rgba(229,178,54,0.85); color: #fff; }
@media (max-width: 600px) { #welcome-popup { padding: 40px 24px 36px; } }
