/* FootBlaze — Main stylesheet. Mobile-first. */

/* ─── Design tokens (also in critical CSS, repeated for async load fallback) ─── */
:root {
  --ink:          #0a0a0a;
  --ink-soft:     #1a1a1a;
  --ink-mute:     #3a3a3a;
  --ink-faint:    #6b6b6b;
  --paper:        #fdfcf8;
  --paper-soft:   #f3f1ea;
  --paper-warm:   #ece7d9;
  --hairline:     #e3dfd3;
  --hairline-d:   #222;
  --green:        #2d6a2d;
  --green-soft:   #e6efe1;
  --orange:       #f97316;
  --orange-deep:  #d75f00;
  --orange-soft:  #fde7d2;
  --red:          #c0392b;
  --font-display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --font-body:    Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   8px;
  --r-pill: 999px;
  --shadow-card: 0 8px 20px rgba(10,10,10,0.08);
  --transition: 140ms ease;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Ensure [hidden] always wins over display:flex/block rules below */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content grows to push footer to bottom */
#main-content { flex: 1; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ─── Accessibility ─────────────────────────────────────────────── */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; background: var(--orange); color: var(--ink); padding: 8px 16px; border-radius: var(--r-md); }

:focus-visible {
  outline: 3px solid rgba(249,115,22,.55);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Layout helpers ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.mobile-only { display: flex; }
.desktop-only { display: none; }

/* ─── Logo ───────────────────────────────────────────────────────── */
.fb-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: .85;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.fb-logo__slash {
  display: block;
  background: var(--orange);
  transform: skewX(-20deg);
}
.fb-logo__text {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .85;
  color: var(--ink);
}

/* ─── Typography ─────────────────────────────────────────────────── */
.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .95;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background var(--transition), transform 80ms ease, box-shadow var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  min-height: 44px; /* tap-target */
}
.btn:active { transform: translateY(1px); }

.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; min-height: 34px; }
.btn--md { height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 22px; font-size: 16px; }

.btn--orange { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn--orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); }

.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-soft); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--paper-soft); }

.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--paper:hover { background: var(--paper-soft); }

.btn--outline-light { background: rgba(255,255,255,.06); color: var(--paper); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); }

/* ─── Pills ──────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  line-height: 1;
}
.pill--xs { padding: 3px 8px; font-size: 10px; }
.pill--sm { padding: 4px 10px; font-size: 11px; }
.pill--md { padding: 6px 12px; font-size: 12px; }

.pill--ink       { background: var(--ink);         color: var(--paper);      border-color: var(--ink); }
.pill--paper     { background: var(--paper);       color: var(--ink);        border-color: var(--hairline); }
.pill--orange    { background: var(--orange);      color: var(--ink);        border-color: var(--orange); }
.pill--green     { background: var(--green);       color: var(--paper);      border-color: var(--green); }
.pill--ghost     { background: transparent;        color: var(--ink);        border-color: var(--ink); }
.pill--softO     { background: var(--orange-soft); color: var(--orange-deep);border-color: var(--orange-soft); }
.pill--softG     { background: var(--green-soft);  color: var(--green);      border-color: var(--green-soft); }
.pill--red       { background: var(--red);         color: var(--paper);      border-color: var(--red); }
.pill--outline-light { background: rgba(255,255,255,.08); color: var(--paper); border-color: rgba(255,255,255,.4); }

/* ─── Navigation ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
}
.site-nav { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-search-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-search-btn:hover { background: var(--paper-soft); }

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
}
.nav-hamburger:hover { background: var(--paper-soft); }

.nav-profile-btn { display: none; }

/* Mobile drawer */
.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 0;
  transition: max-height 200ms ease;
}
.nav-drawer[aria-hidden="false"] { max-height: 500px; }
.nav-drawer__item {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.nav-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

/* Category strip (single-game secondary nav) */
.nav-cat-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--hairline);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.nav-cat-strip::-webkit-scrollbar { display: none; }

/* Cat chips */
.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
  min-height: 36px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cat-chip:hover { background: var(--paper-soft); }
