* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #06060a;
  overflow: hidden;
  cursor: crosshair;
}

/* ─── v3: canvas oculto (en vez de style inline, para CSP) ─── */
.hidden-canvas {
  display: none;
}

/* ─── Fondo: fluid smoke ─────────────────────────── */
#art {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}

.r {
  white-space: pre;
  overflow: hidden;
  font-family: Georgia, Palatino, "Times New Roman", serif;
  font-size: 14px;
}

/* Pesos y estilos */
.w3 { font-weight: 300; }
.w5 { font-weight: 500; }
.w8 { font-weight: 800; }
.it { font-style: italic; }

/* Paleta ámbar del demo original, con opacidad */
.a1  { color: rgba(196,163,90,0.08); }
.a2  { color: rgba(196,163,90,0.16); }
.a3  { color: rgba(196,163,90,0.24); }
.a4  { color: rgba(196,163,90,0.32); }
.a5  { color: rgba(196,163,90,0.42); }
.a6  { color: rgba(196,163,90,0.54); }
.a7  { color: rgba(196,163,90,0.66); }
.a8  { color: rgba(199, 163, 86, 0.78); }
.a9  { color: rgba(192, 157, 80, 0.9); }
.a10 { color: rgb(212, 168, 73); }

/* ─── Frente: logo ───────────────────────────── */
#stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
  filter: drop-shadow(0 0 14px rgba(255, 150, 50, 0.35));
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ─── v3: Menú de botones ─────────────────────── */
.menu {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.btn {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(212, 168, 73, 0.75);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(212, 168, 73, 0.25);
  border-radius: 2px;
  background: rgba(10, 8, 4, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 220ms ease;
  cursor: pointer;
  user-select: none;
}

.btn:hover,
.btn:focus-visible {
  color: rgba(255, 235, 170, 1);
  border-color: rgba(212, 168, 73, 0.65);
  background: rgba(30, 20, 8, 0.55);
  box-shadow: 0 0 24px rgba(255, 180, 60, 0.25);
  outline: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(255, 180, 60, 0.35);
}

/* ─── v3: Ajustes para móvil ─────────────────────── */
@media (max-width: 768px) {
  /* El fondo se ve más tenue en pantallas chicas */
  #art {
    opacity: 0.55;
  }

  /* Las letras del fondo son más chicas en móvil */
  .r {
    font-size: 9px;
    line-height: 11px;
  }

  /* El glow del logo también se atenúa en móvil */
  #stage {
    filter: drop-shadow(0 0 10px rgba(255, 150, 50, 0.25));
  }

  /* El menú se pega más abajo y los botones se achican */
  .menu {
    bottom: 4vh;
    gap: 1.2rem;
  }

  .btn {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    padding: 0.5rem 0.9rem;
  }
}

/* ─── v3: Ajuste extra para pantallas muy chicas ─────── */
@media (max-width: 380px) {
  .menu {
    gap: 0.8rem;
  }
  .btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.7rem;
  }
}