.hero { padding: 56px 0 32px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 96px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 8px 0 16px;
}
.hero h1 em { font-style: italic; }
.lede {
  max-width: 560px;
  color: var(--text-2);
  font-size: 18px;
  margin: 0;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
a.card:hover { transform: translateY(-3px); border-color: var(--ink); }
a.card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.card-visual {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.card-visual.paper {
  background-color: #F7F5EF;
  background-image: radial-gradient(circle, #C9C3B5 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(9, 22px);
  border: 2.5px solid var(--ink);
  border-radius: 3px 6px 2px 5px;
  transform: rotate(-2deg);
  background: #FBFAF6;
}
.mini-grid span {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-family: 'Gochi Hand', cursive;
  font-size: 16px;
  color: var(--ink);
}
.mini-grid span:nth-child(3n):not(:nth-child(9n)) { border-right: 2px solid var(--ink); }
.mini-grid span.me { color: #1F3FA8; }
.mini-grid span.hl { background: rgba(200, 255, 61, .9); border-radius: 40% 50% 38% 46%; }

.card-soon { opacity: .7; }
.card-soon .card-visual { background: var(--paper-2); }
.plus { font-family: var(--display); font-size: 64px; color: var(--label); }

.card-body { padding: 18px 20px 22px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  margin: 12px 0 4px;
}
.card p { margin: 0; color: var(--text-2); }

@media (max-width: 360px) {
  .mini-grid { grid-template-columns: repeat(9, 18px); }
  .mini-grid span { width: 18px; height: 18px; font-size: 10px; }
}

/* ---- Vignettes des jeux (style carnet) ---- */
.card-visual.paper { color: var(--ink); }
.th-mines, .th-cross, .th-killer, .th-2048, .th-word, .th-cards { font-family: 'Gochi Hand', cursive; }

.th-mines { display: grid; grid-template-columns: repeat(5, 26px); gap: 3px; transform: rotate(-2deg); }
.th-mines span {
  width: 26px; height: 26px; display: grid; place-items: center; font-size: 18px;
  background: #E4E0D6; border: 1.5px solid var(--ink); border-radius: 4px 6px 3px 5px;
}
.th-mines span.o { background: #FBFAF6; border-color: #C9C3B5; color: #1F3FA8; }
.th-mines span.c2 { color: #2E7D32; }
.th-mines span.f { background: var(--fluo); color: var(--ink); font-size: 15px; }

.th-cards { position: relative; width: 150px; height: 96px; }
.th-cards span {
  position: absolute; top: 6px; width: 58px; height: 82px; padding: 4px 6px;
  background: #fff; border: 2px solid var(--ink); border-radius: 7px 5px 8px 4px;
  font-size: 22px; line-height: 1;
}
.th-cards span b { display: block; font-weight: 400; font-size: 20px; }
.th-cards span.r { color: #C62828; }
.th-cards span:nth-child(1) { left: 10px; transform: rotate(-10deg); }
.th-cards span:nth-child(2) { left: 46px; transform: rotate(-1deg); top: 2px; }
.th-cards span:nth-child(3) { left: 82px; transform: rotate(9deg); }

.th-2048 { display: grid; grid-template-columns: repeat(2, 58px); gap: 6px; transform: rotate(-2deg); }
.th-2048 span {
  height: 50px; display: grid; place-items: center; font-size: 24px;
  background: #FBFAF6; border: 2px solid var(--ink); border-radius: 6px 9px 5px 8px;
}
.th-2048 .t8 { background: #FFE9A8; }
.th-2048 .t64 { background: #FFC2D1; }
.th-2048 .t2048 { background: var(--ink); color: var(--fluo); font-size: 19px; }

.th-word { display: flex; gap: 6px; transform: rotate(-2deg); }
.th-word span {
  width: 36px; height: 40px; display: grid; place-items: center; font-size: 26px;
  background: #FBFAF6; border: 2px solid var(--ink); border-radius: 5px 8px 4px 7px;
}
.th-word .ok { background: var(--fluo); }
.th-word .mid { background: #FFD84D; border-radius: 50%; }

.th-cross { display: grid; grid-template-columns: repeat(5, 28px); transform: rotate(-2deg); }
.th-cross span { width: 28px; height: 28px; display: grid; place-items: center; font-size: 20px; color: #1F3FA8; }
.th-cross span.w { background: #FBFAF6; border: 1.5px solid var(--ink); margin: -0.75px; }
.th-cross span.hl { background: var(--fluo); }

.th-killer { display: grid; grid-template-columns: repeat(3, 46px); border: 2.5px solid var(--ink); background: #FBFAF6; transform: rotate(-2deg); }
.th-killer span {
  position: relative; height: 46px; display: grid; place-items: center; font-size: 28px;
  outline: 1.5px dashed #77736A; outline-offset: -5px;
}
.th-killer span i { position: absolute; top: 5px; left: 6px; font: 600 14px 'Caveat', cursive; font-style: normal; color: #77736A; }
.th-killer span.me { color: #1F3FA8; font-family: 'Caveat', cursive; font-weight: 700; }

.th-dots { width: 150px; height: 100px; overflow: visible; }
.th-dots .pts circle { fill: #77736A; }
.th-dots path { fill: none; stroke-width: 3; stroke-linecap: round; }
.th-dots .b { stroke: #1F3FA8; }
.th-dots .r { stroke: #C62828; }
.th-dots text { font: 22px 'Gochi Hand', cursive; fill: #1F3FA8; text-anchor: middle; }

.hub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 20px 0 0; }
.hub-link {
  display: inline-block;
  padding: 6px 16px;
  background: var(--ink);
  color: var(--fluo);
  border-radius: 999px;
  font: 600 15px var(--body);
  text-decoration: none;
}
.hub-link:hover { background: #2A2A27; }
.hub-tip { font-size: 14px; color: var(--label); }
@media (display-mode: standalone) { .hub-tip { display: none; } }

/* ---- Cartes compactes : plus de jeux visibles d'un coup ---- */
.hero { padding: 36px 0 24px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card-visual { aspect-ratio: 4 / 3; overflow: hidden; }
.card-visual > * { scale: .78; }
.card-body { padding: 12px 14px 14px; }
.card h2 { font-size: 26px; margin: 8px 0 2px; }
.card p { font-size: 14px; line-height: 1.35; }

@media (max-width: 600px) {
  .hero { padding: 24px 0 16px; }
  .hero h1 { font-size: 44px; margin: 4px 0 10px; }
  .lede { font-size: 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { border-radius: 12px; }
  .card-visual { aspect-ratio: 5 / 4; }
  .card-visual > * { scale: .56; }
  .card-body { padding: 8px 10px 10px; }
  .card-meta .label { display: none; }
  .tag { font-size: 10px; padding: 2px 7px; }
  .card h2 { font-size: 21px; margin: 6px 0 2px; }
  .card p {
    font-size: 12.5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}

/* Vignettes des jeux d'action */
.th-svg { width: 150px; height: 112px; overflow: visible; }
.th-svg path, .th-svg circle, .th-svg rect { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.th-svg .k { stroke: var(--ink); stroke-width: 3.5; }
.th-svg .f { stroke: var(--fluo); stroke-width: 7; }
.th-svg .b circle, .th-svg .b path { stroke: #1F3FA8; stroke-width: 3; }
.th-svg .r { stroke: #C62828; stroke-width: 3; fill: rgba(198, 40, 40, .12); }
.th-svg .snk { stroke: #1F3FA8; stroke-width: 9; }
.th-svg .eye { fill: #fff; stroke: none; }
.th-svg .apl { stroke: #C62828; stroke-width: 3; fill: rgba(200, 255, 61, .9); }
.th-svg .brk rect { stroke: var(--ink); stroke-width: 2.2; fill: #FBFAF6; }
.th-svg .brk .h1 { fill: #FFE9A8; }
.th-svg .brk .h2 { fill: #FFC2D1; }
.th-svg .ball { fill: #1F3FA8; stroke: none; }