.cat-chip--active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }

/* ─── Hero / PitchBg ─────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.pitch-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 40%, rgba(249,115,22,.22) 0%, rgba(249,115,22,0) 60%),
    radial-gradient(ellipse 80% 70% at 20% 90%, rgba(45,106,45,.22) 0%, rgba(45,106,45,0) 55%),
    linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 60%, #060606 100%);
}
.pitch-bg__lines {
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
}
.pitch-bg__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 30%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: .9;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: .005em;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.hero__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero__stats { color: rgba(255,255,255,.85); }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 500ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero__slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.2);
  transition: background 150ms;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.hero__arrow:hover { background: rgba(255,255,255,.3); }
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; }
.hero__dots {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 3;
}
.hero__dot {
  width: 10px;
  height: 4px;
  background: rgba(255,255,255,.35);
  border-radius: 2px;
  display: block;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width 250ms, background 250ms;
}
.hero__dot--active { width: 26px; background: var(--paper); }

/* ─── Sections ───────────────────────────────────────────────────── */
.section { padding: 28px 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.section__head-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section__title { font-size: 22px; }
.section__accent { font-size: 11px; }
.section__see-all {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.section__head--all { flex-wrap: wrap; }
.section__controls { display: flex; align-items: center; gap: 10px; }

.games-sort {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  border-radius: var(--r-sm);
  color: var(--ink);
  height: 36px;
  cursor: pointer;
}

/* ─── Game grid ──────────────────────────────────────────────────── */
.game-grid { display: grid; gap: 14px; }
.game-grid--1 { grid-template-columns: 1fr; }
.game-grid--2 { grid-template-columns: 1fr 1fr; }
.game-grid--3 { grid-template-columns: 1fr 1fr; }
.game-grid--4 { grid-template-columns: 1fr 1fr; }
.game-grid--5 { grid-template-columns: 1fr 1fr; }

/* ─── Game card ──────────────────────────────────────────────────── */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.game-card__thumb { position: relative; }
.game-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.game-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background:
    radial-gradient(ellipse 80% 70% at 38% 45%, #2d6a8a 0%, #1b3a4b 55%, #0a0a0a 100%);
}
/* Seed-based placeholder gradients */
.game-card__thumb-placeholder[data-seed="1"] { background: radial-gradient(ellipse 80% 70% at 25% 35%, #7a2e1e 0%, #3a1a1a 55%, #0a0a0a 100%); }
.game-card__thumb-placeholder[data-seed="2"] { background: radial-gradient(ellipse 80% 70% at 45% 50%, #2d6a2d 0%, #1b2b1b 55%, #0a0a0a 100%); }
.game-card__thumb-placeholder[data-seed="3"] { background: radial-gradient(ellipse 80% 70% at 30% 40%, #5a3a7a 0%, #2b1b3a 55%, #0a0a0a 100%); }
.game-card__thumb-placeholder[data-seed="4"] { background: radial-gradient(ellipse 80% 70% at 40% 45%, #4a4a4a 0%, #2b2b2b 55%, #0a0a0a 100%); }
.game-card__thumb-placeholder[data-seed="5"] { background: radial-gradient(ellipse 80% 70% at 35% 40%, #a06a2a 0%, #3a2b1a 55%, #0a0a0a 100%); }
.game-card__thumb-placeholder[data-seed="6"] { background: radial-gradient(ellipse 80% 70% at 28% 38%, #16517c 0%, #0e2538 55%, #0a0a0a 100%); }
.game-card__thumb-placeholder[data-seed="7"] { background: radial-gradient(ellipse 80% 70% at 42% 48%, #7a4a2a 0%, #2a1f1a 55%, #0a0a0a 100%); }

.game-card__badge { position: absolute; top: 10px; left: 10px; }
.game-card__body {
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.game-card__info { flex: 1; min-width: 0; }
.game-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .01em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.game-card--compact .game-card__title { font-size: 14px; }
.game-card__plays { display: block; margin-top: 4px; color: var(--ink-faint); }
.game-card__play {
  flex-shrink: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  background: transparent;
  border-color: rgba(249,115,22,.5);
  color: var(--orange);
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.game-card:hover .game-card__play,
.game-card__play:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  box-shadow: 0 3px 16px rgba(249,115,22,.4);
}

/* ─── Ad zones ───────────────────────────────────────────────────── */
.ad-zone {
  width: 100%;
  max-width: 320px;
  height: 50px;
  margin: 0 auto;
  border: 1.5px dashed var(--orange);
  background: repeating-linear-gradient(45deg, var(--paper-soft) 0 10px, var(--paper) 10px 20px);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-zone__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.ad-row { padding: 20px 0 8px; }
.ad-zone[data-lazy]:not([data-loaded]) { opacity: .4; }

/* ─── Load more ──────────────────────────────────────────────────── */
.games-load-more-wrap { text-align: center; margin-top: 32px; }
.games-empty { padding: 40px 0; text-align: center; font-family: var(--font-mono); color: var(--ink-faint); }

/* ─── Site footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--hairline);
  padding: 28px 16px 36px;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer__copy { font-size: 10px; color: var(--ink-faint); }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer__link:hover { color: var(--ink); }

/* ─── Auth modal ─────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10,10,10,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.auth-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 8px 20px rgba(0,0,0,.25);
  padding: 24px 22px 22px;
  font-family: var(--font-body);
  transform: translateY(12px);
  transition: transform 160ms ease;
}
.auth-overlay[aria-hidden="false"] .auth-card { transform: translateY(0); }
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-close:hover { background: var(--paper-warm); }
.auth-logo { margin: 4px auto 8px; }
.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-bottom: 18px;
}
.auth-seg {
  display: flex;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px;
  margin-bottom: 20px;
  gap: 2px;
}
.auth-seg__btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink-mute);
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all 160ms;
  min-height: 36px;
}
.auth-seg__btn--active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: -4px;
}
.auth-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-remember__input { display: none; }
.auth-remember__box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: inline-block;
  flex-shrink: 0;
}
.auth-remember__input:checked + .auth-remember__box { background: var(--ink); }
.auth-remember__label { font-size: 12px; color: var(--ink-mute); }
.auth-forgot { color: var(--ink-soft); text-decoration: none; font-size: 12px; }
.auth-forgot:hover { text-decoration: underline; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-guest-row { text-align: center; margin-top: 16px; }
.auth-guest-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  text-decoration: underline;
  letter-spacing: .02em;
}
.auth-fine-print {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.auth-fine-print a { color: var(--ink-mute); text-decoration: underline; }
.auth-error-global {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-align: center;
  min-height: 0;
}

/* ─── Form fields ─────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.form-field__input {
  height: 44px;
  padding: 0 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  transition: border-color 120ms, box-shadow 120ms;
}
.form-field__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}
.form-field__input--textarea {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
}
.form-field__error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: .05em;
  min-height: 0;
}
.form-field__hint {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: .06em;
}

/* ─── Single game page ───────────────────────────────────────────── */
.game-header {
  padding-top: 18px;
  padding-bottom: 14px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.breadcrumb__item { font-size: 10px; color: var(--ink-faint); text-decoration: none; }
.breadcrumb__item--current { color: var(--ink); }
.breadcrumb__item:hover { color: var(--ink); }
.breadcrumb__sep { font-size: 10px; color: var(--ink-faint); }

.game-header__row { display: flex; flex-direction: column; gap: 14px; }
.game-header__title { font-size: 32px; }
.game-header__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.game-header__stats { font-size: 11px; color: var(--ink-mute); }
.game-header__actions { display: none; } /* hidden on mobile — shown via action row */

.game-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 0;
  padding-bottom: 48px;
}
.game-main { display: flex; flex-direction: column; gap: 16px; }
.game-sidebar { display: flex; flex-direction: column; gap: 16px; }
.game-play-row { display: flex; gap: 8px; align-items: center; }

/* Game frame */
.game-frame-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hairline);
}
.game-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background:
    radial-gradient(ellipse 60% 60% at 50% 45%, rgba(45,106,45,.4) 0%, rgba(45,106,45,0) 60%),
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(249,115,22,.18) 0%, transparent 70%),
    linear-gradient(180deg, #0e0e0e 0%, #050505 100%);
}
.game-overlay[data-loaded] { display: none; }
.game-overlay__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.game-overlay__pitch {
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
}
.game-overlay__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.game-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(249,115,22,.5), 0 0 0 8px rgba(249,115,22,.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-play-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 36px rgba(249,115,22,.6), 0 0 0 12px rgba(249,115,22,.14);
}
.game-overlay__hint { color: rgba(255,255,255,.6); font-size: 11px; }

/* Tabbed info card */
.tabbed-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tabbed-card__tabs {
  display: flex;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-soft);
}
.tabbed-card__tab {
  flex: 1;
  padding: 12px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all 120ms;
  min-height: 44px;
}
.tabbed-card__tab--active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--orange);
}
.tabbed-card__body { padding: 18px; }
.tab-panel { display: flex; flex-direction: column; gap: 14px; }
.tab-panel__text { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }
.tab-panel__pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-panel__stats {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  margin-top: 4px;
}
.tab-stat { }
.tab-stat__label { display: block; font-size: 10px; color: var(--ink-faint); }
.tab-stat__val {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-top: 2px;
}

.controls-list { display: flex; flex-direction: column; gap: 0; }
.controls-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 13.5px;
  color: var(--ink-mute);
}
.controls-row__key { }
.controls-row__val { color: var(--ink); }

.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.related-list__item:hover { color: var(--orange); }
.related-list__num { font-size: 11px; color: var(--orange); }
.related-list__title { text-transform: uppercase; }

.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btns .btn { flex: 1; }

/* Context tiles */
.context-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.context-tiles--2 {
  grid-template-columns: repeat(2, 1fr);
}
.context-tile {
  padding: 12px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.context-tile__label { display: block; font-size: 10px; color: var(--ink-faint); margin-bottom: 4px; }
.context-tile__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

/* Related card (sidebar) */
.related-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px;
}
.related-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.related-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--transition);
}
.related-row:hover { background: var(--paper-soft); }
.related-row__thumb {
  width: 64px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.related-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-row__info { flex: 1; min-width: 0; }
.related-row__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-row__plays { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 10px; }
.related-row__play { font-size: 11px; height: 30px; flex-shrink: 0; }

/* Score-saving teaser */
.score-soon {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--orange);
  background: rgba(249,115,22,.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.score-soon__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.score-soon__body { font-size: 11px; color: var(--ink-mute); line-height: 1.5; }
.score-soon__notify { color: var(--orange-deep); text-decoration: underline; }

/* ─── Profile page ───────────────────────────────────────────────── */
.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 48px;
}
.profile-rail { display: flex; flex-direction: column; gap: 16px; }

/* Profile card */
.profile-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-card__info { flex: 1; min-width: 0; }
.profile-card__username {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1;
}
.profile-card__meta { display: block; margin-top: 4px; font-size: 10px; color: var(--ink-faint); }

/* Avatar */
.avatar {
  border-radius: 50%;
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar--sm { width: 36px; height: 36px; font-size: 16px; }
.avatar--md { width: 56px; height: 56px; font-size: 24px; }
.avatar--lg { width: 84px; height: 84px; font-size: 36px; }
.avatar__stripe {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 4px;
  background: var(--orange);
  transform: translateY(-50%) skewX(-20deg);
  opacity: .18;
}
.avatar__initial { position: relative; z-index: 1; }

/* Profile nav */
.profile-nav { display: none; } /* hidden on mobile */
.profile-tabs-mobile {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.profile-tabs-mobile::-webkit-scrollbar { display: none; }

/* Profile main sections */
.profile-section { display: none; flex-direction: column; gap: 20px; }
.profile-section--active { display: flex; }
.profile-section[hidden] { display: none !important; }

.profile-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-section__title { font-size: 32px; line-height: .9; }
.profile-section__sub { display: block; margin-top: 8px; font-size: 11px; color: var(--ink-faint); }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card--accent-orange::before { background: var(--orange); }
.stat-card--accent-green::before  { background: var(--green); }
.stat-card__label { font-size: 10px; color: var(--ink-faint); display: block; }
.stat-card__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.stat-card__sub { font-size: 10px; color: var(--ink-mute); display: block; margin-top: 2px; }

/* Activity chart */
.activity-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px;
}
.activity-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.activity-card__eyebrow { display: block; font-size: 10px; color: var(--ink-faint); margin-bottom: 4px; }
.activity-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--ink);
}
.activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  padding: 0 4px;
}
.activity-chart__bar {
  flex: 1;
  border-radius: 3px;
  background: var(--ink-mute);
  position: relative;
  transition: height 200ms ease;
  min-height: 4px;
}
.activity-chart__bar--peak { background: var(--orange); }
.activity-chart__bar--current-week { background: var(--ink); }
.activity-chart__peak-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--orange-deep);
  white-space: nowrap;
}
.activity-chart__labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px 0;
}
.activity-chart__labels .meta { font-size: 9px; color: var(--ink-faint); }

/* Recently played */
.recent-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 4px 16px 8px;
}
.recent-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 8px;
}
.recent-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
}
.recent-card__actions { display: flex; gap: 14px; }
.recent-card__action {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
}
.recent-card__action:hover { color: var(--ink); }
.recent-card__action--mute { color: var(--ink-faint); }

/* History row */
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.history-row__thumb {
  width: 56px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.history-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-row__info { flex: 1; min-width: 0; }
.history-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.history-row__meta { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-faint); }
.history-row__play {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  min-height: 32px;
}

/* Recent empty */
.recent-empty { text-align: center; padding: 32px 16px; color: var(--ink-faint); font-size: 11px; }
.recent-empty__link { color: var(--orange); text-decoration: none; }
.recent-empty__link:hover { text-decoration: underline; }

/* Empty state */
.empty-state { text-align: center; padding: 40px 16px; grid-column: 1 / -1; }
.empty-state__label { font-size: 12px; color: var(--ink-faint); margin-bottom: 8px; }
.empty-state__sub { font-size: 14px; color: var(--ink-mute); margin-bottom: 16px; }

/* Settings */
.settings-form { display: flex; flex-direction: column; gap: 0; }
.settings-group {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-group__legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 0 4px;
  color: var(--ink);
}
.settings-data-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.settings-submit-bar {
  position: sticky;
  bottom: 16px;
  text-align: right;
  padding: 12px 0;
  background: linear-gradient(to top, var(--paper) 60%, transparent);
}
.settings-save { width: 100%; }

/* Toggle label */
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-label__input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-label__track {
  width: 40px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  border: 1.5px solid var(--ink);
  position: relative;
  transition: background 140ms;
  flex-shrink: 0;
}
.toggle-label__track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 140ms;
}
.toggle-label__input:checked + .toggle-label__track { background: var(--ink); }
.toggle-label__input:checked + .toggle-label__track::after { transform: translateX(18px); background: var(--paper); }
.toggle-label__text { font-size: 14px; color: var(--ink); }

/* Profile nav vertical (desktop only, hidden on mobile) */
.profile-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink-soft);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  width: 100%;
  min-height: 44px;
  transition: background var(--transition);
}
.profile-nav__item--active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.profile-nav__icon { width: 18px; opacity: .7; flex-shrink: 0; }
.profile-nav__label { flex: 1; }
.profile-nav__count { font-size: 11px; opacity: .5; }
.profile-nav__slash {
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--orange);
  transform: skewX(-20deg);
}

