/* --- 1. AGE GATE OVERLAY (Full Screen Frosted Glass) --- */
.age-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 1. VISIBILITY: Semi-Transparent + Heavy Blur */
  /* This creates the "Frosted Glass Wall" effect over the whole site */
  
  background-color: rgba(0, 0, 0, 0.5); 
  backdrop-filter: blur(7px);           
  -webkit-backdrop-filter: blur(7px);
  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;

  /* GPU Rendering */
  transform: translateZ(0);
  will-change: clip-path, opacity, backdrop-filter;

  /* 2. START STATE: FULL SCREEN (No Clipping) */
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  
  opacity: 1;

  /* 3. TRANSITIONS (The Implosion) */
  transition: 
    /* Shrink: "Snappy" curve */
    clip-path .8s cubic-bezier(0.19, 1, 0.22, 1), 
    -webkit-clip-path .8s cubic-bezier(0.19, 1, 0.22, 1),
    
    /* Unblur: Synced with shrink */
    backdrop-filter 1.8s ease .5s,
    -webkit-backdrop-filter 1.8s ease .5s,
    background-color 1.8s ease,

    /* Fade: Lingers slightly longer */
    opacity 1.8s ease .3s;
}

/* --- ANIMATION STEP 1: IMPLODE TO CENTER --- */
.age-overlay.rect-shrink {
  clip-path: inset(20vh 34vw round 30px);
-webkit-clip-path: inset(20vh 34vw round 30px);
  
  /* Clear the effects as it shrinks */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background-color: rgba(0, 0, 0, 0); 
}

/* --- ANIMATION STEP 2: FADE OUT --- */
.age-overlay.final-fade {
  opacity: 0;
  pointer-events: none;
}

/* --- CONTENT STYLING --- */
.age-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    text-align: center;
    max-width: 50rem;
    width: 90%;
    background: rgba(20, 20, 20, 0.85);
    padding: 3rem 2rem;
    border-radius: 50px 10px;
    border: 1px solid var(--signature-orange);
    box-shadow: 0 0 10px rgba(219, 167, 69, 0.4), inset 0 0 15px rgba(219, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.age-logo {
  width: 18rem;
  margin-bottom: 0 auto 1.5rem;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.age-content h2 {
  font-family: var(--font-headers);
  font-size: 2.3rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 1.5rem 0;
  color: var(--signature-orange);
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.age-content p {
  font-size: 1.3rem;
}

.age-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}

.btn-verify, .btn-exit {
  min-width: 17rem;
  padding: 1rem 3rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-headers);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

/* --- 1. VERIFY BUTTON (Base) --- */
.btn-verify {
  background-color: var(--signature-orange);
  color: #000;
  border: none;
  box-shadow: 0 4px 6px rgba(248, 194, 93, 0.2); 
}

/* --- 2. EXIT BUTTON (Base) --- */
.btn-exit {
  background-color: #000; /* Pure Black */
  color: #fff;            /* White Font */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
}

/* --- 3. HOVER STATES (Desktop Only) --- */
/* CRITICAL: This MUST come BEFORE the :active state below! */
@media (hover: hover) {
  
  .btn-verify:hover {
    background-color: #fff;
    color: #000;
    /* Move Vertically Slightly */
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(248, 194, 93, 0.4);
  }

  .btn-exit:hover {
    background-color: rgba(29, 29, 29, 0.2);
    border-color:var(--signature-orange);
    color: var(--signature-orange);
    /* Move Vertically Slightly */
    transform: translateY(-2px);
  }
}

/* --- 4. ACTIVE STATES (Click / Touch) --- */
/* This is now at the bottom, so it overrides everything else */

.btn-verify:active {
  background-color: #fff; 
  /* Scale Down Slightly (The Squish) */
  transform: scale(0.97) translateY(0); 
  box-shadow: 0 2px 4px rgba(248, 194, 93, 0.2); 
}

.btn-exit:active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--signature-orange); /* Font turns Orange */
  border-color: var(--signature-orange); /* Border turns Orange */
  /* Scale Down Slightly */
  transform: scale(0.97) translateY(0);
}



.age-content .age-disclaimer {
  max-width: 80%;
  margin: 2rem auto 0;
  font-size: 1.2rem;
  color: #aaa;
  line-height: 1.4;
}

/* --- MOBILE ADJUSTMENTS --- */
@media screen and (max-width: 768px) {
  /* Fix 1: Ensure Start State is Full Screen on Mobile too */
  .age-overlay {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
  
  /* Fix 2: Keep the "Implode" centered */
  .age-overlay.rect-shrink {
    clip-path: inset(22.5vh 10vw round 20px);
    -webkit-clip-path: inset(22.5vh 10vw round 20px);
  }

  /* Content Sizing */
  .age-content {
    font-size: 1.8rem;
    height: 80%;
    padding: 2rem 1.5rem;
    width: 90%;
    /* On mobile, we can make the card slightly darker for readability */
    background: rgba(30, 30, 30, 0.6); 
  }

  .age-logo { width: 190px; margin-bottom: 1rem; }

  .age-content h2 { font-size: 1.8rem; margin-bottom: 1rem; }
  
  .age-buttons {
    flex-direction: column;
    gap: 15px;
 
  }
  
  .btn-verify, .btn-exit {
  
  padding: 1.5rem 10rem;
}

  .age-disclaimer {
  margin: 1rem auto 0;
}
}

/* --- UTILITY: LOCK SCROLL --- */
/* Prevents the background from moving while Age Gate is active */
body.lock-scroll {
  overflow: hidden;
  height: 100vh; /* Forces the body to stay screen-height */
  touch-action: none; /* Disables touch scrolling on some mobile browsers */
}