/* =====================================================
   jeux-parking.com — feuille de style principale
   Palette : crème / asphalte clair / jaune marquage / rouge accent
   ===================================================== */

:root {
  /* fond et surfaces */
  --bg:        #fdfaf2;   /* crème principal */
  --bg-2:      #f5efdf;   /* crème un poil plus chaud */
  --bg-3:      #ebe3cd;   /* crème ombré */
  --asphalt:   #2a2c33;   /* asphalte foncé pour contrastes */
  --asphalt-2: #3a3d45;

  /* couleurs d'accent */
  --line:      #f5b400;   /* jaune marquage parking */
  --line-soft: rgba(245, 180, 0, 0.18);
  --accent:    #ff5a3c;   /* rouge feu stop */
  --accent-2:  #3ec3a8;   /* vert frais */
  --accent-3:  #0a3d62;   /* bleu nuit */

  /* texte */
  --text:      #1a1c20;
  --text-2:    #4a4d55;
  --text-3:    #8a8d95;
  --on-dark:   #fdfaf2;

  /* bordures */
  --border:    #d8cfb8;
  --border-soft: #ebe3cd;

  /* divers */
  --shadow:    0 20px 50px -20px rgba(26, 28, 32, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(26, 28, 32, 0.25);
  --radius:    8px;
  --radius-lg: 14px;

  --container: 1320px;
}

/* =====================================================
   RESET / BASE
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--asphalt);
  color: var(--on-dark);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =====================================================
   GRAIN OVERLAY (très léger, donne du caractère)
   ===================================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bungee', sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--line);
  color: var(--asphalt);
  display: grid;
  place-items: center;
  border-radius: 4px;
  transform: rotate(-4deg);
  flex-shrink: 0;
}
.logo-mark span {
  display: block;
  transform: rotate(4deg);
  line-height: 1;
}
.logo-text b {
  color: var(--line);
}

.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a {
  position: relative;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 6px 0;
  color: var(--text-2);
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--text);
}
.main-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  min-width: 220px;
  transition: border-color 0.2s;
}
.search-form:focus-within {
  border-color: var(--line);
}
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.search-form button {
  width: 32px;
  height: 32px;
  background: var(--line);
  color: var(--asphalt);
  border-radius: 50%;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: transform 0.15s;
}
.search-form button:hover {
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 24px 32px;
}
.mobile-nav ul {
  margin-bottom: 16px;
}
.mobile-nav li {
  border-bottom: 1px dashed var(--border);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.mobile-nav .search-form {
  width: 100%;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--line);
  color: var(--asphalt);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--accent);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.btn-dark {
  background: var(--asphalt);
  color: var(--on-dark);
}
.btn-dark:hover {
  background: var(--asphalt-2);
}
.btn .arrow {
  transition: transform 0.2s;
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 80% 30%, rgba(255, 90, 60, 0.1), transparent 60%),
    radial-gradient(ellipse 500px 400px at 20% 80%, rgba(245, 180, 0, 0.15), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(245, 180, 0, 0.04) 40px,
    rgba(245, 180, 0, 0.04) 42px
  );
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 700;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.blink {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s infinite;
  box-shadow: 0 0 10px rgba(255, 90, 60, 0.6);
}
@keyframes blink {
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .accent {
  color: var(--line);
}
.hero h1 .scratch {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-transform: lowercase;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Bungee', sans-serif;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-top: 6px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--asphalt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--asphalt);
}
.parking-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 0 0),
    linear-gradient(var(--line) 0 0),
    linear-gradient(var(--line) 0 0),
    linear-gradient(var(--line) 0 0),
    linear-gradient(var(--line) 0 0);
  background-repeat: no-repeat;
  background-size:
    4px 100%, 4px 100%, 4px 100%,
    100% 4px, 100% 4px;
  background-position:
    25% 0, 50% 0, 75% 0,
    0 15%, 0 85%;
  opacity: 0.85;
}
.parking-spot {
  position: absolute;
  width: 22%;
  aspect-ratio: 3/4;
  top: 17%;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--on-dark);
  font-family: 'Bungee', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.car-1 {
  left: 4%;
  background: linear-gradient(135deg, #ff5a3c, #c41a1a);
  animation: park 6s ease-in-out infinite;
}
.car-2 {
  left: 28%;
  top: 50%;
  background: linear-gradient(135deg, #3ec3a8, #2a8a78);
  animation: park 5s ease-in-out infinite reverse;
}
.car-3 {
  right: 4%;
  top: 22%;
  background: linear-gradient(135deg, #fdfaf2, #d8cfb8);
  color: var(--asphalt);
  animation: park 7s ease-in-out infinite;
}
@keyframes park {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-visual-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(253, 250, 242, 0.96);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--asphalt);
}
.hero-visual-label b {
  color: var(--accent);
}

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee {
  background: var(--line);
  color: var(--asphalt);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid var(--asphalt);
  border-bottom: 1px solid var(--asphalt);
}
.marquee-track {
  display: flex;
  gap: 50px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  font-family: 'Bungee', sans-serif;
  font-size: 17px;
  letter-spacing: -0.01em;
  width: max-content;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 50px;
}
.marquee-track span::after {
  content: '◆';
  font-size: 13px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   SECTION
   ===================================================== */
.section {
  padding: 90px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
  max-width: 700px;
}
.section-title small {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}
.section-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-weight: 700;
  transition: all 0.2s;
}
.filter-chip:hover {
  color: var(--text);
  border-color: var(--text);
}
.filter-chip.active {
  background: var(--line);
  color: var(--asphalt);
  border-color: var(--line);
}