/* Edit profile form */
.profile-edit-form { padding: 16px; background: var(--paper-soft); border: 1px solid var(--hairline); border-radius: var(--r-lg); }
.profile-edit-form__actions { display: flex; gap: 8px; margin-top: 8px; }

/* ─── Archive / taxonomy pages ───────────────────────────────────── */
.archive-hero {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 16px 32px;
  text-align: center;
}
.archive-hero__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Category description block */
.cat-desc {
  max-width: 660px;
  margin: 20px auto 0;
  padding: 20px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.cat-desc > * { margin-bottom: 12px; }
.cat-desc > *:last-child { margin-bottom: 0; }
.cat-desc p { margin-bottom: 12px; }
.cat-desc strong { color: var(--ink); font-weight: 600; }
.cat-desc ul,
.cat-desc ol  { padding-left: 1.5em; margin-bottom: 12px; }
.cat-desc li  { margin-bottom: 5px; }
/* Strip any leftover external classes from pasted content */
.cat-desc [class*="font-claude"],
.cat-desc [class*="whitespace"],
.cat-desc [class*="leading-"],
.cat-desc [class*="break-words"] { all: revert; }

/* ─── 404 ─────────────────────────────────────────────────────────── */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 48px 16px;
}
.not-found__code { font-size: 80px; line-height: 1; color: var(--orange); }
.not-found__title { font-size: 32px; }
.not-found__sub { color: var(--ink-mute); font-size: 14px; }

