/* =========================================================
   Alex & Charlotte — Holiday Countdown
   Warm sunset palette inspired by banner1.png
   ========================================================= */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--bg-base);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Design Tokens (banner-derived palette) ---------- */
:root {
  --peach-50:  #fbeee2;
  --peach-100: #f7dfca;
  --peach-200: #f4d1bb;
  --peach-300: #edccb5;
  --peach-400: #e0b59b;
  --rose-400:  #cea898;
  --rose-500:  #c08580;
  --rose-600:  #a66860;
  --clay-600:  #8b5a4a;
  --clay-700:  #6b4034;
  --clay-800:  #4a2a22;
  --gold-300:  #e6c79a;
  --gold-400:  #d4a574;
  --gold-500:  #c89060;
  --cream:     #fdf6ee;
  --white-soft: rgba(255, 250, 244, 0.85);

  --ink: #4a2a22;
  --ink-soft: #6b4034;
  --ink-muted: rgba(74, 42, 34, 0.7);

  --bg-base: #f7dfca;
  --bg-gradient: radial-gradient(
      ellipse at 50% 0%,
      #ffe9d1 0%,
      #f4d1bb 35%,
      #edccb5 60%,
      #cea898 100%
    );

  --shadow-soft: 0 10px 40px -10px rgba(139, 90, 74, 0.25);
  --shadow-card: 0 20px 60px -20px rgba(107, 64, 52, 0.35),
                 0 2px 8px rgba(107, 64, 52, 0.08);
  --shadow-lift: 0 30px 80px -30px rgba(74, 42, 34, 0.45);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
  --sans: "Inter", system-ui, sans-serif;

  --container: min(1180px, 92vw);
}

/* ---------- Backdrop / Decorative Layers ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-gradient);
  overflow: hidden;
}

/* Soft warm overlay so type stays legible */
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 234, 200, 0.55), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(192, 133, 128, 0.35), transparent 55%);
  pointer-events: none;
}

/* Subtle grain for depth */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(74, 42, 34, 0.6) 1px, transparent 1px),
    radial-gradient(rgba(74, 42, 34, 0.4) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}

/* ---------- Sun ---------- */
.sun {
  position: absolute;
  top: 8%;
  right: -6%;
  width: clamp(280px, 36vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%,
      #fff6e7 0%,
      #ffe2bd 30%,
      #f7c79a 55%,
      rgba(247, 199, 154, 0) 75%);
  filter: blur(2px);
  animation: sun-pulse 8s ease-in-out infinite;
}

.sun-rays {
  position: absolute;
  top: 8%;
  right: -6%;
  width: clamp(280px, 36vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 234, 200, 0) 0deg,
      rgba(255, 234, 200, 0.35) 10deg,
      rgba(255, 234, 200, 0) 20deg,
      rgba(255, 234, 200, 0) 60deg,
      rgba(255, 234, 200, 0.35) 70deg,
      rgba(255, 234, 200, 0) 80deg,
      rgba(255, 234, 200, 0) 120deg,
      rgba(255, 234, 200, 0.35) 130deg,
      rgba(255, 234, 200, 0) 140deg,
      rgba(255, 234, 200, 0) 180deg,
      rgba(255, 234, 200, 0.35) 190deg,
      rgba(255, 234, 200, 0) 200deg,
      rgba(255, 234, 200, 0) 240deg,
      rgba(255, 234, 200, 0.35) 250deg,
      rgba(255, 234, 200, 0) 260deg,
      rgba(255, 234, 200, 0) 300deg,
      rgba(255, 234, 200, 0.35) 310deg,
      rgba(255, 234, 200, 0) 320deg
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  filter: blur(4px);
  animation: sun-rotate 60s linear infinite;
}

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.05); opacity: 1; }
}

@keyframes sun-rotate {
  to { transform: rotate(360deg); }
}

/* ---------- Clouds ---------- */
.cloud {
  position: absolute;
  background: rgba(255, 248, 238, 0.65);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  width: 220px; height: 60px;
  top: 18%; left: -10%;
  animation: drift 70s linear infinite;
}
.cloud-1::before { width: 100px; height: 100px; top: -50px; left: 30px; }
.cloud-1::after  { width: 80px;  height: 80px;  top: -35px; left: 110px; }

