/* =========================================================
   Games hub — shared stylesheet (PV-243)
   Aesthetic: dark arcade marquee. Ink background, amber glow,
   cartridge cards. Plain CSS, no build step.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --ink: #0d0f14;
  --ink-2: #14181f;
  --ink-3: #1c222c;
  --line: #2a3140;
  --paper: #f2ede3;
  --muted: #9aa3b2;
  --amber: #ffb347;
  --ember: #ff7a1a;
  --cyan: #57d7e2;
  --radius: 14px;
  --font-display: 'Bungee', cursive;
  --font-body: 'Atkinson Hyperlegible', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  /* Subtle arcade-room atmosphere: amber glow top-left, cyan whisper right */
  background-image:
    radial-gradient(1100px 500px at 15% -10%, rgba(255, 122, 26, .14), transparent 60%),
    radial-gradient(900px 480px at 110% 25%, rgba(87, 215, 226, .07), transparent 55%);
  background-attachment: fixed;
}

/* Faint scanlines over everything — the CRT wink */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent 0 3px, rgba(255, 255, 255, .012) 3px 4px);
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }

/* ---------- Header / marquee ---------- */

.site-head {
  padding: 56px 0 16px;
  text-align: center;
}

.site-head .kicker {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--cyan);
  text-transform: uppercase;
}

.site-head h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  margin: 10px 0 14px;
  color: var(--paper);
  text-shadow:
    0 0 24px rgba(255, 179, 71, .35),
    0 0 64px rgba(255, 122, 26, .18);
}

.site-head h1 .glow { color: var(--amber); }

.site-head .tagline {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Marquee divider: angled stripes like an arcade cabinet edge */
.stripes {
  height: 10px;
  margin: 36px auto 0;
  max-width: 520px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg, var(--ember) 0 14px, var(--ink) 14px 22px, var(--amber) 22px 36px, var(--ink) 36px 44px);
  opacity: .85;
}

/* ---------- Game cards (hub) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  padding: 48px 0 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  transform: translateY(0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--amber);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 179, 71, .35),
    0 0 38px rgba(255, 122, 26, .12);
  color: var(--paper);
}

/* Cartridge "label" area — drop a 16:9 banner image here */
.card .art {
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border-bottom: 2px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card .art .placeholder {
  font-family: var(--font-display);
  color: var(--line);
  font-size: 22px;
  letter-spacing: .1em;
}

.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .02em;
}

.card .desc { color: var(--muted); font-size: 15px; flex: 1; }

.card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card .meta::before {
  content: '▶';
  color: var(--ember);
  font-size: 11px;
}

/* ---------- Game page (fiche) ---------- */

.hero {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 56px 0 8px;
  flex-wrap: wrap;
}

.hero .icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 122, 26, .10);
  object-fit: cover;
  background: var(--ink-3);
}

.hero .title-block { flex: 1; min-width: 260px; }

.hero .kicker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--cyan);
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 52px);
  line-height: 1.08;
  margin: 8px 0 10px;
  text-shadow: 0 0 26px rgba(255, 179, 71, .3);
}

.hero .pitch { color: var(--muted); max-width: 620px; }

/* Custom Play Store button (no external badge dependency) */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--ember), #e05f00);
  color: #1a0d00;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 8px 26px rgba(255, 122, 26, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 122, 26, .5);
  color: #1a0d00;
}

.btn-play svg { width: 20px; height: 20px; flex: none; }

/* Screenshots: horizontal film-strip */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 36px 0 18px;
  scroll-snap-type: x mandatory;
}

.shots img {
  height: 420px;
  max-height: 56vh;
  border-radius: 12px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

/* Sections */
.section { padding: 30px 0; border-top: 1px solid var(--line); margin-top: 26px; }

.section h2 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--amber);
  margin-bottom: 14px;
}

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

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px 22px;
}

.features li { padding-left: 26px; position: relative; color: var(--paper); }

.features li::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--ember);
  font-size: 12px;
}

/* ---------- Footer ---------- */

.site-foot {
  margin-top: 64px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-foot .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Page-load reveal (CSS only, staggered) ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-head, .hero { animation: rise .6s ease both; }
.grid .card, .shots, .section { animation: rise .6s ease both; }
.grid .card:nth-child(1) { animation-delay: .08s; }
.grid .card:nth-child(2) { animation-delay: .16s; }
.grid .card:nth-child(3) { animation-delay: .24s; }
.grid .card:nth-child(4) { animation-delay: .32s; }
.grid .card:nth-child(5) { animation-delay: .40s; }
.grid .card:nth-child(6) { animation-delay: .48s; }
.shots { animation-delay: .12s; }
.section { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .site-head, .hero, .grid .card, .shots, .section { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .hero { gap: 18px; padding-top: 40px; }
  .hero .icon { width: 96px; height: 96px; border-radius: 22px; }
  .shots img { height: 320px; }
}