/* ─── Responsive: Tablet (768px+) ───────────────────────────────── */
@media (min-width: 768px) {
  .container { padding-left: 24px; padding-right: 24px; }

  .nav-inner { padding: 14px 24px; }
  .nav-hamburger { display: none; }
  .nav-profile-btn { display: inline-flex; }

  .game-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .game-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .game-grid--5 { grid-template-columns: repeat(3, 1fr); }

  .hero { height: 340px; }
  .hero__title { font-size: 52px; }

  .profile-layout { flex-direction: row; gap: 24px; }
  .profile-rail { width: 240px; flex-shrink: 0; }
  .profile-main { flex: 1; min-width: 0; }
  .profile-nav { display: flex; flex-direction: column; gap: 4px; }
  .profile-tabs-mobile { display: none; }
  .profile-section__title { font-size: 40px; }
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card__value { font-size: 32px; }

  .game-header__actions { display: flex; }
  .game-play-row.mobile-only { display: none; }
  .game-header__row { flex-direction: row; align-items: flex-end; }
  .game-header__title { font-size: 40px; }

  .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .site-footer { padding: 36px 24px; }
}

/* ─── Responsive: Desktop (1024px+) ─────────────────────────────── */
@media (min-width: 1024px) {
  .container { padding-left: 32px; padding-right: 32px; }

  .site-nav { display: flex; align-items: center; gap: 30px; }
  .nav-inner { padding: 14px 32px; }
  .nav-cat-strip { padding: 8px 32px 12px; }

  .game-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .game-grid--5 { grid-template-columns: repeat(5, 1fr); }

  .hero { height: 440px; }
  .hero__content { padding: 48px 56px; gap: 16px; }
  .hero__title { font-size: 64px; }

  .ad-zone { max-width: 728px; height: 90px; }
  .ad-zone--300x250 { max-width: 300px; height: 250px; }
  .ad-zone--600x200 { max-width: 600px; height: 200px; }

  .game-body { flex-direction: row; align-items: flex-start; gap: 28px; }
  .game-main { flex: 1; min-width: 0; }
  .game-sidebar { width: 360px; flex-shrink: 0; }
  .game-header__title { font-size: 52px; }

  .profile-rail { width: 260px; }
  .profile-section__title { font-size: 48px; }
  .stat-grid { gap: 14px; }
  .activity-chart { height: 160px; gap: 5px; }
  .activity-chart__bar--peak .activity-chart__peak-label { display: block; }

  .site-nav__item {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
  }
  .site-nav__item--active { font-weight: 700; }
  .site-nav__item--active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 3px;
    background: var(--orange);
    transform: skewX(-20deg);
  }
}