.cloud-2 {
  width: 280px; height: 70px;
  top: 35%; left: -15%;
  animation: drift 95s linear infinite;
  animation-delay: -20s;
  opacity: 0.55;
}
.cloud-2::before { width: 130px; height: 130px; top: -65px; left: 45px; }
.cloud-2::after  { width: 100px; height: 100px; top: -45px; left: 150px; }

.cloud-3 {
  width: 180px; height: 50px;
  top: 62%; left: -10%;
  animation: drift 85s linear infinite;
  animation-delay: -45s;
  opacity: 0.5;
}
.cloud-3::before { width: 90px; height: 90px; top: -45px; left: 25px; }
.cloud-3::after  { width: 70px; height: 70px; top: -30px; left: 90px; }

.cloud-4 {
  width: 200px; height: 55px;
  top: 78%; left: -12%;
  animation: drift 110s linear infinite;
  animation-delay: -60s;
  opacity: 0.45;
}
.cloud-4::before { width: 100px; height: 100px; top: -50px; left: 30px; }
.cloud-4::after  { width: 80px;  height: 80px;  top: -35px; left: 110px; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(130vw); }
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2rem, 4vw, 3rem);
  position: relative;
}

.hero-inner {
  width: var(--container);
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* Eyebrow / brand */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay-700);
}

.eyebrow-text {
  white-space: nowrap;
}

.eyebrow-line {
  display: inline-block;
  width: clamp(36px, 8vw, 80px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(107, 64, 52, 0.6),
    transparent);
}

/* Title */
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 5.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--clay-800);
  text-wrap: balance;
}

.hero-title-script {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--script);
  font-weight: 600;
  font-size: 1.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--rose-600) 0%, var(--gold-500) 60%, var(--rose-500) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
}

/* Subtitle */
.hero-subtitle {
  margin: 0;
  max-width: 36ch;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ---------- Countdown ---------- */
.countdown {
  margin-top: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.2vw, 1rem);
  width: 100%;
}

.time-card {
  position: relative;
  flex: 0 1 auto;
  min-width: clamp(86px, 14vw, 150px);
  padding: clamp(1.1rem, 2.2vw, 1.75rem) clamp(0.75rem, 1.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  background: linear-gradient(160deg,
    rgba(255, 250, 244, 0.78) 0%,
    rgba(255, 240, 222, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.time-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9),
    rgba(212, 165, 116, 0.25) 50%,
    rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.time-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.time-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--clay-800);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: transform 0.3s ease;
}

.time-value.tick {
  animation: tick 0.45s ease;
}

@keyframes tick {
  0%   { transform: translateY(0);   opacity: 1; }
  40%  { transform: translateY(-6px); opacity: 0.65; }
  100% { transform: translateY(0);   opacity: 1; }
}

.time-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay-600);
}

.time-divider {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--rose-500);
  opacity: 0.7;
  align-self: center;
  padding-bottom: 0.5rem;
  user-select: none;
}

