* {
  box-sizing: border-box;
}

:root {
  --at-gold: #ffc400;
  --at-gold-soft: #ffe08a;
  --at-gold-deep: #a96f00;
  --at-ink: #050607;
  --at-panel: rgba(6, 7, 9, 0.72);
  --at-white: #ffffff;
  --at-muted: rgba(255, 255, 255, 0.78);
  --at-font: Inter, Arial, Helvetica, sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
}

body.at-overlay {
  margin: 0;
  overflow: hidden;
  background: transparent;
  color: var(--at-white);
  font-family: var(--at-font);
}

.at-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.at-stage::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 50% 30%, rgba(255, 196, 0, 0.22), transparent 36%),
    url("/overlays/assets/opener-media/at-opener-stage-gold.png") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.06);
}

.at-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(0, 0, 0, 0.68) 74%, rgba(0, 0, 0, 0.96) 100%);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.at-transparent {
  background: transparent;
}

.at-transparent::before,
.at-transparent::after {
  display: none;
}

.at-rhythm-texture {
  position: absolute;
  inset: -8%;
  z-index: -2;
  opacity: 0.24;
  background:
    repeating-linear-gradient(-11deg, transparent 0 38px, rgba(255, 255, 255, 0.09) 38px 41px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 54px);
  animation: atDrift 10s linear infinite;
}

.at-particles {
  position: absolute;
  inset: -20%;
  z-index: -1;
  opacity: 0.76;
  background-image:
    radial-gradient(circle, rgba(255, 214, 86, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 196, 0, 0.75) 0 1px, transparent 2px);
  background-size: 92px 92px, 57px 57px;
  background-position: 0 0, 23px 19px;
  filter: drop-shadow(0 0 8px rgba(255, 196, 0, 0.75));
  animation: atParticleFloat 12s linear infinite;
}

.at-safe {
  position: absolute;
  inset: 5.5vh 5.5vw;
}

.at-kicker {
  font-size: clamp(15px, 1.2vw, 24px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--at-gold-soft);
  text-shadow: 0 0 18px rgba(255, 196, 0, 0.55);
}

.at-title {
  margin: 0;
  font-size: clamp(64px, 7vw, 142px);
  line-height: 0.86;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--at-white);
  text-shadow:
    0 0 20px rgba(255, 196, 0, 0.45),
    0 8px 34px rgba(0, 0, 0, 0.72);
}

.at-gold {
  color: var(--at-gold);
}

.at-subtitle {
  font-size: clamp(24px, 2.2vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  color: var(--at-muted);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.68);
}

.at-line {
  width: min(520px, 52vw);
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--at-gold), var(--at-gold-soft), transparent);
  box-shadow: 0 0 28px rgba(255, 196, 0, 0.8);
  transform-origin: left center;
}

.at-frame-diamond {
  position: absolute;
  inset: 7vh 9vw;
  border: 1px solid rgba(255, 196, 0, 0.32);
  transform: skewX(-12deg);
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(255, 196, 0, 0.08), 0 0 36px rgba(255, 196, 0, 0.08);
}

.at-frame-diamond::before,
.at-frame-diamond::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.at-sheen {
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 236, 176, 0.35) 47%, transparent 56%);
  transform: translateX(-55%);
  animation: atSheen 5.6s ease-in-out infinite;
  pointer-events: none;
}

.at-hidden {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
}

.at-card {
  border: 1px solid rgba(255, 196, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 196, 0, 0.14), transparent 34%),
    rgba(5, 6, 7, 0.78);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 0 34px rgba(255, 196, 0, 0.08);
  backdrop-filter: blur(10px);
}

@keyframes atDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100px, -40px, 0); }
}

@keyframes atParticleFloat {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(80px, -110px, 0) rotate(2deg); }
}

@keyframes atSheen {
  0%, 38% { transform: translateX(-55%); opacity: 0; }
  50% { opacity: 1; }
  76%, 100% { transform: translateX(55%); opacity: 0; }
}

@media (max-width: 800px) {
  .at-safe {
    inset: 6vh 6vw;
  }

  .at-title {
    font-size: clamp(42px, 13vw, 86px);
  }
}
