/* ascii.css: stages for the ASCII Magic pieces vendored under
   assets/ascii/ (MIT License, see assets/ascii/LICENSE).
   One piece per stage. The stage reserves its box with aspect-ratio
   before any script runs, so a piece can never shift page layout.
   The canvas is decorative and never takes pointer input. */

.ascii-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0a0e0b;
  border: 1px solid rgba(140, 150, 140, 0.35);
  box-shadow: 0 24px 48px -24px rgba(10, 14, 11, 0.45);
  container-type: inline-size;
}
.ascii-stage .ascii-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
/* Static first frame, painted by hand into the markup so the box is
   never empty before (or without) JavaScript. The live canvas covers
   it from the first animated frame on. */
.ascii-stage .ascii-pre {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: pre;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1;
  color: #8b949e;
}
.ascii-stage.ascii-live .ascii-pre { display: none; }
.ascii-cols-56 .ascii-pre { font-size: calc(100cqw / 33.6); line-height: calc(100cqw / 28); }
.ascii-cols-84 .ascii-pre { font-size: calc(100cqw / 50.4); line-height: calc(100cqw / 42); }

.ascii-credit {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.62;
}

/* Arcade attract band (arcade.html only). The landing main is dark
   end to end, so the band matches it. */
.apg-attract { background: #0b0b0c; color: #f5f1e8; padding: 10px 0 30px; }
.apg-attract-head { max-width: 640px; margin-bottom: 22px; }
.apg-attract-head h2 {
  font-family: var(--ds-serif, Georgia, serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  margin: 0 0 10px;
}
.apg-attract-head p { color: rgba(245, 242, 236, 0.72); line-height: 1.65; margin: 0; }
.apg-attract .ascii-stage { max-width: 880px; }
.apg-attract-cta { margin-top: 16px; }
.apg-attract-cta a {
  color: var(--apg-gold, #d4a843);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 404 stage (404.html only). */
.nf-ascii { margin: 40px auto 0; max-width: 760px; text-align: center; }
.nf-ascii .ascii-credit { text-align: center; }
