/* Games Arcade — Design system (claude-design + popular-web-designs) */
:root {
  /* Surfaces & ink */
  --bg: #0a0a0b;
  --bg-soft: #111113;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f4f4f5;
  --text-2: #c9c9ce;
  --muted: #8b8b93;

  /* Accents gaming */
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --pink: #ff4d8d;
  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);

  /* Focus */
  --focus: hsla(212, 100%, 60%, 1);

  /* Shape & depth */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: rgba(0, 0, 0, 0) 0 0 0 1px var(--border), rgba(0, 0, 0, 0.30) 0 8px 24px -8px;
  --shadow-card-hover: rgba(124, 92, 255, 0.25) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 20px 40px -12px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(124, 92, 255, 0.35); }

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(1100px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
}

.logo-text span { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 128px) 0 clamp(48px, 8vw, 80px);
  text-align: center;
  overflow: hidden;
}

/* halo décoratif, subtil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 360px at 50% -120px, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(480px 300px at 82% 0%, rgba(0, 212, 255, 0.12), transparent 70%),
    radial-gradient(480px 300px at 16% 0%, rgba(255, 77, 141, 0.10), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #fff 0%, #c9c9ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- Games grid ---------- */
.games-section { padding: 16px 0 84px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.muted { color: var(--muted); font-size: 14px; font-family: var(--mono); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s, background .22s;
  overflow: hidden;
}

/* liseré haut au survol */
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity .22s;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg-soft) 100%);
}
.game-card:hover::before { opacity: 1; }

.game-card.disabled { opacity: 0.5; cursor: not-allowed; }
.game-card.disabled:hover { transform: none; box-shadow: 0 0 0 1px var(--border); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%); }
.game-card.disabled::before { display: none; }

.game-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(0, 212, 255, 0.14));
  box-shadow: inset 0 0 0 1px var(--border);
}

.game-status {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.game-status.coming { background: rgba(139, 147, 167, 0.14); color: var(--muted); }
.game-status.playable {
  background: rgba(0, 212, 255, 0.13);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.game-title { font-weight: 700; font-size: 19px; letter-spacing: -0.3px; line-height: 1.3; }

.game-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.game-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}

.game-cta .arrow { transition: transform .18s; }
.game-card:hover .game-cta .arrow { transform: translateX(3px); }

/* ---------- About ---------- */
.about-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.about-section .container {
  max-width: 760px;
  text-align: center;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.about-section p { color: var(--muted); line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); }
.site-footer p { color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Empty ---------- */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 56px 0;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

@media (max-width: 520px) {
  .hero { padding: 56px 0 40px; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 10px; }
  .games-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}