/**
 * Testicuzzi Floating Gate — overlay front door
 * Injected on WP homepage; beach Slider Rev stays visible/dimmed behind.
 * Hosted at /choose/gate-overlay.css
 */
:root {
  --tz-red: #e11d2e;
  --tz-red-hot: #ff2d3f;
  --tz-red-deep: #9b0f1c;
  --tz-black: #0a0a0a;
  --tz-cream: #fff6e8;
  --tz-sand: #f5d9a8;
  --tz-neon: #ffec3d;
  --tz-ok: #2dd4a8;
  --tz-card-radius: 22px;
  --tz-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --tz-gate-z: 2147483000;
}

/* —— Full-viewport floating gate —— */
#tz-gate-root {
  position: fixed;
  inset: 0;
  z-index: var(--tz-gate-z);
  font-family: var(--tz-font);
  color: var(--tz-cream);
  pointer-events: none;
}

#tz-gate-root * {
  box-sizing: border-box;
}

#tz-gate-root[data-open="true"] {
  pointer-events: auto;
}

#tz-gate-root[hidden],
#tz-gate-chip[hidden] {
  display: none !important;
}

.tz-gate-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(90, 10, 18, 0.72) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(26, 58, 92, 0.45) 0%, transparent 45%),
    linear-gradient(180deg, rgba(8, 4, 6, 0.78) 0%, rgba(10, 10, 10, 0.82) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

#tz-gate-root[data-open="true"] .tz-gate-backdrop {
  opacity: 1;
}

.tz-gate-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 2rem;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#tz-gate-root[data-open="true"] .tz-gate-panel {
  opacity: 1;
  transform: none;
}

.tz-gate-brand {
  text-align: center;
}

.tz-gate-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--tz-sand);
  opacity: 0.9;
}

.tz-gate-logo {
  margin: 0;
  line-height: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.tz-gate-logo img {
  display: block;
  margin: 0 auto;
  width: min(240px, 58vw);
  height: auto;
}

.tz-gate-tagline {
  margin: 0.65rem 0 0;
  color: var(--tz-sand);
  font-size: 1.05rem;
}

.tz-gate-prompt {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.tz-gate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 720px) {
  .tz-gate-cards {
    grid-template-columns: 1fr;
  }

  .tz-gate-logo img {
    width: min(200px, 65vw);
  }
}

.tz-gate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem 1.4rem 1.3rem;
  min-height: 250px;
  border-radius: var(--tz-card-radius);
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

.tz-gate-card:focus-visible {
  outline: 3px solid var(--tz-neon);
  outline-offset: 3px;
}

.tz-gate-card-classic {
  background: linear-gradient(160deg, rgba(28, 28, 28, 0.95) 0%, rgba(42, 18, 22, 0.95) 55%, rgba(26, 14, 16, 0.95) 100%);
  border-color: #4a2028;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.tz-gate-card-crazy {
  background: linear-gradient(155deg, rgba(26, 32, 64, 0.95) 0%, rgba(58, 10, 24, 0.95) 40%, rgba(196, 24, 40, 0.92) 100%);
  border-color: var(--tz-red);
  box-shadow: 0 12px 40px rgba(225, 29, 46, 0.25), 0 0 0 1px rgba(255, 236, 61, 0.15) inset;
}

.tz-gate-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.tz-gate-card-classic:hover {
  border-color: var(--tz-red);
  box-shadow: 0 18px 48px rgba(225, 29, 46, 0.35);
}

.tz-gate-card-crazy:hover {
  border-color: var(--tz-neon);
  box-shadow: 0 18px 48px rgba(255, 236, 61, 0.2), 0 0 30px rgba(225, 29, 46, 0.4);
}

.tz-gate-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #2a2a2a;
  color: var(--tz-sand);
}

.tz-gate-badge-hot {
  background: var(--tz-neon);
  color: #1a0a00;
}

.tz-gate-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.tz-gate-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.tz-gate-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tz-sand);
}

.tz-gate-desc {
  margin: 0.35rem 0 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 246, 232, 0.72);
}

.tz-gate-cta {
  margin-top: 1rem;
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--tz-red-hot);
  letter-spacing: 0.02em;
}

.tz-gate-card-crazy .tz-gate-cta {
  color: var(--tz-neon);
}

.tz-gate-foot {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 217, 168, 0.55);
  max-width: 28rem;
  margin: 0;
}

/* —— Switch experience chip (returning visitors) —— */
#tz-gate-chip {
  position: fixed;
  z-index: calc(var(--tz-gate-z) - 1);
  bottom: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 2px solid rgba(225, 29, 46, 0.65);
  background: linear-gradient(135deg, rgba(18, 8, 10, 0.94), rgba(42, 16, 20, 0.94));
  color: var(--tz-cream);
  font-family: var(--tz-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 236, 61, 0.12) inset;
  pointer-events: auto;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#tz-gate-chip:hover {
  transform: translateY(-2px);
  border-color: var(--tz-neon);
  box-shadow: 0 12px 32px rgba(225, 29, 46, 0.35);
}

#tz-gate-chip:focus-visible {
  outline: 3px solid var(--tz-neon);
  outline-offset: 2px;
}

.tz-gate-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tz-neon);
  box-shadow: 0 0 8px var(--tz-neon);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  #tz-gate-chip {
    bottom: 0.85rem;
    right: 0.85rem;
    left: 0.85rem;
    justify-content: center;
  }
}

/* Body lock while gate open (optional class toggled by JS) */
html.tz-gate-open,
html.tz-gate-open body {
  overflow: hidden;
}
