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

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

/* ─── Canvas oculto (máscara del logo) ─── */
.hidden-canvas {
  display: none;
}

/* ─── Capa 1: fondo fluid smoke (halo detrás) ─────────── */
#art {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  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); }

/* ─── Capa 2: logo (canvas) ───────────────────── */
#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;
}

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

.btn {
  position: relative;
  display: inline-block;
  font-family: "VT323", "Courier New", monospace;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(212, 168, 73, 0.85);
  padding: 0.5rem 1.1rem 0.6rem;

  /* DOS look: borde duro 2px, sin radio */
  border: 2px solid rgba(212, 168, 73, 0.6);
  border-radius: 0;
  background: rgba(6, 6, 10, 0.85);

  transition:
    color 120ms steps(2, end),
    background 120ms steps(2, end),
    border-color 120ms steps(2, end);

  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

/* Label interno: es el que sufre el scramble */
.btn-label {
  position: relative;
  z-index: 2;
  display: inline-block;
}

/* ─── Hover: inversión de colores estilo DOS ─── */
.btn:hover,
.btn:focus-visible {
  color: #06060a;
  background: rgba(212, 168, 73, 0.95);
  border-color: rgba(212, 168, 73, 1);
  outline: none;
}

/* Cuando el scramble terminó, se ve en negrita con un borde extra */
.btn.is-settled {
  font-weight: 700;
  border-color: rgba(212, 168, 73, 1);
  letter-spacing: 0.14em;
}

/* ─── Ajustes para móvil ─────────────────────── */
@media (max-width: 768px) {
  #art { opacity: 0.45; }

  .r {
    font-size: 9px;
    line-height: 11px;
  }

  #stage {
    filter: drop-shadow(0 0 10px rgba(255, 150, 50, 0.25));
  }

  .menu {
    bottom: 4vh;
    gap: 0.8rem;
  }

  .btn {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem 0.5rem;
    border-width: 2px;
  }
}

/* ─── Ajuste extra para pantallas muy chicas ─────── */
@media (max-width: 380px) {
  .menu { gap: 0.5rem; }
  .btn {
    font-size: 1rem;
    padding: 0.35rem 0.6rem 0.45rem;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none !important;
  }
}
/*end of styles.css
/*EOF