/* =========================================================================
   BEYOND THE GAME — shared page furniture
   Ported from the Claude Design doc "Beyond the Game Landing Page.dc.html".
   Brand values come from ./aa-tokens.css. Never hardcode a hex that is a
   token; the only literals here are one-off scrim gradients and shadows.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--aa-white);
  font-family: var(--font-body);
  color: var(--aa-ink-800);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--aa-red-600); text-decoration: none; }
a:hover { color: var(--aa-red-700); }

input, button, textarea, select { font-family: inherit; }

:focus-visible { outline: 3px solid var(--aa-red-600); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Screen-reader-only, for labels the design shows as placeholders only. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Icons. Subset of Material Symbols Rounded, loaded per page. */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.material-symbols-rounded.is-filled { font-variation-settings: 'FILL' 1; }

/* ---------- Layout ------------------------------------------------------ */

/* Section band. Backgrounds go full-bleed, content stays in the column. */
.band { padding: 80px 40px; }
.band__inner { max-width: 1100px; margin: 0 auto; }

/* ---------- Type helpers ------------------------------------------------ */

/* "// Section label" — the AA code-comment rule, red on light. */
.kicker {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--aa-red-600);
}

/* White chip carrying a red code-comment label. Hero + CTA only. */
.chip {
  display: inline-block;
  padding: 5px 9px;
  background: var(--aa-white);
  white-space: nowrap;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--aa-red-600);
}

/* Dashed chip. Marks copy that is deliberately not final. */
.todo {
  padding: 3px 7px;
  border: 1px dashed var(--aa-ink-300);
  border-radius: 3px;
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--aa-ink-500);
}
.todo--ondark { border-color: var(--aa-ink-500); color: var(--aa-ink-400); }

.display  { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0; }
.accent   { color: var(--aa-red-600); }

.mono-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--aa-red-600);
  color: var(--aa-white);
  font: 600 16px/1 var(--font-body);
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover {
  background: var(--aa-red-700);
  color: var(--aa-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn--block { width: 100%; height: 56px; }
.btn--lg    { height: 64px; padding: 0 34px; font-size: 17px; box-shadow: var(--shadow-red); }

/* ---------- Form fields ------------------------------------------------- */

.form { display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__field { display: grid; gap: 6px; min-width: 0; }
.form__label {
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aa-ink-500);
}
.form input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--aa-ink-300);
  border-radius: var(--r-md);
  background: var(--aa-ink-50);
  font-size: 15px;
  color: var(--aa-ink-950);
}
.form input::placeholder { color: var(--aa-ink-400); }
.form input:focus { outline: 2px solid var(--aa-red-600); outline-offset: -2px; background: var(--aa-white); }
.form input:user-invalid { border-color: var(--aa-red-600); }
.form__fine { margin: 2px 0 0; font: 400 11.5px/1.45 var(--font-body); color: var(--aa-ink-500); }
.form__error {
  margin: 0;
  font: 600 12.5px/1.45 var(--font-body);
  color: var(--aa-red-700);
}
.form__error[hidden] { display: none; }

/* ---------- Book art ---------------------------------------------------- */
/* The guide cover, reused at five sizes. Width is set by the caller; the
   3:4-ish page ratio and the red spine come from here. */

.cover {
  position: relative;
  background: var(--aa-ink-950);
  overflow: hidden;
  flex: none;
}
.cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  filter: saturate(.92) contrast(1.06);
}
.cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,.62) 0%, rgba(10,11,13,.1) 26%, rgba(10,11,13,.55) 55%, var(--aa-ink-950) 82%);
}
.cover__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--aa-red-600); z-index: 2; }
.cover__mark  { position: absolute; z-index: 2; object-fit: contain; }
.cover__text  { position: absolute; z-index: 2; }
.cover__title { font-family: var(--font-display); font-weight: 400; line-height: .83; letter-spacing: -.012em; text-transform: uppercase; color: var(--aa-white); }

/* ---------- Footer ------------------------------------------------------ */

.foot {
  padding: 26px 40px;
  background: var(--aa-ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 400 12px/1.5 var(--font-mono);
  letter-spacing: .05em;
  color: var(--aa-ink-500);
}
.foot a { color: var(--aa-ink-400); }
.foot a:hover { color: var(--aa-white); }

@media (max-width: 767px) {
  .band { padding: 56px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
}

/* Button icon sizes, per the design. Without these the glyph falls back to
   the 24px default and sits a touch large next to the label. */
.btn .material-symbols-rounded { font-size: 20px; }
.btn--lg .material-symbols-rounded { font-size: 21px; }
