/* Arcade content site: same look as tryarcade.com (dark, purple, Rubik One headings) */
:root {
  --bg: #0c0616;
  --surface: #150d24;
  --surface-2: #1d1430;
  --line: rgba(250, 250, 250, 0.08);
  --text: #fafafa;
  --muted: #a3a3a3;
  --purple: #8d4ff9;
  --purple-hover: #7f47e0;
  --purple-deep: #573199;
  --purple-soft: rgba(141, 79, 249, 0.12);
  --gold: #f5c542;
  --radius: 14px;
  --display: "Rubik One", "Rubik", system-ui, sans-serif;
  --title: "Rubik", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; }
a { color: #b893ff; text-underline-offset: 3px; }
a:hover { color: #d2bbff; }
img { max-width: 100%; display: block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(12, 6, 22, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 18px; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-family: var(--title); font-weight: 600; font-size: 15px; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--text); }
.nav .hide-sm { display: inline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--purple); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-family: var(--display); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--purple-hover); color: #fff; transform: translateY(-1px); }
.btn.small { padding: 9px 14px; font-size: 12px; }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.hero { padding: 56px 0 36px; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--title); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #b893ff; background: var(--purple-soft); border: 1px solid rgba(141, 79, 249, 0.35); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5.2vw, 52px); text-transform: uppercase; letter-spacing: 0.01em; }
.hero p.lead { color: #d6d0e2; font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin: 18px auto 0; }
.hero .cta-row { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; margin: 56px 0 16px; }
h3 { font-family: var(--title); font-weight: 700; font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: #e2ddeb; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: #fff; }
.muted { color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); font-family: var(--display); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: #d6d0e2; font-size: 15px; }

/* Game cards (same feel as the marketplace) */
.games { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.game { display: block; text-decoration: none; color: var(--text); }
.game .thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.game:hover .thumb img { transform: scale(1.04); }
.game .name { font-family: var(--title); font-weight: 700; font-size: 17px; margin: 10px 0 2px; color: var(--text); }
.game .desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-family: var(--title); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: #ddd; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--title); font-weight: 700; background: var(--surface-2); }
td:first-child { color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.yes { color: #4ade80; font-weight: 700; }
.no { color: #f87171; font-weight: 700; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-family: var(--title); font-weight: 700; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--purple); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: #d6d0e2; }

/* Tool box */
.tool { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid rgba(141, 79, 249, 0.35); border-radius: 18px; padding: 24px; box-shadow: 0 20px 60px rgba(141, 79, 249, 0.12); }
.tool .controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tool label { display: block; font-family: var(--title); font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.tool .field { flex: 1 1 180px; }
.tool select, .tool input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; }
.tool select:focus, .tool input:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.results { margin-top: 20px; display: grid; gap: 10px; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.result .txt { font-family: var(--title); font-weight: 700; font-size: 17px; }
.copy { background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.copy:hover { border-color: var(--purple); }
.idea { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.idea h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; margin: 0 0 4px; }
.idea dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 16px 0 0; }
.idea dt { color: var(--muted); font-family: var(--title); font-weight: 600; font-size: 14px; }
.idea dd { margin: 0; }
.tool .after { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* CTA band */
.cta-band { margin: 64px 0 0; background: radial-gradient(120% 140% at 0% 0%, rgba(141, 79, 249, 0.35), transparent 60%), var(--surface); border: 1px solid rgba(141, 79, 249, 0.35); border-radius: 20px; padding: 36px 28px; text-align: center; }
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { color: #d6d0e2; margin: 0 auto 20px; max-width: 560px; }

/* Related links */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text); font-family: var(--title); font-weight: 700; }
.related a span { display: block; color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 14px; margin-top: 4px; }
.related a:hover { border-color: rgba(141, 79, 249, 0.5); }

.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* Footer */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer h4 { font-family: var(--title); color: var(--text); margin: 0 0 10px; font-size: 14px; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; margin: 5px 0; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 40px 0 26px; }
  .idea dl { grid-template-columns: 1fr; gap: 2px; }
  .idea dt { margin-top: 8px; }
}

/* Big game screenshot under the hero */
.hero-shot { position: relative; display: block; max-width: 960px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.hero-shot img { width: 100%; height: auto; }
.hero-caption { position: absolute; left: 14px; bottom: 14px; background: rgba(12, 6, 22, 0.75); backdrop-filter: blur(6px); color: #fff; font-family: var(--title); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }

/* Mosaic of real games */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; }
.mosaic a { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic span { position: absolute; left: 10px; bottom: 10px; background: rgba(12, 6, 22, 0.75); color: #fff; font-family: var(--title); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 640px) { .mosaic a:nth-child(6) { display: none; } .mosaic { grid-template-columns: 1fr 1fr; } .mosaic a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; } }

/* Comparison grid (vs pages) */
.vs { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.vs-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-top: 1px solid var(--line); }
.vs-row:first-child { border-top: 0; }
.vs-label { padding: 14px 18px; font-family: var(--title); font-weight: 600; color: #d6d0e2; font-size: 15px; display: flex; align-items: center; }
.vs-cell { padding: 14px 16px; font-size: 15px; display: flex; align-items: center; gap: 10px; color: #e2ddeb; }
.vs-cell.arc { background: rgba(141, 79, 249, 0.10); color: #fff; font-weight: 600; }
.vs-head .vs-cell { flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 16px; }
.vs-head .vs-cell strong { font-family: var(--display); font-weight: 400; font-size: 18px; text-transform: uppercase; }
.vs-head .vs-cell span { font-size: 13px; font-weight: 400; }
.vs-head .vs-cell img { width: 28px; height: 28px; border-radius: 50%; margin-bottom: 4px; }
.vs-head .vs-cell.arc { background: linear-gradient(180deg, rgba(141, 79, 249, 0.35), rgba(141, 79, 249, 0.10)); }
.ic { flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800; }
.ic.y { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.ic.n { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.ic.p { background: rgba(245, 197, 66, 0.15); color: #f5c542; }
@media (max-width: 640px) {
  .vs-row { grid-template-columns: 1fr 1fr; }
  .vs-label { grid-column: 1 / -1; padding: 12px 14px 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .vs-head .vs-label { display: none; }
  .vs-cell { padding: 6px 14px 14px; font-size: 14px; }
  .vs-head .vs-cell { padding: 14px; }
}

/* Idea generator: tag spacing and copyable prompt */
.idea > .tag { display: inline-block; margin-bottom: 12px; }
.prompt { margin-top: 20px; background: rgba(141, 79, 249, 0.08); border: 1px dashed rgba(141, 79, 249, 0.5); border-radius: 12px; padding: 16px; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.prompt-head strong { font-family: var(--title); }
.prompt p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #e9e4f2; }

/* Roundup pages: one card per tool */
.picks { display: grid; gap: 16px; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.pick.top { border-color: rgba(141, 79, 249, 0.6); background: linear-gradient(180deg, rgba(141, 79, 249, 0.14), var(--surface)); }
.pick-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pick-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--display); }
.pick.top .pick-rank { background: var(--purple); border-color: var(--purple); }
.pick-head h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 21px; }
.pick-best { margin-left: auto; font-family: var(--title); font-size: 13px; font-weight: 600; color: #d6d0e2; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.pick p { margin: 12px 0 0; color: #d6d0e2; }
.pick-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 14px; }
.pick-cols div { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: #e2ddeb; }
.pick-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 640px) { .pick-cols { grid-template-columns: 1fr; } .pick-best { margin-left: 0; } }

/* Competitor logos */
.vs-head .vs-cell img { border-radius: 8px; }
.pick-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff1; }

/* Steps: 4 in a row on desktop, 2x2 on tablets, stacked on phones */
.steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
/* (ancien débordement des étapes supprimé) */

/* Visual comparison blocks (vs pages) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo-block { margin: 22px 0; }
.duo-title { font-family: var(--title); font-weight: 700; font-size: 18px; margin: 0 0 10px; }
.duo-side { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.duo-side.arc { border-color: rgba(141, 79, 249, 0.55); background: linear-gradient(180deg, rgba(141, 79, 249, 0.14), var(--surface)); }
.duo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.duo-head img { width: 24px; height: 24px; border-radius: 6px; }
.duo-head strong { font-family: var(--title); font-size: 15px; }
.duo-head .ic { margin-left: auto; }
.duo-side p { margin: 0; color: #e2ddeb; font-size: 15px; line-height: 1.55; }
.mini-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e2ddeb; margin: 8px 0; }
.mini-steps li::before { content: counter(ms); flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--display); font-size: 11px; }
.duo-side.arc .mini-steps li::before { background: var(--purple); border-color: var(--purple); }
.choose { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.choose-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; color: #e2ddeb; }
.choose-row:first-child { border-top: 0; }
.choose-pick { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; font-family: var(--title); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.choose-pick.arc { background: rgba(141, 79, 249, 0.22); border-color: rgba(141, 79, 249, 0.6); }
.choose-pick img { width: 20px; height: 20px; border-radius: 5px; }
.wrap > .steps { margin-top: 8px; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } .choose-row { flex-direction: column; align-items: flex-start; gap: 8px; } }
.duo-text { margin: 12px 2px 0; color: #d6d0e2; font-size: 16px; }
.wrap.prose .picks, .wrap.prose .duo, .wrap.prose .choose, .wrap.prose .steps { margin-top: 12px; }

/* What game should I play */
.mood-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mood { background: var(--bg); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; padding: 9px 14px; font-family: var(--title); font-weight: 600; font-size: 14px; cursor: pointer; }
.mood:hover { border-color: var(--purple); }
.mood.on { background: var(--purple); border-color: var(--purple); }
.pick-game { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pick-game .thumb { aspect-ratio: 16 / 9; }
.pick-game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-game .pg-body { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.pick-game h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; margin: 0; }
.pick-game p { margin: 0; color: #d6d0e2; font-size: 15px; }
.pick-game .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 640px) { .pick-game { grid-template-columns: 1fr; } .pick-game .pg-body { padding: 0 16px 16px; } }
.idea-list li { margin: 8px 0; }
.pick-game { grid-template-columns: 1fr; gap: 0; }
.pick-game .pg-body { padding: 16px 18px 18px; }
@media (min-width: 901px) { .steps.six { grid-template-columns: repeat(3, 1fr); } }

/* Big screenshots always keep a 16:9 frame, whatever the source image size */
.hero-shot { aspect-ratio: 16 / 9; }
.hero-shot img { height: 100%; object-fit: cover; }

/* ===== Alignement : une seule largeur de contenu pour tout (texte, grilles, étapes, tableaux) ===== */
main .wrap, main .narrow { max-width: 960px; }
main .wrap.breadcrumb { max-width: 960px; }
.hero .narrow { max-width: 820px; }

/* Nombre de colonnes choisi selon le nombre d'éléments, pour ne jamais laisser un élément seul */
.games, .grid, .steps { grid-template-columns: repeat(3, 1fr); }
.games:has(> :nth-child(4):last-child), .games:has(> :nth-child(8):last-child), .games:has(> :nth-child(16):last-child),
.grid:has(> :nth-child(4):last-child), .grid:has(> :nth-child(8):last-child),
.steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.games:has(> :nth-child(2):last-child), .grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.steps.six { grid-template-columns: repeat(3, 1fr); }
.related { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .games, .grid, .steps, .steps.six { grid-template-columns: repeat(2, 1fr) !important; }
  .games:has(> :nth-child(3):last-child), .games:has(> :nth-child(9):last-child), .grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 640px) {
  .games, .grid, .steps, .steps.six, .related,
  .games:has(> :nth-child(3):last-child), .games:has(> :nth-child(9):last-child), .grid:has(> :nth-child(3):last-child) { grid-template-columns: 1fr !important; }
}
.mech table { min-width: 640px; }
.mech td { vertical-align: middle; color: #e2ddeb; }
.mech td:first-child { color: #fff; font-weight: 600; width: 26%; }
.mech td:nth-child(3) { color: var(--muted); width: 20%; }
.mech td:last-child { width: 22%; }
.mood-row a.mood { text-decoration: none; }

/* 100 idées : une image de jeu Arcade à côté de chaque genre */
.idea-genre { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.idea-genre .idea-list { margin: 0; }
.genre-shot { position: sticky; top: 90px; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; margin-top: 8px; }
.genre-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.genre-shot span { position: absolute; left: 8px; bottom: 8px; background: rgba(12, 6, 22, 0.75); color: #fff; font-family: var(--title); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 760px) { .idea-genre { grid-template-columns: 1fr; gap: 12px; } .genre-shot { position: relative; top: 0; } }

/* Boîte d'idée de départ : tirage au hasard */
.prompt-head { flex-wrap: wrap; }
.prompt-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Téléphone : tableaux en cartes (une carte par ligne), pas de défilement horizontal */
@media (max-width: 640px) {
  table.stack, .mech table.stack { min-width: 0; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack td { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; }
  table.stack tr:first-child { display: none; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  table.stack td::before { content: attr(data-label); color: var(--muted, #a99bc4); text-align: left; font-size: 14px; flex: 0 0 42%; }
  table.stack td:first-child { font-family: var(--title); font-weight: 700; font-size: 17px; text-align: left; color: #fff; width: 100%; }
  table.stack td:first-child::before { content: none; }
  .table-wrap:has(table.stack) { overflow-x: visible; }
}
/* Résultats des générateurs : jamais de débordement sur petit téléphone */
.result { min-width: 0; }
.result .txt { min-width: 0; white-space: nowrap; }
@media (max-width: 360px) { .result { gap: 8px; padding: 10px; } .result .txt { font-size: 15px; } .result .muted { display: none; } }

/* Fil d'Ariane sur téléphone : la date passe à la ligne */
@media (max-width: 640px) { .breadcrumb span[style*="float"] { float: none !important; display: block; margin-top: 4px; } }

/* Comparatif sur téléphone : la colonne Arcade est une bande violette continue du haut en bas
   (posée sur tout le tableau), les intitulés de ligne passent par-dessus sans la couper. */
@media (max-width: 640px) {
  .vs { background:
      linear-gradient(to right, transparent calc(50% - 1px), rgba(141, 79, 249, 0.55) calc(50% - 1px), rgba(141, 79, 249, 0.55) 50%, rgba(141, 79, 249, 0.13) 50%),
      var(--surface); }
  .vs-cell.arc { background: none; }
  .vs-head .vs-cell.arc { background: linear-gradient(180deg, rgba(141, 79, 249, 0.38), transparent); }
  .vs-head .vs-cell.arc strong { color: #fff; }
  .vs-row:not(.vs-head) .vs-cell { padding-top: 4px; }
  .vs-label { background: none; }
}