/* =====================================================
   GAME GRID + CARD
   ===================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 20px 40px -20px rgba(245, 180, 0, 0.35);
}
.game-card-link {
  display: block;
  height: 100%;
}

.game-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.game-thumb svg {
  width: 100%;
  height: 100%;
}

.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--line);
  color: var(--asphalt);
  font-family: 'Bungee', sans-serif;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  z-index: 2;
  text-transform: uppercase;
}
.badge-hot { background: var(--accent); color: var(--on-dark); }
.badge-new { background: var(--accent-2); color: var(--asphalt); }
.badge-vip { background: var(--accent-3); color: var(--on-dark); }

.game-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(253, 250, 242, 0.94);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--asphalt);
  z-index: 2;
}

.game-info {
  padding: 18px 20px;
}
.game-title {
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.game-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 700;
}
.game-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.play-btn {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
}
.game-cta .arrow {
  color: var(--accent);
  font-size: 16px;
  transition: transform 0.2s;
}
.game-card:hover .arrow {
  transform: translateX(4px);
}

/* =====================================================
   FEATURED SECTION
   ===================================================== */
.featured {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    var(--line-soft) 80px,
    var(--line-soft) 82px
  );
  pointer-events: none;
}
.featured-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.featured-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--asphalt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--asphalt);
}
.featured-art svg {
  width: 100%;
  height: 100%;
}
.featured-text small.over {
  display: block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.featured-text h2 {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.featured-text h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  text-transform: lowercase;
}
.featured-text p {
  color: var(--text-2);
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.7;
}
.feature-list {
  margin-bottom: 28px;
}
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-2);
}
.feature-list li::before {
  content: '▶';
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
}

/* =====================================================
   CATEGORIES GRID
   ===================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.cat-card {
  aspect-ratio: 1.5 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.cat-card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--line-soft), transparent 70%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cat-card:hover::before {
  opacity: 1;
}
.cat-icon {
  width: 46px;
  height: 46px;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 22px;
  transform: rotate(-3deg);
  background: var(--bg-2);
}
.cat-name {
  font-family: 'Bungee', sans-serif;
  font-size: 18px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cat-count {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.cat-count strong {
  color: var(--accent);
}

/* =====================================================
   GAME PAGE (single)
   ===================================================== */
.game-hero {
  padding: 40px 32px 60px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.game-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.breadcrumbs {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--text-2);
  font-weight: 700;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .sep {
  margin: 0 6px;
  color: var(--border);
}

.game-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--asphalt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--asphalt);
}
.game-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.game-frame-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--asphalt);
  color: var(--on-dark);
  text-align: center;
  padding: 32px;
  position: relative;
}
.game-frame-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(245, 180, 0, 0.08) 30px,
    rgba(245, 180, 0, 0.08) 32px
  );
}
.placeholder-content {
  position: relative;
  z-index: 1;
}
.placeholder-content h2 {
  font-family: 'Bungee', sans-serif;
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--line);
}
.placeholder-content p {
  color: var(--bg-3);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--line);
  color: var(--asphalt);
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-play:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--accent);
}

