:root {
  --bg: #0b0e1a;
  --bg-2: #111527;
  --bg-3: #1a2038;
  --bg-4: #232947;
  --line: #232947;
  --text: #e6e9f5;
  --text-dim: #8a90ad;
  --accent: #ff5a28;
  --accent-2: #ff9028;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #a855f7;
  --gold: #facc15;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1400px 800px at 50% -200px, #1a1330 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 600px, #201028 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { cursor: pointer; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 36px;
  background: rgba(11, 14, 26, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav-brand:hover { color: var(--text); }
.nav-brand .mark {
  color: var(--accent);
  font-size: 26px;
  filter: drop-shadow(0 0 10px var(--accent));
  transform: rotate(30deg);
}
.nav-brand .name { font-size: 16px; letter-spacing: 0.18em; line-height: 1; }
.nav-brand .sub { font-size: 9px; color: var(--text-dim); letter-spacing: 0.14em; margin-top: 2px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-cta {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 90, 40, 0.3);
  transition: filter 0.15s, transform 0.1s;
}
.nav-cta:hover { filter: brightness(1.1); color: #fff; }
/* Second and third CTAs share the same style but with a subtler fill so
   Skyward keeps visual priority as the flagship. */
.nav-ctas .nav-cta:nth-child(2) {
  background: linear-gradient(180deg, #3a0612, #0a0512);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}
.nav-ctas .nav-cta:nth-child(3) {
  background: linear-gradient(180deg, #e0a020, #7a4400);
  box-shadow: 0 4px 14px rgba(224, 160, 32, 0.3);
}
@media (max-width: 820px) {
  .nav-ctas .nav-cta:nth-child(2),
  .nav-ctas .nav-cta:nth-child(3) { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 100px 36px 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 50% 50%, rgba(255, 90, 40, 0.12), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 60px);
  pointer-events: none;
  animation: heroGrid 40s linear infinite;
}
@keyframes heroGrid {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 600px 0, 0 600px; }
}
.hero-content {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  animation: heroIn 0.8s ease-out;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0 0 22px;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(180deg, #ff9028 20%, #ff5a28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(255, 90, 40, 0.3);
}
.hero-tag {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 38px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-primary, .btn-secondary {
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  transition: filter 0.15s, transform 0.1s;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 6px 22px rgba(255, 90, 40, 0.35);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-stats > div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
}
.hero-stats b {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.hero-stats span {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================================
   Sections (shared)
   ========================================================= */
.section {
  padding: 100px 36px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}
.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================================================
   Games grid
   ========================================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.game-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 40, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  color: var(--text);
}
.game-card.planned { opacity: 0.72; }
.game-card.planned:hover { transform: none; }
.game-cover {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 100% 0, rgba(255, 255, 255, 0.18), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px);
}
.game-art {
  font-size: 96px;
  color: #fff;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
  transform: rotate(-8deg);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.status-pill.live { background: rgba(34, 197, 94, 0.2); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }
.status-pill.beta { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.status-pill.planned { background: rgba(138, 144, 173, 0.2); color: #c7cad9; border: 1px solid rgba(138, 144, 173, 0.35); }
.game-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.game-body h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.game-meta {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.game-body p {
  color: #c7cad9;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 18px;
}
.game-cta {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-card.live .game-cta::after { content: ""; }
.game-card.beta .game-cta { color: var(--purple); }
.game-card.planned .game-cta { color: var(--text-dim); }

.game-demo {
  margin-top: 6px;
}
.game-demo a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-demo a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

/* ---- Mode toggle (Demo / Production) ---- */
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.mode-btn {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.mode-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.mode-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 90, 40, 0.3);
}
.mode-hint {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* =========================================================
   Features
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 26px 24px;
  transition: background 0.2s, border-color 0.2s;
}
.feat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.feat-icon {
  font-size: 30px;
  margin-bottom: 12px;
}
.feat h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.feat p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   Integration
   ========================================================= */
.integration-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 26px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -12px;
  left: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(255, 90, 40, 0.4);
}
.step h3 {
  font-size: 17px;
  margin: 8px 0 8px;
  font-weight: 800;
}
.step p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}
.step code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--accent-2);
}

.code-preview {
  background: #05070f;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 26px;
  overflow: hidden;
}
.code-head {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.code-preview pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d1d5db;
}
.code-preview .tok-str { color: #86efac; }

.doc-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.doc-links a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.doc-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text);
}

/* Public "download all docs" button under the doc-links row */
.doc-downloads {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.btn-download {
  background: linear-gradient(135deg, var(--accent, #ff5a28) 0%, #ff9028 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms, filter 120ms, box-shadow 120ms;
  box-shadow: 0 4px 20px rgba(255, 90, 40, 0.25);
}
.btn-download:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(255, 90, 40, 0.35);
}
.btn-download:disabled {
  cursor: progress;
  filter: brightness(0.75);
  transform: none;
}
.doc-downloads-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  text-align: center;
  line-height: 1.5;
}
.doc-downloads-hint code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   Contact
   ========================================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.contact-form label .req { color: var(--accent); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-note {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: normal;
}
.contact-result {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.contact-result.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.contact-result.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ci-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
}
.ci-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 4px;
}
.ci-block a {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent-2);
  word-break: break-all;
}
.ci-note {
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}
.ci-note b { color: var(--gold); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 60px 36px 30px;
  margin-top: 80px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand .mark {
  color: var(--accent);
  font-size: 32px;
  filter: drop-shadow(0 0 12px var(--accent));
  transform: rotate(30deg);
}
.footer-brand .name { font-size: 18px; font-weight: 900; letter-spacing: 0.18em; }
.footer-brand .sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-cols h4 {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  font-weight: 800;
}
.footer-cols a {
  display: block;
  color: var(--text);
  font-size: 13px;
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-cols a:hover { color: var(--accent-2); }
.footer-bot {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .nav { padding: 12px 18px; gap: 14px; }
  .nav-links { display: none; }
  .hero { padding: 60px 20px 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 20px; }
  .games-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .integration-steps { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer { padding: 40px 20px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bot { flex-direction: column; gap: 8px; }
  /* Tighter doc-links grid on tablets so 19 chips don't wrap raggedly */
  .doc-links { gap: 8px; }
  .doc-links a { padding: 8px 14px; font-size: 12px; }
  /* Integration section iframe-embed example gets a horizontal scroll */
  .code-preview pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  .nav { padding: 10px 14px; gap: 10px; }
  .nav-brand .sub { display: none; }
  .nav-brand .name { font-size: 14px; }
  .nav-brand .mark { font-size: 22px; }
  .nav-cta { padding: 7px 11px; font-size: 11px; letter-spacing: 0.03em; }
  .hero { padding: 48px 16px 60px; }
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .hero-tag { font-size: 14px; }
  .hero-badge { font-size: 10px; padding: 6px 10px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats b { font-size: 20px; }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .hero-actions a { width: 100%; text-align: center; padding: 12px 18px; }
  .section { padding: 50px 16px; }
  .section-head h2 { font-size: 26px; }
  .section-head .section-sub { font-size: 13px; }
  .games-grid { gap: 16px; }
  .game-card .game-body { padding: 18px 16px; }
  .game-card h3 { font-size: 20px; }
  .game-card p { font-size: 13px; }
  .contact-form { padding: 22px 16px; }
  .footer-cols { grid-template-columns: 1fr; }
  /* Doc-links: full-width stack on narrow phones so each chip is
     tap-friendly (44px iOS guideline) without raggedly wrapping */
  .doc-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .doc-links a {
    padding: 11px 14px;
    font-size: 13px;
    text-align: left;
    border-radius: 8px;
  }
  .doc-downloads { margin-top: 22px; }
  .doc-downloads .btn-download { width: 100%; padding: 14px 18px; }
  .doc-downloads-hint { font-size: 11px; padding: 0 8px; }
  .code-preview { padding: 16px 14px; }
  .code-preview pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 10.5px;
    line-height: 1.4;
    word-break: normal;
    white-space: pre;
  }
  .code-head { font-size: 11px; }
}
/* Very narrow devices (320-360px) — iPhone SE 1st gen, old Androids */
@media (max-width: 360px) {
  .nav-brand .name { font-size: 13px; }
  .nav-cta { padding: 6px 9px; font-size: 10px; }
  .hero h1 { font-size: 28px; }
  .hero-stats b { font-size: 18px; }
  .section-head h2 { font-size: 22px; }
  .game-card h3 { font-size: 18px; }
  .doc-links a { font-size: 12px; padding: 10px 12px; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }
