/* Contact reused from the approved original v56. */
.contact-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.contact-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(2.4vw, 4.25vh);
  padding: 8%;
  text-align: center;
}

.contact-email {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #39f438;
  font: 600 clamp(38px, min(7.4vw, 13.15vh), 142px)/1.06 "Dogo Exo", sans-serif;
  letter-spacing: -.035em;
  text-decoration: none;
  text-rendering: optimizeLegibility;
  text-shadow: -4px 1px #ff247f, 2px 0 #0aae3a;
  white-space: nowrap;
  cursor: copy;
  user-select: all;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: filter 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

@supports (mask-image: linear-gradient(#000, #000)) {
  .contact-email {
    mask-image:
      repeating-linear-gradient(0deg, #000 0 2px, rgb(0 0 0 / 82%) 2px 3px),
      radial-gradient(circle, rgb(0 0 0 / 86%) 0 .6px, #000 .9px);
    mask-size: auto, 4px 4px;
    mask-composite: intersect;
  }
}

.slide-panel--contact.is-visible .contact-email {
  animation: contact-screen-glitch 7.6s linear infinite -1.4s;
}

.contact-email:hover,
.contact-email:focus-visible {
  outline: none;
  filter: brightness(1.1) drop-shadow(0 0 8px rgb(57 244 56 / 38%));
  text-shadow: -6px 1px #ff247f, 4px 0 #46ff39;
  transform: scale(1.012);
}

.contact-email:focus-visible {
  box-shadow: 0 4px 0 #fff;
}

.contact-email.is-copied {
  animation: contact-copied 480ms cubic-bezier(.2,.8,.2,1) both !important;
}

.contact-hint {
  margin: 0;
  color: #39f438;
  font: 400 clamp(15px, min(1.55vw, 2.75vh), 30px)/1.2 "DogoRegular", Arial, sans-serif;
  letter-spacing: .18em;
  text-shadow: -2px 0 #ff247f, 1px 0 #0ab73b;
  pointer-events: none;
  user-select: none;
}

.contact-toast {
  position: absolute;
  left: 50%;
  bottom: 13%;
  z-index: 6;
  margin: 0;
  padding: .42em .72em .5em;
  border: 2px solid #ff247f;
  background: rgb(3 3 197 / 88%);
  color: #39f438;
  font: 600 clamp(16px, min(1.65vw, 2.95vh), 32px)/1 "Dogo Exo", sans-serif;
  letter-spacing: .04em;
  text-shadow: -2px 0 #ff247f, 1px 0 #0ab73b;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.contact-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes contact-screen-glitch {
  0%, 92%, 94.5%, 100% {
    text-shadow: -4px 1px #ff247f, 2px 0 #0aae3a;
    translate: 0 0;
  }
  92.2%, 92.5% {
    text-shadow: -8px 1px #ff247f, 5px -1px #46ff39;
    translate: 1px 0;
  }
  92.6%, 93.3% {
    text-shadow: -4px 1px #ff247f, 2px 0 #0aae3a;
    translate: 0 0;
  }
  93.5%, 93.8% {
    text-shadow: 5px 0 #ff247f, -4px 1px #46ff39;
    translate: -1px 0;
  }
}

@keyframes contact-copied {
  0% { transform: scale(1); }
  44% { transform: scale(1.035); filter: brightness(1.22) drop-shadow(0 0 16px rgb(57 244 56 / 58%)); }
  100% { transform: scale(1); }
}


@media(prefers-reduced-motion:reduce){.slide-panel--contact .contact-email{animation:none!important;transition:none!important}}
