/* Hallmark · shape: Bento Grid · genre: playful · theme: Arcade (deal 1/3, seed crowd-cannon-android-arcade-2d9a·d979769f·2026-12-01·r0) · job: try · draw: 528433
 * hero: Settled · nav: slab · footer: mast · imagery: screenshots 7 (real game captures) · signature: live cannon evolution diptych in hero · arcade: ember/grille
 * axes: dark/pixel/chromatic-ember · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R4 V5 · weakest: R, dropped animated scanlines and kept CRT grille static to preserve gameplay screenshot clarity */
/* Hallmark · dismissed 23 · Arcade theme spec defines Silkscreen figures in acid and ember inks · figures highlight three game counts inside Bento tiles */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --banner-height: 72px;
  --scanline: oklch(from var(--color-shade) l c h / 0.14);
}

/* Display and heading voices per Arcade theme spec */
h1,
.display-line {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  text-shadow: -1.5px 0 0 var(--color-crt-r), 1.5px 0 0 var(--color-crt-c);
}

.display-line {
  font-size: var(--text-display-s);
  max-width: 18ch;
}

h2,
h3 {
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.figure {
  font-family: var(--font-outlier);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.75rem, 3.6vw + 0.5rem, 4rem);
  line-height: 1;
  color: var(--color-accent-2);
}

.figure--ember {
  color: var(--color-accent);
}

/* Product captures keep authentic game colour */
[data-slot][data-kind="product"] {
  background: var(--color-paper-2);
  outline: var(--rule-bar) solid var(--color-rule);
  outline-offset: calc(-1 * var(--rule-bar));
  border-radius: var(--radius-card);
}

[data-slot][data-kind="product"]::before {
  display: none;
}

[data-slot][data-kind="product"] > img {
  z-index: 1;
  filter: none;
  mix-blend-mode: normal;
}

/* Static CRT grille surface on chrome bands */
.crt-surface {
  position: relative;
  isolation: isolate;
}

.crt-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to right,
      color-mix(in oklab, var(--color-crt-r) 4%, transparent) 0 1px,
      color-mix(in oklab, var(--color-crt-g) 4%, transparent) 1px 2px,
      color-mix(in oklab, var(--color-crt-b) 4%, transparent) 2px 3px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 2px,
      var(--scanline) 2px 3px
    );
}

.crt-surface > * {
  position: relative;
  z-index: var(--z-raised);
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent-2);
  color: var(--color-accent-ink);
  font-weight: 700;
  text-decoration: none;
  border: var(--rule-bar) solid var(--color-ink);
}

.skip:focus-visible {
  top: var(--space-md);
}

/* Controls — Arcade press physics */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: var(--rule-bar) solid var(--color-ink);
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--color-accent-2);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--color-accent-2);
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border: var(--rule-bar) solid var(--color-ink);
  box-shadow: 4px 4px 0 var(--color-rule);
}

.btn--secondary:hover {
  background: var(--color-paper-2);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--color-accent-2);
}

.btn--secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-accent-2);
}

.btn--nav {
  min-height: 44px;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  background: var(--color-paper-3);
  color: var(--color-ink);
  border: var(--rule-bar) solid var(--color-accent-2);
  box-shadow: none;
}

.btn--nav:hover {
  background: var(--color-accent-2);
  color: var(--color-accent-ink);
  transform: none;
  box-shadow: none;
}

.btn--nav:active {
  transform: translateY(1px);
  box-shadow: none;
}

.text-link {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-2);
  text-decoration-thickness: var(--rule-bar);
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--color-accent-2);
}

/* Slab navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper-2);
  color: var(--color-ink);
  border-bottom: var(--rule-bar) solid var(--color-rule);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--banner-height);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
  white-space: nowrap;
}

.wordmark__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-card);
  border: var(--rule-bar) solid var(--color-rule);
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: var(--rule-bar) solid transparent;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.site-nav__links a:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent-2);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hero — Settled posture */
.hero {
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--banner-height)), 860px);
  padding-block: var(--space-xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--space-2xl);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

.hero__copy h1 {
  max-width: 10ch;
  font-size: clamp(2.25rem, 4.8vw + 0.75rem, 5rem);
}

.hero__copy .lead {
  color: var(--color-ink-2);
  max-width: 40ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  margin: 0;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.hero__meta-item dt {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-muted);
}

.hero__meta-item dd {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-ink);
}

/* Hero Signature: Cannon Evolution Diptych */
.hero__diptych {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: start;
  min-width: 0;
}

.shot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.shot-card__frame {
  aspect-ratio: 9 / 16;
  max-height: 540px;
  width: 100%;
}

.shot-card--after .shot-card__frame {
  outline-color: var(--color-accent-2);
  box-shadow: var(--shadow-card);
}

.shot-card figcaption {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink-2);
  line-height: 1.35;
}

.shot-card--after figcaption {
  color: var(--color-accent-2);
}

/* Section head blocks */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--gap-columns);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.section-head .lead {
  color: var(--color-ink-2);
  justify-self: end;
}

.section-head--stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.section-head--stack .lead {
  color: var(--color-ink-2);
  justify-self: auto;
}

/* Section 2: Gameplay Switcher */
.screens-section {
  padding-top: var(--section-gap-s);
}

.screens-section__rule {
  padding-top: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.switcher__tabs {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.switcher__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  border: var(--rule-bar) solid var(--color-rule);
  border-radius: var(--radius-card);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1), border-color var(--dur-micro) steps(1);
}

.switcher__tab:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.switcher__tab[aria-selected="true"] {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-ink);
}

.switcher__tab:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.switcher__panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-xl);
  background: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-bar) solid var(--color-rule);
  border-radius: var(--radius-card);
}