/* ─── Large desktop (1280px+) ────────────────────────────────────── */
@media (min-width: 1280px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

/* ─── Search panel ───────────────────────────────────────────────── */
.nav-search-panel {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.nav-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.nav-search-bar__icon {
  flex-shrink: 0;
  color: var(--ink-faint);
  width: 16px;
  height: 16px;
}
.nav-search-input {
  flex: 1;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.nav-search-input::placeholder { color: var(--ink-faint); }
.nav-search-input::-webkit-search-cancel-button { display: none; }
.nav-search-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}
.nav-search-close:hover { background: var(--paper-warm); color: var(--ink); }

.nav-search-results {
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid var(--hairline);
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--transition);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--paper-soft); }
.search-result__thumb {
  width: 64px;
  height: 36px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-warm);
}
.search-result__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-result__thumb .game-card__thumb-placeholder { width: 64px; height: 36px; }
.search-result__info { flex: 1; min-width: 0; }
.search-result__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result__cat { color: var(--ink-faint); font-size: 10px; display: block; margin-top: 2px; }
.search-msg {
  padding: 16px;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .nav-search-bar { padding: 10px 24px; }
  .nav-search-results { max-height: 420px; }
  .search-result { padding: 10px 24px; }
}
@media (min-width: 1024px) {
  .nav-search-bar { padding: 10px 32px; }
  .search-result { padding: 10px 32px; }
}

