:root {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
  --bg-dark: #050505;
  --bg-highlight: linear-gradient(120deg, rgba(15, 15, 15, 0.9), rgba(0, 0, 0, 0.85));
  --accent: #d0d0d0;
  --accent-2: #f5f5f5;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-dark);
  overflow: hidden;
  color: #fff;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease, filter 1s ease;
  will-change: opacity, filter;
}

.bg-layer--intro {
  background-image: url("https://cdn-images.dzcdn.net/images/cover/089c2934b4d0f19cb3be205745b79440/0x1900-000000-80-0-0.jpg");
  filter: grayscale(1) contrast(1.1) brightness(0.45);
  z-index: -2;
}

.bg-layer--crystals {
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(150, 150, 150, 0.07), transparent 45%),
    #010101;
}

#crystalCanvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 100% 3px;
  mix-blend-mode: screen;
  opacity: 0.4;
}

.veil {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: #fff;
  border: none;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.8s ease;
  z-index: 5;
}

.veil__text {
  font-size: clamp(1rem, 3vw, 2rem);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 0 35px rgba(0, 0, 0, 0.7);
}

.veil__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hud {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hud > * {
  pointer-events: none;
}

.eq {
  display: grid;
  grid-template-columns: repeat(32, 1fr);
  gap: 5px;
  align-items: flex-end;
  width: min(80vw, 960px);
  height: 140px;
  opacity: 0;
  transform: translateY(40px);
  order: 2;
  transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.eq__bar {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.15));
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.15);
  height: 6%;
  transform-origin: bottom center;
  transition: height 80ms linear;
}

.card {
  max-width: min(480px, 92vw);
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 2.75rem 2.5rem;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  pointer-events: auto;
  box-shadow: 0 80px 160px rgba(0, 0, 0, 0.7);
  text-align: center;
  order: 1;
}

.card__strap {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card__copy {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.card__cta:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.entered .bg-layer--intro {
  opacity: 0;
  filter: blur(12px);
}

.entered .bg-layer--crystals {
  opacity: 1;
}

.entered .veil {
  pointer-events: none;
  opacity: 0;
}

.entered .hud {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.entered .hud > * {
  pointer-events: auto;
}

.entered .eq {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .hud {
    padding-bottom: 4rem;
  }

  .eq {
    width: 100%;
    height: 100px;
    gap: 4px;
  }

  .card {
    padding: 2rem 1.5rem;
  }
}

