@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@400;500;700&display=swap');

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  /* iOS momentum scrolling */
  -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

h1 { font-size: clamp(32px, 7vw, 72px); }
h2 { font-size: clamp(24px, 5vw, 48px); }
h3 { font-size: clamp(20px, 3vw, 32px); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

small, .small {
  font-size: clamp(11px, 1.2vw, 13px);
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* RTL support for Arabic */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .game-header__back { flex-direction: row-reverse; }
