/*
 * Spokefist showcase: the game's own look (src/ui/theme.css): dark asphalt panels, ink outlines with hard offset
 * shadows, neon accents (green for go, pink for fights, amber for Cash), Bangers headings skewed like a broadcast
 * chyron, Barlow Semi Condensed body. Dark only. Every URL here is relative to this file (fonts sit in ../fonts).
 */
@font-face {
  font-family: 'Bangers';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bangers-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --asphalt: #15121c;
  --asphalt-2: #1f1a29;
  --asphalt-3: #2b2438;
  --line: #3a3047;
  --ink: #1b1424;
  --ink-deep: #0b0810;
  --paper: #f4eefc;
  --muted: #b9aecb;
  --green: #39ff88;
  --pink: #ff3d9a;
  --pink-deep: #b8236c;
  --amber: #ffe28a;
  --focus: #ffe28a;
  --radius: 0.7rem;
  --lip: 0.28rem;
  --gutter: 1rem;
  --display: 'Bangers', Impact, 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pink);
  text-underline-offset: 0.18em;
}
a:hover {
  color: #ff7ab8;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
video:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus {
  top: 0.5rem;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- header */

.site-header {
  z-index: 50;
  background: rgba(21, 18, 28, 0.94);
  border-bottom: 3px solid var(--ink-deep);
  box-shadow: 0 3px 0 var(--asphalt-3);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.brand {
  display: block;
  flex: none;
  width: 9.5rem;
}
.brand img {
  width: 100%;
  height: auto;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  min-height: 2.75rem;
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.nav a:hover {
  background: var(--asphalt-3);
  color: var(--paper);
}
.nav a[aria-current='page'] {
  color: var(--amber);
  box-shadow: inset 0 -3px 0 var(--pink);
}

/* ---------------------------------------------------------------- type */

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.chyron {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
  transform: skewX(-9deg);
  transform-origin: left bottom;
  text-shadow:
    0.07em 0.07em 0 var(--pink),
    0.11em 0.11em 0 var(--ink-deep);
  font-size: clamp(3.4rem, 15vw, 6.5rem);
  margin-bottom: 0.9rem;
}
.small-chyron {
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 1rem;
}
.kicker {
  margin: 0 0 0.2rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.lede {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  line-height: 1.4;
}
.section-lede {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------------------------------------------------------------- buttons and chips */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.55rem 1.4rem;
  border: 3px solid var(--ink-deep);
  border-radius: var(--radius);
  background: var(--asphalt-3);
  color: var(--paper);
  font: 700 1.15rem/1.15 var(--body);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink-deep);
  cursor: pointer;
}
.btn:hover {
  background: #382f48;
  color: var(--paper);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink-deep);
}
.btn-primary {
  background: var(--green);
  color: var(--ink);
}
.btn-primary:hover {
  background: #7bffb0;
  color: var(--ink);
}
.btn-pink {
  background: var(--pink);
  color: var(--ink);
}
.btn-pink:hover {
  background: #ff7ab8;
  color: var(--ink);
}
.btn-small {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-big {
  font-size: 1.5rem;
}
.soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 3.25rem;
  padding: 0.55rem 1.4rem;
  border: 3px dashed var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--asphalt-2);
  font-weight: 700;
  line-height: 1.15;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.2rem 0.7rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--asphalt-2);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 1.25rem 0 2.5rem;
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgba(255, 61, 154, 0.22), transparent 70%), var(--asphalt);
}
.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.hero-shot {
  margin: 0;
}
.hero-shot img,
.cup-shot img,
.gallery img {
  width: 100%;
  border: 3px solid var(--ink-deep);
  border-radius: var(--radius);
  background: var(--asphalt-2);
}
.hero-shot img {
  box-shadow:
    0.5rem 0.5rem 0 var(--pink),
    0.5rem 0.5rem 0 3px var(--ink-deep);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: 2.75rem 0;
}
.band {
  background: var(--asphalt-2);
  border-top: 3px solid var(--ink-deep);
  border-bottom: 3px solid var(--ink-deep);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--asphalt-2);
}
.card h3 {
  margin-bottom: 0.6rem;
  color: var(--amber);
  font-size: 1.35rem;
}
.card p {
  margin: 0;
  color: var(--paper);
}

