:root {
  --bg: #2f2f2f;
  --bg-raised: #262626;
  --bg-card: #383838;
  --text: #f2f2f2;
  --text-dim: #b8b8b8;
  --accent: #ffc72d;
  --border: #4a4a4a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
}

.wordmark {
  color: var(--text);
  font-family: "comba", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Pong hero game */
@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/Oxanium-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.hero-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 26px;
}

.pong-barrier {
  /* Span exactly between the paddles: 26px matches PADDLE_MARGIN in pong.js */
  width: calc(100% - 52px);
  height: 6px;
  background: #ffffff;
}

.hero-game canvas {
  display: block;
  width: 100%;
  height: 58vh;
  min-height: 300px;
  touch-action: none;
  cursor: none;
}

.pong-score {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  color: var(--text);
  padding: 8px 24px;
  font-family: "Oxanium", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.pong-score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3ch;
}

.pong-score-label {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

@media (max-width: 560px) {
  .hero-game canvas {
    height: 40vh;
    min-height: 220px;
  }
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px 72px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 640px;
}

/* Keep each sentence together so line breaks fall between them */
.hero h1 span {
  display: inline-block;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 1.7rem;
  }
}

.hero-sub {
  margin-top: 20px;
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.npg-inline {
  color: var(--text);
  font-family: "comba", sans-serif;
  font-size: 0.9em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Desktop: keep the studio name on one line (starts line 3 of the
   description). Mobile keeps natural wrapping. */
@media (min-width: 561px) {
  .npg-inline {
    white-space: nowrap;
  }
}

.hero .button {
  margin-top: 32px;
}

/* Sections */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.section p {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.section p + p {
  margin-top: 16px;
}

/* Buttons */
.button {
  display: inline-block;
  background: #ffffff;
  color: #1e1e1e;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 12px 26px;
  border-radius: 999px;
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.9);
}

/* Game card */
.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: inherit;
}


.game-info p {
  text-wrap: balance;
}

.game-card:hover {
  text-decoration: none;
}

.game-card:hover .game-logo {
  filter: brightness(1.12);
}

.game-logo {
  width: min(340px, 100%);
  height: auto;
}

@media (max-width: 560px) {
  .game-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Contact */
.email-link {
  font-weight: 700;
}

/* Legal page */
.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.legal-updated {
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 10px;
}

/* Footer — matches the Deck League app footer: one tiny centered line */
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  color: #777777;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.site-footer a {
  color: #777777;
}

.site-footer p + p {
  margin-top: 6px;
}
