/* Locked page for visitors without the invitation link – three designs (see gate.js). */

html.locked, html.locked body { overflow: hidden; overscroll-behavior: none; }
html.locked .hint { display: none; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.gate > * { pointer-events: auto; }
@keyframes gate-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------ 1 · Knock knock */

.g1-head {
  position: absolute;
  top: 11vh;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 20px;
}
.g1-head p, .g1-head h1 { margin: 0; }
.g1-kicker {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.14em;
  color: var(--teal);
  text-shadow: 0 0 16px rgba(95, 159, 144, 0.5);
}
.g1-title {
  font-family: "Shrikhand", serif;
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.05;
  color: var(--yellow);
  -webkit-text-stroke: 0.06em var(--teal-ink);
  paint-order: stroke fill;
  text-shadow: 0 0 34px rgba(247, 245, 107, 0.4);
}
.g1-note {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font: italic 500 clamp(21px, 2.1vw, 26px)/1.4 "Cormorant Garamond", serif;
  color: rgba(239, 230, 211, 0.95);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9), 0 0 12px rgba(247, 245, 107, 0.25);
}
.g1.show .g1-kicker { animation: gate-rise 1.2s 0.2s both; }
.g1.show .g1-title { animation: gate-rise 1.3s 0.4s both; }
.g1.show .g1-note { animation: gate-rise 1.4s 0.9s both; }

/* ------------------------------------------------ 2 · Save the date poster */

.g2-poster {
  position: absolute;
  top: 6vh;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 16px;
}
.g2-title {
  margin: 0;
  font-family: "Shrikhand", serif;
  font-weight: 400;
  font-size: clamp(58px, 9.4vw, 136px);
  line-height: 1.02;
  color: var(--yellow);
  -webkit-text-stroke: 0.055em #3a7a70;
  paint-order: stroke fill;
  text-shadow: 0 0 40px rgba(247, 245, 107, 0.35);
}
.g2-title .word { display: inline-block; white-space: nowrap; }
.g2-title .ch { display: inline-block; }
.g2-sub {
  margin: 0.15em 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(34px, 4.6vw, 66px);
  color: var(--teal);
  text-shadow: 0 0 20px rgba(95, 159, 144, 0.45);
}
.g2-note {
  display: inline-block;
  max-width: min(520px, 90vw);
  margin: clamp(12px, 2.6vh, 26px) auto 0;
  padding: 10px 18px 8px;
  border: 2px solid var(--yellow);
  border-radius: 6px;
  font: clamp(17px, 1.7vw, 21px)/1.3 "Bebas Neue", sans-serif;
  letter-spacing: 0.16em;
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 18px rgba(247, 245, 107, 0.3), inset 0 0 14px rgba(247, 245, 107, 0.1);
  text-shadow: 0 0 10px rgba(247, 245, 107, 0.5);
}
.g2-date {
  position: absolute;
  right: 6vw;
  bottom: 7vh;
  margin: 0;
  text-align: left;
  font: clamp(30px, 3.6vw, 52px)/1.15 "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--yellow);
  text-shadow: 0 0 18px rgba(247, 245, 107, 0.35);
}
.g2.show .g2-title .word { animation: gate-rise 1.3s 0.15s both; }
.g2.show .g2-sub { animation: gate-rise 1.2s 0.5s both; }
.g2.show .g2-note { animation: gate-rise 1.2s 0.85s both; }
.g2.show .g2-date { animation: gate-rise 1.4s 1.1s both; }

/* ------------------------------------------------ 3 · Golden ticket */

.g3-ticket {
  position: absolute;
  left: 50%;
  width: min(600px, 92vw);
  margin-left: max(-300px, -46vw);
  display: flex;
  color: var(--burgundy);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 40px rgba(255, 200, 120, 0.25));
}
@keyframes g3-float {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-10px) rotate(0.6deg); }
}
.g3.show .g3-ticket { animation: gate-rise 1.3s 0.2s both, g3-float 6s 1.5s ease-in-out infinite; }
.g3-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.g3-stub {
  position: relative;
  flex: 0 0 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
}
.g3-admit { font-weight: 700; font-size: 15px; letter-spacing: 0.32em; }
.g3-no { font-size: 11px; letter-spacing: 0.2em; opacity: 0.7; }
.g3-main { position: relative; flex: 1; padding: 36px 34px 34px 30px; text-align: center; }
.g3-kicker {
  margin: 0;
  font: 600 11px "Playfair Display", serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
}
.g3-title {
  margin: 8px 0 14px;
  font-family: "Shrikhand", serif;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.05;
  color: var(--burgundy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.g3-note {
  margin: 0;
  font: italic 500 clamp(17px, 2vw, 20px)/1.35 "Cormorant Garamond", serif;
  color: var(--burgundy-soft);
}
.g3-stamp {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px 4px;
  border: 3px double #b0262d;
  border-radius: 6px;
  color: #b0262d;
  font: clamp(18px, 2.6vw, 24px)/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  mix-blend-mode: multiply;
  opacity: 0.8;
  transform: rotate(-6deg);
  pointer-events: none;
}

@media (max-width: 520px) {
  .g3-stub { flex-basis: 60px; gap: 10px; padding-right: 4px; }
  .g3-admit { font-size: 11px; letter-spacing: 0.26em; }
  .g3-main { padding: 30px 22px 26px 20px; }
  .g2-date { bottom: 4vh; }
}

@media (prefers-reduced-motion: reduce) {
  .gate *, .gate { animation: none !important; }
}
