/* OEATI Age Gate — overlay Modal per OEATI interaction specs.
   Frosted glass backdrop, single champagne accent #D9C8B0, black primary button,
   tabular numbers, focus = soft outer ring, press = scale .96 with springy return. */

html.oeati-ag-lock,
html.oeati-ag-lock body {
  overflow: hidden !important;
}

#oeati-agegate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 20, 17, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

#oeati-agegate .oeati-ag-card {
  background: #fffdf9;
  color: #1c1a17;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 32px 28px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: oeati-ag-in 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes oeati-ag-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#oeati-agegate.oeati-ag-out .oeati-ag-card {
  animation: oeati-ag-outp 0.28s ease-in both;
}

@keyframes oeati-ag-outp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(10px); }
}

#oeati-agegate .oeati-ag-logo {
  height: 62px;
  width: auto;
  margin: 0 auto 10px;
  display: block;
}

#oeati-agegate h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

#oeati-agegate .oeati-ag-text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #57534b;
}

#oeati-agegate .oeati-ag-dob {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}

#oeati-agegate .oeati-ag-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8378;
  flex: 0 0 76px;
  text-align: center;
}

#oeati-agegate .oeati-ag-field-year {
  flex-basis: 104px;
}

#oeati-agegate .oeati-ag-field input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  padding: 12px 0;
  border: 1.5px solid #e7dfd1;
  border-radius: 12px;
  background: #fff;
  color: #1c1a17;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#oeati-agegate .oeati-ag-field input:focus {
  outline: none;
  border-color: #d9c8b0;
  box-shadow: 0 0 0 4px rgba(217, 200, 176, 0.45);
}

#oeati-agegate .oeati-ag-error {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #b3261e;
}

#oeati-agegate .oeati-ag-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #141210;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

#oeati-agegate .oeati-ag-btn:hover {
  background: #2a2724;
}

#oeati-agegate .oeati-ag-btn:active {
  transform: scale(0.96);
}

#oeati-agegate .oeati-ag-exit {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 8px;
  background: none;
  border: 0;
  color: #8a8378;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#oeati-agegate .oeati-ag-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #a39a8b;
}

#oeati-agegate .oeati-ag-blocked-text {
  margin: 6px 0 4px;
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 480px) {
  #oeati-agegate .oeati-ag-card {
    padding: 26px 20px 22px;
    border-radius: 18px;
  }
  #oeati-agegate .oeati-ag-logo {
    height: 52px;
  }
  #oeati-agegate .oeati-ag-field {
    flex-basis: 68px;
  }
  #oeati-agegate .oeati-ag-field-year {
    flex-basis: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #oeati-agegate .oeati-ag-card {
    animation: none;
  }
}