.js .switcher__panel[hidden] {
  display: none;
}

.switcher__panel + .switcher__panel {
  margin-top: var(--space-lg);
}

.js .switcher__panel + .switcher__panel {
  margin-top: 0;
}

.switcher__visual {
  aspect-ratio: 9 / 16;
  max-height: 520px;
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.switcher__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.switcher__body p {
  color: var(--color-ink-2);
  max-width: 52ch;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin: 0;
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.fact-list__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.fact-list__row dt {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-2);
}

.fact-list__row dd {
  margin: 0;
  color: var(--color-ink);
}

/* Section 3: Bento Grid (Arsenal & Worlds) */
.bento-section {
  padding-top: var(--section-gap);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
}

.bento__tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-bar) solid var(--color-rule);
  border-radius: var(--radius-card);
  min-width: 0;
  min-height: 300px;
}

.bento__tile--lead {
  grid-column: span 7;
  border-color: var(--color-ink);
}

.bento__tile--narrow {
  grid-column: span 5;
}

.bento__tile--wide {
  grid-column: span 7;
}

.bento__banner {
  aspect-ratio: 1024 / 500;
  width: 100%;
}

.bento__stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.bento__unit {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
}

.loadout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.loadout-list li {
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-ink);
}

.bento__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bento__copy p {
  color: var(--color-ink-2);
}

/* Section 4: Android Requirements & Install Guide */
.install-section {
  padding-top: var(--section-gap-l);
}

.install-section__frame {
  padding-top: var(--space-2xl);
  border-top: var(--rule-bar) solid var(--color-ink);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-2xl);
  align-items: start;
}

.install-lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.install-lead .lead {
  color: var(--color-ink-2);
}

.install-steps {
  counter-reset: install-step;
  list-style: none;
  margin: 0;
  padding: var(--space-md) 0 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.install-steps li {
  counter-increment: install-step;
  display: grid;
  grid-template-columns: var(--space-xl) minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: baseline;
  color: var(--color-ink-2);
}

.install-steps li::before {
  content: counter(install-step);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-2);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: var(--space-md) var(--space-md);
  text-align: left;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: middle;
}

.spec-table thead th {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-muted);
  border-bottom: var(--rule-bar) solid var(--color-ink);
  white-space: nowrap;
}

.spec-table tbody th {
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.spec-table tbody td {
  color: var(--color-ink-2);
  font-variant-numeric: tabular-nums;
}

.spec-table tbody tr {
  transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1);
}

.spec-table tbody tr:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.spec-table tbody tr:hover th,
.spec-table tbody tr:hover td {
  color: var(--color-accent-ink);
}

/* Section 5: Closing Download Split */
.close-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap-s);
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: center;
}

.close-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

.close-copy .lead {
  color: var(--color-ink-2);
  max-width: 44ch;
}

.close-visual {
  aspect-ratio: 9 / 16;
  max-height: 460px;
  width: 100%;
  max-width: 265px;
  justify-self: end;
  outline-color: var(--color-accent-2);
  box-shadow: var(--shadow-card);
}

/* Mast Footer */
.site-footer {
  background: var(--color-paper-2);
  color: var(--color-ink);
  border-top: var(--rule-bar) solid var(--color-rule);
  padding-block: var(--space-2xl);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.site-footer__mast {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__links a:hover {
  color: var(--color-accent-2);
  text-decoration: underline;
  text-decoration-thickness: var(--rule-bar);
}

.site-footer__note {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Privacy Policy prose document */
.policy-page {
  padding-block: var(--space-2xl);
}

.policy-doc {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.policy-doc h1 {
  font-size: var(--text-display-s);
  max-width: 24ch;
}

.policy-doc h2 {
  font-size: var(--text-title);
  margin-top: var(--space-lg);
}

.policy-doc p {
  line-height: 1.65;
  color: var(--color-ink-2);
}

.policy-meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-bottom: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

/* One page reveal, visible by default with scripting off */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 60rem) {
  .site-nav__links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: var(--space-xl);
  }

  .hero__grid,
  .section-head,
  .switcher__panel,
  .install-grid,
  .close-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .section-head .lead {
    justify-self: start;
  }

  .bento__tile--lead,
  .bento__tile--narrow,
  .bento__tile--wide {
    grid-column: span 12;
  }

  .fact-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .close-visual {
    justify-self: start;
  }

  .shot-card__frame {
    max-height: 460px;
  }
}

@media (max-width: 40rem) {
  .site-nav__inner {
    gap: var(--space-sm);
  }

  .wordmark {
    font-size: var(--text-sm);
    gap: var(--space-xs);
  }

  .wordmark__icon {
    width: 28px;
    height: 28px;
  }

  .btn--nav {
    padding: var(--space-xs) var(--space-sm);
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__meta {
    gap: var(--space-md);
  }

  .hero__diptych {
    gap: var(--space-sm);
  }

  .shot-card figcaption {
    font-size: var(--text-xs);
  }

  .switcher__panel,
  .bento__tile {
    padding: var(--space-lg);
  }

  .spec-table thead {
    display: none;
  }

  .spec-table tbody tr {
    display: flex;
    flex-direction: column;
    padding-block: var(--space-sm);
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }

  .spec-table tbody th,
  .spec-table tbody td {
    border-bottom: 0;
    padding: var(--space-3xs) 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn--secondary,
  .btn--nav,
  .site-nav__links a,
  .switcher__tab,
  .spec-table tbody tr,
  .js [data-reveal] {
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .btn:active,
  .btn--secondary:hover,
  .btn--secondary:active {
    transform: none;
  }
}