/* ─── Landscape hint (mobile, single-game uniquement) ─────────────── */
@keyframes fb-rotate-phone {
  0%, 18%   { transform: rotate(0deg); }
  38%, 62%  { transform: rotate(-90deg); }
  82%, 100% { transform: rotate(0deg); }
}
@keyframes fb-hint-in {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fb-hint-out {
  from { transform: translateY(0);    opacity: 1; max-height: 80px; }
  to   { transform: translateY(-6px); opacity: 0; max-height: 0; }
}
@keyframes fb-hint-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(249,115,22,0.00); }
  50%      { box-shadow: 0 0 0 4px rgba(249,115,22,0.08); }
}

.fb-landscape-hint {
  overflow: hidden;
  margin: 10px 16px 0;
  animation: fb-hint-in 280ms ease-out both;
}
.fb-landscape-hint.is-leaving {
  animation: fb-hint-out 240ms ease-in both;
}
.fb-landscape-hint__card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 9px 10px 9px 12px;
  animation: fb-hint-pulse 3.2s ease-in-out infinite;
}
.fb-rotate-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.fb-rotate-icon .fb-phone {
  display: block;
  animation: fb-rotate-phone 3.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.fb-rotate-icon .fb-arrow {
  position: absolute;
  top: -2px;
  right: -4px;
  display: block;
}
.fb-landscape-hint__text {
  flex: 1;
  min-width: 0;
}
.fb-landscape-hint__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.1;
  color: var(--ink);
}
.fb-landscape-hint__sub {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-mute);
  margin-top: 2px;
}
.fb-landscape-hint__close {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--ink-faint);
  opacity: 0.7;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.fb-landscape-hint__close:hover { opacity: 1; }

/* Respect du choix utilisateur OS */
@media (prefers-reduced-motion: reduce) {
  .fb-landscape-hint,
  .fb-landscape-hint.is-leaving,
  .fb-landscape-hint__card,
  .fb-rotate-icon .fb-phone {
    animation: none !important;
  }
}

/* ─── Static pages (contact, terms, privacy, etc.) ──────────────── */
.page-content {
  max-width: 760px;
  margin: 48px auto 80px;
  padding: 0 16px;
}
.page-content__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-content__body {
  line-height: 1.75;
  font-size: 1rem;
}
.page-content__body h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; margin: 32px 0 12px; }
.page-content__body h3 { font-family: var(--font-display); font-size: 1.1rem;  font-weight: 600; text-transform: uppercase; margin: 24px 0 8px; }
.page-content__body p  { margin-bottom: 16px; }
.page-content__body ul,
.page-content__body ol { padding-left: 1.5em; margin-bottom: 16px; }
.page-content__body a  { color: var(--color-orange, #f97316); text-decoration: underline; }

/* Desktop : masque le hint */
@media (min-width: 769px) {
  .fb-landscape-hint { display: none !important; }
}