/* ---------- Celebration (when countdown hits zero) ---------- */
.celebration {
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 6vw, 4rem);
  background: linear-gradient(160deg,
    rgba(255, 250, 244, 0.85) 0%,
    rgba(255, 230, 200, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: celebrate 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.celebration[hidden] { display: none; }

.celebration-text {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--rose-600) 0%, var(--gold-500) 60%, var(--rose-500) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.celebration-sub {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

@keyframes celebrate {
  0%   { transform: scale(0.92); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}

  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ---------- Date Section ---------- */
.date-section {
  width: 100%;
  padding: clamp(3rem, 7vw, 6rem) 1.25rem;
  display: flex;
  justify-content: center;
}

.date-card {
  position: relative;
  width: var(--container);
  max-width: 640px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: linear-gradient(160deg,
    rgba(255, 250, 244, 0.6) 0%,
    rgba(247, 223, 202, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.date-label {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--clay-600);
}

.date-value {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--clay-800);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.4rem, 1.5vw, 1rem);
  flex-wrap: wrap;
}

.date-day,
.date-year {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.date-month {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-style: italic;
  background: linear-gradient(135deg, var(--rose-600) 0%, var(--gold-500) 60%, var(--rose-500) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
}

.date-flourish {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-500);
  letter-spacing: 0.5em;
}


/* ---------- Footer ---------- */
.footer {
  width: 100%;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(139, 90, 74, 0.15);
  background: linear-gradient(180deg, transparent, rgba(255, 245, 230, 0.4));
}

.footer p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.heart {
  display: inline-block;
  color: var(--rose-500);
  font-style: normal;
  margin: 0 0.15em;
  animation: heartbeat 2.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  10% { transform: scale(1.18); }
  20% { transform: scale(1); }
  30% { transform: scale(1.12); }
  40% { transform: scale(1); }
}

/* ---------- Fade-in animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections fade in as you scroll near them */
.date-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.date-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .time-divider { display: none; }
  .countdown {
    gap: 0.6rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 520px;
  }
  .time-card { min-width: 0; width: 100%; padding: 1rem 0.5rem; }
  .time-value { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .time-label { font-size: 0.65rem; letter-spacing: 0.22em; }

  .eyebrow { font-size: 0.72rem; letter-spacing: 0.28em; }

  .date-value { gap: 0.5rem; }
}

@media (max-width: 420px) {
  .countdown { gap: 0.5rem; }
  .time-card { padding: 0.9rem 0.4rem; border-radius: 14px; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cloud { display: none; }
}

/* ---------- Backdrop image (subtle behind hero) ---------- */
.backdrop-image {
  position: absolute;
  inset: 0;
  background: url("banner1.png") center 30% / cover no-repeat;
  opacity: 0.35;
  filter: saturate(1.05) blur(1px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.backdrop-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(255, 233, 209, 0.45) 0%,
      rgba(247, 223, 202, 0.55) 40%,
      rgba(206, 168, 152, 0.55) 100%
    );
  pointer-events: none;
}

/* ---------- Featured Banner Section ---------- */
.banner-section {
  width: 100%;
  padding: 0 1.25rem clamp(2rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}

.banner-frame {
  position: relative;
  width: var(--container);
  max-width: 1200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 1916 / 821;
  background: var(--peach-200);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.banner-frame.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.banner-frame:hover .banner-image {
  transform: scale(1.04);
}

/* Soft warm glow over banner edges */
.banner-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 233, 209, 0.25) 0%,
      transparent 25%,
      transparent 75%,
      rgba(139, 90, 74, 0.18) 100%),
    radial-gradient(ellipse at 50% 50%,
      transparent 55%,
      rgba(139, 90, 74, 0.18) 100%);
}

@media (max-width: 600px) {
  .banner-frame { border-radius: var(--radius-md); }
}

/* ---------- Password Gate ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Hide protected content until the user unlocks */
.protected {
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.protected.unlocked {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(255, 233, 209, 0.85) 0%,
      rgba(244, 209, 187, 0.85) 35%,
      rgba(206, 168, 152, 0.85) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background: linear-gradient(160deg,
    rgba(255, 250, 244, 0.92) 0%,
    rgba(255, 240, 222, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  position: relative;
  animation: gate-in 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gate-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach-200), var(--rose-400));
  color: var(--cream);
  box-shadow:
    0 8px 24px -8px rgba(166, 104, 96, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gate-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay-600);
}

.gate-title {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.1;
  color: var(--clay-800);
}

.gate-sub {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.gate-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.gate-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--clay-800);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 90, 74, 0.2);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: 0.02em;
}

.gate-input::placeholder {
  color: rgba(107, 64, 52, 0.45);
  letter-spacing: 0.06em;
}

.gate-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(192, 133, 128, 0.18);
}

.gate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, var(--rose-600), var(--clay-600));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow:
    0 6px 18px -6px rgba(166, 104, 96, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gate-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 10px 24px -8px rgba(166, 104, 96, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.gate-button:active {
  transform: translateY(0);
}

.gate-button svg {
  transition: transform 0.2s ease;
}
.gate-button:hover svg {
  transform: translateX(2px);
}

.gate-error {
  min-height: 1.4em;
  margin: 0.9rem 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--rose-600);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gate-error.visible {
  opacity: 1;
}

.gate-card.shake {
  animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

@media (max-width: 480px) {
  .gate-form { flex-direction: column; }
  .gate-button { padding: 0.85rem 1.25rem; }
}