.video-frame {
  margin: 0;
}
.video-frame video {
  width: 100%;
  border: 3px solid var(--ink-deep);
  border-radius: var(--radius);
  background: #000;
  box-shadow:
    0.5rem 0.5rem 0 var(--pink),
    0.5rem 0.5rem 0 3px var(--ink-deep);
}
.video-frame figcaption {
  margin-top: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery figure {
  margin: 0;
}
.gallery figcaption {
  margin-top: 0.5rem;
  font-weight: 700;
}

.cup-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.cup-shot {
  margin: 0;
}
.steps {
  margin: 0;
  padding-left: 1.4rem;
}
.steps li {
  margin-bottom: 0.8rem;
}
.steps li::marker {
  color: var(--green);
  font-weight: 700;
}

.phones {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0.25rem 1rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.phones li {
  flex: 0 0 min(15rem, 62%);
  scroll-snap-align: start;
}
.phones img {
  width: 100%;
  border: 3px solid var(--ink-deep);
  border-radius: 1.4rem;
  background: var(--asphalt-2);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 28rem));
  justify-content: start;
  gap: 1rem;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--asphalt);
}
.platform h3 {
  font-size: 1.4rem;
  color: var(--amber);
}
.platform h3,
.platform p {
  margin: 0;
}

.about {
  max-width: 50rem;
}
.touch-list {
  margin: 0;
  padding-left: 1.2rem;
}
.touch-list li {
  margin-bottom: 0.6rem;
}
.touch-list li::marker {
  color: var(--green);
}
.phone-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.about h3 {
  margin-top: 1.5rem;
  color: var(--amber);
}
.credits {
  padding-left: 1.2rem;
}

/* ---------------------------------------------------------------- documents (legal pages, press kit) */

.doc {
  max-width: 48rem;
  font-size: 1.1rem;
}
.doc h1 {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2.4rem, 9vw, 4rem);
  transform: skewX(-9deg);
  transform-origin: left bottom;
  text-shadow:
    0.07em 0.07em 0 var(--pink),
    0.11em 0.11em 0 var(--ink-deep);
  margin-bottom: 0.4rem;
}
.doc h2 {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 3px solid var(--line);
  color: var(--amber);
  font-size: 1.5rem;
}
.doc .meta {
  margin: 0 0 1rem;
  color: var(--muted);
}
.doc .summary {
  margin: 1.25rem 0;
  padding: 0.5rem 1.25rem;
  border: 3px solid var(--line);
  border-left: 0.5rem solid var(--green);
  border-radius: var(--radius);
  background: var(--asphalt-2);
}
.doc .contact {
  padding: 0.75rem 1.25rem;
  border: 3px solid var(--line);
  border-left: 0.5rem solid var(--pink);
  border-radius: var(--radius);
  background: var(--asphalt-2);
  font-size: 1.15rem;
}
.doc blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1.25rem;
  border-left: 0.5rem solid var(--pink);
  background: var(--asphalt-2);
  font-size: 1.25rem;
}
.doc code {
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
  background: var(--asphalt-3);
  font-size: 0.95em;
}
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
}
.doc th,
.doc td {
  padding: 0.55rem 0.8rem;
  border-bottom: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th[scope='row'] {
  width: 8rem;
  color: var(--amber);
  white-space: nowrap;
}
.press-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1.5rem 0;
}
.press-assets,
.press-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.press-assets li {
  padding: 1rem;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--asphalt-2);
}
.press-assets p {
  margin: 0.5rem 0 0;
}
.press-shots img {
  width: 100%;
  border: 3px solid var(--ink-deep);
  border-radius: var(--radius);
}
.press-shots figure {
  margin: 0;
}
.press-shots figcaption {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 3px solid var(--ink-deep);
  background: #100d16;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 700;
}
.site-footer p {
  max-width: 44rem;
  margin: 0;
}

/* ---------------------------------------------------------------- wider screens */

@media (max-width: 39.99rem) {
  .actions .btn,
  .actions .soon {
    flex: 1 1 14rem;
  }
}
@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }
  .brand {
    width: 11rem;
  }
  .phones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    max-width: 46rem;
  }
  .phones li {
    flex: none;
  }
  .section {
    padding: 3.5rem 0;
  }
}
@media (min-width: 62rem) {
  .site-header {
    position: sticky;
    top: 0;
  }
  .phone-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3rem;
  }
  .phones {
    max-width: none;
  }
  .hero {
    padding: 2.5rem 0 4rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 2.5rem;
  }
  .cup-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:active {
    transform: none;
  }
}