.game-controls-hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--bg-3);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--asphalt);
  outline: none;
}

.game-status-bar {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.status-text {
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.status-subtitle {
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
}
.game-status-bar .btn {
  padding: 10px 20px;
  font-size: 12px;
}

.touch-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.touch-pad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
}
.touch-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.touch-controls button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--asphalt);
  color: var(--on-dark);
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.touch-controls button:active {
  background: var(--line);
  color: var(--asphalt);
  transform: scale(0.95);
}
.touch-controls [data-touch="brake"] {
  background: var(--accent);
}

.game-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.game-info-card h1 {
  font-family: 'Bungee', sans-serif;
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.game-tagline {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.game-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.stat-block {
  flex: 1;
}
.stat-block .v {
  font-family: 'Bungee', sans-serif;
  font-size: 20px;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-block .l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-top: 6px;
  font-weight: 700;
}
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.game-tag {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  transition: all 0.2s;
}
.game-tag:hover {
  background: var(--line);
  border-color: var(--line);
  color: var(--asphalt);
}

.game-content {
  padding: 60px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.game-content h2 {
  font-family: 'Bungee', sans-serif;
  font-size: 26px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.game-content h2 + h2 {
  margin-top: 40px;
}
.game-content .prose {
  max-width: 720px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
}
.game-content .prose p + p {
  margin-top: 16px;
}
.instructions-box {
  background: var(--bg-2);
  border-left: 4px solid var(--line);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--text);
}

/* =====================================================
   CATEGORY PAGE
   ===================================================== */
.cat-hero {
  padding: 60px 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cat-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(245, 180, 0, 0.06) 40px,
    rgba(245, 180, 0, 0.06) 42px
  );
  pointer-events: none;
}
.cat-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.cat-hero h1 {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 16px 0;
}
.cat-hero h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  text-transform: lowercase;
}
.cat-hero p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.6;
}
.cat-hero-icon {
  width: 90px;
  height: 90px;
  background: var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 44px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--asphalt);
  color: var(--on-dark);
  padding: 60px 32px 24px;
  margin-top: 80px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0,
    var(--line) 30px,
    var(--asphalt) 30px,
    var(--asphalt) 50px
  );
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  color: var(--on-dark);
}
.footer-brand p {
  color: var(--bg-3);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.7;
  opacity: 0.7;
}
.footer-col h4 {
  font-family: 'Bungee', sans-serif;
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--line);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 13px;
  color: var(--bg-3);
  opacity: 0.7;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--line);
  opacity: 1;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px dashed rgba(253, 250, 242, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--bg-3);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg);
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--text);
  color: var(--text);
}
.pagination .current {
  background: var(--line);
  border-color: var(--line);
  color: var(--asphalt);
}
.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* =====================================================
   CTA BLOCK
   ===================================================== */
.cta-block {
  padding: 100px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 180, 0, 0.1), transparent 70%);
}
.cta-block h2 {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.95;
  margin-bottom: 22px;
  position: relative;
}
.cta-block h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  text-transform: lowercase;
}
.cta-block p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 32px;
  position: relative;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .header-inner {
    padding: 14px 20px;
    gap: 16px;
  }
  .main-nav,
  .search-form {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .featured-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .game-hero-inner {
    grid-template-columns: 1fr;
  }
  .game-info-card {
    position: static;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 20px 70px;
  }
  .hero h1 {
    font-size: clamp(36px, 9vw, 56px);
  }
  .section,
  .game-content {
    padding: 60px 20px;
  }
  .cat-hero,
  .game-hero {
    padding: 40px 20px;
  }
  .cat-hero-inner {
    grid-template-columns: 1fr;
  }
  .cat-hero-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 0;
  }
  .site-footer {
    padding: 50px 0 24px;
  }
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .hero-stats {
    gap: 24px;
  }
  .game-stats-row {
    flex-wrap: wrap;
  }
  .stat-block {
    flex: 1 1 40%;
  }
}

@media (max-width: 420px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header,
  .site-footer,
  .marquee,
  .nav-toggle,
  .mobile-nav {
    display: none;
  }
}
