/* PlayTab
   Mise en page : une étagère de jeux. Chaque licence est un "onglet" posé sur sa rangée de jaquettes,
   comme les onglets d'un navigateur. Direction artistique noir et vert : le vert est réservé à ce qui lance un jeu. */
:root {
  --bg: #090b0a;
  --bg-raise: #0f1311;
  --card: #141a17;
  --line: #222b26;
  --line-soft: #19201c;
  --fg: #ecf2ee;
  --muted: #98a39d;
  --dim: #69746e;
  --accent: #34e27f;
  --accent-hover: #6ff0a6;
  --accent-ink: #02150a;
  --accent-soft: rgba(52, 226, 127, .14);
  --danger: #ff8270;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 200px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .85em; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--bg-raise); color: var(--fg);
  border-radius: 8px; padding: 9px 14px; font-weight: 650; font-size: 14px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { border-color: #3d4a43; }
.btn-ghost { background: transparent; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: transparent; border-color: #5a2f2a; color: var(--danger); }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------ barre du haut */
.topbar { border-bottom: 1px solid var(--line-soft); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 850; font-stretch: 125%; font-size: 20px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 28px; flex: none; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav > a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 6px; }
.topnav > a:hover { color: var(--fg); }
.topnav .lang { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); margin-inline: 6px; }

/* ------------------------------------------------------------------ langues */
.langs { position: relative; margin-inline: 4px; }
.langs summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
  font: 500 12px var(--mono); transition: color .15s, border-color .15s;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 15px; height: 15px; }
.langs summary:hover, .langs[open] summary { color: var(--fg); border-color: #3d4a43; }
.langs-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30;
  width: 236px; max-height: min(70vh, 520px); overflow: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
}
.langs-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; color: var(--fg); }
.langs-list a:hover { background: var(--bg-raise); }
.langs-list a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.langs-list .lc { font: 500 11px var(--mono); color: var(--dim); width: 20px; }
.langs-list a[aria-current] .lc { color: var(--accent); }
/* Menu Contact (même style que le menu des langues) */
.contact summary { font: 600 13px var(--body); }
.contact-list { width: 250px; }
.contact-list a { gap: 12px; padding: 10px; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--fg); }
.cl-text { display: grid; gap: 1px; min-width: 0; }
.cl-text strong { font-size: 14px; font-weight: 650; }
.cl-text span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .contact summary span { display: none; } }

.lang-banner {
  position: fixed; z-index: 40; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 12px 12px 18px; background: var(--card); border: 1px solid var(--accent); border-radius: 12px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .9);
}
.lang-banner p { margin: 0; flex: 1 1 200px; font-size: 14px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 18% 30%, rgba(52, 226, 127, .10), transparent 70%); }
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(36px, 5vw, 64px); overflow: hidden; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { display: grid; gap: 14px; }
.h1-a { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, 6vw, 4.9rem); line-height: .95; letter-spacing: -.035em; }
.h1-b { font-weight: 500; font-stretch: 100%; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; color: var(--fg); max-width: 34ch; }
.lead { color: var(--muted); font-size: 17px; max-width: 54ch; margin: 22px 0 30px; }

/* ------------------------------------------------------------------ jaquettes */
.cover {
  position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 460 / 215;
  border-radius: 8px; overflow: hidden; background: hsl(var(--h, 220) 30% 18%);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* Logos : affichés en entier sur un fond sombre, sans recadrage */
.cover.fit-contain img { object-fit: contain; padding: 8% 10%; background: radial-gradient(ellipse at 50% 40%, #1a2420, #0c100e 75%); }
.art {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 14px;
  background:
    repeating-linear-gradient(115deg, hsl(var(--h, 220) 55% 60% / .07) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, hsl(var(--h, 220) 52% 30%), hsl(calc(var(--h, 220) + 30) 45% 13%));
}
.art-fr { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--h, 220) 60% 82% / .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-name { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: .95; letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ barre de recherche */
.toolbar {
  position: relative; z-index: 10;
  background: rgba(9, 11, 10, .9); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-block: 1px solid var(--line-soft); padding-block: 12px 0;
}
/* Quand on descend dans le catalogue { position: relative; }
.toolbar.is-stuck .search input { padding-block: 9px; }
.toolbar.is-stuck .chips {
  flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-block: 8px; scroll-padding-inline: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
}
.toolbar.is-stuck .chips::-webkit-scrollbar { display: none; }
.toolbar.is-stuck .chips.fade-l { --fade-l: 36px; }
.toolbar.is-stuck .chips.fade-r { --fade-r: 36px; }

/* Bouton « revenir en haut » */
.to-top {
  position: fixed; z-index: 35; inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--accent); background: rgba(16, 20, 18, .92); color: var(--accent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .2s, transform .2s, background .15s, color .15s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--accent); color: #04130a; }
body:has(.lang-banner:not([hidden])) .to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) { .to-top { width: 46px; height: 46px; inset-inline-end: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } body:has(.lang-banner:not([hidden])) .to-top { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } }
.search { position: relative; flex: 1; min-width: 0; max-width: 640px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search input {
  width: 100%; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  padding-block: 12px; padding-inline: 42px 44px; font-size: 16px; outline: none; transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--accent); background: var(--card); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search kbd { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font: 500 12px var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.count { margin: 0; margin-inline-start: auto; font: 500 13px var(--mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 12px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip span { font: 500 11px var(--mono); color: var(--dim); }
.chip:hover { color: var(--fg); border-color: #3d4a43; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] span { color: var(--accent); opacity: .7; }

/* ------------------------------------------------------------------ étagères (une par licence) */
.catalog { padding-block: 8px 24px; }
.shelf { margin-top: 44px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  position: relative; margin-bottom: -1px;
  padding: 10px 20px 11px; background: var(--bg);
  border: 1px solid var(--line); border-bottom-color: var(--bg); border-radius: 10px 10px 0 0;
  font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -.015em; line-height: 1.2;
}
.tab::before { content: ""; position: absolute; inset-inline: 20px; top: -1px; height: 2px; background: var(--accent); border-radius: 0 0 2px 2px; }
.shelf-count { font: 500 12px var(--mono); color: var(--dim); padding-bottom: 10px; font-variant-numeric: tabular-nums; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Étagères du catalogue : le navigateur ne dessine que celles proches de l'écran (accueil très long) */
#catalog .shelf { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 26px 18px; }

.card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card-cover { position: relative; display: block; border-radius: 8px; transition: transform .2s ease; }
.card-cover::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); z-index: 2; pointer-events: none; transition: box-shadow .2s; }
.play-dot {
  position: absolute; z-index: 3; inset-inline-end: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .18s, transform .18s;
}
.play-dot::before { content: ""; position: absolute; left: 15px; top: 12px; border-left: 11px solid var(--accent-ink); border-block: 7px solid transparent; }
.card:hover .card-cover { transform: translateY(-3px); }
.card:hover .card-cover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.card:hover .play-dot { opacity: 1; transform: none; }

.card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title play" "meta play" "tag tag"; column-gap: 12px; row-gap: 3px; align-items: start; }
.card-title { grid-area: title; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.card-meta { grid-area: meta; margin: 0; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.card-meta .host { font-family: var(--mono); font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; padding-top: 1px; }
.card-play {
  grid-area: play; display: inline-flex; align-items: center; gap: 5px; align-self: center;
  color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; padding: 6px 2px;
}
.card-play svg { width: 11px; height: 11px; transition: transform .15s; }
.card-play:hover svg { transform: translate(2px, -2px); }
.tags { grid-area: tag; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--mono); letter-spacing: .02em; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-multi { border-color: rgba(52, 226, 127, .35); color: var(--accent); }
.tag-warn { border-color: #4f4518; color: #e3cf74; }
.tag-report { border-color: rgba(255, 130, 112, .45); color: var(--danger); }
.game-main .tags { margin-top: 18px; }

/* Jeu désactivé : grisé, « page déplacée » */
.card.is-moved .cover { filter: grayscale(1) brightness(.55); }
.card.is-moved .card-title a { color: var(--dim); }
.card.is-moved .art-fr { visibility: hidden; }
.card.is-moved:hover .card-cover { transform: none; }
.card.is-moved:hover .card-cover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.moved-badge {
  position: absolute; z-index: 3; inset-inline-start: 10px; top: 10px;
  font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px; background: rgba(9, 11, 10, .85); color: var(--fg); border: 1px solid var(--line);
}
.card-play.is-off { color: var(--dim); cursor: default; font-weight: 600; }
.btn.is-off { background: transparent; color: var(--dim); border-style: dashed; cursor: not-allowed; }
.game-page.is-moved .game-art .cover { filter: grayscale(1) brightness(.55); }
.moved-note { margin-top: 22px; padding: 14px 16px; border: 1px dashed #3a463f; border-radius: 10px; color: var(--muted); font-size: 15px; }
.moved-note strong { display: block; color: var(--fg); margin-bottom: 4px; }
.moved-note p { margin: 0; }

/* Signaler un lien cassé */
.report-icon {
  position: absolute; z-index: 4; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(9, 11, 10, .82); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s;
}
.report-icon svg { width: 15px; height: 15px; }
.card:hover .report-icon, .report-icon:focus-visible, .report-icon.is-sent { opacity: 1; }
.report-icon:hover { color: var(--danger); border-color: rgba(255, 130, 112, .5); }
.report-icon.is-sent { color: var(--accent); border-color: rgba(52, 226, 127, .5); cursor: default; }
@media (hover: none) { .report-icon { opacity: .9; } }
.game-main .report { margin-top: 14px; font-size: 13px; padding: 7px 12px; color: var(--muted); }
.game-main .report svg { width: 14px; height: 14px; }
.game-main .report:hover { color: var(--danger); border-color: rgba(255, 130, 112, .5); }
.report.is-sent { color: var(--accent); border-color: rgba(52, 226, 127, .5); cursor: default; }

/* Fenêtre de première visite : style Big Picture (fond sombre, halo vert, titre large, cartes à cocher) */
.modal.welcome { --wc-acc: #34e27f; width: min(560px, calc(100% - 24px)); border-radius: 22px; border-color: #2c3832; background: radial-gradient(120% 60% at 50% 0%, rgba(52, 226, 127, .14), transparent 60%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 14px), #0c100e; color: #ecf2ee; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(52, 226, 127, .06); }
.welcome[open] { animation: wc-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.welcome::backdrop { background: rgba(2, 4, 3, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.welcome form { padding: 28px 28px 24px; }
.welcome-eye { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wc-acc); }
.welcome-eye .logo-mark { width: 26px; height: 21px; filter: drop-shadow(0 0 10px rgba(52, 226, 127, .5)); }
.modal.welcome h2 { margin: 12px 0 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(28px, 6vw, 38px); line-height: 1; letter-spacing: -.02em; color: #ecf2ee; }
.welcome-sub { margin: 8px 0 0; color: #98a39d; font-size: 15px; }
.welcome-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.welcome-list label { display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 14px; align-items: center; cursor: pointer; padding: 12px 14px 12px 16px; border: 1px solid #222b26; border-radius: 14px; background: rgba(20, 26, 23, .7); transition: border-color .2s, background-color .2s, transform .15s; overflow-wrap: anywhere; }
.welcome-list label { border-inline-start-width: 3px; }
.welcome-list label:hover { border-color: #3d4a43; }
.welcome-list label:active { transform: scale(.99); }
.welcome-tx { display: grid; gap: 2px; min-width: 0; }
.welcome-tx b { font-size: 15.5px; font-weight: 750; color: #ecf2ee; line-height: 1.25; }
.welcome-tx > span { font-size: 13.5px; line-height: 1.4; color: #98a39d; }
.welcome-check { appearance: none; -webkit-appearance: none; margin: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #3d4a43; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.welcome-check::after { content: ""; width: 10px; height: 6px; border: 2.4px solid #02150a; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px) scale(.4); opacity: 0; transition: transform .2s cubic-bezier(.2, .8, .2, 1.4), opacity .15s; }
.welcome-check:checked { background: var(--wc-acc); border-color: var(--wc-acc); box-shadow: 0 0 0 4px rgba(52, 226, 127, .18); }
.welcome-check:checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.welcome-check:focus-visible { outline: 2px solid var(--wc-acc); outline-offset: 3px; }
.welcome-list label:has(.welcome-check:checked) { border-color: rgba(52, 226, 127, .45); border-inline-start-color: #34e27f; background: rgba(52, 226, 127, .08); }
/* « Rien à télécharger » : la mise en garde, en rouge */
.welcome-list .w-dl .welcome-check { border-color: rgba(255, 130, 112, .6); }
.welcome-list .w-dl .welcome-check:checked { background: #ff8270; border-color: #ff8270; box-shadow: 0 0 0 4px rgba(255, 130, 112, .18); }
.welcome-list .w-dl label { border-inline-start-color: rgba(255, 130, 112, .6); }
.welcome-list .w-dl label:has(.welcome-check:checked) { border-color: rgba(255, 130, 112, .45); border-inline-start-color: #ff8270; background: rgba(255, 130, 112, .08); }
.welcome-prog { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.welcome-bar { flex: 1; height: 6px; border-radius: 9px; background: #222b26; overflow: hidden; }
.welcome-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1f9a55, var(--wc-acc)); box-shadow: 0 0 10px rgba(52, 226, 127, .6); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.welcome-n { font: 600 12px var(--mono); color: #98a39d; letter-spacing: .06em; }
.welcome.is-all .welcome-n { color: var(--wc-acc); }
.welcome-hint { margin: 8px 0 0; font: 500 12px var(--mono); color: #69746e; }
.welcome-hint.is-done { visibility: hidden; }
.welcome .modal-actions { margin-top: 16px; }
.welcome .btn-lg { width: 100%; min-height: 54px; border-radius: 14px; font-size: 16.5px; font-weight: 800; gap: 10px; }
.welcome .btn-lg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.welcome .btn-accent:not(:disabled) { box-shadow: 0 0 0 4px rgba(52, 226, 127, .2), 0 16px 34px -14px rgba(52, 226, 127, .7); }
.welcome .btn-accent:not(:disabled):hover svg { transform: translateX(3px); }
.welcome .btn-accent:disabled { background: #141a17; border-color: #222b26; color: #69746e; opacity: 1; cursor: not-allowed; box-shadow: none; }
@media (max-width: 520px) {
  .modal.welcome form { padding: 22px 16px 18px; }
  .welcome-list label { grid-template-columns: minmax(0, 1fr) 24px; gap: 11px; padding: 10px 12px 10px 14px; }
  .welcome-tx b { font-size: 14.5px; } .welcome-tx > span { font-size: 13px; }
}
@media (max-height: 700px) { .welcome-list { gap: 6px; margin-top: 14px; } .welcome-list label { padding-block: 8px; } .welcome-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .welcome[open], .welcome-check::after, .welcome-bar i { animation: none; transition: none; } }

.empty { padding: 64px 0; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 16px; }
.empty p { margin: 0; font-size: 18px; color: var(--fg); }

/* ------------------------------------------------------------------ avertissement + FAQ */
.notice {
  margin-top: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: start;
  padding: 20px 22px; border: 1px dashed #2f3a34; border-radius: var(--r); color: var(--muted); font-size: 15px;
}
.notice::before { content: "!"; grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 700 14px var(--mono); }
.notice strong { color: var(--fg); }
.notice p { margin: 0; max-width: 80ch; }

.faq { margin-top: 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 64px; align-items: start; }
.faq h2 { font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; position: sticky; top: 170px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 22px/1 var(--mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 65ch; }

/* ------------------------------------------------------------------ pied de page */
.footer { margin-top: 110px; border-top: 1px solid var(--line-soft); background: var(--bg-raise); padding-block: 48px 40px; font-size: 14px; color: var(--muted); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 32px 48px; }
.footer-brand p { margin: 14px 0 0; max-width: 44ch; }
.footer-brand .fine { font-size: 12px; color: var(--dim); }
.footer-links { columns: 2; column-gap: 32px; }
.footer-links a { display: block; break-inside: avoid; padding: 3px 0; text-decoration: none; }
.footer-links a:hover, .footer-meta a:hover { color: var(--fg); }
.footer-meta { display: grid; gap: 6px; align-content: start; }
.footer-meta a { text-decoration: none; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.footer-langs a { text-decoration: none; color: var(--dim); }
.footer-langs a:hover { color: var(--fg); }
.footer-langs a[aria-current] { color: var(--accent); }

/* ------------------------------------------------------------------ fiche jeu */
.game-page { padding-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.game-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 28px; }
.game-art .cover { border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.game-art .art { padding: 22px 26px; }
.game-art .art-name { font-size: clamp(2rem, 5vw, 3.4rem); }
.game-main h1 { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.play-big { margin-top: 28px; }
.play-big svg { width: 16px; height: 16px; }
.opens { margin: 12px 0 0; font-size: 13px; color: var(--dim); font-family: var(--mono); overflow-wrap: anywhere; }
.game-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px 64px; margin-top: 56px; align-items: start; }
.prose p { margin: 0 0 1em; max-width: 65ch; color: #d6d3cc; font-size: 17px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: end; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.related { margin-top: 64px; }
.back { margin-top: 56px; }
.back a { color: var(--muted); text-decoration: none; font-weight: 600; }
.back a:hover { color: var(--fg); }
.notfound { padding-block: 96px; }
.notfound h1 { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1; }

/* ------------------------------------------------------------------ fenêtre "proposer un jeu" */
.modal { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--fg); }
.modal::backdrop { background: rgba(2, 4, 3, .78); backdrop-filter: blur(3px); }
.modal form { padding: 26px; }
.modal h2 { font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: 24px; letter-spacing: -.02em; }
.modal-lead { color: var(--muted); margin: 6px 0 18px; font-size: 15px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 650; color: #d6d3cc; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--accent); }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 26px; }
.login { max-width: 420px; margin: 40px auto; }
.login h1 { font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: 26px; margin-bottom: 18px; }
.admin-rows { display: grid; gap: 10px; margin-top: 8px; }
.admin-row.is-moved .admin-thumb { filter: grayscale(1) brightness(.6); }
.admin-info .tags { margin: 4px 0 6px; }
.login .muted { margin: -8px 0 16px; font-size: 14px; }
.admin-row { display: grid; grid-template-columns: 172px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); }
.admin-thumb { aspect-ratio: 460 / 215; border-radius: 6px; overflow: hidden; background: var(--card); display: grid; place-items: center; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-img { font: 500 11px var(--mono); color: var(--dim); text-align: center; padding: 6px; }
.admin-info { min-width: 0; }
.admin-info h2 { font-size: 17px; }
.admin-info .meta { margin: 2px 0 4px; font-size: 13px; color: var(--muted); }
.admin-info .link { display: block; color: var(--accent); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-info .notes { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.modal-wide { width: min(760px, calc(100% - 32px)); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 16px; }
.form-grid .span2 { grid-column: span 2; }
.field.check { align-content: end; }
.field.check label { display: flex; gap: 8px; align-items: center; font-size: 14px; padding-bottom: 10px; }
.field.check input { width: auto; }
.spacer { flex: 1; }

/* admin : import gn-math */
.admin-h1 { font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: 26px; letter-spacing: -.02em; }
.gn-settings { margin-top: 18px; padding-block: 8px 20px; }
.gn-paste { margin: 4px 0 8px; font-size: 14px; }
.gn-paste summary { cursor: pointer; color: var(--muted); }
.gn-paste p { font-size: 13px; margin: 8px 0; }
.gn-paste a { color: var(--accent); }
.gn-paste textarea { font: 500 12px/1.5 var(--mono); }
.gn-summary { white-space: pre-line; margin: 22px 0 12px; font-size: 14px; color: var(--muted); }
.gn-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gn-tools input, .gn-tools select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; }
.gn-tools input { flex: 1 1 220px; min-width: 0; }
.gn-tools input:focus, .gn-tools select:focus { border-color: var(--accent); }
.gn-actionbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.gn-actionbar #gn-count { font: 500 13px var(--mono); color: var(--muted); }
.gn-progress { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gn-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.gn-rows { display: grid; gap: 6px; margin-top: 8px; }
.gn-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-raise); }
.gn-row.is-done { opacity: .55; }
.gn-main { display: grid; grid-template-columns: auto 64px minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; min-width: 0; }
.gn-main input { width: 18px; height: 18px; accent-color: var(--accent); }
.gn-thumb { width: 64px; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--card); }
.gn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gn-info { display: grid; gap: 2px; min-width: 0; }
.gn-info strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-info .meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.gn-genre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13.5px; }
.gn-more { margin: 12px auto 0; display: block; }
@media (max-width: 640px) {
  .gn-row { grid-template-columns: minmax(0, 1fr); }
  .gn-main { grid-template-columns: auto 48px minmax(0, 1fr); }
  .gn-thumb { width: 48px; }
}

/* ------------------------------------------------------------------ appli : installation, notifications */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.linklike:hover { color: var(--fg); }
.install-btn svg, .suggest-btn svg { width: 14px; height: 14px; }
.app-btn svg { width: 18px; height: 18px; }
.suggest-btn svg { display: none; }
.install-sheet { width: min(460px, calc(100% - 32px)); }
.install-head { display: flex; align-items: center; gap: 14px; }
.install-head img { border-radius: 14px; flex: none; }
.install-head h2 { font-size: 22px; }
.install-url { margin: 2px 0 0; font: 500 12px var(--mono); color: var(--dim); }
.install-sheet .modal-lead { margin-top: 16px; }
.install-points { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #cfd8d2; }
.install-points li { display: flex; gap: 10px; align-items: baseline; }
.install-points li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.install-ios { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(52, 226, 127, .35); font-size: 14px; }
.install-ios svg { flex: none; width: 20px; height: 20px; color: var(--accent); }

.toasts { position: fixed; z-index: 60; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; width: min(520px, 100%); display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9); animation: toast-in .25s ease-out;
}
.toast p { margin: 0; flex: 1; font-size: 14px; }
.toast .btn { padding: 7px 12px; font-size: 13px; }
.toast-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.toast-x:hover { color: var(--fg); background: var(--bg-raise); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------------ en direct + joués récemment */
.app-shelves { display: grid; gap: 8px; padding-bottom: 28px; }
.app-shelves .shelf { margin-top: 24px; }
.rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(230px, 260px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail > .card { scroll-snap-align: start; }
.rail:empty { display: none; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); margin-inline-end: 10px; vertical-align: 2px; }
.live-shelf.is-live .live-dot { background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 77, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }
.live-empty { margin: 0; color: var(--muted); font-size: 15px; }
.live-badge {
  position: absolute; z-index: 3; inset-inline-start: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font: 600 11.5px var(--mono); padding: 4px 9px; border-radius: 999px; background: rgba(9, 11, 10, .85); color: #fff; border: 1px solid rgba(255, 77, 77, .5);
}
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; }
.card-cover:has(.live-badge) .art-fr { visibility: hidden; }

/* ------------------------------------------------------------------ appli installée */
/* Mode « fenêtre sans barre de titre » (window-controls-overlay) : la barre du site remplace celle de la fenêtre */
@media (display-mode: window-controls-overlay) {
  .topbar, .player-bar { -webkit-app-region: drag; app-region: drag; padding-inline-end: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw)); }
  .topbar a, .topbar button, .topbar details, .topbar input, .player-bar a, .player-bar button { -webkit-app-region: no-drag; app-region: no-drag; }
  .topbar-in { min-height: max(56px, env(titlebar-area-height, 0px)); }
}
html.is-app .topbar { position: sticky; top: 0; z-index: 12; background: rgba(9, 11, 10, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.is-app body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
.offline-page { text-align: start; }
.offline-mark .logo-mark { width: 56px; height: 46px; opacity: .8; margin-bottom: 18px; }
.offline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ------------------------------------------------------------------ lecteur PlayTab */
.player { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.player-stage { position: relative; flex: 1; min-height: 0; background: #000; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; z-index: 1; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--dim); font: 500 13px var(--mono); }
.player-help { flex: none; margin: 0; padding: 8px var(--gutter); font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line-soft); }
.player-help a { color: var(--muted); }
.player-exit {
  position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(9, 11, 10, .75); color: var(--fg); cursor: pointer; opacity: .55; transition: opacity .15s;
}
.player-exit:hover, .player-exit:focus-visible { opacity: 1; }
.player-exit svg { width: 16px; height: 16px; }
/* Plein écran natif (sur la zone de jeu) et plein écran de secours (iPhone, navigateurs sans l'API) */
.player-stage:fullscreen { background: #000; }
.player-stage.is-pseudo-fs { position: fixed; inset: 0; z-index: 100; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

/* ------------------------------------------------------------------ responsive */
[dir="rtl"] .card-play svg { transform: scaleX(-1); }
[dir="rtl"] .card-play:hover svg { transform: scaleX(-1) translate(2px, -2px); }
[dir="rtl"] .h1-a, [dir="rtl"] .logo, [dir="rtl"] .tab { letter-spacing: 0; }

@media (max-width: 980px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq h2 { position: static; }
  .footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: span 2; }
  .game-hero, .game-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .player-newtab span, .player-fs span { display: none; }
  .player-newtab, .player-fs { padding: 9px 11px; }
}
@media (max-width: 640px) {
  .install-btn span, .app-btn span { display: none; }
  .install-btn { width: 40px; padding: 0; }
  html { scroll-padding-top: 16px; }
  html.is-app { scroll-padding-top: 80px; }
  .toolbar.is-stuck .chips { padding-block: 6px 8px; }
  .toolbar.is-stuck .count { font-size: 11px; }
  .chips { gap: 6px 5px; }
  .chip { padding: 5px 11px; font-size: 12.5px; gap: 6px; }
  .topnav > a { display: none; }
  .langs-list { position: fixed; inset-inline: 16px; top: 64px; width: auto; }
  .topnav .btn { padding: 8px 11px; font-size: 13px; }
  .logo { font-size: 18px; }
  .hero { padding-top: 32px; }
  .lead { font-size: 16px; }
  .search kbd { display: none; }
  .count { font-size: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "meta" "tag" "play"; }
  .card-title { font-size: 14.5px; }
  .card-meta .host { display: none; }
  .card-play { justify-self: start; padding: 2px 0; font-size: 13px; }
  .play-dot { display: none; }
  .tab { padding: 8px 14px 9px; }
  .notice { grid-template-columns: minmax(0, 1fr); }
  .notice::before { grid-row: auto; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-links { columns: 1; }
  .admin-row { grid-template-columns: 96px minmax(0, 1fr); }
  .admin-actions { grid-column: span 2; justify-content: flex-start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span2 { grid-column: auto; }
}
/* Écrans tactiles : toutes les zones cliquables font au moins 40 px */
@media (pointer: coarse) {
  .logo { min-height: 44px; }
  .langs summary { min-height: 40px; padding-inline: 12px; }
  .langs-list a { min-height: 44px; }
  .topnav .btn, .player-actions .btn { min-height: 40px; }
  .card-title a { display: inline-block; padding-block: 6px; margin-block: -6px; }
  .card-play { min-height: 40px; }
  .report-icon { width: 40px; height: 40px; }
  .player-logo, .player-back, .player-details { display: inline-flex; align-items: center; min-height: 40px; }
  .game-main .report { min-height: 40px; }
  .chip { min-height: 38px; }
  .footer-links a, .footer-meta a, .footer-meta .linklike, .footer-langs a { display: inline-flex; align-items: center; min-height: 40px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
  .faq summary { min-height: 48px; }
  .toast-x { width: 40px; height: 40px; }
}

@media (max-width: 440px) {
  .suggest-btn span { display: none; }
  .suggest-btn svg { display: block; width: 16px; height: 16px; }
  .suggest-btn { width: 40px; padding: 0; }
  .topnav { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .card:hover .card-cover { transform: none; }
}

/* ------------------------------------------------------------------ pub avant de jouer */
.adgate { width: min(440px, calc(100% - 32px)); overflow: hidden; }
.adgate-step { position: relative; padding: 34px 28px 26px; text-align: center; background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(52, 226, 127, .16), transparent 70%); }
.adgate-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 24px; line-height: 1; cursor: pointer; }
.adgate-x:hover { color: var(--fg); background: var(--line-soft); }
.adgate-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.adgate-icon svg { width: 30px; height: 30px; }
.adgate h2 { font-family: var(--display); font-weight: 850; font-stretch: 112%; font-size: 24px; letter-spacing: -.02em; }
.adgate-body { margin: 10px auto 14px; max-width: 34ch; color: var(--muted); font-size: 15px; }
.adgate-btn { width: 100%; justify-content: center; gap: 8px; text-decoration: none; }
.adgate-btn svg { width: 14px; height: 14px; }
.adgate-hint { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.player-loading.is-gated { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.adgate-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 10px 12px; border: 1px solid #4f4518; border-radius: 10px; background: rgba(227, 207, 116, .07); color: #e3cf74; font-size: 14px; font-weight: 600; text-align: start; line-height: 1.45; }
.adgate-warn svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ------------------------------------------------------------------ pages catégorie */
.shelf-head .tab a { color: inherit; text-decoration: none; }
.shelf-head .tab a:hover { color: var(--accent); }
a.shelf-all { color: var(--muted); text-decoration: none; }
a.shelf-all:hover { color: var(--accent); }
.cat-page { padding-block: 24px 64px; }
.cat-head { margin: 28px 0 28px; max-width: 70ch; }
.cat-head h1 { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.cat-head .lead { margin: 16px 0 8px; color: var(--muted); font-size: 17px; }
.cat-head .count { margin: 0; font: 500 12px var(--mono); color: var(--dim); }
.cat-others { margin-top: 48px; }
.cat-others h2 { font-size: 18px; margin-bottom: 12px; }
.cat-others .chips { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
.cat-others a.chip { text-decoration: none; }
.stat-card { padding: 16px 18px; }
.stat-card p { margin: 0; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-big { font: 800 34px/1.2 var(--display); margin: 4px 0 !important; }
.stat-sub { font: 500 12px var(--mono); color: var(--dim); }
.stat-panel { padding: 18px; }
.stat-panel h2 { font-size: 16px; margin-bottom: 10px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th, .stat-table td { padding: 7px 6px; border-bottom: 1px solid var(--line-soft); text-align: start; }
.stat-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-table .num { text-align: end; font-family: var(--mono); }
.stat-checks { margin-top: 12px; }
.stat-checks .muted { font-size: 13px; margin: 0 0 8px; }
.gn-rescue { margin-top: 18px; padding: 18px 22px; }
.gn-rescue h2 { font-size: 17px; margin-bottom: 6px; }
.gn-rescue .muted { font-size: 14px; margin: 0 0 12px; }
.gn-rebase { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gn-rebase select, .gn-rebase input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; }
.gn-rebase input { flex: 1 1 260px; min-width: 0; }

/* ------------------------------------------------------------------ mobile : corrections (toutes tailles d'écran) */
body { overflow-x: clip; }                       /* jamais de défilement horizontal, même si un élément dépasse */
img, video, iframe { max-width: 100%; }
.tag { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.card-title, .card-title a { overflow-wrap: anywhere; }
.footer-links { columns: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; }
.art-fr { padding-inline-end: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.adgate, .modal { max-width: calc(100vw - 24px); }
.adgate-step { padding-inline: clamp(16px, 6vw, 28px); }
@media (max-width: 640px) {
  .card .report-icon { display: none; }          /* signalement : sur la fiche et dans le lecteur */
  .art-fr { padding-inline-end: 0; }
  .shelf-head { gap: 10px; }
  a.shelf-all { font-size: 11.5px; white-space: nowrap; }
  .cat-head .lead { font-size: 15.5px; }
  .adgate h2 { font-size: 21px; }
  .adgate-body { font-size: 14.5px; }
  .gn-tools > * { flex: 1 1 100%; }
  .stat-big { font-size: 28px; }
}
@media (max-width: 360px) {
  .grid { gap: 18px 10px; }
  .card-title { font-size: 14px; }
  .h1-b { font-size: 1.05rem; }
  .wrap { padding-inline: 14px; }
  .topnav .btn { padding: 8px 9px; }
}
@media (pointer: coarse) {
  .shelf-head .tab a, a.shelf-all { display: inline-flex; align-items: center; min-height: 40px; }
  .card-title a { display: inline-block; padding-block: 8px; margin-block: -8px; }
  .chips .chip { min-height: 40px; }
  .footer-links a { min-height: 40px; }
}
/* Téléphone à l'horizontale : le lecteur prend toute la hauteur */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-block: 20px; }
  .modal { max-height: calc(100dvh - 16px); overflow-y: auto; }
  .adgate-step { padding-block: 18px; }
  .adgate-icon { display: none; }
}
/* Admin sur téléphone */
@media (max-width: 640px) {
  .admin .admin-tag { display: none; }
  .admin .topnav { gap: 6px; }
  .admin .topnav .btn { padding: 8px 10px; font-size: 13px; }
  .admin-bar-actions { width: 100%; }
  .admin-bar-actions .btn { flex: 1 1 auto; }
  .admin-h1 { font-size: 21px; }
  .panel { padding: 18px; }
  .gn-rebase > * { flex: 1 1 100%; }
  .gn-rebase span { display: none; }
  .gn-actionbar .btn { flex: 1 1 auto; }
  .stat-cols { grid-template-columns: minmax(0, 1fr); }
  .stat-table { font-size: 13px; }
  .modal-wide .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .admin .logo span { display: none; }
}
@media (pointer: coarse) {
  .back a, .player-help a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-links a, .shelf-head .tab a { padding-inline: 6px; margin-inline: -6px; min-width: 40px; }
}
/* Téléphone à l'horizontale : jaquette et bouton « Jouer » côte à côte sur la fiche */
@media (max-height: 500px) and (orientation: landscape) and (min-width: 560px) {
  .game-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; margin-top: 14px; }
  .game-main h1 { font-size: 26px; }
  .game-art .art-name { font-size: 1.8rem; }
  .play-big { padding: 11px 18px; }
}
/* iPhone à encoche / Android à bords arrondis : rien sous l'encoche, en portrait comme en paysage */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.player-help { padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
.footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
/* iPhone : pas de zoom automatique quand on touche un champ (il zoome sous 16 px) */
@media (pointer: coarse) {
  input, select, textarea, .search input, .field input, .field select, .field textarea { font-size: 16px; }
}
/* Lecteur sur téléphone à l'horizontale : le jeu prend presque toute la hauteur */
@media (max-height: 500px) and (orientation: landscape) {
  .player-bar { padding-top: 6px; padding-bottom: 6px; gap: 10px; }
  .player-title .tags, .player-details, .player-help { display: none; }
  .player-title h1 { font-size: 15px; }
  .player-actions .btn { min-height: 36px; padding-block: 6px; }
}
/* Lecteur sur petit téléphone en portrait : barre du bas plus courte */
@media (max-width: 420px) and (orientation: portrait) {
  .player-help { font-size: 11.5px; }
}

/* Lecteur, jeux gn-math : la bande du haut de leur site est poussée hors du cadre visible */
.player-stage.is-cropped { overflow: hidden; --crop: var(--crop-d, 70px); }
.player-stage.is-cropped iframe { top: calc(-1 * var(--crop)); bottom: auto; height: calc(100% + var(--crop)); }
@media (max-width: 700px) { .player-stage.is-cropped { --crop: var(--crop-m, 70px); } }

/* ------------------------------------------------------------------ admin : analytics */
.an-period { flex-wrap: wrap; }
.an-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.stat-sub.is-up { color: var(--accent); }
.stat-sub.is-down { color: var(--danger); }
.an-chart-panel { margin-top: 12px; padding: 18px; }
.an-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.an-chart-head h2 { font-size: 16px; }
.an-chart { position: relative; }
.an-svg { width: 100%; height: auto; display: block; }
.an-gridline { stroke: var(--line-soft); stroke-width: 1; }
.an-base { stroke: var(--line); stroke-width: 1; }
.an-tick { fill: var(--dim); font: 500 11px var(--mono); }
.an-col { fill: var(--accent); }
.an-hit { fill: transparent; cursor: crosshair; }
.an-hit:hover { fill: rgba(255, 255, 255, .04); }
.an-tip { position: absolute; top: 0; width: 150px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 13px; pointer-events: none; z-index: 2; }
.an-tip .muted { font-size: 12px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.an-box { padding: 18px; min-width: 0; }
.an-box h2 { font-size: 16px; margin-bottom: 12px; }
.an-bars { display: grid; gap: 8px; }
.an-bar-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(36px, 1fr) auto 42px; gap: 10px; align-items: center; font-size: 13.5px; }
.an-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-wide .an-bar-row { grid-template-columns: minmax(0, 3fr) minmax(60px, 1.4fr) auto 42px; }
.an-bar-track { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.an-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.an-bar-val { font: 600 13px var(--mono); text-align: end; }
.an-bar-pct { font: 500 12px var(--mono); color: var(--dim); text-align: end; }
.an-empty { font-size: 13.5px; margin: 0; }
.an-note { font-size: 13px; margin: 12px 0 0; }
@media (max-width: 640px) {
  .an-bar-row { grid-template-columns: minmax(0, 1fr) 60px auto 38px; gap: 8px; font-size: 13px; }
  .an-grid { grid-template-columns: minmax(0, 1fr); }
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.an-metric, .an-period { -webkit-mask-image: none; mask-image: none; overflow: visible; flex-wrap: wrap; }
/* Étagères qui défilent sur le côté (Les plus joués, En ce moment, Joués récemment) : une seule ligne, même sur téléphone */
.grid.rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); }
@media (max-width: 640px) { .grid.rail { grid-auto-columns: minmax(150px, 44%); gap: 12px; } }
.app-shelves > *, .app-shelves .shelf { min-width: 0; }   /* l'étagère qui défile ne doit pas élargir la page */

/* ------------------------------------------------------------------ admin : mise en page avec menu latéral (v27) */
.admin { --warn: #e3cf74; --side: 248px; }
.adm-shell { min-height: 100dvh; }
.adm-side { display: none; }
.admin.is-auth .adm-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.admin.is-auth .adm-side {
  display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  padding: 22px 14px 18px; border-inline-end: 1px solid var(--line-soft); background: var(--bg-raise);
}
.adm-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-inline: 8px; }
.adm-brand .logo { text-decoration: none; }
.adm-brand-sub { font-size: 12px; font-weight: 600; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.adm-nav { display: grid; gap: 2px; }
.adm-nav-btn {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 8px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font-size: 14.5px; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.adm-nav-btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.adm-nav-label { flex: 1; min-width: 0; }
.adm-nav-btn:hover { background: var(--card); color: var(--fg); }
.adm-nav-btn[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.adm-nav-site { margin-top: 10px; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; padding-top: 14px; }
.adm-badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--fg); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.adm-badge.is-alert { background: var(--danger); color: #2a0904; }
.adm-side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line-soft); }
.adm-who { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.adm-who #who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--accent); font-weight: 800; font-size: 13px; }
.adm-avatar:empty { display: none; }
.adm-side-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.adm-link { padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.adm-link:hover { color: var(--fg); text-decoration-color: currentColor; }

.adm-main { min-width: 0; width: 100%; max-width: 1180px; padding: 34px clamp(16px, 3.5vw, 44px) 90px; }
.admin:not(.is-auth) .adm-main { margin-inline: auto; }
.login { margin: 8vh auto 40px; }
.login-logo { display: inline-flex; margin-bottom: 22px; text-decoration: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 7px; }

.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.adm-head .admin-h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.adm-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.adm-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-head .an-period { padding: 0; }
.adm-back { display: none; }

.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.adm-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.adm-search svg { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; fill: none; stroke: var(--dim); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.adm-search input { width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); font-size: 14.5px; outline: none; }
.adm-search input:focus { border-color: var(--accent); }
.adm-tabs { padding: 0; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; overflow: visible; }
.chip-alert.has-alert:not([aria-pressed="true"]) { border-color: #5a2f2a; color: var(--danger); }
.chip-alert.has-alert span { color: var(--danger); }
.chip-alert.has-alert[aria-pressed="true"] { background: rgba(255, 130, 112, .12); border-color: var(--danger); color: var(--danger); }

/* Admin : filtres par jeu (manette, Big Picture, mobile…) */
.adm-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-raise); }
.adm-filters label { display: grid; gap: 4px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.adm-filters select { min-width: 150px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: 500 13.5px var(--body, inherit); text-transform: none; letter-spacing: 0; }
.adm-filters select.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.adm-fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 100%; }
.adm-fchips .chip { min-height: 32px; }
@media (max-width: 640px) { .adm-filters select { min-width: 0; width: 100%; } .adm-filters label { flex: 1 1 calc(50% - 10px); } }

.adm-help { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.adm-help summary { display: inline-flex; cursor: pointer; padding-block: 4px; color: var(--muted); }
.adm-help summary:hover { color: var(--fg); }
.adm-help dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; max-width: 86ch; margin: 10px 0 4px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-raise); }
.adm-help dt { color: var(--fg); font-weight: 600; }
.adm-help dd { margin: 0; }
#dash-status:empty { display: none; }
.adm-searchnote { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.adm-empty { margin: 8px 0 0; padding: 28px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 14.5px; }

.admin-rows { gap: 8px; margin-top: 14px; }
.admin-row { grid-template-columns: 148px minmax(0, 1fr) auto; gap: 16px; padding: 10px; border-color: var(--line-soft); transition: border-color .15s; }
.admin-row:hover { border-color: var(--line); }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.admin-info h2 { font-size: 16.5px; line-height: 1.3; }
.st-pill { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.st-pill[data-st="published"] { color: var(--accent); border-color: rgba(52, 226, 127, .35); }
.st-pill[data-st="pending"] { color: var(--warn); border-color: rgba(227, 207, 116, .35); }
.st-pill[data-st="rejected"] { color: var(--danger); border-color: #5a2f2a; }
.admin-info .meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 3px 0 4px; }
.admin-info .meta .id { color: var(--dim); font-variant-numeric: tabular-nums; }
.admin-info .link { font-size: 12.5px; color: var(--dim); }
.admin-info .link:hover { color: var(--accent); }
.admin-actions { max-width: 300px; gap: 6px; }

/* Tablette et téléphone : le menu devient une barre en haut */
@media (max-width: 900px) {
  .admin.is-auth .adm-shell { display: block; }
  .admin.is-auth .adm-side {
    position: sticky; top: 0; z-index: 20; height: auto; overflow: visible;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px;
    padding: 10px clamp(12px, 3vw, 24px) 0; padding-top: max(10px, env(safe-area-inset-top, 0px));
    border-inline-end: 0; border-bottom: 1px solid var(--line-soft);
    background: rgba(15, 19, 17, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .adm-brand { padding: 0; }
  .adm-side-foot { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: 12px; }
  .adm-who { margin: 0; }
  .adm-who #who { display: none; }
  .adm-nav { order: 3; flex: 1 1 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px 8px; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav-btn { width: auto; flex: none; min-height: 38px; padding: 7px 12px; font-size: 14px; }
  .adm-nav-label { flex: none; }
  .adm-nav-site { margin: 0; border: 0; padding-top: 7px; border-radius: 8px; }
  .adm-main { padding-top: 24px; }
  .admin .gn-actionbar { top: 104px; }
}
@media (max-width: 640px) {
  .adm-brand-sub { display: none; }
  .adm-nav-btn svg { width: 16px; height: 16px; }
  .adm-head { align-items: stretch; }
  .adm-head-actions { width: 100%; }
  .adm-head-actions .btn { flex: 1 1 auto; }
  .adm-search { max-width: none; flex-basis: 100%; }
  .adm-help dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .adm-help dd { margin-bottom: 8px; }
  .admin-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .admin-actions { grid-column: 1 / -1; max-width: none; justify-content: flex-start; }
}
@media (max-width: 380px) {
  .admin .adm-brand .logo span { display: none; }
  .adm-side-links { gap: 4px 10px; }
}
@media (pointer: coarse) {
  .btn-sm { min-height: 40px; }
  .adm-link { min-height: 40px; }
}
.admin-actions { align-items: center; }
.row-more { position: relative; }
.row-more > summary { list-style: none; }
.row-more > summary::-webkit-details-marker { display: none; }
.row-more > summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 2px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .15s; }
.row-more[open] > summary { border-color: var(--accent); }
.row-more[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.row-menu { position: absolute; z-index: 15; inset-inline-end: 0; top: calc(100% + 6px); display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.row-menu-item { padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: var(--fg); font-size: 14px; text-align: start; cursor: pointer; }
.row-menu-item:hover, .row-menu-item:focus-visible { background: var(--card); }
.row-menu-item.is-danger { color: var(--danger); }
.gn-rescue { padding: 0; }
.gn-rescue > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; }
.gn-rescue > summary::-webkit-details-marker { display: none; }
.gn-rescue > summary h2 { margin: 0; font-size: 15.5px; }
.gn-rescue > summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: auto; border: solid var(--muted); border-width: 0 1.6px 1.6px 0; rotate: 45deg; transition: rotate .15s; }
.gn-rescue[open] > summary::after { rotate: 225deg; }
.gn-rescue > :not(summary) { margin-inline: 20px; }
.gn-rescue[open] { padding-bottom: 8px; }
.adm-help > p { max-width: 86ch; margin: 10px 0 4px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-raise); line-height: 1.6; }
@media (max-width: 640px) {
  .admin-actions { position: relative; }
  .row-more { position: static; }
  .row-menu { inset-inline: 0 auto; min-width: 0; width: min(280px, 100%); }
  .gn-rescue > summary { padding: 14px 16px; }
  .gn-rescue > :not(summary) { margin-inline: 16px; }
}
@media (pointer: coarse) { .row-menu-item { min-height: 44px; } }
#stats-status:empty, #gn-rebase-msg:empty { display: none; }
.admin .stat-sub { font: 500 12.5px/1.4 var(--body); margin-top: 4px !important; }
.admin .an-kpis { margin-top: 18px; }
@media (max-width: 640px) { .an-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ bouton « Acheter sur Steam » */
.game-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.game-main .game-extra .report { margin-top: 0; }
.steam-buy { font-size: 14px; padding: 8px 14px; }
.steam-buy svg { width: 16px; height: 16px; }
.steam-buy:hover { border-color: var(--accent); color: var(--accent); }
.steam-note { margin: 10px 0 0; max-width: 46ch; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.is-moved .steam-note { margin-top: 16px; }
.player-steam { padding: 8px 12px; font-size: 13px; }
.player-steam svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .player-steam span { display: none; }
  .player-steam { padding: 9px 11px; }
}
@media (pointer: coarse) { .steam-buy { min-height: 40px; } }
a.tag-steam { text-decoration: none; color: var(--muted); }
a.tag-steam:hover { color: var(--fg); border-color: var(--muted); }

/* ------------------------------------------------------------------ recherche du header */
.head-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 420px; margin-inline: clamp(12px, 3vw, 32px) auto; }
.head-search > svg { position: absolute; inset-inline-start: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--dim); pointer-events: none; }
.head-search input { width: 100%; padding: 9px 12px 9px 37px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-raise); font-size: 14.5px; outline: none; transition: border-color .15s, background .15s; }
.head-search input::placeholder { color: var(--dim); }
.head-search input:focus { border-color: var(--accent); background: var(--card); }
.head-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.head-results { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline: 0; margin: 0; padding: 6px; list-style: none; max-height: min(70vh, 470px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.head-results a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.head-results a:hover, .head-results [aria-selected="true"] > a { background: var(--card); }
.hr-thumb { flex: none; display: grid; place-items: center; width: 74px; aspect-ratio: 460 / 215; overflow: hidden; border-radius: 5px; background: var(--card); color: var(--accent); font: 800 12px var(--display); }
.hr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-text { display: grid; min-width: 0; line-height: 1.3; }
.hr-text strong { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-text span { font-size: 12.5px; color: var(--muted); }
.hr-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.hr-all a { padding: 10px 8px; color: var(--accent); font-size: 14px; font-weight: 600; }
.hr-none { padding: 12px 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .topnav > a { display: none; } }
@media (max-width: 760px) {
  .head-search { display: none; }
  .topbar.is-searching .topbar-in { flex-wrap: wrap; }
  .topbar.is-searching .head-search { display: block; order: 10; flex: 1 1 100%; max-width: none; margin: 0 0 12px; }
  .topbar.is-searching .head-search input { font-size: 16px; padding-block: 10px; }
  .head-results { max-height: min(60vh, 420px); }
}

/* ------------------------------------------------------------------ lecteur sans header : barre flottante + aide auto-fermée */
.player { position: relative; }
.player-fs.is-on { color: var(--accent); }
.player-help {
  position: absolute; z-index: 5; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  background: rgba(9, 11, 10, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity .35s, transform .35s;
}
.player-help > span { flex: 1; min-width: 0; }
.player-help.is-gone { opacity: 0; transform: translateY(100%); pointer-events: none; }
.player-help-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.player-help-x:hover { background: rgba(255, 255, 255, .07); color: var(--fg); }
.player-help-x svg { width: 14px; height: 14px; }
@media (max-height: 500px) and (orientation: landscape) {
  .player-help { display: flex; }
}
@media (pointer: coarse) { .player-help-x { width: 40px; height: 40px; } }

/* ------------------------------------------------------------------ admin : En direct, parcours, sécurité */
.adm-badge.is-live { background: var(--accent); color: var(--accent-ink); }
.tbl-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
.live-panel { margin-top: 12px; }
.live-table { min-width: 760px; }
.live-table td { vertical-align: top; padding-block: 10px; line-height: 1.35; }
.live-table tr.is-click { cursor: pointer; transition: background .12s; }
.live-table tr.is-click:hover td { background: var(--bg-raise); }
.live-table .tag { margin: 0 6px 4px 0; }
.live-sub { font-size: 12.5px; }
.live-flag { font-size: 16px; }
.live-page { color: var(--fg); font-weight: 600; text-decoration: none; }
.live-page:hover { color: var(--accent); text-decoration: underline; }
.an-section { margin: 34px 0 0; font: 800 19px var(--display); font-stretch: 112%; letter-spacing: -.01em; }
.an-wide { grid-column: 1 / -1; }
.an-box .stat-table td.num { white-space: nowrap; }

.journey { width: min(820px, calc(100% - 32px)); }
.journey-in { padding: 24px 26px 26px; }
.journey-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.journey-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise); }
.journey-info div { display: grid; gap: 2px; min-width: 0; }
.journey-info span { font-size: 12px; }
.journey-info strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.journey-list { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.journey-list::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 74px; width: 2px; background: var(--line); }
.journey-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 24px; padding: 7px 0; position: relative; }
.journey-list li::before { content: ""; position: absolute; inset-inline-start: 69px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--dim); }
.journey-list li.jr-page::before { border-color: var(--accent); background: var(--accent); }
.journey-list li.jr-play::before { border-color: var(--accent); }
.journey-list li.jr-search::before, .journey-list li.jr-filter::before { border-color: #8ab4ff; }
.journey-list li.jr-outbound::before, .journey-list li.jr-ad_click::before, .journey-list li.jr-steam::before { border-color: var(--warn, #e3cf74); }
.jr-time { font: 500 12px var(--mono); color: var(--dim); padding-top: 3px; text-align: end; }
.jr-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.jr-body .live-sub { flex-basis: 100%; }
.jr-kind { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.jr-page .jr-kind { color: var(--accent); }
.jr-what { overflow-wrap: anywhere; }

.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 4px; }
.sec-grid .stat-panel h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-grid .muted { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.sec-steps { margin: 12px 0; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.sec-key { display: inline-block; margin: 4px 4px 0 0; padding: 4px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font: 600 14px var(--mono); letter-spacing: .04em; user-select: all; overflow-wrap: anywhere; }
.sec-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-inline input { flex: 1 1 140px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; color: var(--fg); outline: none; }
.sec-inline input:focus { border-color: var(--accent); }
.sec-code { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font: 500 13px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sec-list li { position: relative; padding-inline-start: 24px; line-height: 1.4; }
.sec-list li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 800; }
.sec-list li.is-ok::before { content: "✓"; color: var(--accent); }
.sec-list li.is-warn::before { content: "!"; color: var(--warn, #e3cf74); inset-inline-start: 5px; }
#sec-log tr.is-bad td { color: var(--danger); }
@media (max-width: 640px) {
  .journey-in { padding: 18px 16px; }
  .journey-list::before { inset-inline-start: 58px; }
  .journey-list li { grid-template-columns: 48px minmax(0, 1fr); gap: 22px; }
  .journey-list li::before { inset-inline-start: 53px; }
}

.shelf-tools { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.shelf-tools .shelf-count { padding-bottom: 0; margin-inline-end: 6px; }
.rail-btn {
  width: 36px; height: 36px; padding: 0; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-raise); color: var(--fg); transition: border-color .15s, color .15s, opacity .15s;
}
.rail-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rail-btn:disabled { opacity: .3; cursor: default; }
[dir="rtl"] .rail-btn svg { transform: scaleX(-1); }
@media (hover: none), (max-width: 640px) { .rail-btn { display: none; } }

/* Top 10 : gros numéro en contour derrière une jaquette verticale */
.rank-rail {
  list-style: none; margin: 0; padding: 0 0 10px; padding-inline-start: 14px; display: flex; gap: 26px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
}
.rank-rail::-webkit-scrollbar { display: none; }
.card.rank-card { display: grid; grid-template-columns: auto 158px; grid-template-rows: auto auto; gap: 0; flex: none; scroll-snap-align: start; }
.rank-num {
  grid-column: 1; grid-row: 1; align-self: end; position: relative; z-index: 0; margin-inline-end: -24px; margin-bottom: -6px;
  font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 200px; line-height: .8; letter-spacing: -.06em;
  color: var(--bg); -webkit-text-stroke: 2.5px #3d4a43; user-select: none; pointer-events: none; padding-inline-start: .03em;
}
.rank-card.is-podium .rank-num { -webkit-text-stroke-color: var(--accent); }
.card-cover.rank-cover { grid-column: 2; grid-row: 1; z-index: 1; border-radius: 10px; }
.card-cover.rank-cover::after { border-radius: 10px; }
.rank-art { aspect-ratio: 3 / 4; border-radius: 10px; box-shadow: 0 20px 40px -18px #000; }
.rank-art .art-name { font-size: 1.35rem; }
.rank-body { grid-column: 2; grid-row: 2; padding-top: 10px; min-width: 0; }
.rank-body .card-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { margin: 3px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font: 500 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-move { display: inline-flex; align-items: center; gap: 3px; font: 700 11px var(--mono); }
.rank-move svg { width: 9px; height: 9px; fill: currentColor; }
.rank-move.is-up { color: var(--accent); }
.rank-move.is-down { color: var(--danger); }
.rank-move.is-same { color: var(--dim); }
.rank-new { font: 700 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; }

/* En ce moment : pastilles (jaquette ronde, nom, nombre de joueurs) */
.live-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.live-pills:empty { display: none; }
.card.live-pill { display: block; flex: none; gap: 0; }
.live-pill .card-cover {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; box-sizing: border-box; padding: 6px 18px 6px 6px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raise); color: var(--fg); text-decoration: none;
}
.live-pill .card-cover::after { border-radius: 999px; }
.live-pill:hover .card-cover { transform: none; }
.lp-thumb {
  width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: hsl(var(--h, 150) 35% 22%); font: 800 13px var(--display); color: #fff;
}
.lp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-pill .card-title { font-size: 14px; font-weight: 700; white-space: nowrap; }
.lp-count { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: var(--danger); white-space: nowrap; }
.lp-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; }

/* Récemment ajoutés : badge « Nouveau » (moins de 48 h) et date relative */
.new-badge {
  position: absolute; z-index: 3; inset-inline-start: 10px; top: 10px;
  font: 700 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 3px 7px;
}
.card-cover:has(.new-badge) .art-fr { visibility: hidden; }
.card-meta .rel-time { flex-basis: 100%; font-family: var(--mono); font-size: 11.5px; color: var(--dim); padding-top: 1px; }

@media (max-width: 640px) {
  /* Sur téléphone, la barre du haut garde les catégories sur une ligne qui défile au doigt */
  .toolbar .chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-block: 8px 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
  }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .toolbar .chips.fade-l { --fade-l: 30px; }
  .toolbar .chips.fade-r { --fade-r: 30px; }
  .rank-rail { gap: 14px; }
  .card.rank-card { grid-template-columns: auto 112px; }
  .rank-num { font-size: 140px; -webkit-text-stroke-width: 2px; margin-inline-end: -18px; margin-bottom: -4px; }
  .rank-body .card-title { font-size: 13.5px; }
  .rank-meta { font-size: 11px; }
  .rank-art .art-name { font-size: 1.05rem; }
  .live-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .live-pills::-webkit-scrollbar { display: none; }
  .live-pill .card-cover { min-height: 46px; padding: 4px 14px 4px 4px; gap: 10px; }
  .lp-thumb { width: 36px; height: 36px; }
  .live-pill .card-title { font-size: 13px; }
  .shelf-tools .shelf-count { display: none; }
  .top-shelf .tab, .new-shelf .tab, .live-shelf .tab { white-space: nowrap; }
  .live-shelf .shelf-count { white-space: nowrap; }
}

/* =================================================================== THÈME « LUDOTHÈQUE » (v32)
   Noir et vert : grand bloc « À la une » (Staff picks) + « En ce moment », cartes en panneaux avec bouton Jouer,
   titres de rayons sans onglet, fiche du jeu en panneau. Placé en fin de fichier : remplace les règles plus haut. */
:root { --panel: #0f1311; --panel-line: #19201c; --r-lg: 18px; }

/* ------------------------------------------------------------------ header */
.topbar-in { min-height: 72px; gap: 14px; }
.head-search { max-width: 560px; margin-inline: clamp(12px, 3vw, 36px) auto; }
.head-search input { height: 46px; padding-block: 0; border-radius: 12px; font-size: 15px; background: var(--panel); }
.head-search > svg { inset-inline-start: 14px; width: 17px; height: 17px; }
.head-search input { padding-inline-start: 42px; }
.topnav .suggest-btn { border-radius: 10px; padding: 11px 16px; border-color: var(--line); }
.topnav .suggest-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer { background: var(--bg); }

/* ------------------------------------------------------------------ accueil : titre + À la une */
.intro { padding-top: clamp(20px, 3vw, 34px); }
.intro h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.intro .h1-a { font-size: clamp(1.45rem, 3vw, 2.3rem); font-stretch: 115%; line-height: 1.05; }
.intro .h1-b { font-size: clamp(.9rem, 1.3vw, 1.02rem); font-weight: 500; color: var(--muted); max-width: none; line-height: 1.4; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 20px; margin-top: 18px; }
.feat { position: relative; isolation: isolate; min-width: 0; min-height: clamp(400px, 36vw, 500px); border-radius: var(--r-lg); overflow: hidden; background: #0e1813; }
.feat-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.feat-slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .6s ease; }
.feat-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    repeating-linear-gradient(115deg, hsl(var(--h, 150) 55% 60% / .05) 0 2px, transparent 2px 22px),
    hsl(var(--h, 150) 40% 16%);
}
.feat-art { position: absolute; inset-inline-end: 4%; top: 6%; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(72px, 13vw, 190px); line-height: .9; letter-spacing: -.04em; color: hsl(var(--h, 150) 50% 75% / .12); white-space: nowrap; }
.feat-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
/* Voile sombre côté texte : le titre reste lisible quelle que soit l'image */
.feat-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 10, .94) 0%, rgba(9, 11, 10, .78) 38%, rgba(9, 11, 10, .15) 72%, rgba(9, 11, 10, 0) 100%),
    linear-gradient(0deg, rgba(9, 11, 10, .8) 0%, rgba(9, 11, 10, 0) 50%);
}
.feat-body { position: relative; display: grid; gap: 14px; justify-items: start; max-width: 640px; padding: clamp(22px, 3.6vw, 44px); padding-bottom: clamp(26px, 3.6vw, 44px); }
.feat-eyebrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 500 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #c9d4ce; }
.feat-kind { color: var(--accent); }
.feat-kind.is-staff { background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.feat-title { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.035em; }
.feat-title a { text-decoration: none; }
.feat-title a:hover { color: var(--accent-hover); }
.feat-text { margin: 0; max-width: 52ch; color: #cdd7d1; font-size: clamp(15px, 1.25vw, 17px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 6px; }
.feat .play-big { margin-top: 0; }
.feat-play svg { width: 16px; height: 16px; }
.feat-sheet { background: rgba(9, 11, 10, .5); border-color: rgba(236, 242, 238, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.feat-sheet:hover { border-color: var(--fg); }
.feat-dots { position: absolute; z-index: 2; inset-inline-end: clamp(12px, 2.6vw, 28px); bottom: clamp(14px, 2.6vw, 28px); display: flex; gap: 2px; }
.feat-dot { width: 34px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.feat-dot::before { content: ""; width: 10px; height: 6px; border-radius: 3px; background: rgba(236, 242, 238, .38); transition: width .25s, background .25s; }
.feat-dot:hover::before { background: rgba(236, 242, 238, .7); }
.feat-dot[aria-current="true"]::before { width: 26px; background: var(--accent); }

/* En ce moment : liste à droite du bloc À la une */
.feat-live { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--panel-line); border-radius: var(--r-lg); background: var(--panel); }
.feat-live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.feat-live-head h2 { display: flex; align-items: center; font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 18px; }
.feat-live-head .shelf-count { padding: 0; text-align: end; }
.feat-live.is-live .live-dot { background: var(--accent); animation-name: live-pulse-green; }
@keyframes live-pulse-green { 0% { box-shadow: 0 0 0 0 rgba(52, 226, 127, .55); } 70% { box-shadow: 0 0 0 9px rgba(52, 226, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 226, 127, 0); } }
.feat-live .live-pills { display: grid; gap: 2px; flex-wrap: nowrap; overflow: visible; padding: 0; }
.feat-live .live-pill:nth-child(n + 7) { display: none; }
.feat-live .live-pill .card-cover {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 56px; margin-inline: -8px; padding: 8px; border: 0; border-radius: 12px; background: transparent;
}
.feat-live .live-pill .card-cover::after { display: none; }
.feat-live .live-pill .card-cover:hover { background: var(--card); }
.feat-live .lp-thumb { width: 64px; height: 40px; border-radius: 8px; }
.feat-live .live-pill .card-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.feat-live .lp-count { color: var(--accent); }
.feat-live .lp-count::before { background: var(--accent); }
.feat-live .live-empty { font-size: 14.5px; padding: 4px 0 8px; }
.feat-live-all { margin-top: auto; padding-top: 10px; color: var(--muted); font-weight: 650; font-size: 14px; text-decoration: none; }
.feat-live-all:hover { color: var(--accent); }
.toolbar:not(.is-stuck) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-block: 0; padding-top: 0; }
.chip { padding: 8px 15px; font-size: 14px; border-color: var(--line); color: #c9d4ce; }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip[aria-pressed="true"] span { color: var(--bg); opacity: .6; }

/* ------------------------------------------------------------------ titres des rayons : sans onglet */
.shelf { margin-top: 52px; }
.app-shelves .shelf { margin-top: 36px; }
.shelf-head { border-bottom: 0; margin-bottom: 18px; align-items: baseline; }
.tab { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 850; font-stretch: 110%; letter-spacing: -.02em; }
.tab::before { display: none; }
.shelf-count, .shelf-tools { padding-bottom: 0; }
a.shelf-all { font: 650 14px var(--body); color: var(--muted); }

/* ------------------------------------------------------------------ cartes : panneau + bouton Jouer */
.grid { gap: 18px; }
.grid > .card { gap: 0; overflow: hidden; border: 1px solid var(--panel-line); border-radius: 14px; background: var(--panel); transition: border-color .2s, transform .2s; }
.grid > .card:hover { border-color: #2d3b33; transform: translateY(-3px); }
.grid > .card:hover .card-cover { transform: none; }
.grid > .card .card-cover, .grid > .card .card-cover .cover, .grid > .card .card-cover::after { border-radius: 0; }
.grid > .card:hover .card-cover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.grid > .card .card-body { flex: 1; padding: 14px 16px 16px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "title" "meta" "tag" "play"; }
.grid > .card .card-play {
  align-self: end; justify-self: stretch; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px 12px;
  border-radius: 10px; background: var(--accent-soft); font-size: 14px; transition: background .15s, color .15s;
}
.grid > .card .card-play:hover { background: var(--accent); color: var(--accent-ink); }
.grid > .card .card-play.is-off { background: transparent; border: 1px dashed var(--line); color: var(--dim); }
.grid > .card .play-dot { display: none; }
.staff-mark { color: var(--accent); font: 600 11.5px var(--mono); letter-spacing: .02em; white-space: nowrap; }
.grid.rail { grid-auto-columns: minmax(240px, 270px); }

/* ------------------------------------------------------------------ confiance + FAQ */
.trust {
  margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px 32px;
  padding: clamp(22px, 3vw, 32px); border: 1px solid var(--panel-line); border-radius: var(--r-lg); background: #0c0f0d;
}
.trust h2 { font-family: var(--display); font-weight: 850; font-stretch: 110%; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; }
.trust-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 14px; }
.faq { margin-top: 72px; }

/* ------------------------------------------------------------------ fiche du jeu */
.game-hero { position: relative; padding: clamp(14px, 2.4vw, 28px); border: 1px solid var(--panel-line); border-radius: 22px; background: var(--panel); gap: clamp(18px, 3.4vw, 44px); }
.game-art .cover { border-radius: 14px; }
.staff-flag { display: inline-flex; margin: 0 0 14px; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.game-body { margin-top: 44px; }
.facts { padding: 2px 18px; border: 1px solid var(--panel-line); border-radius: 16px; background: var(--panel); }
.facts div:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ catégorie, 404 */
.cat-head h1, .notfound h1 { font-stretch: 112%; }

/* ------------------------------------------------------------------ admin : Staff pick */
.chip-star { color: var(--accent); }
.st-pill.st-staff { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.btn-star { color: var(--accent); border-color: rgba(52, 226, 127, .4); }
.btn-star.is-on { background: var(--accent-soft); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feat-live .live-pill:nth-child(n + 5) { display: none; }
  .feat-live .live-pills { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); column-gap: 16px; }
}
@media (max-width: 760px) {
  .topbar-in { min-height: 60px; }
}
@media (max-width: 640px) {
  .intro h1 { gap: 6px; }
  .feature { margin-top: 14px; gap: 14px; }
  .feat { min-height: 460px; border-radius: 16px; }
  .feat-bg::after { background: linear-gradient(0deg, rgba(9, 11, 10, .97) 0%, rgba(9, 11, 10, .85) 42%, rgba(9, 11, 10, .2) 75%, rgba(9, 11, 10, .05) 100%); }
  .feat-art { top: 10%; inset-inline-end: 6%; }
  .feat-body { padding: 18px 18px 22px; gap: 11px; }
  .feat-eyebrow { font-size: 11px; }
  .feat-text { font-size: 15px; -webkit-line-clamp: 2; }
  .feat-actions { width: 100%; }
  .feat-actions .btn { flex: 1 1 auto; padding-inline: 16px; }
  .feat-dots { top: 10px; bottom: auto; inset-inline-end: 8px; }
  .feat-live { padding: 16px; border-radius: 16px; }
  .chip { padding: 7px 13px; font-size: 13px; }
  .shelf { margin-top: 40px; }
  .app-shelves .shelf { margin-top: 28px; }
  .shelf-head { margin-bottom: 14px; }
  .tab { padding: 0; font-size: 1.3rem; }
  a.shelf-all { font-size: 12.5px; }
  .grid { gap: 12px; }
  .grid > .card { border-radius: 12px; }
  .grid > .card .card-body { padding: 10px 12px 12px; }
  .grid > .card .card-play { margin-top: 10px; padding: 9px 8px; font-size: 13.5px; }
  .grid.rail { grid-auto-columns: minmax(160px, 46%); }
  .trust { margin-top: 48px; gap: 18px; }
  .game-hero { border-radius: 16px; }
  .game-main h1 { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
  .play-big { width: 100%; }
  .facts { padding: 2px 14px; }
}
@media (pointer: coarse) {
  .feat-dot { width: 40px; height: 40px; }
  .feat-live .live-pill .card-cover { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .feat-slide, .feat-slide.is-on { transition: none; }
  .grid > .card:hover { transform: none; }
}
/* v32 : retouches après essais */
.feat-live .live-pill .card-title { grid-area: auto; }
.feat-live .lp-count { justify-self: end; }
.app-shelves { padding-bottom: 0; }
.catalog { padding-top: 0; }
/* Ordinateur : la recherche du header suffit en haut de page ; celle du catalogue revient quand la barre suit le défilement */
@media (min-width: 761px) {
  .toolbar:not(.is-stuck) .toolbar-in { display: none; }
  .toolbar:not(.is-stuck) .chips { padding-top: 0; }
}

/* Bandeau sur l'accueil */
.ports-teaser {
  margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 32px; align-items: center;
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--panel-line); border-radius: var(--r-lg);
  background: repeating-linear-gradient(115deg, rgba(52, 226, 127, .035) 0 2px, transparent 2px 22px), var(--panel);
}
.ports-teaser .eyebrow { margin-bottom: 10px; }
.ports-teaser h2 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -.03em; }
.pt-text p:not(.eyebrow) { margin: 12px 0 20px; color: #c9d4ce; max-width: 52ch; }
.pt-plats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-plats a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); text-decoration: none; transition: border-color .15s; }
.pt-plats a:hover { border-color: var(--accent); }
.pt-plats strong { font: 900 26px/1 var(--display); font-stretch: 112%; color: var(--accent); }
.pt-plats span { font-size: 13.5px; color: var(--muted); }

/* En-tête de la page */
.ports-page { padding-block: 24px 24px; }
.ports-credit { margin: 0; font-size: 13.5px; color: var(--muted); }
.ports-credit a { color: var(--accent); }
.tuto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tuto-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.tuto-n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 15px var(--display); }
.tuto-steps strong { display: block; font-size: 15.5px; margin-top: 4px; }
.tuto-steps p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tuto-shot { margin: 0; }
.tuto-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 50px -28px #000; }
.tuto-shot figcaption { margin-top: 8px; font: 500 12px var(--mono); color: var(--dim); }
.tuto-warn { grid-column: 1 / -1; margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #4f4518; border-radius: 12px; background: rgba(227, 207, 116, .07); color: #e3cf74; font-size: 14px; line-height: 1.5; }
.tuto-warn svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 650; padding: 7px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button span { font: 500 11px var(--mono); color: var(--dim); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg button[aria-pressed="true"] span { color: var(--bg); opacity: .6; }

/* Liste */
.ports-list { padding-top: 4px; }
.port { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 16px 14px; border: 1px solid var(--panel-line); border-radius: 14px; background: var(--panel); transition: border-color .2s; }
.port:hover { border-color: #2d3b33; }
.port-kind, .port-dev { font: 700 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.port-kind.k-recomp { background: var(--accent-soft); color: var(--accent); }
.port-kind.k-decomp { background: rgba(138, 180, 255, .13); color: #9cc0ff; }
.port-kind.k-port { background: rgba(227, 207, 116, .1); color: #e3cf74; }
.port-dev { border: 1px dashed #5a6a61; color: var(--muted); }
.port-title { font-family: var(--display); font-weight: 800; font-stretch: 104%; font-size: 17.5px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.port-feat { margin: 0; font-size: 14px; color: #cdd7d1; line-height: 1.5; }
.port-os { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.port-os li { font: 600 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: #c9d4ce; }
.port-os .os-windows { border-color: rgba(138, 180, 255, .4); color: #9cc0ff; }
.port-os .os-linux { border-color: rgba(227, 207, 116, .4); color: #e3cf74; }
.port-note { margin: 0; font: 500 11.5px var(--mono); color: var(--dim); }

@media (max-width: 980px) {
  .ports-teaser { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ports-teaser { margin-top: 28px; }
  .pt-plats strong { font-size: 22px; }
  .tuto-shot { order: -1; }
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; padding: 7px 10px; }
  .port { padding: 14px; }
}
@media (pointer: coarse) {
  .seg button { min-height: 38px; }
}
/* admin : PC Ports */
.ports-adm-table { min-width: 860px; }
.ports-adm-table td { vertical-align: top; }
.ports-adm-table .st-pill { display: inline-block; margin-top: 4px; }
.ports-adm-act { white-space: nowrap; text-align: end; }
.ports-adm-act .btn + .btn { margin-inline-start: 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 6px 0 4px; }
.check-row label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.field-label { font-size: 13px; font-weight: 650; color: #d6d3cc; }

/* v33.1 : image du Staff pick centrée sur téléphone comme sur ordinateur ; pas de point vert dans le bandeau PC Ports */
@media (max-width: 640px) { .feat-bg img { object-position: center 25%; } }
.ports-teaser .eyebrow::before { display: none; }

/* =================================================================== TUTO ACCÉLÉRATION GRAPHIQUE (v34) */
.gpu-page { padding-block: 24px 24px; }
.gpu-hero { margin-top: 22px; max-width: 760px; }
.gpu-hero h1 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.gpu-hero .lead { margin: 16px 0 0; }
.gpu-h2 { font-family: var(--display); font-weight: 850; font-stretch: 110%; font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.02em; margin-bottom: 16px; }

/* Vérification automatique */
.gpu-check { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--panel-line); border-radius: var(--r-lg); background: var(--panel); }
.gpu-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dim); }
.gpu-check.is-wait .gpu-dot { animation: gpu-pulse 1s ease-in-out infinite; }
@keyframes gpu-pulse { 50% { opacity: .3; } }
.gpu-check.is-ok { border-color: rgba(52, 226, 127, .45); }
.gpu-check.is-ok .gpu-dot { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.gpu-check.is-soft { border-color: rgba(227, 207, 116, .5); background: rgba(227, 207, 116, .05); }
.gpu-check.is-soft .gpu-dot { background: #e3cf74; box-shadow: 0 0 0 6px rgba(227, 207, 116, .15); }
.gpu-check.is-none { border-color: rgba(255, 130, 112, .5); background: rgba(255, 130, 112, .05); }
.gpu-check.is-none .gpu-dot { background: var(--danger); box-shadow: 0 0 0 6px rgba(255, 130, 112, .15); }
.gpu-state { margin: 0; font-weight: 750; font-size: 17px; }
.gpu-sub { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.gpu-sub:empty { display: none; }
.gpu-renderer { margin: 8px 0 0; font-size: 13px; color: var(--dim); overflow-wrap: anywhere; }
.gpu-renderer code { font: 500 12px var(--mono); color: var(--muted); }

/* Étapes par navigateur */
.gpu-steps { margin-top: 40px; }
.gpu-tabs { margin-bottom: 16px; max-width: 100%; }
.tab-det { font: 500 11px var(--mono); opacity: .75; }
.gpu-panel { padding: 22px; border: 1px solid var(--panel-line); border-radius: var(--r-lg); background: var(--panel); }
.gpu-panel + .gpu-panel { margin-top: 14px; }
.gpu-panel-title { font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.gpu-panel .tuto-steps p { margin: 4px 0 0; color: #d6ddd8; font-size: 15.5px; line-height: 1.6; }
.gpu-panel strong, .gpu-tips strong, .gpu-verify strong { color: var(--fg); }
.gpu-hint { margin: 12px 0 0; font-size: 13.5px; color: var(--dim); }
.addr { display: inline-flex; align-items: center; gap: 6px; margin: 2px 2px; padding: 2px 3px 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); vertical-align: middle; max-width: 100%; }
.addr code { font: 600 13px var(--mono); color: var(--accent); overflow-wrap: anywhere; }
.addr-copy { flex: none; border: 0; border-radius: 6px; padding: 4px 8px; background: var(--card); color: var(--muted); font: 600 12px var(--body); cursor: pointer; }
.addr-copy:hover { color: var(--fg); }
.addr-copy.is-done { background: var(--accent-soft); color: var(--accent); }

/* Vérifier + astuces */
.gpu-verify { margin-top: 44px; }
.gpu-verify p { color: var(--muted); margin: 0 0 10px; }
.gpu-verify ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; color: #d6ddd8; line-height: 1.6; }
.gpu-tips { margin-top: 44px; }
.gpu-tip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.gpu-tip-grid li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; align-content: start; padding: 18px; border: 1px solid var(--panel-line); border-radius: 14px; background: var(--panel); }
.gpu-tip-grid li > strong { align-self: center; font-size: 15.5px; }
.gpu-tip-grid li > p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.gpu-faq { margin-top: 56px; }
.lag-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-family: var(--body); }
.lag-link:hover { color: var(--accent); }

@media (max-width: 640px) {
  .gpu-check { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .gpu-check .btn { grid-column: 1 / -1; }
  .gpu-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gpu-tabs::-webkit-scrollbar { display: none; }
  .gpu-tabs button { flex: none; }
  .gpu-panel { padding: 16px; }
}
@media (pointer: coarse) { .addr-copy { min-height: 32px; } }
.gpu-page .tuto-steps strong, .gpu-tip-grid p strong { display: inline; margin: 0; font-size: inherit; }

/* ------------------------------------------------------------------ v35 : serveurs (liens miroirs) */
.mirror {
  position: absolute; z-index: 6; top: calc(10px + env(safe-area-inset-top, 0px)); inset-inline-end: calc(10px + env(safe-area-inset-right, 0px));
  transition: opacity .35s;
}
.mirror.is-idle:not(.is-open):not(:focus-within) { opacity: .45; }
.mirror.is-idle:hover { opacity: 1; }
.mirror-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 11px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(9, 11, 10, .82); color: var(--fg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  font: 600 12.5px var(--mono); cursor: pointer;
}
.mirror-btn:hover, .mirror.is-open .mirror-btn { border-color: rgba(255, 255, 255, .22); }
.mirror-btn svg { width: 13px; height: 13px; color: var(--muted); transition: transform .2s; }
.mirror.is-open .mirror-btn svg { transform: rotate(180deg); }
.mirror-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.mirror-dot.is-ok { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.mirror-dot.is-down { background: var(--danger); }
.mirror-dot.is-unk { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.mirror-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: max-content; min-width: 230px; max-width: calc(100vw - 20px);
  padding: 6px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(12, 14, 13, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}
.mirror-head { margin: 4px 8px 6px; color: var(--dim); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.mirror-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--fg); font-size: 13.5px; font-weight: 600; text-align: start; cursor: pointer;
}
.mirror-opt:hover { background: rgba(255, 255, 255, .06); }
.mirror-opt[aria-pressed="true"] { background: rgba(255, 255, 255, .08); }
.mirror-opt[aria-pressed="true"] .mirror-name::after { content: "✓"; margin-inline-start: 6px; color: var(--accent); }
.mirror-name { flex: 1; }
.mirror-name small { color: var(--dim); font-weight: 500; font-size: 11.5px; }
.mirror-state { color: var(--dim); font: 500 11.5px var(--mono); }
.mirror-hint {
  position: absolute; z-index: 6; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 8px var(--gutter); padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-soft); background: rgba(9, 11, 10, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--muted); font-size: 13px;
}
.mirror-hint[hidden] { display: none; }
.mirror-hint > span { flex: 1; min-width: 0; }
.mirror-next {
  flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.mirror-next:hover { filter: brightness(1.08); }
@media (max-width: 640px) {
  .mirror-btn { height: 38px; }
  .mirror-opt { min-height: 44px; }
  .mirror-next { height: 40px; }
}
/* Fiche du jeu : « 3 serveurs disponibles » */
.servers-n { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.servers-n .mirror-dot { width: 7px; height: 7px; box-shadow: none; }
/* Admin : pastille des miroirs */
.tag-mirror { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tag-mirror.is-fallback { border-color: rgba(255, 196, 92, .5); color: #ffc45c; }
.tag-mirror.is-dead { border-color: rgba(255, 130, 112, .45); color: var(--danger); }
/* Le bandeau « Ça ne charge pas ? » reste cliquable : les notifications passent au-dessus */
body:has(#mirror-hint:not([hidden])) .toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
/* Choix du serveur des jeux externes (fenêtre #servers) */
.modal.servers { width: min(440px, calc(100vw - 32px)); padding: 24px clamp(16px, 5vw, 24px); }
.modal.servers .modal-lead { margin-bottom: 0; font-size: 14px; }
.modal.servers h2 { margin-inline-end: 36px; }
.servers-list { display: grid; gap: 6px; margin-top: 14px; }
.servers-list .mirror-opt { min-height: 50px; border: 1px solid var(--line); text-decoration: none; }
.servers-list .mirror-opt:hover, .servers-list .mirror-opt:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.servers-list .mirror-opt.is-best { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.mirror-best { margin-inline-start: 4px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 10.5px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.mirror-go { color: var(--muted); font-size: 14px; }

/* =================================================================== v36 : header collant + menus, catalogue paginé, PC Ports compact, APK
   Le header (recherche + menu + catégories) reste en haut de l'écran sur toutes les pages. */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(9, 11, 10, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s, border-color .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.topbar-in { min-height: 68px; gap: 14px; justify-content: flex-start; }
.topbar .head-search { display: block; flex: 1 1 auto; max-width: 600px; margin-inline: clamp(8px, 2vw, 28px) 0; }
.head-search input { padding-inline-end: 40px; }
.head-search kbd { position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; font: 500 11.5px var(--mono); color: var(--dim); pointer-events: none; }
.head-search input:focus ~ kbd, .head-search input:not(:placeholder-shown) ~ kbd { display: none; }
.topnav { margin-inline-start: auto; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; user-select: none; }
.nav-link::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-menu[open] > .nav-link { color: var(--fg); background: var(--bg-raise); }
.nav-link[aria-current], .nav-link[data-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-menu[open] .chev, .cats-all[open] .chev { transform: rotate(180deg); }
.nav-menu { position: relative; }
.nav-pop { position: absolute; top: calc(100% + 8px); inset-inline-start: -6px; z-index: 50; width: 310px; box-sizing: border-box; padding: 6px; display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }
.nav-pop-end { inset-inline-start: auto; inset-inline-end: -6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.nav-item:hover, .nav-item:focus-visible { background: rgba(255, 255, 255, .05); }
.nav-item[aria-current] { background: var(--accent-soft); }
.ni-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ni-ic svg { width: 18px; height: 18px; }
.ni-tx { display: grid; gap: 1px; min-width: 0; }
.ni-tx strong { font-size: 15px; }
.ni-tx small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.menu-btn { display: none; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--fg); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
/* Ligne des catégories (accueil, pages catégorie) */
.topbar-cats { border-top: 1px solid var(--line-soft); }
.cats-in { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.cats-row { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.cats-row.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.cats-row.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.topbar-cats .chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; box-sizing: border-box; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.topbar-cats .chip::-webkit-details-marker { display: none; }
.topbar-cats .chip:hover { border-color: #3d4a43; }
.topbar-cats .chip[aria-pressed="true"], .topbar-cats .chip[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.topbar-cats .chip[aria-pressed="true"] span, .topbar-cats .chip[aria-current] span { color: var(--bg); opacity: .6; }
.cats-all { position: relative; flex: none; }
.cats-all > summary { background: var(--panel); }
.cats-all .chev { width: 12px; height: 12px; transition: transform .2s; }
.cats-pop { inset-inline-start: auto; inset-inline-end: 0; width: min(440px, calc(100vw - 32px)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cats-pop a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 9px; color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 600; }
.cats-pop a span { font: 500 11px var(--mono); color: var(--dim); }
.cats-pop a:hover { background: rgba(255, 255, 255, .05); }
.cats-pop a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.sort-pick { flex: none; display: inline-flex; align-items: center; gap: 8px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.sort-pick select { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); font-weight: 600; font-size: 14px; cursor: pointer; }
/* Menu du téléphone */
.menu-sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); flex-direction: column; }
.menu-sheet[open] { display: flex; }
.menu-sheet::backdrop { background: var(--bg); }
.ms-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line-soft); }
.ms-x { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer; }
.ms-body { flex: 1; overflow: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.ms-games { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 12px; background: var(--card); color: var(--fg); text-decoration: none; font-size: 17px; font-weight: 700; }
.ms-games[aria-current] { box-shadow: inset 3px 0 0 var(--accent); }
.ms-label { margin: 16px 0 4px 14px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ms-group { display: grid; gap: 6px; }
.ms-cards .nav-item { border: 1px solid var(--line-soft); min-height: 56px; }
.ms-group .nav-item { min-height: 48px; }
.ms-foot { flex: none; display: flex; gap: 10px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-soft); }
.ms-foot .btn { flex: 1; min-height: 50px; }
.ms-foot .langs { margin: 0; }
.ms-foot .langs summary { min-height: 50px; padding-inline: 14px; }
.ms-foot .langs-list { position: absolute; top: auto; bottom: calc(100% + 8px); inset-inline: 0 auto; width: 220px; }
/* Grands écrans moyens : le menu passe d'abord en icônes, puis dans le menu du téléphone */
@media (max-width: 1180px) {
  .topnav .suggest-btn span, .topnav .install-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topnav .suggest-btn { width: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 920px) {
  .topnav > .nav-link, .topnav > .nav-menu, .topnav > .langs, .topnav > .suggest-btn, .topnav > .install-btn { display: none !important; }
  .menu-btn { display: grid; }
  .topbar-in { min-height: 64px; gap: 10px; }
  .topbar .head-search { max-width: none; margin: 0; }
  .head-search input { height: 44px; font-size: 16px; }
  .head-search kbd { display: none; }
}
@media (max-width: 560px) {
  .topbar-in > .logo span { display: none; }
  .cats-in { padding-block: 8px; gap: 8px; }
  .sort-pick { padding-inline-start: 0; border: 0; }
  .sort-pick > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sort-pick select { height: 36px; padding: 0 8px; font-size: 13px; max-width: 128px; }
  .topbar-cats .chip { height: 36px; padding: 0 13px; }
  .cats-all { display: none; }
}

/* ------------------------------------------------------------------ catalogue « Tous les jeux » */
.catalog { padding-top: clamp(28px, 4vw, 44px); }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-head h2 { margin: 0; font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.catalog-head .count { margin: 0; font: 500 13px var(--mono); color: var(--dim); }
.cat-page .cat-grid { margin-top: 8px; }

/* ------------------------------------------------------------------ pagination */
.pager { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
.pager[hidden] { display: none; }
.pg-per { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.pg-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.pg-seg button { min-width: 44px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 600 13px var(--mono); cursor: pointer; }
.pg-seg button:hover { color: var(--fg); }
.pg-seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.pg-nums { display: flex; align-items: center; gap: 6px; }
.pg { display: grid; place-items: center; min-width: 40px; height: 40px; box-sizing: border-box; padding: 0 6px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 600 14px var(--mono); }
.pg:hover { color: var(--fg); background: var(--bg-raise); }
.pg[aria-current] { background: var(--accent); color: var(--accent-ink); }
.pg-arrow { border: 1px solid var(--line); color: var(--fg); }
.pg-arrow svg { width: 14px; height: 14px; }
.pg-arrow.is-off { opacity: .35; }
.pg-gap { width: 22px; text-align: center; color: var(--dim); }
.pg-of { display: none; padding: 0 10px; font: 700 15px var(--mono); color: var(--fg); white-space: nowrap; }
.pg-range { justify-self: end; font: 500 13px var(--mono); color: var(--dim); white-space: nowrap; }
@media (max-width: 760px) {
  .pager { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding: 14px 12px; }
  .pg-nums { order: -1; width: 100%; justify-content: space-between; }
  .pg-n, .pg-gap { display: none; }
  .pg-of { display: inline; }
  .pg-arrow { min-width: 48px; height: 48px; border-radius: 12px; }
  .pg-arrow svg { width: 16px; height: 16px; }
  .pg-next:not(.is-off) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .pg-range { justify-self: center; }
}
.pf { flex: none; width: 250px; position: sticky; top: calc(var(--head-h, 70px) + 16px); max-height: calc(100vh - var(--head-h, 70px) - 32px); overflow: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.pf-clear { font-size: 13px; color: var(--muted); }
.pf-body fieldset { margin: 0 0 18px; padding: 0; border: 0; display: grid; gap: 2px; min-width: 0; }
.pf-body legend { margin-bottom: 8px; padding: 0; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pf-l { flex: 1; min-width: 0; }
.pf-backdrop { display: none; }
.pp-howto { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.pp-howto svg { width: 15px; height: 15px; }
.pp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.pf-open { display: none; }
.pp-active { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.pp-active:empty { display: none; }
.af-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px 0 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-size: 13px; font-weight: 600; cursor: pointer; }
.pp-bar .count { margin: 0 0 0 auto; font: 500 13px var(--mono); color: var(--dim); }
.pr-list { border: 1px solid var(--line-soft); border-top: 0; border-radius: 14px; background: var(--panel); overflow: hidden; }
.pr { border-top: 1px solid var(--line-soft); }
.pr[hidden] { display: none; }
.pr.is-open { background: rgba(255, 255, 255, .02); }
.pr-tog { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pr-tog:hover { background: var(--bg-raise); color: var(--fg); }
.pr-tog svg { width: 14px; height: 14px; transition: transform .2s; }
.pr-tog[aria-expanded="true"] svg { transform: rotate(180deg); }
.pp-note { margin: 26px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }
.pp-note strong { color: var(--muted); }
.tuto-modal { padding: clamp(18px, 4vw, 30px); width: min(880px, calc(100% - 32px)); }
.tuto-modal h2 { margin: 0 40px 18px 0; }
.tuto-modal .tuto-steps { margin-bottom: 18px; }
.tuto-modal .tuto-warn { margin-top: 16px; }
@media (max-width: 920px) {
  .pf { position: fixed; inset: auto 0 0; top: 64px; z-index: 60; width: auto; max-height: none; background: var(--card); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; overflow: hidden; transform: translateY(105%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  .pf.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
  .pf-body { flex: 1; overflow: auto; padding: 16px 20px; }
  .pf-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(2, 4, 3, .72); }
  .pf-open { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 14px; }
  .pf-open svg { width: 14px; height: 14px; }
  .pf-badge { min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 11px var(--mono); }
}
@media (max-width: 640px) {
  .pr-tog { grid-area: tog; width: 40px; height: 44px; }
  .pp-bar .count { width: 100%; margin: 4px 0 0; order: 5; }
}

/* ------------------------------------------------------------------ APK Android */
.apk-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 500px); gap: 28px; align-items: center; margin: 8px 0 26px; }
.apk-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.apk-eyebrow svg { width: 16px; height: 16px; }
.apk-hero h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.02em; line-height: 1; }
.apk-hero .lead { margin: 12px 0 0; max-width: 560px; color: var(--muted); font-size: 16px; }
.apk-steps { padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel); }
.apk-steps > summary { font-weight: 800; font-size: 16px; cursor: pointer; list-style: none; }
.apk-steps > summary::-webkit-details-marker { display: none; }
.apk-steps ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.apk-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.apk-steps li strong { color: var(--fg); }
.apk-steps .tuto-n { flex: none; width: 26px; height: 26px; font-size: 13px; }
.apk-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.apk-chips { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 0; }
.apk-chips::-webkit-scrollbar { display: none; }
.apk-chips .chip { flex: none; }
.apk-bar .count { margin: 0; flex: none; font: 500 13px var(--mono); color: var(--dim); }
.apk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.apk-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
.apk-card[hidden] { display: none; }
.apk-ic.has-img { position: relative; overflow: hidden; }
.apk-ic.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.apk-ic { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: hsl(var(--h, 150) 40% 22%); color: var(--fg); font: 900 15px var(--display); font-stretch: 115%; }
.apk-tx { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.apk-tx strong { max-width: 100%; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apk-tx > span:not(.port-kind) { max-width: 100%; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apk-tx .port-kind { font-size: 9.5px; padding: 2px 6px; }
.apk-dl { flex: none; min-height: 40px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.apk-dl svg { width: 13px; height: 13px; }
@media (max-width: 1100px) { .apk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .apk-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .apk-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .apk-card { padding: 10px; }
  .apk-ic { width: 52px; height: 52px; border-radius: 13px; font-size: 13px; }
  .apk-dl { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 12px; }
  .apk-dl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .apk-dl svg { width: 17px; height: 17px; }
  .apk-bar { flex-wrap: wrap; }
  .apk-bar .count { order: -1; width: 100%; }
}
.apk-eyebrow::before { display: none; }
html.is-app .topbar { z-index: 40; }
@media (min-width: 921px) { .topnav > a.nav-link { display: inline-flex; } }
@media (max-width: 1180px) and (min-width: 921px) {
  .topnav .suggest-btn { height: 42px; min-height: 42px; }
  .topnav .suggest-btn svg { display: block; width: 16px; height: 16px; }
}

/* ------------------------------------------------------------------ v37 : bandeaux Adsterra discrets */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 34px auto 6px; }
.ad-slot:not(.is-on) .ad-box { min-height: 50px; }
.ad-tag { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ad-box { max-width: 100%; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .02); }
.ad-box iframe { display: block; border: 0; }
.ad-bottom { margin-top: 48px; }

/* ------------------------------------------------------------------ v37 : bandeau du lecteur (jeux d'autres sites que play.playtab.fun) */
.pbar { flex: none; display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 8px clamp(12px, 3vw, 40px); background: #191c1b; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.pbar[hidden] { display: none; }
.pbar-home { flex: none; display: inline-flex; align-items: center; gap: 12px; padding-inline-end: 20px; border-inline-end: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.pbar-home .logo-mark { width: 34px; height: 27px; }
.pbar-home:hover { color: var(--fg); }
.pbar-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.pbar-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--fg); text-decoration: none; }
.pbar-name strong { font-family: var(--display); font-weight: 850; font-stretch: 112%; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-name svg { flex: none; width: 16px; height: 16px; color: var(--dim); }
.pbar-name:hover svg { color: var(--accent); }
.pbar-credit { font-size: 14px; color: var(--dim); white-space: nowrap; }
.pbar-actions { flex: none; display: flex; align-items: center; gap: 10px; }
.pbar-btn { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); font: 700 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pbar-btn:hover { border-color: #3d4a43; background: rgba(255, 255, 255, .03); }
.pbar-btn svg { width: 15px; height: 15px; flex: none; }
.pbar-btn.is-on { color: var(--accent); border-color: var(--accent); }
.player:has(.pbar:not([hidden])) .mirror { top: calc(76px + env(safe-area-inset-top, 0px)); }
.player-exit { display: none; }
.player-stage.is-pseudo-fs .player-exit { display: grid; z-index: 5; }
@media (max-width: 1000px) { .pbar-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .pbar-btn { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 640px) {
  .pbar { gap: 10px; min-height: 56px; padding: 6px 10px; }
  .pbar-home { padding-inline-end: 10px; }
  .pbar-home span, .pbar-credit { display: none; }
  .pbar-name strong { font-size: 17px; }
  .pbar-actions { gap: 6px; }
  .pbar-btn { width: 40px; height: 40px; }
  .player:has(.pbar:not([hidden])) .mirror { top: calc(66px + env(safe-area-inset-top, 0px)); }
}
.tag-servers { border-color: rgba(138, 180, 255, .4); color: #9cc0ff; }
/* Jeu dont le site a son propre bandeau (play.playtab.fun) : le bouton « Serveur » passe en bas à droite,
   pour ne pas cacher les boutons de ce bandeau ; son menu s'ouvre vers le haut. */
.player.has-own-bar .mirror { top: auto; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
.player.has-own-bar .mirror-menu { top: auto; bottom: calc(100% + 8px); }
@media (max-width: 640px) { .player.has-own-bar .mirror { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 10px; } }
/* Bouton « Serveur » dans le bandeau du lecteur (remplace le bouton flottant) */
.pbar .mirror { position: relative; top: auto; inset: auto; z-index: 7; opacity: 1 !important; }
.pbar .mirror-btn { width: auto; padding: 0 12px 0 14px; gap: 8px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-radius: 10px; font: 700 15px var(--body); }
.pbar .mirror-btn .mirror-ic { width: 16px; height: 16px; color: var(--fg); transform: none; }
.pbar .mirror-btn .mirror-dot { position: static; width: 8px; height: 8px; overflow: visible; clip: auto; }
.pbar .mirror-menu { top: calc(100% + 10px); inset-inline-end: 0; }
.player.has-own-bar .mirror { top: auto; bottom: auto; }
@media (max-width: 1000px) {
  .pbar .mirror-btn { width: auto; padding: 0 10px; }
  .pbar .mirror-btn .mirror-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 640px) { .pbar .mirror-btn { height: 40px; padding: 0 8px; gap: 6px; } .pbar .mirror-menu { inset-inline-end: -96px; } }
.player .pbar .mirror { top: auto !important; bottom: auto !important; inset-inline-end: auto !important; }
@media (max-width: 640px) { .pbar .mirror-menu { position: fixed; top: 62px; left: 10px; right: 10px; inset-inline-end: 10px; width: auto; min-width: 0; } }

/* =================================================================== v40 : sélecteur de thème + thème « Ludothèque »
   Thème classique : le site d'origine. html[data-theme="ludo"] (thème par défaut depuis la v43) : menu latéral fixe sur PC, barre d'onglets en bas sur téléphone, jaquettes plus aérées, cartes PC Ports + APK côte à côte. */
.ludo-side, .ludo-tabs { display: none; }
.theme-menu .theme-sum svg { width: 18px; height: 18px; }
.theme-sum-tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.theme-pop { width: 300px; }
.theme-opt { width: 100%; border: 0; background: transparent; font: inherit; text-align: start; cursor: pointer; }
.theme-opt .ni-ic { background: rgba(255, 255, 255, .06); color: var(--muted); }
.theme-opt[aria-pressed="true"] { background: var(--accent-soft); }
.theme-opt[aria-pressed="true"] .ni-ic { background: var(--accent); color: var(--accent-ink); }
.theme-check { margin-inline-start: auto; color: var(--accent); font-weight: 800; visibility: hidden; }
.theme-opt[aria-pressed="true"] .theme-check { visibility: visible; }
.ms-theme { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-theme .theme-opt { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 12px; border: 1px solid var(--line-soft); }
.ms-theme .theme-check { position: absolute; inset-inline-end: 12px; top: 12px; }
.ms-theme .theme-opt { position: relative; }

html[data-theme="ludo"] {
  --bg: #0b0e0d; --bg-raise: #0f1311; --card: #131816; --panel: #121715; --r-lg: 22px;
  --side-w: 248px; --tabs-h: 0px;
}
/* Titre de l'accueil : gardé pour Google et les lecteurs d'écran, caché à l'œil */
html[data-theme="ludo"] .intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
html[data-theme="ludo"] .feature { margin-top: 22px; }
html[data-theme="ludo"] .feat, html[data-theme="ludo"] .feat-live { border-radius: 22px; }
/* Étagères : titres simples (plus d'onglet), « Continuer à jouer » en premier, PC Ports et APK côte à côte */
html[data-theme="ludo"] .app-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
html[data-theme="ludo"] .app-shelves > * { grid-column: 1 / -1; }
html[data-theme="ludo"] .app-shelves > .ports-teaser { grid-column: auto; order: 5; }
html[data-theme="ludo"] .shelf-head { border-bottom: 0; margin-bottom: 14px; align-items: center; }
html[data-theme="ludo"] .shelf-head .tab { margin: 0; padding: 0; background: none; border: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 850; }
html[data-theme="ludo"] .shelf-head .tab::before { display: none; }
html[data-theme="ludo"] .shelf-count { padding-bottom: 0; }
html[data-theme="ludo"] .ports-teaser {
  margin-top: 36px; display: flex; align-items: flex-start; gap: 20px; padding: 26px; border: 1px solid #1d2c24; border-radius: 22px;
  background: linear-gradient(130deg, hsl(205 45% 17%), var(--bg-raise) 70%);
}
html[data-theme="ludo"] .ports-teaser::before { content: ""; flex: none; width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='2' fill='none' stroke='%23ecf2ee' stroke-width='1.8'/%3E%3Cpath d='M8 20h8M12 16v4' stroke='%23ecf2ee' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 30px no-repeat; }
html[data-theme="ludo"] .at-ic { flex: none; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .1); }
html[data-theme="ludo"] .at-ic svg { width: 30px; height: 30px; }
html[data-theme="ludo"] .ports-teaser .pt-plats { display: none; }
html[data-theme="ludo"] .ports-teaser h2 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.05; letter-spacing: -.02em; }
html[data-theme="ludo"] .ports-teaser .eyebrow { margin: 2px 0 6px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[data-theme="ludo"] .ports-teaser .pt-text p:not(.eyebrow) { margin: 8px 0 16px; font-size: 15px; }
html[data-theme="ludo"] .ports-teaser .btn-lg { padding: 11px 18px; font-size: 15px; }
/* Jaquettes : grille plus serrée, coins arrondis, la jaquette lance le jeu (bouton « Jouer » retiré) */
html[data-theme="ludo"] .grid:not(.rail) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 24px 16px; }
html[data-theme="ludo"] .card-cover, html[data-theme="ludo"] .card-cover::after, html[data-theme="ludo"] .card-cover .cover { border-radius: 14px; }
html[data-theme="ludo"] .card { gap: 10px; }
html[data-theme="ludo"] .grid .card-play:not(.is-off) { display: none; }
html[data-theme="ludo"] .card-title { font-size: 15px; }
@media (hover: none) { html[data-theme="ludo"] .grid .play-dot { opacity: 1; transform: none; width: 34px; height: 34px; } html[data-theme="ludo"] .grid .play-dot::before { left: 13px; top: 10px; } }
html[data-theme="ludo"] .catalog-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }

/* ---- PC : menu latéral fixe */
@media (min-width: 1101px) {
  html[data-theme="ludo"] body:has(> .ludo-side) { padding-inline-start: var(--side-w); }
  html[data-theme="ludo"] .ludo-side {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 42; width: var(--side-w); box-sizing: border-box;
    display: flex; flex-direction: column; gap: 20px; padding: 20px 14px 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    background: var(--bg-raise); border-inline-end: 1px solid var(--line-soft);
  }
  .ludo-side .logo { padding: 4px 10px; }
  .ls-nav, .ls-cats { display: grid; gap: 2px; }
  .ls-nav a, .ls-cats a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: #c8d1cc; text-decoration: none; font-size: 14.5px; font-weight: 600; }
  .ls-nav a:hover, .ls-cats a:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
  .ls-nav a[aria-current], .ls-cats a[aria-current], .ls-cats a[aria-pressed="true"] { background: var(--accent-soft); color: var(--fg); }
  .ls-nav a[aria-current] .ls-ic, .ls-cats a[aria-pressed="true"] { color: var(--accent); }
  .ls-ic { flex: none; display: grid; place-items: center; width: 20px; color: var(--muted); }
  .ls-ic svg { width: 19px; height: 19px; }
  .ls-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ls-n { margin-inline-start: auto; font: 500 11.5px var(--mono); color: var(--dim); }
  .ls-cats a { min-height: 36px; font-size: 14px; }
  .ls-label { margin: 0 0 4px; padding: 0 12px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
  .ls-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 6px; }
  .ls-suggest { width: 100%; min-height: 44px; background: transparent; }
  .ls-suggest svg { width: 14px; height: 14px; }
  .ls-suggest.is-top { flex: none; margin-top: -8px; border-color: rgba(52, 226, 127, .35); color: var(--accent); background: var(--accent-soft); }
  .ls-suggest.is-top:hover { border-color: var(--accent); }
  .ls-discord { padding: 8px 12px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
  .ls-discord:hover { color: var(--fg); }
  /* Header : seulement la recherche, le thème, la langue et le tri ; le reste est dans le menu latéral */
  html[data-theme="ludo"] .topbar { display: flex; align-items: center; }
  html[data-theme="ludo"] .topbar-in { flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; }
  html[data-theme="ludo"] .topbar-in > .logo,
  html[data-theme="ludo"] .topnav > .nav-link,
  html[data-theme="ludo"] .topnav > .nav-menu:not(.theme-menu),
  html[data-theme="ludo"] .topnav > .suggest-btn { display: none !important; }
  html[data-theme="ludo"] .topbar .head-search { max-width: 640px; margin-inline: 0; }
  html[data-theme="ludo"] .topbar-cats { flex: none; border-top: 0; }
  html[data-theme="ludo"] .topbar-cats .wrap { width: auto; max-width: none; padding-inline: 0 var(--gutter); }
  html[data-theme="ludo"] .topbar-cats .cats-row, html[data-theme="ludo"] .topbar-cats .cats-all { display: none; }
  html[data-theme="ludo"] .topbar-cats .cats-in { padding-block: 0; }
  html[data-theme="ludo"] .topbar-cats .sort-pick { border: 0; }
  html[data-theme="ludo"] .footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
}
/* ---- Tablette et téléphone : barre d'onglets en bas */
@media (max-width: 1100px) {
  html[data-theme="ludo"] { --tabs-h: 64px; }
  html[data-theme="ludo"] body:has(> .ludo-tabs) { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); }
  html[data-theme="ludo"] .ludo-tabs {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); padding: 4px 6px env(safe-area-inset-bottom, 0px); box-sizing: border-box;
    background: rgba(13, 17, 15, .97); border-top: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .ludo-tabs a, .ludo-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 11px var(--body); text-decoration: none; cursor: pointer; }
  .ludo-tabs svg { width: 22px; height: 22px; }
  .ludo-tabs span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ludo-tabs [aria-current] { color: var(--accent); font-weight: 700; }
  html[data-theme="ludo"] .topnav .menu-btn { display: none !important; }
  html[data-theme="ludo"] body:has(> .ludo-tabs) .to-top { bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  html[data-theme="ludo"] body:has(> .ludo-tabs) :is(.toasts, .lang-banner) { bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  html[data-theme="ludo"] .app-shelves > .ports-teaser, html[data-theme="ludo"] .app-shelves > .apk-teaser { grid-column: 1 / -1; }
  html[data-theme="ludo"] .ports-teaser, html[data-theme="ludo"] .apk-teaser { margin-top: 20px; }
  html[data-theme="ludo"] .app-shelves > .ports-teaser { margin-top: 36px; }
}
@media (max-width: 560px) {
  html[data-theme="ludo"] .ports-teaser { padding: 18px; gap: 14px; }
  html[data-theme="ludo"] .ports-teaser::before, html[data-theme="ludo"] .at-ic { width: 46px; height: 46px; background-size: 24px; }
  html[data-theme="ludo"] .at-ic svg { width: 24px; height: 24px; }
  html[data-theme="ludo"] .grid:not(.rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}
/* Ludothèque : jaquette d'abord, sans boîte autour (titre et genre en dessous) */
html[data-theme="ludo"] .grid > .card { gap: 10px; overflow: visible; border: 0; border-radius: 0; background: none; }
html[data-theme="ludo"] .grid > .card:hover { transform: none; }
html[data-theme="ludo"] .grid > .card .card-cover, html[data-theme="ludo"] .grid > .card .card-cover::after { border-radius: 14px; }
html[data-theme="ludo"] .grid > .card .card-cover .cover { border-radius: 14px; overflow: hidden; }
html[data-theme="ludo"] .grid > .card:hover .card-cover { transform: translateY(-3px); }
html[data-theme="ludo"] .grid > .card:hover .card-cover::after { box-shadow: inset 0 0 0 2px var(--accent); }
html[data-theme="ludo"] .grid > .card .card-body { padding: 0 2px; }
html[data-theme="ludo"] .grid > .card .card-play.is-off { margin-top: 8px; }
@media (min-width: 1101px) {
  html[data-theme="ludo"] .ludo-side { gap: 12px; padding-top: 14px; }
  .ls-nav a { min-height: 38px; }
  .ls-cats a { min-height: 32px; }
}

/* =================================================================== v41 : header façon barre d'onglets + Ludothèque recadrée
   Le header reprend l'idée de PlayTab (un onglet de navigateur) : une bande plus claire, la recherche en barre d'adresse
   pleine (sans contour), les rubriques en onglets ; l'onglet actif se fond dans la page en dessous. */
:root { --strip: #121815; --field: #1b221f; --field-hover: #212a26; }
html[data-theme="ludo"] { --strip: #111614; }
.topbar { background: var(--strip); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.topbar.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .7); border-bottom-color: var(--line); }
.topbar-cats { background: var(--bg); border-top: 0; border-bottom: 0; }
/* Recherche : un champ plein, comme la barre d'adresse */
.topbar .head-search input { height: 44px; border: 0; border-radius: 10px; background: var(--field); padding-inline: 44px 14px; font-size: 15px; color: var(--fg); box-shadow: inset 0 -2px 0 transparent; transition: background .15s, box-shadow .15s; }
.topbar .head-search input:hover { background: var(--field-hover); }
.topbar .head-search input:focus { background: var(--field-hover); box-shadow: inset 0 -2px 0 var(--accent); }
.topbar .head-search input::placeholder { color: #7d8983; }
.topbar .head-search > svg { inset-inline-start: 15px; width: 17px; height: 17px; color: #7d8983; }
.topbar .head-search kbd { display: none; }
.topbar .head-results { top: calc(100% + 4px); border-color: var(--line); border-radius: 12px; background: var(--field); }
/* Rubriques en onglets (PC, thème classique) */
@media (min-width: 921px) {
  .topbar-in { min-height: 64px; }
  .topnav { align-self: stretch; align-items: flex-end; gap: 2px; }
  .topnav > .nav-link, .topnav > .nav-menu > .nav-link { height: 46px; padding: 0 16px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: none; position: relative; }
  .topnav > .nav-link:hover, .topnav > .nav-menu > .nav-link:hover, .nav-menu[open] > .nav-link { background: rgba(255, 255, 255, .04); }
  .topnav > .nav-link[aria-current], .topnav > .nav-menu > .nav-link[data-current] { background: var(--bg); border-color: var(--line); color: var(--fg); box-shadow: none; }
  .topnav > .nav-link[aria-current]::before, .topnav > .nav-menu > .nav-link[data-current]::before { content: ""; position: absolute; inset-inline: 14px; top: -1px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); }
  .topnav > .nav-menu { align-self: flex-end; }
  .topnav > .nav-menu .nav-pop { top: calc(100% + 6px); }
  .topnav > .langs, .topnav > .theme-menu, .topnav > .btn, .topnav > .menu-btn { align-self: center; }
  .topnav > .theme-menu > .nav-link { height: 40px; width: 40px; padding: 0; justify-content: center; margin: 0; border: 0; border-radius: 10px; }
  .topnav > .theme-menu > .nav-link::before { display: none; }
}
/* Boutons de droite : sans cadre, juste un fond au survol */
.topnav .langs summary, .topnav .theme-menu > summary { border: 0; background: transparent; color: var(--muted); height: 40px; border-radius: 10px; }
.topnav .langs summary:hover, .topnav .langs[open] summary, .topnav .theme-menu > summary:hover, .topnav .theme-menu[open] > summary { background: var(--field); color: var(--fg); }
.topnav .suggest-btn { border: 0; background: var(--field); height: 40px; border-radius: 10px; }
.topnav .suggest-btn:hover { background: var(--field-hover); }
.menu-btn { border: 0; background: var(--field); }
.sort-pick { border: 0; }
.sort-pick select { border: 0; background-color: var(--field); }
.topbar-cats .chip { border-color: var(--line-soft); }
.cats-all > summary { background: var(--field); border-color: transparent; }

/* ---- Ludothèque : menu latéral qui ne déborde plus, contenu plus large, PC Ports / APK sous les jeux */
html[data-theme="ludo"] .wrap { max-width: 1480px; }
html[data-theme="ludo"] .app-shelves { grid-template-columns: minmax(0, 1fr); }
html[data-theme="ludo"] .app-shelves > .ports-teaser { display: none; }
.ludo-teasers { display: none; }
html[data-theme="ludo"] .ludo-teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.lt-card { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--bg-raise); color: var(--fg); text-decoration: none; transition: border-color .15s; }
.lt-card:hover { border-color: #33423a; }
.lt-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.lt-ic svg { width: 26px; height: 26px; }
.lt-tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.lt-tx strong { font: 850 20px/1.15 var(--display); font-stretch: 110%; letter-spacing: -.01em; }
.lt-tx span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.lt-go { flex: none; padding: 10px 14px; border-radius: 10px; background: var(--field); font-weight: 700; font-size: 14px; white-space: nowrap; }
.lt-card:hover .lt-go { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) {
  html[data-theme="ludo"] .ludo-teasers { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .lt-card { padding: 16px; gap: 14px; flex-wrap: wrap; }
  .lt-ic { width: 44px; height: 44px; }
  .lt-go { flex-basis: 100%; text-align: center; }
}
@media (min-width: 1101px) {
  html[data-theme="ludo"] .ludo-side { overflow-x: hidden; scrollbar-width: thin; }
  .ludo-side::-webkit-scrollbar { width: 6px; }
  .ludo-side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
  .ls-nav, .ls-cats { grid-template-columns: minmax(0, 1fr); }
  .ls-nav a, .ls-cats a { min-width: 0; }
  .ls-cats a { justify-content: space-between; gap: 10px; }
  .ls-label { font: 650 12.5px var(--body); letter-spacing: 0; text-transform: none; color: var(--dim); }
  .ls-n { flex: none; font: 500 12px var(--body); font-variant-numeric: tabular-nums; }
  html[data-theme="ludo"] .topbar-in { min-height: 64px; }
  html[data-theme="ludo"] .topbar-cats .sort-pick > span { color: var(--dim); }
}
@media (min-width: 1101px) {
  html[data-theme="ludo"] .topbar-cats { background: transparent; }
  /* Contenu calé à gauche contre le menu latéral : même bord gauche que la recherche */
  html[data-theme="ludo"] body:has(> .ludo-side) .wrap { max-width: 1560px; margin-inline: 0; }
}

/* =================================================================== v42 : PC Ports en Ludothèque (PC) — un seul menu latéral
   Les filtres Système / Type / Plateforme deviennent des menus déroulants au-dessus de la liste. */
.pf-dd-btn { display: none; }
@media (min-width: 921px) {
  html[data-theme="ludo"] .pf { position: relative; top: auto; width: auto; max-height: none; overflow: visible; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 22px; z-index: 20; }
  html[data-theme="ludo"] .pf-body { display: flex; flex-wrap: wrap; gap: 8px; }
  html[data-theme="ludo"] .pf-body fieldset { position: relative; margin: 0; display: block; }
  html[data-theme="ludo"] .pf-body legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
  html[data-theme="ludo"] .pf-dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--field); color: var(--fg); font: 650 14.5px var(--body); cursor: pointer; }
  html[data-theme="ludo"] .pf-dd-btn:hover, html[data-theme="ludo"] .pf-dd-btn[aria-expanded="true"] { background: var(--field-hover); }
  html[data-theme="ludo"] .pf-dd-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
  html[data-theme="ludo"] .pf-dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
  html[data-theme="ludo"] .pf-dd-n { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 12px var(--body); }
  html[data-theme="ludo"] .pf-dd-n[hidden] { display: none; }
  html[data-theme="ludo"] .pp-bar { margin-top: 14px; }
}

/* =================================================================== v42 : première visite — choix du thème avec aperçus animés */
.modal.theme-pick { width: min(780px, calc(100% - 32px)); }
.theme-pick form { padding: clamp(18px, 3vw, 28px); }
.tp-sub { margin: 6px 0 18px; color: var(--muted); font-size: 15px; max-width: 60ch; }
.tp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tp-opt { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 10px 10px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg-raise); color: var(--fg); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.tp-opt:hover { border-color: #3a4a41; }
.tp-opt[aria-pressed="true"] { border-color: var(--accent); background: #0f1a14; }
.tp-name { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; font: 850 18px var(--display); font-stretch: 110%; }
.tp-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.tp-opt[aria-pressed="true"] .tp-check { opacity: 1; transform: none; }
.tp-desc { padding: 0 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.theme-pick .modal-actions { margin-top: 18px; }
/* Aperçus : mini pages dessinées en CSS */
.tp-mini { position: relative; display: flex; height: 190px; overflow: hidden; border-radius: 10px; background: #0a0d0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tp-mini i { display: block; }
.tp-logo { flex: none; width: 14px; height: 11px; border-radius: 3px; background: var(--accent); }
.tp-search { height: 12px; border-radius: 4px; background: #1d2521; }
.tp-hero { position: relative; display: block; height: 58px; border-radius: 7px; background: radial-gradient(circle at 78% 30%, rgba(52, 226, 127, .35), transparent 55%), linear-gradient(120deg, #1b3a27, #0f1a14); }
.tp-hero i { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 9px; border-radius: 3px; background: var(--accent); }
.tp-hero::before { content: ""; position: absolute; left: 10px; bottom: 25px; width: 46%; height: 9px; border-radius: 3px; background: rgba(236, 242, 238, .85); }
.tp-t { height: 30px; border-radius: 5px; background: linear-gradient(150deg, #2c5a3a, #12261a); }
.tp-t:nth-child(3n+2) { background: linear-gradient(150deg, #24515a, #0f2226); }
.tp-t:nth-child(4n+3) { background: linear-gradient(150deg, #4c5a24, #1d240f); }
/* Classique : bande + onglets, catégories, page qui défile et sélection qui passe de jaquette en jaquette */
.tp-mini-classic { flex-direction: column; }
.tpc-bar { flex: none; display: flex; align-items: flex-end; gap: 6px; height: 24px; padding: 0 10px; background: #151b18; border-bottom: 1px solid #222b26; }
.tpc-bar .tp-logo { align-self: center; }
.tpc-bar .tp-search { align-self: center; flex: 1; max-width: 44%; }
.tp-tab { width: 22px; height: 15px; margin-left: 2px; border-radius: 4px 4px 0 0; background: transparent; }
.tp-tab:nth-of-type(3) { margin-left: auto; }
.tp-tab.is-on { background: #0a0d0c; box-shadow: inset 0 2px 0 var(--accent); }
.tp-tab:not(.is-on)::after { content: ""; display: block; width: 14px; height: 3px; margin: 7px auto 0; border-radius: 2px; background: #56625c; }
.tpc-chips { flex: none; display: flex; gap: 5px; padding: 7px 10px; }
.tp-chip { width: 26px; height: 8px; border-radius: 6px; background: #1d2521; }
.tp-chip:first-child { background: #ecf2ee; }
.tp-scroll { display: grid; gap: 8px; padding: 0 10px; animation: tp-scroll 9s ease-in-out infinite; }
.tpc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tpc-grid .tp-t { animation: tp-focus 9s infinite; }
@keyframes tp-scroll { 0%, 18% { transform: none; } 50%, 68% { transform: translateY(-62px); } 100% { transform: none; } }
@keyframes tp-focus { 0%, 7% { box-shadow: 0 0 0 2px #0a0d0c, 0 0 0 4px #ecf2ee; transform: translateY(-2px); } 9%, 100% { box-shadow: none; transform: none; } }
.tpc-grid .tp-t:nth-child(1) { animation-delay: 0.00s; }
.tpc-grid .tp-t:nth-child(2) { animation-delay: 0.75s; }
.tpc-grid .tp-t:nth-child(3) { animation-delay: 1.50s; }
.tpc-grid .tp-t:nth-child(4) { animation-delay: 2.25s; }
.tpc-grid .tp-t:nth-child(5) { animation-delay: 3.00s; }
.tpc-grid .tp-t:nth-child(6) { animation-delay: 3.75s; }
.tpc-grid .tp-t:nth-child(7) { animation-delay: 4.50s; }
.tpc-grid .tp-t:nth-child(8) { animation-delay: 5.25s; }
.tpc-grid .tp-t:nth-child(9) { animation-delay: 6.00s; }
.tpc-grid .tp-t:nth-child(10) { animation-delay: 6.75s; }
.tpc-grid .tp-t:nth-child(11) { animation-delay: 7.50s; }
.tpc-grid .tp-t:nth-child(12) { animation-delay: 8.25s; }

/* Ludothèque : menu latéral (la sélection descend), rangée de jaquettes qui défile, grille */
.tpl-side { position: relative; flex: none; width: 27%; display: flex; flex-direction: column; gap: 6px; padding: 9px 8px; background: #111614; border-right: 1px solid #1c2420; }
.tpl-side .tp-logo { margin-bottom: 4px; }
.tpl-item { position: relative; z-index: 1; height: 7px; width: 78%; border-radius: 3px; background: #3a4640; }
.tpl-cat { width: 60%; background: #2a3430; }
.tpl-gap { height: 4px; }
.tpl-sel { position: absolute; left: 4px; right: 4px; top: 25px; height: 13px; border-radius: 4px; background: rgba(52, 226, 127, .2); animation: tp-side 9s steps(1) infinite; }
@keyframes tp-side { 0% { top: 25px; } 25% { top: 38px; } 50% { top: 51px; } 75% { top: 38px; } }
.tpl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 9px; }
.tpl-main .tp-search { width: 58%; }
.tpl-main .tp-hero { height: 52px; }
.tpl-row { display: block; overflow: hidden; }
.tpl-track { display: flex; gap: 6px; width: max-content; animation: tp-rail 9s ease-in-out infinite; }
.tp-cover { width: 26px; height: 36px; flex: none; }
@keyframes tp-rail { 0%, 15% { transform: none; } 45%, 60% { transform: translateX(-96px); } 90%, 100% { transform: none; } }
.tpl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.tpl-grid .tp-t { height: 22px; }
@media (prefers-reduced-motion: reduce) { .tp-mini *, .tp-mini { animation: none !important; } }
@media (max-width: 640px) {
  .tp-opts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tp-mini { height: 140px; }
  .tp-opt { flex-direction: row; flex-wrap: wrap; }
  .tp-opt .tp-mini { flex-basis: 100%; }
  .tp-sub { font-size: 14px; margin-bottom: 14px; }
}
.tpc-bar, .tpc-chips { position: relative; z-index: 2; }
.tpc-chips { background: #0a0d0c; }
.tp-opt:focus-visible { outline-offset: 2px; }
@media (max-width: 640px) { .tp-name, .tp-desc { flex-basis: 100%; } }

/* =================================================================== v45 : jaquettes plus grandes, image affichée en entier
   L'image n'est plus recadrée : elle tient entière dans la carte, et les bords vides sont remplis par la même image floutée. */
html[data-theme="ludo"] .grid:not(.rail) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 28px 20px; }
html[data-theme="ludo"] .grid.rail { grid-auto-columns: minmax(265px, 300px); }
html[data-theme="ludo"] .card-title { font-size: 16px; }
html[data-theme="ludo"] .grid .cover:has(img):not(.fit-contain)::before { content: ""; position: absolute; inset: -16px; z-index: 0; background: var(--img) center / cover no-repeat; filter: blur(18px) brightness(.5) saturate(1.2); }
html[data-theme="ludo"] .grid .cover:has(img):not(.fit-contain) img { object-fit: contain; }
html[data-theme="ludo"] .grid .cover:has(img) .art { visibility: hidden; }
@media (max-width: 560px) {
  html[data-theme="ludo"] .grid:not(.rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  html[data-theme="ludo"] .grid.rail { grid-auto-columns: minmax(200px, 230px); }
}

/* =================================================================== v46 : chargement plus rapide des longues listes
   Avant que le script range les pages (10 / 25 / 50), seules les 50 premières cartes sont dessinées :
   le navigateur ne peint plus les 800+ jaquettes d'un coup, la page devient utilisable plus tôt. Sans JavaScript, tout reste affiché. */
html.js:not(.paged) #catalog > .card:nth-child(n+51),
html.js:not(.paged) #ports-list > :nth-child(n+51) { display: none; }
/* Admin : dates d'ajout / d'acceptation, étiquette « Proposé par un visiteur » */
.admin-info .meta .added { font-variant-numeric: tabular-nums; }
.admin-info .meta .added.is-accepted { color: var(--accent); }
.tag.tag-visitor { color: #9cc8ff; border-color: rgba(120, 170, 255, .35); }
/* Admin : cases « Autres tags » */
.tag-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.tag-pick legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.tag-boxes { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-boxes label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.tag-boxes label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tag-boxes input { accent-color: var(--accent); margin: 0; }
.tag-boxes label { white-space: nowrap; font-weight: 600; flex-direction: row; }
.tag-boxes label.is-primary { opacity: .45; cursor: default; }
.tag-pick { margin-bottom: 6px; }
.ls-label-2 { margin-top: 12px; }

/* =================================================================== v50 : signalement détaillé + avis au retour d'un jeu */
.modal.report-dlg { width: min(480px, calc(100% - 32px)); }
.report-dlg form { position: relative; }
.report-reasons { border: 0; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px; }
.report-reasons label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.report-reasons label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.report-reasons input { accent-color: var(--accent); margin: 0; flex: none; }
.report-msg { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.report-msg textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: 15px var(--body); resize: vertical; }
.report-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--accent); }
/* Panneau de retour : en bas, ne couvre pas la page */
.fb-sheet { position: fixed; z-index: 70; inset-inline: 12px; bottom: calc(12px + var(--tabs-h, 0px) + env(safe-area-inset-bottom, 0px)); max-width: 420px; margin-inline: auto; box-sizing: border-box; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8); transform: translateY(20px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.fb-sheet.is-on { transform: none; opacity: 1; }
@media (min-width: 761px) { .fb-sheet { inset-inline: auto 20px; bottom: 20px; width: 380px; } }
@media (prefers-reduced-motion: reduce) { .fb-sheet { transition: none; } }
.fb-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.fb-x:hover { background: var(--field, rgba(255,255,255,.06)); color: var(--fg); }
.fb-kicker { margin: 0; font-size: 12.5px; color: var(--muted); }
.fb-title { margin: 2px 40px 10px 0; font: 850 18px/1.2 var(--display); font-stretch: 110%; }
.fb-row { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.fb-row p { margin: 0 0 8px; font-size: 14.5px; font-weight: 650; }
.fb-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-vote { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); color: var(--fg); font: 700 15px var(--body); cursor: pointer; }
.fb-vote[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.fb-stars { display: flex; gap: 4px; }
.fb-star { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #3a4640; font-size: 30px; line-height: 1; cursor: pointer; transition: color .1s, transform .1s; }
.fb-star.is-on { color: #ffc531; }
.fb-star:hover { transform: scale(1.08); }
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.fb-report { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--muted); font-size: 13.5px; }
.fb-report svg { width: 14px; height: 14px; }
.fb-thanks { font-size: 14px; font-weight: 700; color: var(--accent); }
/* Admin : avis des joueurs et détail des signalements */
.tag.tag-mobile { color: #c8d1cc; }
.tag.tag-mobile.is-good { color: var(--accent); border-color: rgba(52, 226, 127, .4); }
.tag.tag-mobile.is-bad { color: var(--danger); border-color: rgba(255, 130, 112, .4); }
.tag.tag-rating { color: #ffc531; border-color: rgba(255, 197, 49, .35); }
.rep-box { margin-top: 8px; padding: 10px 12px; border: 1px solid rgba(255, 130, 112, .25); border-radius: 10px; background: rgba(255, 130, 112, .05); }
.rep-sum { margin: 0 0 4px; font-size: 13.5px; font-weight: 650; color: #ffb3a7; }
.rep-more { font-size: 13px; }
.rep-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.rep-list li { font-size: 13.5px; }
.rep-meta { color: var(--muted); font-size: 12.5px; }
.rep-msg { margin: 3px 0 0; color: var(--fg); }
/* Note des joueurs sur la fiche du jeu */
.stars { position: relative; display: inline-block; color: #3a4640; letter-spacing: 2px; line-height: 1; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; width: var(--r, 0%); overflow: hidden; color: #ffc531; white-space: nowrap; }
.game-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.game-rating .stars { font-size: 18px; }
.game-rating strong { color: var(--fg); font-size: 16px; }
/* Note des joueurs sur les cartes, le Top 10 et « À la une » */
.card-rating { display: inline-flex; align-items: center; gap: 3px; color: #ffc531; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-meta .card-rating { margin-inline-start: 6px; }
.feat-rating { margin: 2px 0 0; }
.feat-rating .card-rating { font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
/* Pastille « Jouable sur mobile » (≥ 75 % de 👍) */
.mobile-badge { position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(8, 12, 10, .82); color: #7cf0b0; font: 700 11px var(--body); letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(52, 226, 127, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.mobile-badge svg { width: 12px; height: 12px; }
.tag.tag-mobile-ok { color: var(--accent); border-color: rgba(52, 226, 127, .45); }
/* Admin : avis des joueurs modifiables */
.fb-edit { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; margin: 4px 0; min-width: 0; }
.fb-edit legend { padding: 0 6px; font-size: 13px; font-weight: 600; }
.fb-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.fb-edit-grid label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.fb-edit-grid .span2 { grid-column: 1 / -1; }
.fb-edit-grid input, .fb-edit-grid select { width: 100%; box-sizing: border-box; }
@media (max-width: 560px) { .fb-edit-grid { grid-template-columns: minmax(0, 1fr); } }
.card .tag-mobile-ok { display: none; } /* sur les cartes, la pastille de la jaquette suffit */

/* v56 · Admin « Base de données » : bandeau, résultat de réparation, journal */
.db-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(227, 207, 116, .4); border-radius: 12px; background: rgba(227, 207, 116, .08); color: var(--warn); font-size: 14px; line-height: 1.45; }
.db-banner strong { color: inherit; }
.db-banner[hidden] { display: none; }
.db-ops td.op-sql { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-word; }
.db-ops td.op-res { white-space: nowrap; font-weight: 700; }
.db-ops tr.op-ok td.op-res { color: var(--accent); }
.db-ops tr.op-deja td.op-res { color: var(--muted, #9aa3ad); }
.db-ops tr.op-erreur td { color: var(--danger); }
#db-hist tr.db-hrow { cursor: pointer; }
#db-hist tr.db-hrow:hover td, #db-hist tr.db-hrow:focus-visible td { background: rgba(255, 255, 255, .04); }
#db-hist tr.is-bad td { color: var(--danger); }
#db-hist .db-ops { margin: 4px 0 8px; }

/* v57 · Icônes au lieu des points verts (tags, sur-titres, listes). Masques SVG : prennent la couleur du texte */
:root {
  --ic-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='1.5' width='7' height='13' rx='1.6'/%3E%3Cpath d='M7 12.2h2'/%3E%3C/svg%3E");
  --ic-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='5.5' r='2.3'/%3E%3Cpath d='M1.8 13.5c.4-2.4 2.1-3.8 4.2-3.8s3.8 1.4 4.2 3.8'/%3E%3Cpath d='M10.6 3.4a2.2 2.2 0 0 1 0 4.3M12.2 9.9c1.1.6 1.8 1.8 2 3.6'/%3E%3C/svg%3E");
  --ic-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.2 14.3 13H1.7z'/%3E%3Cpath d='M8 6.5v3M8 11.4v.1'/%3E%3C/svg%3E");
  --ic-server: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2.5' width='12' height='4.5' rx='1.2'/%3E%3Crect x='2' y='9' width='12' height='4.5' rx='1.2'/%3E%3Cpath d='M4.6 4.75h.01M4.6 11.25h.01'/%3E%3C/svg%3E");
  --ic-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 1.8 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.6l-3.8 2 .7-4.3-3.1-3 4.3-.6z'/%3E%3C/svg%3E");
  --ic-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 14.5V2.2M3.5 2.5h8.2l-1.6 3 1.6 3H3.5'/%3E%3C/svg%3E");
  --ic-pad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 4.5h6.8a3 3 0 0 1 2.9 2.3l.6 3.2a1.9 1.9 0 0 1-3.3 1.6L10.4 10H5.6l-1.2 1.6a1.9 1.9 0 0 1-3.3-1.6l.6-3.2a3 3 0 0 1 2.9-2.3z'/%3E%3Cpath d='M5.2 6.4v2M4.2 7.4h2M10.8 7.3h.01M12 8.3h.01'/%3E%3C/svg%3E");
  --ic-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5.3' r='2.6'/%3E%3Cpath d='M3 14c.5-2.8 2.5-4.3 5-4.3s4.5 1.5 5 4.3'/%3E%3C/svg%3E");
  --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.4 3.2 3.1L13 4.6'/%3E%3C/svg%3E");
  --ic-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2.5h5.4l6.6 6.6-5 5-6.6-6.6z'/%3E%3Cpath d='M5 5.5h.01'/%3E%3C/svg%3E");
  --ic-monitor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.8' y='2.5' width='12.4' height='8.5' rx='1.3'/%3E%3Cpath d='M5.5 14h5M8 11v3'/%3E%3C/svg%3E");
  --ic-wifioff: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l12 12M5.4 9.6a3.8 3.8 0 0 1 5 0M2.6 6.8a7.8 7.8 0 0 1 3-1.8M9.6 4.8a7.8 7.8 0 0 1 3.8 2M8 12.5h.01'/%3E%3C/svg%3E");
  --ic-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.3'/%3E%3Cpath d='m10.6 5.4-1.6 3.6-3.6 1.6 1.6-3.6z'/%3E%3C/svg%3E");
  --ic-chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='8' height='8' rx='1.2'/%3E%3Cpath d='M6 1.8V4M10 1.8V4M6 12v2.2M10 12v2.2M1.8 6H4M1.8 10H4M12 6h2.2M12 10h2.2'/%3E%3C/svg%3E");
}
.tag::before { content: none; }
.tag-multi::before, .tag-mobile-ok::before, .tag-mobile::before, .tag-warn::before, .tag-servers::before, .tag-mirror::before, .tag-rating::before, .tag-report::before, .tag-steam::before, .tag-visitor::before, .tag-ok::before, .eyebrow::before, .install-points li::before {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 0; box-shadow: none; transform: none; background: currentColor !important;
  -webkit-mask: var(--ic, var(--ic-tag)) center / contain no-repeat; mask: var(--ic, var(--ic-tag)) center / contain no-repeat; }
.tag-multi { --ic: var(--ic-users); } .tag-mobile-ok, .tag-mobile { --ic: var(--ic-phone); } .tag-warn { --ic: var(--ic-alert); }
.tag-servers, .tag-mirror { --ic: var(--ic-server); } .tag-rating { --ic: var(--ic-star); } .tag-report { --ic: var(--ic-flag); }
.tag-steam { --ic: var(--ic-pad); } .tag-visitor { --ic: var(--ic-user); } .tag-ok { --ic: var(--ic-check); border-color: rgba(52, 226, 127, .35); color: var(--accent); }
.tag.tag-mobile-ok::before { margin-inline-end: 0; }
.eyebrow::before { width: 14px; height: 14px; color: var(--accent); }
.eyebrow { --ic: var(--ic-tag); } .eyebrow.ic-monitor { --ic: var(--ic-monitor); } .eyebrow.ic-offline { --ic: var(--ic-wifioff); } .eyebrow.ic-404 { --ic: var(--ic-compass); } .eyebrow.ic-chip { --ic: var(--ic-chip); }
.eyebrow::before { background: var(--accent) !important; }
.install-points li { --ic: var(--ic-check); } .install-points li::before { color: var(--accent); background: var(--accent) !important; transform: translateY(2px); }
.ports-teaser .eyebrow::before, .apk-eyebrow::before { display: none; }
.fb-vote svg { width: 18px; height: 18px; flex: none; }
/* Pastille mobile dans le carrousel « À la une » : à côté de la note, pas sur l'image */
.feat-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.feat-rating .mobile-badge { position: static; font-size: 12px; padding: 4px 10px 4px 8px; }
.feat-rating .mobile-badge svg { width: 13px; height: 13px; }

/* v58 · PC : arrivée sur « Tous les jeux » → recherche agrandie et mise en avant + lettres A-Z dessous */
.az-bar { display: none; }
@media (min-width: 1101px) and (hover: hover) {
  .topbar .head-search { transition: max-width .35s cubic-bezier(.2, .8, .2, 1); }
  .topbar .head-search input { transition: border-color .2s, background .2s, box-shadow .25s, padding .25s, font-size .25s; }
  .topbar.is-catalog .head-search, html[data-theme="ludo"] .topbar.is-catalog .head-search { max-width: min(980px, 100%); }
  .topbar.is-catalog .head-search input { padding-block: 12px; font-size: 16px; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 30px -12px rgba(0, 0, 0, .7); }
  .topbar.is-catalog .head-search > svg { color: var(--accent); }
  .az-bar {
    display: block; position: absolute; inset-inline: 0; top: 100%; z-index: 1;
    background: var(--strip, rgba(9, 11, 10, .96)); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .8);
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .topbar.is-catalog .az-bar { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .25s, transform .25s; }
  .az-in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 8px var(--gutter, 24px) 10px; }
  .az-k { min-width: 26px; height: 30px; padding: 0 5px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #c8d1cc; font: 700 13px var(--mono); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
  .az-k:hover:not(:disabled) { background: rgba(255, 255, 255, .06); color: var(--fg); }
  .az-k[aria-pressed="true"], .az-k[aria-pressed="true"]:hover { background: var(--accent); color: #062012; border-color: var(--accent); }
  .az-k:disabled { color: var(--dim); opacity: .35; cursor: default; }
  .az-k:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .az-all { padding: 0 12px; margin-inline-end: 6px; font-family: var(--body); }
}
@media (min-width: 1101px) and (hover: hover) {
  .topbar-in { position: relative; }
  .topbar.hs-float .head-search, html[data-theme] .topbar.hs-float .head-search { position: absolute; top: 50%; translate: 0 -50%; margin: 0; max-width: none; z-index: 2; transition: left .42s cubic-bezier(.2, .8, .2, 1), width .42s cubic-bezier(.2, .8, .2, 1); }
  .topbar .topnav { transition: opacity .25s, visibility 0s; }
  .topbar.is-catalog .topnav { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  .az-in { width: var(--az-w, auto); max-width: 100%; margin-inline: auto; justify-content: center; padding-inline: 0; box-sizing: border-box; }
  .az-bar > .sort-pick { position: absolute; inset-inline-end: var(--gutter, 24px); top: 50%; translate: 0 -50%; border: 0; padding: 0; }
  .az-bar > .sort-pick > span { color: var(--dim); }
}
/* « Tous les jeux commençant par Y » */
.az-title { font-size: .62em; font-weight: 700; font-stretch: 100%; letter-spacing: 0; white-space: nowrap; }
.az-title-tx { color: var(--muted); }
.az-title-l { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .3em; margin-inline-start: .15em; border-radius: .3em; background: var(--accent); color: #062012; font-weight: 900; vertical-align: .08em; }
.az-title.is-num .az-title-l { background: transparent; color: var(--muted); min-width: 0; padding: 0; margin: 0; font-weight: 700; }
.az-title.is-pop .az-title-l { animation: az-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes az-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .topbar.hs-float .head-search { transition: none; } .az-title.is-pop .az-title-l { animation: none; } }
@media (min-width: 1101px) and (hover: hover) { .az-bar > .sort-pick > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 1101px) and (hover: hover) {
  .az-in { flex-wrap: nowrap; }
  .az-k { flex: 0 1 26px; min-width: 18px; padding: 0; }
  .az-all { flex: none; padding: 0 10px; }
}
@media (min-width: 1101px) and (max-width: 1360px) and (hover: hover) { .az-in { gap: 0; } .az-k { min-width: 15px; font-size: 12px; } .az-all { padding: 0 8px; margin-inline-end: 2px; } }
/* v60 · Panneau d'avis : plusieurs jeux sans avis → flèches « 1 / 3 » */
.fb-nav { position: absolute; top: 10px; inset-inline-end: 48px; display: inline-flex; align-items: center; gap: 2px; }
.fb-nav[hidden] { display: none; }
.fb-nav-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--fg); cursor: pointer; }
.fb-nav-btn svg { width: 14px; height: 14px; }
.fb-nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.fb-nav-btn:disabled { opacity: .3; cursor: default; }
.fb-pos { min-width: 42px; text-align: center; font: 600 12px var(--mono); color: var(--muted); }
.fb-sheet.is-swap .fb-title, .fb-sheet.is-swap .fb-kicker { animation: fb-swap .3s ease; }
@keyframes fb-swap { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.fb-sheet:has(.fb-nav:not([hidden])) .fb-kicker { padding-inline-end: 130px; }
@media (prefers-reduced-motion: reduce) { .fb-sheet.is-swap .fb-title, .fb-sheet.is-swap .fb-kicker { animation: none; } }
/* v61 · Jaquette du jeu dans le panneau d'avis */
.fb-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fb-head-tx { min-width: 0; flex: 1; }
.fb-cover { flex: none; position: relative; width: 104px; aspect-ratio: 460 / 215; overflow: hidden; border-radius: 10px; background: hsl(var(--h, 150) 45% 22%); box-shadow: 0 0 0 1px var(--line); }
.fb-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-art { position: absolute; inset: 0; display: grid; place-items: center; font: 900 22px var(--display); color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, hsl(var(--h, 150) 55% 30%), hsl(calc(var(--h, 150) + 20) 50% 16%)); }
.fb-sheet.is-swap .fb-cover { animation: fb-swap .3s ease; }
.fb-sheet .fb-title { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fb-sheet:has(.fb-nav:not([hidden])) .fb-kicker { padding-inline-end: 0; }
.fb-sheet:has(.fb-nav:not([hidden])) .fb-head { padding-top: 34px; }
.fb-sheet:not(:has(.fb-nav:not([hidden]))) .fb-head { padding-inline-end: 34px; }
@media (max-width: 420px) { .fb-cover { width: 84px; } }

/* v63 · Bouton X (Twitter) du header, bien en évidence */
.x-follow { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border-radius: 999px; background: #f2f5f3; color: #0b0d0c; font: 700 14px var(--body); text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 6px 18px -8px rgba(0, 0, 0, .8); transition: background .15s, transform .15s; }
.x-follow svg { width: 16px; height: 16px; flex: none; }
.x-follow:hover { background: #fff; transform: translateY(-1px); }
.x-follow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { .x-follow { width: 38px; padding: 0; justify-content: center; } .x-follow span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.topnav > a.x-follow, html[data-theme] .topnav > a.x-follow { display: inline-flex !important; }
html .topbar .topnav a.x-follow { align-self: center; color: #0b0d0c !important; background: #f2f5f3 !important; border: 0 !important; border-radius: 999px !important; opacity: 1; }
html .topbar .topnav a.x-follow:hover { background: #fff !important; }
html .topbar .topnav a.x-follow svg { color: #0b0d0c; }
@media (max-width: 760px) { html .topbar .topnav a.x-follow { width: 40px; height: 40px; min-width: 40px; } html .topbar .topnav a.x-follow svg { width: 17px; height: 17px; } }

/* v64 · Téléphone / tablette : même principe que sur PC en arrivant sur « Tous les jeux »
   (le logo et le bouton X s'effacent, la recherche prend toute la largeur et s'allume, bande de lettres à faire défiler dessous) */
@media (max-width: 1100px), (hover: none) {
  .topbar-in > .logo { max-width: 220px; transition: max-width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, margin .35s; }
  .topbar .topnav { max-width: 220px; transition: max-width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
  .topbar.is-catalog .topbar-in > .logo { max-width: 0; opacity: 0; margin: 0; overflow: hidden; }
  .topbar.is-catalog .topnav { max-width: 0; opacity: 0; overflow: hidden; pointer-events: none; }
  .topbar.is-catalog .topbar-in { gap: 0; }
  .topbar .head-search { transition: flex-basis .35s, max-width .35s; }
  .topbar.is-catalog .head-search, html[data-theme] .topbar.is-catalog .head-search { flex: 1 1 100%; max-width: none; margin-inline: 0; }
  .topbar .head-search input { transition: border-color .2s, box-shadow .25s, background .2s; }
  .topbar.is-catalog .head-search input { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px var(--accent-soft); }
  .topbar.is-catalog .head-search > svg { color: var(--accent); }
  .az-bar {
    display: block; position: absolute; inset-inline: 0; top: 100%; z-index: 1;
    background: var(--strip, rgba(9, 11, 10, .97)); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .8);
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .topbar.is-catalog .az-bar { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .25s, transform .25s; }
  .az-in {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 8px var(--gutter, 16px); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .az-in::-webkit-scrollbar { display: none; }
  .az-k { flex: none; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--field, rgba(255, 255, 255, .04)); color: #d6ddd9; font: 700 14px var(--mono); scroll-snap-align: center; }
  .az-k[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #062012; }
  .az-k:disabled { opacity: .3; }
  .az-all { position: sticky; inset-inline-start: 0; z-index: 1; padding: 0 12px; font-family: var(--body); box-shadow: 8px 0 10px -4px var(--strip, #111614); }
  .az-all:not([aria-pressed="true"]) { background: var(--strip, #111614); }
}
@media (max-width: 1100px), (hover: none) {
  .az-in .az-all { background-color: #111614 !important; box-shadow: calc(-1 * var(--gutter, 16px) - 12px) 0 0 #111614, 10px 0 12px -6px #111614; border-color: var(--line); }
  html[data-theme] .az-in .az-all[aria-pressed="true"] { background-color: var(--accent) !important; color: #062012; border-color: var(--accent); }
  .az-title { display: block; margin-top: 4px; }
}
/* v65 · Téléphone : le tri passe sous la ligne des catégories (il ne la recouvre plus) */
@media (max-width: 760px) {
  .topbar-cats .cats-in, html[data-theme] .topbar-cats .cats-in { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  .topbar-cats .cats-row { flex: 1 1 100%; }
  .topbar-cats .sort-pick, html[data-theme] .topbar-cats .sort-pick { margin-inline-start: auto; padding: 0; border: 0; }
  .topbar-cats .sort-pick > span, html[data-theme] .topbar-cats .sort-pick > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 13px; color: var(--dim); }
  .topbar-cats .sort-pick select { height: 32px; max-width: none; font-size: 13px; }
}

/* v66 · Filtres en cours dans la barre de recherche (× pour retirer) + « Tout effacer » */
.af { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; z-index: 2; display: flex; align-items: center; gap: 4px; max-width: 70%; }
.af[hidden] { display: none; }
.af-chip, .af-reset { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px 0 10px; border-radius: 999px; font: 600 12.5px var(--body); white-space: nowrap; cursor: pointer; animation: af-in .22s ease; }
.af-chip { min-width: 0; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent); }
.af-chip span { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.af-chip svg, .af-reset svg { flex: none; width: 13px; height: 13px; }
@media (hover: hover) { .af-chip:hover { background: var(--accent); color: #062012; } }
.af-reset { padding: 0 10px 0 8px; border: 1px solid var(--line); background: var(--bg-raise, rgba(255, 255, 255, .04)); color: var(--muted); }
@media (hover: hover) { .af-reset:hover { border-color: var(--fg); color: var(--fg); } }
.af-letter span { font-family: var(--mono); font-weight: 800; }
.head-search.has-af kbd { display: none; }
.head-search.has-af input::-webkit-search-cancel-button { display: none; }
@keyframes af-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .af { gap: 3px; inset-inline-end: 5px; }
  .af-chip, .af-reset { height: 30px; font-size: 12px; }
  .af-chip span { max-width: 74px; }
  .af-reset { width: 30px; padding: 0; justify-content: center; }
  .af-reset span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .af-chip, .af-reset { animation: none; } }

/* v67 · Dé « un jeu au hasard », collé à droite de la barre de recherche (la suit aussi quand elle se centre) */
.head-search { overflow: visible; }
.rand-btn { position: absolute; inset-inline-start: calc(100% + 8px); top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--field, var(--bg-raise)); color: var(--fg); text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.rand-btn svg { width: 22px; height: 22px; }
.rand-btn:hover { border-color: var(--accent); color: var(--accent); }
.rand-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rand-btn.is-rolling svg { animation: dice-roll .38s cubic-bezier(.3, .7, .4, 1); }
@keyframes dice-roll { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(200deg) scale(.8); } 100% { transform: rotate(360deg) scale(1); } }
/* place réservée à droite de la barre pour le dé */
.topbar .head-search, html[data-theme] .topbar .head-search { margin-inline-end: 52px; }
.topbar.hs-float .head-search, html[data-theme] .topbar.hs-float .head-search { margin-inline-end: 0; }
@media (max-width: 1100px), (hover: none) {
  .topbar .head-search, html[data-theme] .topbar .head-search, html[data-theme] .topbar.is-catalog .head-search { margin-inline-end: 50px; }
  .rand-btn { width: 42px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .rand-btn.is-rolling svg { animation: none; } }

/* v68 · Dé plus joli et animé : petit balancement de temps en temps, penche au survol, roule au clic */
.rand-btn { border: 0; background: transparent; overflow: visible; }
.rand-btn:hover { background: transparent; }
.rand-btn .dice { display: grid; place-items: center; width: 34px; height: 34px; filter: drop-shadow(0 4px 8px rgba(52, 226, 127, .28)); animation: dice-idle 7s ease-in-out 3s infinite; transform-origin: 50% 60%; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), filter .2s; }
.rand-btn svg { width: 34px; height: 34px; overflow: visible; }
.rand-btn .dice-depth { fill: #0e6b37; }
.rand-btn .dice-shine { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.rand-btn .dice-pips { fill: #062012; }
.rand-btn:hover .dice, .rand-btn:focus-visible .dice { animation: none; transform: rotate(-14deg) scale(1.1); filter: drop-shadow(0 6px 12px rgba(52, 226, 127, .45)); }
.rand-btn:active .dice { transform: rotate(-14deg) scale(.95); }
.rand-btn.is-rolling .dice { animation: dice-roll .62s cubic-bezier(.25, .7, .35, 1) forwards; }
.rand-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
@keyframes dice-idle { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-12deg); } 94% { transform: rotate(9deg); } 97% { transform: rotate(-4deg); } }
@keyframes dice-roll {
  0% { transform: none; }
  25% { transform: translateY(-9px) rotate(-200deg) scale(1.08); }
  50% { transform: translateY(0) rotate(-380deg) scale(.95); }
  70% { transform: translateY(-4px) rotate(-470deg) scale(1.04); }
  100% { transform: translateY(0) rotate(-540deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .rand-btn .dice { animation: none !important; transition: none; } }

/* ======================================================================
   v69 · Comptes et PlayTab Premium
   ====================================================================== */
:root { --gold: #ffcf4a; --gold-soft: rgba(255, 207, 74, .14); }
/* --- Header : « Premium » (couronne) et compte */
.prem-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 11px; border-radius: 999px; background: linear-gradient(135deg, #ffe08a, #ffbf2e); color: #2a1d00; font: 800 13.5px var(--body); text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(255, 191, 46, .7); transition: transform .15s, box-shadow .15s; }
.prem-btn svg { width: 15px; height: 15px; }
.prem-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(255, 191, 46, .9); }
.acct-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font: 700 13.5px var(--body); text-decoration: none; white-space: nowrap; }
.acct-btn svg { width: 17px; height: 17px; }
.acct-btn:hover { border-color: var(--accent); }
.acct-btn.is-in { width: 38px; padding: 0; justify-content: center; border-radius: 50%; overflow: visible; }
.acct-btn.is-in img, .acct-ini { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.acct-ini { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.acct-btn.is-premium { border: 2px solid var(--gold); }
.acct-btn-crown { position: absolute; top: -8px; inset-inline-end: -6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #2a1d00; box-shadow: 0 0 0 2px var(--bg); }
.acct-btn-crown svg { width: 11px; height: 11px; }
.topnav > a.acct-btn, .topnav > a.prem-btn, html[data-theme] .topnav > a.acct-btn, html[data-theme] .topnav > a.prem-btn { display: inline-flex !important; align-self: center; }
@media (max-width: 1100px) { .prem-btn span { display: none; } .prem-btn { width: 38px; padding: 0; justify-content: center; } .acct-btn:not(.is-in) span { display: none; } .acct-btn:not(.is-in) { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 560px) { .topnav .prem-btn { display: none !important; } }

/* --- Fenêtre de connexion et boutons Google / Discord */
.login-dlg { max-width: 400px; }
.login-dlg-in { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }
.login-dlg h2 { margin: 6px 0 0; font-size: 22px; }
.modal-x { position: absolute; top: -6px; inset-inline-end: -6px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.acct-login-ic svg { width: 48px; height: 48px; }
.login-btns { display: grid; gap: 10px; width: 100%; margin: 14px 0 6px; }
.login-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; font: 700 15px var(--body); text-decoration: none; transition: transform .15s, filter .15s; }
.login-btn svg { width: 20px; height: 20px; flex: none; }
.login-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.login-google { background: #fff; color: #1f1f1f; }
.login-discord { background: #5865f2; color: #fff; }
.login-dev { border: 1px dashed var(--line); color: var(--muted); }
.acct-fine { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }
.acct-fine a { color: var(--muted); }
.acct-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 130, 112, .1); color: var(--danger); font-size: 14px; }

/* --- Page Premium */
.prem-page { padding-bottom: 40px; }
.prem-hero { position: relative; overflow: hidden; margin: 18px 0 26px; padding: clamp(34px, 6vw, 70px) clamp(20px, 5vw, 60px); border-radius: 26px; border: 1px solid rgba(255, 207, 74, .25); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 207, 74, .16), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(52, 226, 127, .14), transparent 60%), var(--card); text-align: center; }
.prem-hero h1 { margin: 10px auto 12px; max-width: 18ch; font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.02em; }
.prem-lead { margin: 0 auto 24px; max-width: 56ch; color: #c9d4ce; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; }
.prem-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font: 800 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.prem-kicker svg, .prem-already svg { width: 16px; height: 16px; }
.prem-already { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.prem-already a { color: var(--fg); }
.prem-glow { position: absolute; inset: auto -20% -60% -20%; height: 70%; background: radial-gradient(closest-side, rgba(255, 207, 74, .12), transparent); pointer-events: none; animation: prem-glow 6s ease-in-out infinite alternate; }
@keyframes prem-glow { from { transform: translateY(0); opacity: .7; } to { transform: translateY(-20px); opacity: 1; } }
.prem-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 40px; }
.prem-perk { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.prem-perk h2 { margin: 12px 0 6px; font-size: 18px; }
.prem-perk p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.prem-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.prem-ic svg { width: 24px; height: 24px; }
.prem-perk:first-child .prem-ic { background: var(--gold-soft); color: var(--gold); }
.prem-plans { text-align: center; margin-bottom: 40px; scroll-margin-top: 90px; }
.prem-plans h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); }
.prem-free { margin: 0 auto 22px; max-width: 60ch; color: var(--muted); }
.prem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; text-align: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.plan.is-best { border: 2px solid var(--accent); background: linear-gradient(180deg, rgba(52, 226, 127, .08), transparent 40%), var(--card); transform: translateY(-6px); box-shadow: 0 20px 50px -24px rgba(52, 226, 127, .5); }
.plan.is-current { border-color: var(--gold); }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 50%; translate: -50% 0; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #062012; font: 800 12px var(--body); white-space: nowrap; }
.plan h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.plan-save { padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font: 800 12px var(--mono); }
.plan-price { margin: 14px 0 2px; color: var(--muted); }
.plan-price strong { color: var(--fg); font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: -.02em; }
.plan-note { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
/* Conditions de renouvellement sous le bouton d'abonnement */
.plan-renew { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.plan-pass .plan-renew { text-align: left; }
.plan .btn-block { width: 100%; justify-content: center; min-height: 46px; }
.plan-cur { border: 1px solid var(--gold); color: var(--gold); cursor: default; }
.prem-status { min-height: 22px; margin: 14px 0 0; color: var(--muted); }
.prem-secure { display: inline-flex; align-items: center; gap: 8px; max-width: 62ch; margin: 8px auto 0; color: var(--dim); font-size: 13px; text-align: start; }
.prem-secure svg { flex: none; width: 18px; height: 18px; }
.prem-manage { margin: 10px 0 0; }
@media (max-width: 860px) { .prem-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } .plan.is-best { transform: none; order: -1; } }
@media (prefers-reduced-motion: reduce) { .prem-glow { animation: none; } }

/* --- Encart « Réservé à Premium » */
.prem-lock { display: grid; justify-items: center; gap: 6px; max-width: 460px; margin: 10px auto; padding: 28px 22px; border-radius: 18px; border: 1px dashed rgba(255, 207, 74, .45); background: var(--gold-soft); text-align: center; }
.prem-lock h3 { margin: 6px 0 0; }
.prem-lock p { margin: 0 0 10px; color: var(--muted); }
.prem-lock-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #2a1d00; }
.prem-lock-ic svg { width: 22px; height: 22px; }

/* --- Page « Mon compte » */
.acct-page { padding-block: 18px 40px; }
.acct-login { display: grid; justify-items: center; gap: 4px; max-width: 440px; margin: 30px auto; padding: 32px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); text-align: center; }
.acct-login h1 { margin: 6px 0 0; font-size: 26px; }
.acct-lead { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.acct-prem-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--gold); font-weight: 700; text-decoration: none; }
.acct-prem-link svg { width: 15px; height: 15px; }
.acct-avatar { position: relative; flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 900 28px var(--display); }
.acct-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.acct-avatar.is-premium { box-shadow: 0 0 0 3px var(--gold); }
.acct-crown { position: absolute; top: -6px; inset-inline-end: -4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #2a1d00; box-shadow: 0 0 0 3px var(--bg); }
.acct-crown svg { width: 15px; height: 15px; }
.acct-id { flex: 1; min-width: 0; }
.acct-id h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); overflow-wrap: anywhere; }
.acct-id p { margin: 4px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.acct-tier { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font: 700 13px var(--body); }
.acct-tier.is-premium { border-color: transparent; background: var(--gold-soft); color: var(--gold); }
.acct-tier svg { width: 14px; height: 14px; }
.acct-plan { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255, 207, 74, .35); background: linear-gradient(120deg, var(--gold-soft), transparent 70%), var(--card); }
.acct-plan h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; }
.acct-plan h2 svg { width: 18px; height: 18px; color: var(--gold); }
.acct-plan p { margin: 0; color: var(--muted); font-size: 14px; }
.acct-plan .btn svg { width: 15px; height: 15px; margin-inline-end: 4px; }
.acct-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.acct-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 700 14.5px var(--body); cursor: pointer; }
.acct-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.acct-lock { width: 12px; height: 12px; color: var(--gold); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.acct-tile { display: grid; gap: 4px; color: var(--fg); text-decoration: none; }
.acct-tile-cover { position: relative; overflow: hidden; aspect-ratio: 460 / 215; border-radius: 12px; background: linear-gradient(135deg, hsl(var(--h, 150) 50% 26%), hsl(calc(var(--h, 150) + 20) 45% 14%)); }
.acct-tile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acct-tile-art { position: absolute; inset: 0; display: grid; place-items: center; font: 900 26px var(--display); color: rgba(255, 255, 255, .8); }
.acct-tile strong { font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-tile span:last-child { color: var(--dim); font-size: 12.5px; }
.acct-tile:hover .acct-tile-cover { outline: 2px solid var(--accent); }
.acct-empty { grid-column: 1 / -1; margin: 10px 0; color: var(--muted); }
.acct-note { margin: 0 0 12px; color: var(--dim); font-size: 13px; }
.acct-h3 { margin: 22px 0 10px; font-size: 16px; }
.coll-new { display: flex; gap: 8px; margin-bottom: 16px; }
.coll-new input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise); color: var(--fg); font-size: 15px; }
.coll-card { margin-bottom: 18px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.coll-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.coll-head h3 { margin: 0; font-size: 17px; }
.coll-n { flex: 1; color: var(--dim); font: 500 12.5px var(--mono); }
.linklike.is-danger { color: var(--danger); }
.stats-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat-card { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3vw, 30px); }
.st-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.st-bars i { flex: 1; min-height: 3px; border-radius: 3px; background: var(--line); }
.st-bars i.is-on { background: var(--accent); }
.st-top { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 6px; }
.st-top li { counter-increment: st; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.st-top li::before { content: counter(st); width: 22px; color: var(--accent); font: 800 14px var(--mono); }
.st-top li strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-top li span { color: var(--muted); font: 600 13px var(--mono); }
@media (max-width: 560px) { .stats-cards { grid-template-columns: 1fr; } .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acct-tier { order: 3; } }

/* --- Fiche d'un jeu : favori et collection */
.fav-btn svg, .coll-btn svg { width: 18px; height: 18px; }
.fav-btn[aria-pressed="true"] { color: #ff6b8b; border-color: rgba(255, 107, 139, .45); }
.fav-btn[aria-pressed="true"] svg path { fill-opacity: 1; }
.fav-btn.is-pop svg { animation: fav-pop .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes fav-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: none; } }
.coll-pick { position: relative; display: inline-block; }
.coll-btn { position: relative; }
.coll-pop { position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline-start: 0; width: 260px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .8); }
.coll-pop-t { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.coll-pop-list { display: grid; gap: 4px; }
.coll-pop-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; cursor: pointer; }
.coll-pop-item:hover { background: rgba(255, 255, 255, .05); }
.coll-pop-item input { width: 17px; height: 17px; accent-color: var(--accent); }
.coll-pop-new { margin-top: 4px; padding: 9px; border: 1px dashed var(--line); border-radius: 9px; background: transparent; color: var(--accent); font: 700 13.5px var(--body); cursor: pointer; text-align: start; }
.coll-pop-lock { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .fav-btn.is-pop svg { animation: none; } }

/* --- Page Confidentialité */
.legal-page { max-width: 760px; padding-bottom: 40px; }
.legal-page h1 { margin: 10px 0 4px; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 40px); }
.legal-updated { margin: 0 0 22px; color: var(--dim); font: 500 13px var(--mono); }
.legal-page h2 { margin: 26px 0 8px; font-size: 19px; }
.legal-page p { margin: 0 0 10px; color: #c9d4ce; line-height: 1.65; }
html .topbar .topnav a.prem-btn { color: #2a1d00 !important; background: linear-gradient(135deg, #ffe08a, #ffbf2e) !important; border: 0 !important; border-radius: 999px !important; }
html .topbar .topnav a.acct-btn { color: var(--fg) !important; border-radius: 999px !important; }
@media (min-width: 900px) { .prem-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Menu latéral / menu mobile : carte PlayTab Premium */
.ls-prem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 207, 74, .35); background: linear-gradient(120deg, var(--gold-soft), transparent); color: var(--fg); text-decoration: none; }
.ls-prem svg { flex: none; width: 20px; height: 20px; color: var(--gold); }
.ls-prem span { display: grid; min-width: 0; }
.ls-prem strong { font-size: 14px; }
.ls-prem small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-prem:hover { border-color: var(--gold); }
.ms-acct { display: grid; gap: 8px; margin-bottom: 10px; }
.ms-acct-link { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--fg); font-weight: 700; text-decoration: none; }
/* Admin : membres */
.mem-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mem-kpi { padding: 14px 16px; }
.mem-kpi span { display: block; color: var(--muted); font-size: 13px; }
.mem-kpi strong { font-size: 26px; }
.mem-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.mem-tools input { flex: 0 1 320px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise); color: var(--fg); }
#mem-table td { vertical-align: middle; }
#mem-table td.is-ok { color: var(--gold); font-weight: 600; }
#mem-table .btn-sm { margin: 2px 4px 2px 0; }
#mem-table .is-danger { color: var(--danger); }
/* Header plus chargé (Premium + compte) : on garde de la place pour la recherche */
@media (max-width: 760px) { html .topbar .topnav > a.prem-btn { display: none !important; } }
@media (max-width: 1360px) { html .topbar .topnav a.x-follow { width: 38px; padding: 0; justify-content: center; } html .topbar .topnav a.x-follow span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 400px) { .topbar .acct-btn:not(.is-in) { width: 34px; height: 34px; } .topbar .topnav { gap: 4px; } }
/* Mon compte : connexions liées (Google / Discord) */
.acct-links { display: grid; gap: 8px; max-width: 620px; margin-bottom: 18px; }
.acct-link-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.acct-link-row form { margin: 0; }
.acct-link-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; }
.acct-link-ic.is-discord { background: #5865f2; color: #fff; }
.acct-link-ic svg { width: 20px; height: 20px; }
.acct-link-tx { flex: 1; min-width: 0; display: grid; }
.acct-link-tx small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-link-ok { color: var(--accent); font-weight: 800; }
.acct-ok { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }

/* v74 : retour du paiement Stripe */
.acct-msg { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600; font-size: 14.5px; }

/* v75 : pastille « Sauvegarde » (membres Premium, jeux du lecteur play.playtab.fun) */
.cloud-badge { position: absolute; z-index: 3; bottom: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(8, 12, 10, .82); color: #ffd36b; font: 700 11px var(--body); letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(255, 200, 80, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.cloud-badge svg { width: 13px; height: 13px; }
.feat-rating .cloud-badge { position: static; font-size: 12px; padding: 4px 10px 4px 8px; }
.tag-cloud { border-color: rgba(255, 200, 80, .45); color: #ffd36b; }
.card .tag-cloud { display: none; }

/* v75 : cœur « favori » sur les cartes (catalogue, recherche, sections) */
.card-fav { position: absolute; z-index: 4; top: 8px; inset-inline-start: 8px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(9, 11, 10, .78); color: #fff; cursor: pointer; opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s, color .15s, border-color .15s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card-fav svg { width: 16px; height: 16px; fill-opacity: 0; transition: fill-opacity .15s; }
.card:hover .card-fav, .card-fav:focus-visible, .card-fav[aria-pressed="true"] { opacity: 1; transform: none; }
.card-fav:hover { color: #ff6b8b; border-color: rgba(255, 107, 139, .5); }
.card-fav[aria-pressed="true"] { color: #ff6b8b; border-color: rgba(255, 107, 139, .45); }
.card-fav[aria-pressed="true"] svg { fill-opacity: 1; }
.card-fav.is-pop svg { animation: fav-pop .4s cubic-bezier(.3, 1.8, .5, 1); }
.card:has(.new-badge) .card-fav, .card:has(.moved-badge) .card-fav { top: 38px; }
.card.is-moved .card-fav { display: none; }
@media (hover: none) { .card-fav { opacity: .92; transform: none; } }
@media (max-width: 640px) { .card-fav { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .card-fav.is-pop svg { animation: none; } }
#hq-list li:has(.hr-fav) { position: relative; }
#hq-list li:has(.hr-fav) > a { padding-inline-end: 48px; }
.hr-fav { position: absolute; top: 50%; inset-inline-end: 10px; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.hr-fav svg { width: 15px; height: 15px; fill-opacity: 0; transition: fill-opacity .15s; }
.hr-fav:hover, .hr-fav[aria-pressed="true"] { color: #ff6b8b; border-color: rgba(255, 107, 139, .45); }
.hr-fav[aria-pressed="true"] svg { fill-opacity: 1; }
.hr-fav.is-pop svg { animation: fav-pop .4s cubic-bezier(.3, 1.8, .5, 1); }

/* v76 : « Partie sauvegardée » (lecteur, membres Premium) */
.save-tip { position: absolute; z-index: 30; inset-inline-start: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(8, 12, 10, .86); color: #ffd36b; font: 700 12px var(--body); box-shadow: 0 0 0 1px rgba(255, 200, 80, .45), 0 6px 18px rgba(0, 0, 0, .4); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.save-tip svg { width: 14px; height: 14px; }
.save-tip.is-on { opacity: 1; transform: none; }
.save-tip.is-err { color: #ff8a78; box-shadow: 0 0 0 1px rgba(255, 130, 112, .5), 0 6px 18px rgba(0, 0, 0, .4); }

/* v80 : sauvegardes cloud détaillées par jeu (Mon compte → Sauvegardes) */
.sv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 200, 80, .35); background: linear-gradient(135deg, rgba(255, 200, 80, .08), transparent 60%), var(--card); margin-bottom: 14px; }
.sv-head-t { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.sv-head-t strong { font-size: 15px; color: #ffd36b; }
.sv-head-t span { font-size: 13.5px; color: var(--muted); }
.sv-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.sv-game { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.sv-cover { position: relative; display: block; aspect-ratio: 460 / 215; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h, 150) 50% 26%), hsl(calc(var(--h, 150) + 20) 45% 14%)); }
.sv-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-cover-art { position: absolute; inset: 0; display: grid; place-items: center; font: 900 24px var(--display); color: rgba(255, 255, 255, .8); }
.sv-body { min-width: 0; display: grid; gap: 6px; }
.sv-name { font-weight: 700; font-size: 15px; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-name:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.sv-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.sv-facts li { display: inline-flex; align-items: center; gap: 5px; }
.sv-f-saved { color: #ffd36b; }
.sv-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.sv-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sv-forget:hover { color: var(--danger); border-color: rgba(255, 130, 112, .5); }
.sv-other { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
@media (max-width: 480px) { .sv-game { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; } }

/* ================================================================== v81 : Mon compte, menu latéral (maquette B) */
.acct-page { padding-block: 24px 60px; }
.acct-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.acct-side { position: sticky; top: 84px; display: grid; gap: 14px; min-width: 0; }
.acct-prof { display: grid; justify-items: center; gap: 10px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #16211b, var(--card)); text-align: center; }
.acct-prof .acct-avatar { width: 92px; height: 92px; font-size: 36px; background: radial-gradient(circle at 30% 25%, #1f3a2c, #0d1712); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.acct-prof .acct-avatar img { width: 92px; height: 92px; }
.acct-prof .acct-avatar.is-premium { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(0, 0, 0, .45); }
.acct-prof .acct-id h1 { margin: 2px 0 0; font: 900 24px/1.1 var(--display); }
.acct-prof .acct-id p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.acct-prof .acct-plan { width: 100%; display: grid; gap: 10px; margin: 4px 0 0; padding: 14px; border-radius: 14px; text-align: start; border: 1px solid var(--line); background: #0f1412; justify-content: stretch; }
.acct-prof .acct-plan.is-premium { border-color: rgba(255, 211, 107, .32); background: linear-gradient(135deg, rgba(255, 211, 107, .16), rgba(255, 211, 107, .03)); }
.acct-prof .acct-plan small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.acct-prof .acct-tier { justify-self: start; padding: 4px 11px; font-size: 12.5px; order: 0 !important; }
.acct-btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border: 0; border-radius: 11px; background: var(--gold); color: #2a1d00 !important; font: 800 14px var(--body); text-decoration: none; cursor: pointer; }
.acct-btn-gold:hover { filter: brightness(1.07); }
.acct-btn-gold svg { width: 17px; height: 17px; }
.acct-btn-soft { background: #1d2521 !important; color: var(--fg) !important; border: 1px solid #2d3833 !important; font-weight: 700; }
.acct-btn-soft:hover { border-color: var(--accent) !important; }
.acct-btn-danger { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 130, 112, .1) !important; color: #ff8a78 !important; border: 1px solid rgba(255, 130, 112, .4) !important; font-weight: 700; }
.acct-btn-danger:hover { background: rgba(255, 130, 112, .18) !important; }
.acct-btn-danger svg { width: 15px; height: 15px; }

/* Menu */
.acct-nav { display: grid; gap: 2px; padding: 8px; margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: visible; }
.acct-nav .acct-tab, .acct-nav-out button { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: 700 14px var(--body); text-align: start; cursor: pointer; transition: background .15s, color .15s; }
.acct-nav .acct-tab:hover, .acct-nav-out button:hover { background: #1a221e; color: var(--fg); }
.acct-nav .acct-tab span, .acct-nav-out span { flex: 1; }
.acct-nav .acct-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); border-bottom: 0; }
.acct-nav em { font-style: normal; font: 600 11.5px var(--mono); color: var(--dim); }
.acct-nav .acct-tab[aria-selected="true"] em { color: var(--accent); }
.acct-nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.acct-nav-out { margin: 0; }
.acct-nav-out button { color: #ff8a78; }
.acct-nav-out button:hover { background: rgba(255, 130, 112, .1); color: #ff8a78; }
.acct-ico { width: 19px; height: 19px; flex: none; }
.acct-nav .acct-lock { width: 13px; height: 13px; }

/* Contenu */
.acct-main { min-width: 0; display: grid; gap: 14px; }
.acct-panes { min-width: 0; }
.acct-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.acct-ph h2 { margin: 0; font: 900 clamp(24px, 3vw, 30px)/1.1 var(--display); letter-spacing: -.01em; }
.acct-ph p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 62ch; line-height: 1.5; }
.acct-msg { margin: 0; }
.acct-pane .acct-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.acct-pane .acct-tile strong { font-size: 14.5px; }

/* Connexions : lignes plus lisibles */
#pane-links .acct-links { display: grid; gap: 10px; max-width: 640px; }
#pane-links .acct-link-row { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
#pane-links .btn-accent { height: 38px; padding: 0 16px; font-weight: 800; }
#pane-links [data-unlink] { background: #1d2521; border: 1px solid #2d3833; color: var(--fg); }

/* Sécurité */
.acct-rows { display: grid; gap: 10px; max-width: 720px; }
.acct-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.acct-row > div { flex: 1; min-width: 0; }
.acct-row strong { display: block; font-size: 15px; }
.acct-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.acct-row form { margin: 0; }
.acct-row .btn { height: 38px; padding: 0 14px; white-space: nowrap; }
.acct-row-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #1b2420; color: var(--accent); }
.acct-row.is-danger { border-color: rgba(255, 130, 112, .28); background: linear-gradient(90deg, rgba(255, 130, 112, .06), transparent 60%), var(--card); }
.acct-row.is-danger .acct-row-ic { background: rgba(255, 130, 112, .12); color: #ff8a78; }
#pane-security .acct-fine { margin-top: 16px; }

/* Sauvegardes : la phrase d'intro est maintenant dans l'en-tête */
#pane-saves > .acct-lead { display: none; }

@media (max-width: 980px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .acct-side { position: static; }
  .acct-nav { position: relative; display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav .acct-tab { flex: none; width: auto; height: 40px; padding: 0 14px; gap: 8px; }
  .acct-nav .acct-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
  .acct-nav .acct-tab[aria-selected="true"] em { color: var(--accent-ink); }
  .acct-nav .acct-tab span { flex: none; }
  .acct-nav hr, .acct-nav-out { display: none; }
}
@media (max-width: 640px) {
  .acct-page { padding-top: 14px; }
  .acct-prof { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: start; padding: 16px; gap: 12px 14px; }
  .acct-prof .acct-avatar, .acct-prof .acct-avatar img { width: 64px; height: 64px; font-size: 26px; }
  .acct-prof .acct-id h1 { font-size: 21px; }
  .acct-prof .acct-plan { grid-column: 1 / -1; }
  .acct-pane .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .acct-row { flex-wrap: wrap; }
  .acct-row > div { min-width: calc(100% - 60px); }
  .acct-row form, .acct-row > .btn { width: 100%; }
  .acct-row .btn { width: 100%; justify-content: center; }
}
/* Sauvegardes dans la nouvelle page : une ligne par jeu, puces, boutons bien visibles */
.acct-main .sv-games { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.acct-main .sv-game { grid-template-columns: 150px minmax(0, 1fr); padding: 12px; border-radius: 16px; }
.acct-main .sv-body { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name acts" "facts acts"; column-gap: 16px; align-items: center; }
.acct-main .sv-name { grid-area: name; font-size: 16px; }
.acct-main .sv-facts { grid-area: facts; gap: 6px; }
.acct-main .sv-facts li { height: 26px; padding: 0 9px; border-radius: 8px; background: #1b2420; font-weight: 600; }
.acct-main .sv-facts li::before { display: none; }
.acct-main .sv-facts .sv-f-saved { background: rgba(255, 211, 107, .1); }
.acct-main .sv-acts { grid-area: acts; margin: 0; }
.acct-main .sv-acts .btn { height: 36px; padding: 0 14px; font-weight: 800; }
.sv-forget { background: #1d2521 !important; border: 1px solid #2d3833 !important; color: var(--fg) !important; }
.sv-forget:hover { color: #ff8a78 !important; border-color: rgba(255, 130, 112, .5) !important; }
.sv-del-all { background: rgba(255, 130, 112, .1) !important; color: #ff8a78 !important; border: 1px solid rgba(255, 130, 112, .4) !important; font-weight: 700; }
@media (max-width: 640px) {
  .acct-main .sv-game { grid-template-columns: 96px minmax(0, 1fr); }
  .acct-main .sv-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "facts" "acts"; row-gap: 8px; }
  .acct-main .sv-acts { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; margin-inline-start: -108px; }
}

/* v82 : page « Ports navigateur » */
.ports-how { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ports-how li { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ports-n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 900 16px var(--display); }
.ports-how strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.ports-how p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ports-faq { margin-top: 48px; }
@media (max-width: 900px) { .ports-how { grid-template-columns: 1fr; } }

/* ================================================================== v84 : Mon compte, menu latéral du site (PC) + « Bientôt » */
.acct-soon { margin-inline-start: auto; font: 700 10px var(--body); letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(124, 170, 255, .14); color: #9cc0ff; box-shadow: inset 0 0 0 1px rgba(124, 170, 255, .35); white-space: nowrap; }
.acct-soon.big { margin: 0; font-size: 12px; padding: 5px 12px; justify-self: start; }
.acct-nav .acct-tab[aria-selected="true"] .acct-soon { background: rgba(2, 21, 10, .15); color: inherit; box-shadow: none; }
.acct-soon-card { max-width: 720px; padding: 30px; border-radius: 22px; border: 1px dashed rgba(124, 170, 255, .4); background: radial-gradient(80% 120% at 100% 0%, rgba(124, 170, 255, .12), transparent 60%), var(--card); display: grid; gap: 12px; justify-items: start; }
.acct-soon-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(124, 170, 255, .12); color: #9cc0ff; }
.acct-soon-ic .acct-ico { width: 28px; height: 28px; }
.acct-soon-card h3 { margin: 2px 0 0; font: 900 24px var(--display); }
.acct-soon-card p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 58ch; }
.acct-soon-card ul { margin: 4px 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.acct-soon-card li { display: flex; gap: 8px; font-weight: 600; font-size: 14px; }
.acct-soon-card li::before { content: "✓"; color: var(--accent); }
.acct-soon-card .acct-soon-note { font-size: 13px; color: var(--dim); }

/* Menu latéral du site sur « Mon compte » (PC, thème Ludothèque) */
.ludo-side .ls-back { display: block; margin: 0 4px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--fg); font: 700 13.5px var(--body); text-decoration: none; }
.ludo-side .ls-back:hover { border-color: var(--accent); color: var(--accent); }
.ludo-side .ls-me { display: flex; align-items: center; gap: 10px; margin: 0 4px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.ludo-side .ls-me .acct-avatar.sm { width: 38px; height: 38px; font-size: 16px; flex: none; }
.ludo-side .ls-me .acct-avatar.sm img { width: 38px; height: 38px; }
.ludo-side .ls-me .acct-crown { width: 18px; height: 18px; top: -5px; inset-inline-end: -5px; }
.ludo-side .ls-me .acct-crown svg { width: 11px; height: 11px; }
.ludo-side .ls-me-tx { min-width: 0; }
.ludo-side .ls-me-tx strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ludo-side .ls-me-tx small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ludo-side .ls-acct .acct-tab, .ludo-side .ls-out button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 14px var(--body); text-align: start; cursor: pointer; }
.ludo-side .ls-acct .acct-tab:hover, .ludo-side .ls-out button:hover { background: #1a221e; color: var(--fg); }
.ludo-side .ls-acct .acct-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ludo-side .ls-acct .ls-tx { flex: 1; }
.ludo-side .ls-acct .ls-ic .acct-ico { width: 18px; height: 18px; }
.ludo-side .ls-acct em { font-style: normal; font: 600 11.5px var(--mono); color: var(--dim); }
.ludo-side .ls-acct .acct-lock { width: 13px; height: 13px; color: var(--gold); }
.ludo-side .ls-out { margin: 0; }
.ludo-side .ls-out button { color: #ff8a78; }
.ludo-side .ls-out button:hover { background: rgba(255, 130, 112, .1); color: #ff8a78; }
@media (min-width: 1101px) {
  /* Le menu du compte est dans le menu latéral : plus de colonne profil dans la page, le contenu prend toute la largeur */
  html[data-theme="ludo"] .acct-page .acct-side { display: none; }
  html[data-theme="ludo"] .acct-page .acct-layout { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="ludo"] .acct-page .acct-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* ================================================================== v88 : PC Ports au format de l'accueil (cartes avec image) */
.pcp-head { max-width: 76ch; }
.pcp-head .pp-howto { margin-top: 12px; }
.port-card .port-badge { position: absolute; z-index: 3; top: 8px; inset-inline-start: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(8, 12, 10, .84); font: 700 11px var(--body); letter-spacing: .01em; color: var(--muted); box-shadow: 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.port-card .port-badge.k-recomp { color: #7cf0b0; box-shadow: 0 0 0 1px rgba(52, 226, 127, .45); }
.port-card .port-badge.k-decomp { color: #9cc0ff; box-shadow: 0 0 0 1px rgba(124, 170, 255, .45); }
.port-card .port-badge.k-port { color: #ffd36b; box-shadow: 0 0 0 1px rgba(255, 200, 80, .45); }
.port-card .port-dev-badge { position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(8, 12, 10, .84); color: #ff9a7a; font: 700 11px var(--body); box-shadow: 0 0 0 1px rgba(255, 130, 112, .45); pointer-events: none; }
.port-card .port-dl svg { width: 13px; height: 13px; }
.port-card .port-dl:hover svg { transform: translateY(2px); }
.port-card .port-info, .port-card .port-feat, .port-card .port-links { grid-column: 1 / -1; margin: 0; }
.port-card .port-info { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font: 500 11.5px var(--mono); color: var(--dim); }
.port-card .port-note { color: var(--muted); font-family: var(--body); }
.port-card .port-feat { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.port-card .port-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; }
.port-card .port-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.port-card .port-links a:hover { text-decoration: underline; }
.port-card .cover.is-art .art-name { font-size: clamp(16px, 2vw, 22px); }
.pcports-page .pp-note { margin-top: 30px; }
/* PC Ports : le bouton « Télécharger » reste visible (les cartes de jeux, elles, se lancent par la jaquette) */
html[data-theme="ludo"] .grid .port-card .card-play.port-dl { display: inline-flex; grid-area: auto; grid-column: 1 / -1; grid-row: auto; order: 9; justify-self: start; margin-top: 10px; padding: 0 14px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 800 13.5px var(--body); align-items: center; gap: 7px; }
html[data-theme="ludo"] .grid .port-card .card-play.port-dl:hover { background: var(--accent-hover); }
.port-card .card-body { display: flex; flex-direction: column; align-items: stretch; }
.port-card .port-dl { order: 9; }
.port-card .art-fr { visibility: hidden; }
.port-card .card-body { flex: 1; }
html[data-theme="ludo"] .grid .port-card .card-play.port-dl { align-self: flex-start; margin-top: auto; }
.port-card .port-links + .port-dl, .port-card .port-feat + .port-dl, .port-card .port-info + .port-dl { margin-top: auto; }
.port-card .card-body > .port-dl { position: relative; top: 0; }
.port-card .card-body::after { content: ""; order: 8; height: 10px; }
/* Admin PC Ports : images, réglages */
.port-thumb-cell { width: 70px; }
.port-thumb { display: block; width: 60px; height: 34px; object-fit: cover; border-radius: 6px; background: #1b221f; }
.port-thumb.is-none { display: grid; place-items: center; color: var(--dim); font-size: 13px; }
.port-img-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; }
.port-img-prev { position: relative; display: grid; place-items: center; aspect-ratio: 460 / 215; border-radius: 10px; overflow: hidden; background: #111714; border: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.port-img-prev img { width: 100%; height: 100%; object-fit: cover; }
.port-img-prev.is-contain img { object-fit: contain; }
.port-img-inputs { display: grid; gap: 8px; min-width: 0; }
.port-img-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.port-img-tools label { display: inline-flex; align-items: center; gap: 6px; }
.port-img-tools input { width: 90px; }
.port-img-help { margin: 0; font-size: 12.5px; }
.ps-tabs { margin: 10px 0 14px; }
.ps-h3 { margin: 22px 0 4px; font-size: 16px; }
.ps-plats input { width: 100%; min-width: 80px; }
.ps-plats .ps-key[readonly] { opacity: .7; }
@media (max-width: 640px) { .port-img-row { grid-template-columns: 1fr; } }
.ps-plats input { height: 34px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: #0f1412; color: var(--fg); font: 500 13px var(--body); }
.ps-plats input:focus { outline: none; border-color: var(--accent); }
.ps-plats td { padding: 5px 4px; }

/* ------------------------------------------------------------------ mode Big Picture : lien du header, lecteur intégré, proposition « manette détectée » */
.bp-link { color: var(--fg); }
.bp-link svg { width: 18px; height: 18px; color: var(--accent); }
.bp-link:hover svg { transform: scale(1.1); transition: transform .2s; }
.player.is-bp .player-help { display: none !important; }
.bpd { position: fixed; left: 50%; bottom: 28px; z-index: 300; width: min(640px, calc(100vw - 32px)); transform: translate(-50%, 24px); opacity: 0; transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); background: var(--bg-raise); border: 1px solid #2c3832; border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; color: var(--fg); }
.bpd.is-on { opacity: 1; transform: translate(-50%, 0); }
.bpd-ic { grid-row: span 2; width: 60px; height: 60px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.bpd-ic svg { width: 36px; height: 36px; animation: bpd-wiggle 1.4s .4s ease-in-out 2; }
@keyframes bpd-wiggle { 20%, 60% { transform: rotate(-8deg); } 40%, 80% { transform: rotate(8deg); } }
.bpd h2 { margin: 0; font-size: 20px; }
.bpd p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.bpd-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.bpd-row .btn { gap: 10px; }
.bpd-g { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 900; }
.btn-accent .bpd-g { background: var(--accent-ink); color: var(--accent); }
.bpd-g.is-b { background: #e5484d; color: #fff; }
.bpd label { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.bpd label input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .bpd, .bpd-ic svg { transition: none; animation: none; } }
/* Bandeau « Mode Big Picture » de l'accueil */
.bp-promo-wrap { margin-block: 4px 22px; }
.bp-promo { position: relative; display: flex; align-items: center; gap: 24px; padding: 18px 22px; border-radius: 16px; text-decoration: none; color: var(--fg); overflow: hidden; background: linear-gradient(110deg, #0f1a14 0%, var(--bg-raise) 55%); border: 1px solid #22332a; transition: border-color .2s, transform .2s, box-shadow .2s; }
.bp-promo::before { content: ""; position: absolute; inset: -40% auto -40% -10%; width: 40%; background: radial-gradient(closest-side, rgba(52, 226, 127, .22), transparent); animation: bp-promo-glow 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes bp-promo-glow { to { transform: translateX(160%); } }
.bp-promo:hover, .bp-promo:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent); }
.bp-promo-tv { position: relative; flex: none; width: 112px; height: 72px; border-radius: 10px; border: 2px solid #3a4a41; background: #070908; padding: 7px; }
.bp-promo-screen { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 4px; height: 100%; align-items: end; }
.bp-promo-screen i { display: block; height: 70%; border-radius: 3px; background: linear-gradient(135deg, #2f7a3b, #122f19); }
.bp-promo-screen i:first-child { height: 100%; box-shadow: 0 0 0 1.5px var(--fg); }
.bp-promo:hover .bp-promo-screen i:first-child { animation: bp-promo-pick 1.4s ease-in-out infinite; }
@keyframes bp-promo-pick { 50% { transform: translateY(-3px); } }
.bp-promo-pad { position: absolute; right: -14px; bottom: -14px; width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.bp-promo-tx { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bp-promo-kicker { align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 7px; border-radius: 6px; }
.bp-promo-tx strong { font-family: var(--display); font-size: 20px; font-weight: 850; font-stretch: 115%; }
.bp-promo-body { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.bp-promo-tx small { color: var(--dim); font-size: 12.5px; }
.bp-promo-go { position: relative; flex: none; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; transition: background .2s; }
.bp-promo-go svg { width: 15px; height: 15px; }
.bp-promo:hover .bp-promo-go { background: var(--accent-hover); }
@media (max-width: 720px) {
  .bp-promo { flex-wrap: wrap; gap: 14px 16px; padding: 16px; }
  .bp-promo-tv { width: 84px; height: 56px; }
  .bp-promo-tx { flex-basis: calc(100% - 110px); }
  .bp-promo-go { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .bp-promo::before, .bp-promo-screen i { animation: none !important; } }

/* Lecteur ouvert depuis Big Picture : la page du jeu (bigpicture.html) affiche son propre chargement */
.player.is-bp.is-bpgame .player-loading { display: none !important; }
/* Autres sites de jeux ouverts depuis Big Picture : texte « Chargement de … » au centre tant que le jeu n'a pas fini de charger */
.player.is-bp:not(.is-bpgame) .player-loading { font-size: 18px; font-weight: 650; color: #c9d2cd; }

/* « Playing now » : joueurs dans le mode Big Picture (icône télé + manette, vert de la marque) */
.lp-bp { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px 0 5px; margin-inline-start: -4px; border-radius: 999px; background: var(--accent-soft, rgba(52, 226, 127, .14)); color: var(--accent); font: 600 11.5px var(--mono); white-space: nowrap; }
.lp-bp svg { width: 15px; height: 15px; }
.lp-bp.is-small { height: auto; padding: 0; margin: 0 5px 0 0; background: none; vertical-align: -2px; }
.live-pill .card-title .lp-bp.is-small svg { width: 15px; height: 15px; }
.lp-bp.is-small svg { width: 13px; height: 13px; }
.live-badge .lp-bp.is-small { color: #6ff0a6; }
.live-bp-total { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 10px; font: 500 12px var(--mono); color: var(--accent); }
.live-bp-total .lp-bp { color: inherit; }

/* =================================================================== v60 : téléphone et tablette — tout en bas, rien ne se chevauche
   Barre d'onglets : Accueil · Catégories · Chercher · Ma liste · Menu (inc/layout.php, assets/mobile.js).
   Header réduit au logo et au compte ; recherche plein écran ; catégories et tri en panneau du bas.
   Un seul élément flottant à la fois, toujours posé au-dessus de la barre d'onglets. */
@media (max-width: 1100px) {
  html[data-theme="ludo"] { --tabs-h: 66px; --tabs-full: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); }
  /* Barre d'onglets : « Chercher » au centre, en bouton vert */
  html[data-theme="ludo"] .ludo-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; z-index: 60; }
  .ludo-tabs .mtab-search { color: var(--fg); font-weight: 700; }
  .ludo-tabs .mtab-search i { display: grid; place-items: center; width: 52px; height: 32px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
  .ludo-tabs .mtab-search i svg { width: 21px; height: 21px; }
  .ludo-tabs [aria-expanded="true"] { color: var(--accent); }
  .ludo-tabs a:active, .ludo-tabs button:active { transform: scale(.94); }

  /* Header : logo + compte. La recherche et les catégories passent en bas */
  html[data-theme="ludo"] .topbar { position: sticky; top: 0; }
  html[data-theme="ludo"] .topbar-in { display: flex; align-items: center; gap: 10px; min-height: 56px; padding-block: 6px; }
  html[data-theme="ludo"] .topbar-in > .logo { display: inline-flex !important; flex: none; }
  html[data-theme="ludo"] .topbar .head-search { display: none !important; }
  html[data-theme="ludo"] .topnav { display: flex !important; margin-inline-start: auto; gap: 6px; }
  html[data-theme="ludo"] .topnav > *:not(.acct-btn):not(.prem-btn) { display: none !important; }
  html[data-theme="ludo"] .topnav > .acct-btn span { display: none; }
  html[data-theme="ludo"] .topnav > .acct-btn { height: 38px; min-width: 38px; padding: 0; justify-content: center; }
  html[data-theme="ludo"] .topbar-cats, html[data-theme="ludo"] .az-bar { display: none !important; }
  /* Filtre ou recherche en cours dans le catalogue : la barre revient sous le logo, avec « Tout effacer » */
  html[data-theme="ludo"].m-filtering .topbar-in { flex-wrap: wrap; }
  html[data-theme="ludo"].m-filtering .topbar .head-search { display: block !important; order: 10; flex: 1 1 100%; max-width: none; margin: 0 0 4px; }

  /* Éléments flottants : au-dessus des onglets ; plus de bouton « haut de page » (retoucher « Accueil » remonte) */
  html[data-theme="ludo"] .to-top { display: none !important; }
  html[data-theme="ludo"] :is(.toasts, .lang-banner, .fb-sheet) { bottom: calc(var(--tabs-full) + 10px) !important; }
  html[data-theme="ludo"] body:has(.lang-banner:not([hidden])) .fb-sheet:not([hidden]) { display: none; }
  html[data-theme="ludo"] body { padding-bottom: calc(var(--tabs-full) + 8px); }

}
/* Fiche d'un jeu (téléphone) : « Jouer » fixé juste au-dessus des onglets ; la page garde la place en dessous */
@media (max-width: 760px) {
  html[data-theme="ludo"] .game-hero .play-big { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs-full) + 10px); z-index: 40; width: auto; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
  html[data-theme="ludo"] body:has(.game-hero .play-big) { padding-bottom: calc(var(--tabs-full) + 80px); }
  html[data-theme="ludo"] body:has(.game-hero .play-big) :is(.toasts, .lang-banner, .fb-sheet) { bottom: calc(var(--tabs-full) + 76px) !important; }
}

/* ---- Recherche plein écran */
.m-search { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); }
.m-search::backdrop { background: var(--bg); }
.m-search[open] { display: flex; flex-direction: column; animation: m-fade .18s ease-out; }
@keyframes m-fade { from { opacity: 0; transform: translateY(8px); } }
.msr-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; border-bottom: 1px solid var(--line-soft); }
.msr-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 12px; border-radius: 12px; background: var(--card); border: 2px solid var(--accent); }
.msr-field svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.msr-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--fg); font: 600 16px var(--body); }
.msr-field input::-webkit-search-cancel-button { display: none; }
.msr-clear { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #3a4741; color: var(--fg); font-size: 16px; line-height: 1; }
.msr-cancel { flex: none; border: 0; background: none; color: var(--accent); font: 650 15px var(--body); padding: 8px 2px; }
.msr-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0px)); }
.msr-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.msr-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.msr-chip small { font: 500 11px var(--mono); color: var(--muted); }
.msr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.msr-row { display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: 12px; background: var(--bg-raise); color: var(--fg); text-decoration: none; min-height: 58px; }
.msr-row:active { background: var(--card); }
.msr-th { position: relative; flex: none; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h, 140) 45% 32%), hsl(var(--h, 140) 55% 11%)); }
.msr-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.msr-tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.msr-tx b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msr-tx small { font-size: 12.5px; color: var(--muted); }
.msr-row > i { font-style: normal; color: var(--dim); font-size: 22px; padding-inline-end: 6px; }
.msr-all { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 10px; border-radius: 12px; border: 1px dashed var(--line); color: var(--accent); font-weight: 650; text-decoration: none; }
.msr-empty { margin: 30px 0; text-align: center; color: var(--muted); }

/* ---- Panneaux du bas (Catégories et tri, Ma liste) */
.m-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 640px; margin: 0 auto; max-height: min(82vh, 82dvh); padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; background: var(--bg-raise); color: var(--fg); box-shadow: 0 -20px 50px rgba(0, 0, 0, .6); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.m-sheet[open] { display: flex; flex-direction: column; animation: m-up .28s cubic-bezier(.2, .8, .2, 1); }
.m-sheet::backdrop { background: rgba(2, 4, 3, .6); }
@keyframes m-up { from { transform: translateY(100%); } }
.mst-grip { flex: none; width: 40px; height: 4px; margin: 10px auto 4px; border-radius: 4px; background: var(--line); }
.mst-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.mst-head h2 { margin: 0; font-size: 20px; font-weight: 850; }
.mst-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 24px; }
.mst-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.mst-label { margin: 6px 0 8px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mst-sort { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.mst-sort-b { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--fg); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.mst-sort-b[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mst-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mst-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--fg); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.mst-cat span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mst-cat small { flex: none; font: 500 11px var(--mono); color: var(--muted); }
.mst-cat[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.mst-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 16px 12px; }
.mst-tabs button { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 650 14px var(--body); }
.mst-tabs [aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mst-acct { width: 100%; margin-top: 14px; }
html.m-searching body { overflow: hidden; }

/* ---- Lecteur sur téléphone : la barre passe en bas (le jeu garde toute la hauteur au-dessus) */
@media (max-width: 760px) {
  .player > .pbar { order: 2; border-bottom: 0; border-top: 1px solid var(--line-soft); padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)); }
  .player > .player-stage { order: 1; }
  .player .pbar-home span, .player .pbar-btn span:not(.mirror-label):not(.mirror-dot) { display: none; }
  .pbar .mirror-menu { position: fixed !important; top: auto !important; bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; left: 10px !important; right: 10px !important; }
}

@media (max-width: 1100px) {
  /* Onglets : le bouton « Menu » garde la taille des autres (pas celle du bouton du header) */
  html[data-theme="ludo"] .ludo-tabs .menu-btn { display: flex !important; width: auto; height: auto; border: 0; border-radius: 12px; background: transparent; }
  html[data-theme="ludo"] .ludo-tabs a, html[data-theme="ludo"] .ludo-tabs button { padding: 0 2px; font-size: 10.5px; letter-spacing: -.01em; }
}

/* =================================================================== v61 : les jaquettes remplissent toute la carte
   L'image est recadrée au centre pour couvrir tout le cadre (plus de bandes floutées sur les côtés, plus de marges),
   y compris pour les jeux réglés « contain » dans l'admin. Remplace le choix « image entière » de la v45. */
.cover img, .cover.fit-contain img,
html[data-theme="ludo"] .grid .cover:has(img):not(.fit-contain) img,
html[data-theme="ludo"] .grid .cover:has(img) img { object-fit: cover !important; object-position: center center; padding: 0 !important; background: none !important; width: 100%; height: 100%; }
html[data-theme="ludo"] .grid .cover:has(img):not(.fit-contain)::before { display: none; }

/* Mention BÊTA à côté de « Big Picture » (lien du header et bandeau de l'accueil) */
.beta-pill { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; margin-inline-start: 6px; border-radius: 5px; background: var(--accent-soft, rgba(52, 226, 127, .14)); border: 1px solid rgba(52, 226, 127, .45); color: var(--accent); font: 700 9.5px/1 var(--mono); letter-spacing: .12em; vertical-align: middle; }
.bp-promo-tx strong .beta-pill { height: 19px; font-size: 10.5px; position: relative; top: -2px; }

/* =================================================================== v62 : nouveau Premium
   Page Premium : avantages après les offres, Pass 30 jours sous la grille, badges « Nouveau » / « Bientôt ».
   Mon compte : partage des collections, historique des sauvegardes, récap du mois ou de l'année. Page publique /c/<code>. */
.prem-perks { display: block; margin: 64px 0 40px; }
.prem-perks-title { margin: 0 0 18px; font-family: var(--display); font-weight: 900; font-stretch: 110%; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.prem-perks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .prem-perks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prem-perk.is-new { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.prem-perk.is-soon { opacity: .72; }
.perk-tag { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; vertical-align: 2px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.prem-perk.is-soon .perk-tag { background: var(--line); color: var(--muted); }
.plan-pass { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 0; padding: 18px 22px; border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--fg, #ecf2ee) 25%, transparent); text-align: start; }
.plan-pass h3 { margin: 0; font-size: 17px; }
.plan-pass p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.plan-pass.is-current { border-style: solid; border-color: var(--accent); }
.plan-pass .btn { flex: none; }
.btn-light { background: var(--fg, #ecf2ee); color: var(--bg, #090b0a); border-color: transparent; font-weight: 800; }
.btn-light:hover { filter: brightness(.92); }
@media (max-width: 640px) { .plan-pass { flex-direction: column; align-items: stretch; text-align: center; } }

/* Collections : lien de partage */
.coll-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.coll-share span { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.coll-share input { flex: 1; min-width: 180px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: 500 13.5px var(--mono, monospace); }

/* Historique des sauvegardes */
.sv-hist-dlg { width: min(560px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: inherit; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sv-hist-dlg::backdrop { background: rgba(2, 4, 3, .7); }
.sv-hist-dlg .modal-box { padding: 22px; }
.sv-hist-dlg .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sv-hist-dlg h2 { margin: 0; font-size: 21px; }
.sv-hist-dlg .modal-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.sv-vers-lead { margin: 6px 0 16px; color: var(--muted); font-size: 14.5px; }
.sv-vers { display: grid; gap: 8px; }
.sv-ver { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.sv-ver.is-cur { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.sv-ver-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-hover, #3d4a43); flex: none; }
.sv-ver.is-cur .sv-ver-dot { background: var(--accent); }
.sv-ver-tx { flex: 1; min-width: 0; display: grid; }
.sv-ver-tx span { font-size: 13px; color: var(--muted); }
.sv-ver-cur { font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* Récap */
.recap { margin-top: 30px; }
.recap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.recap-head select { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: inherit; font: 600 14px var(--body, system-ui); }
.recap-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.recap-body canvas { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #0b1410; }
.recap-acts { display: grid; gap: 8px; align-content: start; }
@media (max-width: 700px) { .recap-body { grid-template-columns: 1fr; } }

/* Page publique d'une collection */
.coll-share-page { padding-top: 40px; padding-bottom: 60px; }
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.cs-head h1 { margin: 10px 0 0; font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(34px, 6vw, 56px); line-height: 1; letter-spacing: -.03em; }
.cs-by { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.cs-ini { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #02150a); font-weight: 850; font-size: 13px; }
.cs-prem { padding: 2px 8px; border-radius: 999px; background: rgba(245, 180, 0, .16); color: #f5b400; font-size: 12px; font-weight: 800; }
.cs-n { margin: 8px 0 0; color: var(--muted); }
.cs-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cs-none { padding: 80px 0; text-align: center; }
.cs-none h1 { font-size: 30px; }
.cs-none p { color: var(--muted); }

/* Promo : ancien prix barré à côté du nouveau */
.plan-was { color: var(--muted); font-size: .55em; font-weight: 600; text-decoration-thickness: 2px; margin-inline-end: 4px; }

/* Sauvegardes cloud en bêta : bandeau en tête de l'onglet, pastille dans le menu du compte et sur la page Premium */
.sv-beta { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(255, 181, 71, .4); background: rgba(255, 181, 71, .07); }
.sv-beta-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 181, 71, .14); color: #ffb547; }
.sv-beta-ic svg { width: 22px; height: 22px; }
.sv-beta strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.sv-beta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sv-beta .beta-pill, .acct-tab .beta-pill { border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .12); color: #ffb547; margin-inline-start: 4px; }
.prem-perk.is-beta .perk-tag { background: rgba(255, 181, 71, .14); color: #ffb547; }
/* Fenêtre « Versions » : pas de barre de défilement horizontale */
.sv-hist-dlg { overflow-x: hidden; overflow-y: auto; max-height: min(86vh, 86dvh); }
.sv-hist-dlg, .sv-hist-dlg * { box-sizing: border-box; }
.sv-hist-dlg .modal-box { width: 100%; overflow-wrap: anywhere; }

/* =================================================================== v63 : publicités
   Emplacements (inc/ads.php, assets/ads.js) : mention « Publicité », taille réservée d'avance (la page ne saute pas). */
.ad-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 22px auto; max-width: 100%; }
.ad-slot .ad-box { display: flex; justify-content: center; width: 100%; min-height: var(--ad-h, 90px); overflow: hidden; }
.ad-slot .ad-frame { display: block; max-width: 100%; border: 0; background: transparent; }
.ad-label { align-self: center; font: 600 10.5px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--dim, #69746e); }
/* Bannière native : une ligne entière de la grille du catalogue */
#catalog .ad-card { grid-column: 1 / -1; margin: 6px 0; padding: 10px; border-radius: 14px; border: 1px dashed var(--line); }
#catalog .ad-card .ad-frame { width: 100% !important; }
/* 300×250 sur la fiche d'un jeu */
.ad-game_mpu { margin: 34px auto 10px; }
/* Sous le lecteur : 728×90 sur ordinateur, 320×50 sur téléphone */
.ad-player { margin: 0 auto; padding: 6px 0; flex: none; background: #000; width: 100%; }
.ad-player .ad-label { display: none; }
.ad-player.is-mob { display: none; }
@media (max-width: 760px) { .ad-player.is-desk { display: none; } .ad-player.is-mob { display: flex; } }
/* Bannière collante (téléphone) : au-dessus de la barre d'onglets, avec une croix */
.ad-sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-full, 0px) + 6px); z-index: 55; display: flex; justify-content: center; pointer-events: none; }
.ad-sticky .ad-slot { margin: 0; padding: 4px; border-radius: 10px; background: var(--card); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); pointer-events: auto; }
.ad-sticky .ad-label { display: none; }
.ad-sticky-x { position: absolute; top: -12px; right: calc(50% - 172px); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 16px; line-height: 1; pointer-events: auto; cursor: pointer; }
html.has-ad-sticky body { padding-bottom: calc(var(--tabs-full, 0px) + 80px); }
html.has-ad-sticky :is(.toasts, .lang-banner, .fb-sheet) { bottom: calc(var(--tabs-full, 0px) + 80px) !important; }

/* Admin → Publicités */
.ads-slots { display: grid; gap: 14px; margin-top: 14px; }
.ads-slot { padding: 18px; }
.ads-slot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ads-slot-head p { margin: 4px 0 12px; font-size: 13.5px; }
.ads-on { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.ads-code { width: 100%; font: 12.5px/1.45 ui-monospace, Menlo, monospace; }
.ads-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; font-size: 14px; }
.ads-row input[type=number] { width: 80px; }
.ads-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.player > .ad-player { order: 1; }

/* Bandes accueil / bas de page : 728×90 sur ordinateur, 320×50 sur téléphone */
.ad-band.is-mob { display: none; }
@media (max-width: 760px) { .ad-band.is-desk { display: none; } .ad-band.is-mob { display: flex; } }
.ad-slot.is-empty { display: none !important; }

/* =================================================================== v64 : familles de jeux (officiels : PC, console, navigateur · fan games) */
.fam-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.fam-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.fam-pill small { font: 600 11.5px var(--mono); color: var(--muted); }
.fam-pill:hover { border-color: var(--line-hover, #3d4a43); }
.fam-pill.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fam-pill.is-on small { color: inherit; opacity: .65; }
.fam-pill.is-fan:not(.is-on) { border-color: rgba(242, 184, 75, .4); color: #f2b84b; }
@media (max-width: 760px) { .fam-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .fam-pill { flex: none; } }
.fan-badge { position: absolute; left: 8px; top: 8px; z-index: 3; padding: 3px 8px; border-radius: 6px; background: rgba(9, 11, 10, .85); border: 1px solid rgba(242, 184, 75, .55); color: #f2b84b; font: 800 11px var(--body, system-ui); letter-spacing: .02em; }
.shelf-count.is-fan { color: #f2b84b; }
.shelf-all { font-size: 14px; font-weight: 650; color: var(--accent); text-decoration: none; white-space: nowrap; }
.console-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.console-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.console-chip small { font: 600 11px var(--mono); color: var(--muted); }
.console-chip.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--accent); }
.origin-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.origin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.origin-pill.is-official { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: transparent; color: var(--accent); }
.origin-pill.is-fan { background: rgba(242, 184, 75, .12); border-color: transparent; color: #f2b84b; }
.fan-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(242, 184, 75, .35); background: rgba(242, 184, 75, .06); }
.fan-note p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #e8d9b5; }
.fam-page { padding-bottom: 50px; }
.fam-head h1 { margin: 18px 0 6px; font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(30px, 5vw, 48px); line-height: 1; letter-spacing: -.02em; }
.fam-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.console-makers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 22px 0; }
.console-maker { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.console-maker h2 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.console-maker .console-chips { margin: 0; }
.fam-sub { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; font-size: 24px; }
.fam-sub small { font: 600 13px var(--mono); color: var(--muted); }
.fam-grid { margin-top: 18px; }
/* Admin : origine */
.origin-review { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(242, 184, 75, .14); color: #f2b84b; font-size: 12px; font-weight: 700; }
.origin-pick { height: 32px; margin-right: 6px; }
/* Admin → Familles et consoles, sélection multiple */
.fams-panel { padding: 18px; margin-top: 14px; }
.fams-help { margin: 2px 0 12px; font-size: 13.5px; }
.fams-list { display: grid; gap: 6px; margin-bottom: 10px; }
.fams-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.fams-row.is-hidden { opacity: .55; }
.fams-row input:not([type]), .fams-row input[type=text] { flex: 1; min-width: 160px; }
.fams-row code { font-size: 12px; color: var(--muted); }
.fams-row .fams-n { font-size: 12.5px; min-width: 56px; }
.fams-chk, .fams-num { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.fams-num input { width: 64px; }
.fams-shelves { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.fams-shelves h3 { margin: 0; font-size: 15px; }
.fams-langs { display: flex; gap: 6px; margin-bottom: 12px; }
.fams-texts { display: grid; gap: 10px; }
.fams-text { display: grid; gap: 4px; }
.fams-text span { font: 600 12px var(--mono); color: var(--muted); }
.fams-text textarea { resize: vertical; }
.fams-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 0; background: var(--bg); }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.bulk-pick { width: 18px; height: 18px; margin-right: 8px; accent-color: var(--accent); vertical-align: middle; }

/* Sous la recherche (PC, à partir du rayon « Jeux console ») : familles et consoles au-dessus des lettres */
.fam-in, .fam-sys { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; width: var(--az-w, auto); max-width: 100%; margin: 0 auto; padding: 10px 0 0; box-sizing: border-box; }
.fam-sys[hidden] { display: none; }
.fam-k, .sys-k { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 650 13.5px var(--body, system-ui); cursor: pointer; }
.fam-k small, .sys-k small { font: 600 11px var(--mono); color: var(--muted); }
.fam-k:hover, .sys-k:hover { border-color: var(--line-hover, #3d4a43); }
.fam-k[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fam-k[aria-pressed="true"] small { color: inherit; opacity: .65; }
.fam-k.is-fan:not([aria-pressed="true"]) { color: #f2b84b; border-color: rgba(242, 184, 75, .4); }
.sys-k { height: 28px; font-size: 12.5px; }
.sys-k[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--accent); }
.fam-k:focus-visible, .sys-k:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Téléphone : jeu signalé « ne marche pas bien sur mobile » */
.mf-dlg { width: min(420px, calc(100vw - 28px)); padding: 0; border: 1px solid rgba(255, 181, 71, .45); border-radius: 18px; background: var(--card); color: var(--fg); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.mf-dlg::backdrop { background: rgba(2, 4, 3, .75); }
.mf-box { padding: 22px; text-align: center; }
.mf-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: rgba(255, 181, 71, .12); color: #ffb547; }
.mf-ic svg { width: 30px; height: 30px; }
.mf-box h2 { margin: 0 0 8px; font-size: 20px; }
.mf-box p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mf-acts { display: grid; gap: 8px; }
.mf-acts .btn { width: 100%; justify-content: center; min-height: 46px; }

/* Recherche + familles = un seul bloc (PC, rayon « Tous les jeux ») : la recherche en haut, les familles collées dessous en onglets */
@media (min-width: 1101px) and (hover: hover) {
  .topbar.is-catalog .head-search input { border-end-start-radius: 0; border-end-end-radius: 0; clip-path: inset(-8px -8px 0 -8px); }
  .az-bar .fam-in {
    width: var(--hs-w, var(--az-w, auto)); height: 52px; margin: calc(1px - var(--hs-gap, 10px)) auto 0; padding: 0 10px; gap: 2px;
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    background: color-mix(in srgb, var(--card) 70%, #000); border: 1px solid var(--accent); border-top: 1px solid var(--line);
    border-radius: 0 0 14px 14px; box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 30px -14px rgba(0, 0, 0, .8); clip-path: inset(0 -8px -40px -8px);
  }
  .az-bar .fam-k { position: relative; flex: none; height: 50px; padding: 0 13px; gap: 8px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14.5px; transition: color .15s; }
  .az-bar .fam-k svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .az-bar .fam-k small { color: var(--dim); }
  .az-bar .fam-k:hover { color: var(--fg); border: 0; }
  .az-bar .fam-k::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
  .az-bar .fam-k[aria-pressed="true"], .az-bar .fam-k[aria-pressed="true"]:hover { background: transparent; color: var(--fg); font-weight: 800; }
  .az-bar .fam-k[aria-pressed="true"]::after { transform: none; }
  .az-bar .fam-k[aria-pressed="true"] small { opacity: 1; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
  .az-bar .fam-k.is-fan { margin-inline-start: auto; height: 34px; padding: 0 12px; border: 1px solid rgba(242, 184, 75, .35); border-radius: 10px; background: rgba(242, 184, 75, .06); color: #f2b84b; }
  .az-bar .fam-k.is-fan small { color: #c9a25a; }
  .az-bar .fam-k.is-fan::after { display: none; }
  .az-bar .fam-k.is-fan[aria-pressed="true"] { background: #f2b84b; border-color: #f2b84b; color: #1d1404; }
  .az-bar .fam-k.is-fan[aria-pressed="true"] small { background: rgba(0, 0, 0, .14); color: inherit; }
  .az-bar .fam-sys { width: var(--hs-w, var(--az-w, auto)); justify-content: flex-start; padding-top: 12px; }
}
/* Familles sans le bloc (autres largeurs) : icônes à la bonne taille */
.fam-k svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Pastilles des familles (haut de l'accueil, pages des familles) : même style que la barre sous la recherche (onglets soulignés) */
.fam-row { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; height: 54px; margin: 14px 0 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--card) 70%, #000); }
.fam-row::-webkit-scrollbar { display: none; }
.fam-pill { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; min-height: 0; padding: 0 13px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: color .15s; }
.fam-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fam-pill small { font: 600 11.5px var(--mono); color: var(--dim); }
.fam-pill:hover { color: var(--fg); border: 0; }
.fam-pill::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.fam-pill.is-on, .fam-pill.is-on:hover { background: transparent; border: 0; color: var(--fg); font-weight: 800; }
.fam-pill.is-on::after { transform: none; }
.fam-pill.is-on small { opacity: 1; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.fam-pill.is-fan, .fam-pill.is-fan:not(.is-on) { margin-inline-start: auto; height: 34px; padding: 0 12px; border: 1px solid rgba(242, 184, 75, .35); border-radius: 10px; background: rgba(242, 184, 75, .06); color: #f2b84b; }
.fam-pill.is-fan small { color: #c9a25a; }
.fam-pill.is-fan::after { display: none; }
.fam-pill.is-fan.is-on { background: #f2b84b; border-color: #f2b84b; color: #1d1404; }
.fam-pill.is-fan.is-on small { background: rgba(0, 0, 0, .14); color: inherit; }
.fam-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }

/* ---- Accueil PC : familles dans la barre de recherche (sélecteur transparent à droite), la recherche prend toute la place jusqu'au menu */
.hs-fam { display: none; }
@media (min-width: 1101px) and (hover: hover) {
  html.hs-wide .topbar .head-search { max-width: none; flex: 1 1 auto; margin-inline-end: 64px; }
  html.hs-wide .topbar:not(.is-catalog) .hs-fam { display: flex; align-items: center; gap: 0; position: absolute; inset-inline-end: 8px; top: 50%; translate: 0 -50%; z-index: 3; padding: 0; background: transparent; }
  .hs-fam button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: #c9d2cd; font: 700 12px var(--body, system-ui); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
  .hs-fam button[hidden] { display: none; }
  .hs-fam button:hover { background: rgba(255, 255, 255, .06); color: var(--fg); }
  .hs-fam button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .hs-fam svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .hs-fam small { font: 600 10px var(--mono); color: var(--dim); }
  .hs-fam button.is-on, .hs-fam button.is-on:hover { background: var(--accent); color: #02150a; font-weight: 800; }
  .hs-fam button.is-on small { color: inherit; opacity: .7; }
  .hs-fam button.is-fan { color: #f2b84b; }
  .hs-fam button.is-fan small { color: #b8893a; }
  .hs-fam button.is-fan.is-on { background: #f2b84b; color: #1d1404; }
  .hs-fam button.is-fan.is-on small { color: inherit; }
  html.hs-wide .topbar:not(.is-catalog) .af-fam, html.hs-wide .topbar:not(.is-catalog) .head-search kbd { display: none; }
  html.hs-wide .fam-row { display: none; }
}

/* ---- Menu latéral (PC) : bouton « « » à côté du logo pour le fermer ; fermé, le même bouton « » » passe dans le header avec le logo.
   Fermé : la page prend toute la largeur et se recentre. */
.side-toggle, .ls-head > .side-toggle { display: none; }
@media (min-width: 1101px) {
  .ls-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .ls-head .logo { min-width: 0; }
  html[data-theme="ludo"] .ls-head > .side-toggle,
  html.side-off[data-theme="ludo"] body:has(> .ludo-side) .side-toggle.is-head { display: grid; }
  .side-toggle { place-items: center; flex: none; position: relative; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-hover, #2c3832); border-radius: 10px; background: var(--card, #19201c); color: var(--fg); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
  .side-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .side-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .side-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .side-toggle .st-arrow { transform-box: fill-box; transform-origin: center; }
  .side-toggle.is-head { margin-inline-end: 4px; }
  .side-toggle.is-head .st-arrow { transform: scaleX(-1); }
  html.side-anim[data-theme="ludo"] body:has(> .ludo-side) { transition: padding-inline-start .28s cubic-bezier(.2, .8, .2, 1); }
  html.side-anim[data-theme="ludo"] .ludo-side { transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  html.side-off[data-theme="ludo"] body:has(> .ludo-side) { padding-inline-start: 0; }
  html.side-off[data-theme="ludo"] body:has(> .ludo-side) .wrap { margin-inline: auto; }
  html.side-off[data-theme="ludo"] .ludo-side { transform: translateX(-100%); visibility: hidden; }
  html.side-anim.side-off[data-theme="ludo"] .ludo-side { transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; }
  html.side-off[data-theme="ludo"] .topbar-in > .logo { display: flex !important; flex: none; }
  /* Effet marqué : survol vert plein, et clignotement (halo + rebond + bulle) tant que le joueur n'a jamais ouvert/fermé le menu */
  .side-toggle:hover { background: var(--accent); border-color: var(--accent); color: #02150a; box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 18px -4px rgba(52, 226, 127, .55); transform: scale(1.06); }
  .side-toggle:active { transform: scale(.94); }
  .side-toggle { transition: color .15s, border-color .15s, background .15s, box-shadow .2s, transform .15s; }
  .side-toggle:hover .st-arrow { animation: st-nudge .6s ease-in-out; }
  .side-toggle.is-blink { background: var(--accent); border-color: var(--accent); color: #02150a; animation: st-ring 1.4s ease-out infinite; }
  .side-toggle.is-blink .st-arrow { animation: st-nudge 1.4s ease-in-out infinite; }
  .side-toggle.is-blink::after { content: attr(aria-label); position: absolute; inset-inline-start: calc(100% + 12px); top: 50%; translate: 0 -50%; z-index: 50; white-space: nowrap; padding: 7px 11px; border-radius: 9px; background: var(--accent); color: #062012; font: 800 13px var(--body, system-ui); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .7); pointer-events: none; animation: st-tip-in .4s 1s both, st-float 1.4s 1.4s ease-in-out infinite; }
  .ls-head .side-toggle.is-blink::after { inset-inline-start: auto; inset-inline-end: 0; top: calc(100% + 8px); translate: none; }
}
@keyframes st-ring { 0% { box-shadow: 0 0 0 0 rgba(52, 226, 127, .75), 0 0 18px rgba(52, 226, 127, .6); } 70% { box-shadow: 0 0 0 16px rgba(52, 226, 127, 0), 0 0 18px rgba(52, 226, 127, .2); } 100% { box-shadow: 0 0 0 0 rgba(52, 226, 127, 0), 0 0 18px rgba(52, 226, 127, .6); } }
@keyframes st-nudge { 0%, 100% { translate: 0; } 30% { translate: 4px; } 60% { translate: -2px; } }
@keyframes st-tip-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes st-float { 0%, 100% { margin-inline-start: 0; } 50% { margin-inline-start: 4px; } }
@media (prefers-reduced-motion: reduce) { .side-toggle.is-blink, .side-toggle.is-blink .st-arrow, .side-toggle.is-blink::after { animation: none; } }

/* ---- Accueil : Big Picture mis en avant (écran incliné qui suit la souris + 3 atouts) */
.bpx-wrap { margin-block: 14px 8px; }
.bpx { --rx: 4deg; --ry: 14deg; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.4vw, 30px) clamp(18px, 3vw, 44px) clamp(18px, 2.4vw, 30px) clamp(14px, 2vw, 30px); border-radius: 22px; background: var(--card, #0f1311); border: 1px solid var(--line); color: var(--fg); text-decoration: none; overflow: hidden; transition: border-color .2s; }
.bpx:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.bpx-shot { display: grid; place-items: center; perspective: 1400px; }
.bpx-shot img { display: block; width: 100%; max-width: 620px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 6px solid #050605; box-shadow: 0 0 0 1px #2c3832, 0 40px 70px -24px rgba(0, 0, 0, .95), 0 0 80px -20px color-mix(in srgb, var(--accent) 45%, transparent); transform: rotateY(var(--ry)) rotateX(var(--rx)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; will-change: transform; }
.bpx.is-tilting .bpx-shot img { transition: transform .12s linear, box-shadow .3s; }
.bpx:hover .bpx-shot img { box-shadow: 0 0 0 1px #3d4a43, 0 50px 80px -24px rgba(0, 0, 0, .95), 0 0 110px -16px color-mix(in srgb, var(--accent) 60%, transparent); }
.bpx-tx { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bpx-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bpx-tx strong { font-family: var(--display); font-size: clamp(26px, 2.8vw, 38px); line-height: 1; font-weight: 900; font-stretch: 118%; letter-spacing: -.01em; }
.bpx-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.bpx-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bpx-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; margin-top: 4px; border-radius: 13px; background: var(--accent); color: #02150a; font-weight: 800; font-size: 15.5px; transition: transform .15s, box-shadow .2s; }
.bpx-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.bpx:hover .bpx-go { box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.bpx:hover .bpx-go svg { transform: translateX(3px); }
.bpx:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .bpx { grid-template-columns: 1fr; } .bpx { --rx: 0deg; --ry: 0deg; } }
@media (prefers-reduced-motion: reduce) { .bpx-shot img { transition: none; } }
/* Carte Big Picture de l'accueil : 3 colonnes (capture | titre + bouton | 3 atouts en tuiles) */
.bpx { grid-template-columns: minmax(0, 440px) minmax(220px, 300px) minmax(0, 1fr); gap: clamp(18px, 2.2vw, 30px); padding: 16px 24px 16px 18px; border-radius: 18px; }
.bpx-shot img { max-width: 440px; border-width: 5px; border-radius: 10px; box-shadow: 0 0 0 1px #2c3832, 0 28px 50px -20px rgba(0, 0, 0, .95), 0 0 60px -16px color-mix(in srgb, var(--accent) 45%, transparent); }
.bpx-tx { gap: 11px; }
.bpx-kicker { font-size: 10.5px; }
.bpx-tx strong { font-size: clamp(21px, 1.9vw, 27px); }
.bpx-sub { font-size: 14px; line-height: 1.45; color: var(--muted); }
.bpx-go { height: 42px; padding: 0 18px; margin-top: 2px; border-radius: 11px; font-size: 14px; }
.bpx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bpx-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--bg, #121614); border: 1px solid var(--line); transition: border-color .2s; }
.bpx:hover .bpx-tile { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.bpx-tile b { font-size: 14.5px; color: var(--fg); line-height: 1.2; }
.bpx-tile > span:last-child { font-size: 13px; line-height: 1.4; color: var(--muted); }
.bpx-ic { width: 34px; height: 34px; border-radius: 10px; }
.bpx-ic svg { width: 17px; height: 17px; }
@media (max-width: 1280px) { .bpx { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } .bpx-tiles { grid-column: 1 / -1; } }
@media (max-width: 760px) { .bpx { grid-template-columns: 1fr; } .bpx-shot img { max-width: 100%; } .bpx-tiles { grid-template-columns: 1fr; } }

/* ---- Accueil : « Continuer à jouer » en haut (une seule rangée, 6 jeux au plus) */
.recent-top { margin-top: 12px; }
.recent-top .grid > :nth-child(n+7) { display: none; }
.recent-top .recent-clear { border: 0; background: transparent; color: var(--muted); font: 600 12.5px var(--mono); cursor: pointer; }
.recent-top .recent-clear:hover { color: var(--fg); }

/* ---- Fiche du jeu : captures d'écran (Steam), rangée qui défile + agrandissement au clic */
.shots { margin-block: 26px 6px; }
.shots-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shot { display: block; scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 16 / 9; transition: border-color .15s, transform .2s; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot:hover { border-color: var(--accent); transform: translateY(-2px); }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot-box { padding: 0; border: 0; background: transparent; max-width: min(1280px, 94vw); }
.shot-box::backdrop { background: rgba(2, 4, 3, .88); }
.shot-box img { display: block; max-width: 100%; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.shot-box form { position: absolute; top: 10px; right: 10px; margin: 0; }
.shot-box button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(9, 11, 10, .8); color: #fff; font-size: 20px; cursor: pointer; }
.shot-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(9, 11, 10, .75); color: #fff; font-size: 22px; cursor: pointer; }
.shot-nav.is-prev { left: 10px; } .shot-nav.is-next { right: 10px; }

/* ---- Accueil : « Continuer à jouer » en grandes cartes */
.rc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rc { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: border-color .15s, transform .2s, box-shadow .2s; }
.rc.is-last { border-color: var(--accent); }
.rc:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .9); }
.rc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-art { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--bg-raise); }
.rc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #02150a; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .7); transition: transform .2s; }
.rc-play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.rc:hover .rc-play { transform: scale(1.1); }
.rc-tx { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; min-width: 0; }
.rc-tx b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tx small { font: 600 11.5px var(--mono); color: var(--muted); }
.rc.is-last .rc-tx small { color: var(--accent); }
@media (max-width: 900px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Accueil : Populaires | Nouveautés (onglets) */
.shelf-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.shelf-tab { height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 800 15px var(--display, inherit); cursor: pointer; transition: background .15s, color .15s; }
.shelf-tab:hover { color: var(--fg); }
.shelf-tab[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.shelf-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabs-shelf .shelf-tools[hidden], .tabs-shelf [role="tabpanel"][hidden] { display: none; }
.shelf-all.is-ports { color: var(--accent); }

/* ---- Accueil : À propos + FAQ dans un seul bloc repliable */
.about-faq { margin-block: 30px 10px; border-radius: 16px; background: var(--bg-raise); border: 1px solid var(--line); }
.about-faq > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.about-faq > summary::-webkit-details-marker { display: none; }
.about-faq > summary b { display: block; font-size: 18px; }
.about-faq > summary small { font-size: 14px; color: var(--muted); }
.about-faq > summary i { position: relative; flex: none; width: 18px; height: 18px; }
.about-faq > summary i::before, .about-faq > summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); transition: transform .2s; }
.about-faq > summary i::after { transform: rotate(90deg); }
.about-faq[open] > summary i::after { transform: rotate(0); }
.about-faq > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
.about-faq > .trust, .about-faq > .faq { margin: 0; padding: 4px 24px 22px; }
/* « Continuer à jouer » : version compacte (6 par ligne, image de hauteur fixe) */
.rc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; }
.rc { border-radius: 11px; }
.rc-art { aspect-ratio: auto; height: 96px; overflow: hidden; }
.rc-art img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.rc-play { left: 8px; bottom: 8px; width: 30px; height: 30px; }
.rc-play svg { width: 12px; height: 12px; }
.rc-tx { gap: 2px; padding: 8px 10px; }
.rc-tx b { font-size: 13.5px; }
.rc-tx small { font-size: 10.5px; }
@media (max-width: 1200px) { .rc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rc-grid > :nth-child(n+5) { display: none; } }
@media (max-width: 700px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ admin v2 : menu groupé, tableau de bord, signalements, menu téléphone */
.adm-nav-group { margin: 14px 10px 4px; font: 600 10.5px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.adm-nav-btn .adm-badge.is-alert { background: #ff8a5c; color: #1a0a03; }
.adm-tabbar { display: none; }
.hm-label { margin: 22px 0 10px; font: 600 10.5px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg-raise); color: var(--fg); text-align: start; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.hm-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hm-card.is-hot { border-color: #5c2f1d; }
.hm-card .hm-n { font: 700 32px/1.1 'JetBrains Mono', ui-monospace, monospace; }
.hm-card.is-hot .hm-n { color: #ff8a5c; }
.hm-card.is-zero .hm-n { color: var(--dim); }
.hm-card b { font-size: 15px; }
.hm-d { color: var(--muted); font-size: 13px; }
.hm-cta { margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 13.5px; font-weight: 700; }
.hm-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.hm-panel { padding: 18px 20px; }
.hm-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hm-ph .linklike { color: var(--accent); font-size: 13.5px; font-weight: 600; }
.hm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.hm-stat span { display: block; color: var(--muted); font-size: 13px; }
.hm-stat b { font: 700 26px/1.2 'JetBrains Mono', ui-monospace, monospace; }
.hm-stat b.is-live { color: var(--accent); }
.hm-links { display: grid; gap: 8px; margin-top: 12px; }
.hm-link { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; font-size: 14.5px; text-align: start; cursor: pointer; }
.hm-link:hover { border-color: var(--accent); }

.rp-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.rp-sort select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--fg); font: inherit; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; }
#rp-status:empty { display: none; }
.rp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 16px; align-items: start; margin-top: 16px; }
.rp-list { display: grid; gap: 8px; min-width: 0; }
.rp-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg-raise); color: var(--fg); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s; }
.rp-item:hover { border-color: var(--line); }
.rp-item[aria-expanded="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-raise)); }
.rp-cover { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: var(--card); display: block; }
.rp-txt { min-width: 0; display: grid; gap: 3px; }
.rp-txt b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-why { color: var(--muted); font-size: 13px; }
.rp-n { font: 700 22px 'JetBrains Mono', ui-monospace, monospace; padding-inline: 6px; }
.rp-n.is-hot { color: #ff8a5c; }
.rp-detail { position: sticky; top: 20px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.rp-detail[hidden] { display: none; }
.rp-dh { display: flex; gap: 14px; align-items: center; min-width: 0; }
.rp-dcover { width: 120px; flex: none; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; background: var(--card); display: block; }
.rp-dname { margin: 0; font-size: 18px; line-height: 1.25; }
.rp-dmeta { margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rp-dmeta a { color: var(--accent); text-decoration: none; }
.rp-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rp-acts .btn { justify-content: center; min-height: 42px; }
.rp-detail .hm-label { margin: 4px 0 0; }
.rp-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; }
.rp-msg { padding: 11px 12px; border-radius: 10px; background: var(--bg); }
.rp-mh { margin: 0; font-size: 13px; }
.rp-mmeta { color: var(--muted); }
.rp-mtxt { margin: 6px 0 0; font-size: 14px; color: var(--fg); overflow-wrap: anywhere; }

@media (max-width: 1100px) { .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .rp-layout { grid-template-columns: minmax(0, 1fr); }
  .rp-detail { position: static; margin: -2px 0 6px; border-color: var(--accent); }
  .rp-msgs { max-height: none; }
}
@media (max-width: 760px) { .hm-grid { grid-template-columns: minmax(0, 1fr); } }

/* Téléphone et tablette : barre d'onglets en bas, menu complet derrière « Plus » */
@media (max-width: 900px) {
  .admin.is-auth .adm-side { display: none; }
  .admin.is-auth.nav-open .adm-side {
    display: flex; position: fixed; inset: 0 0 calc(64px + env(safe-area-inset-bottom, 0px)) 0; z-index: 60; height: auto;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; overflow-y: auto;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px 16px; border: 0; background: var(--bg-raise); backdrop-filter: none;
  }
  .admin.nav-open .adm-nav { order: 0; flex: none; display: grid; gap: 2px; overflow: visible; margin: 0; padding: 0; }
  .admin.nav-open .adm-nav-btn { width: 100%; min-height: 46px; font-size: 15px; }
  .admin.nav-open .adm-nav-label { flex: 1; }
  .admin.nav-open .adm-side-foot { order: 0; margin: 0; padding: 12px 8px 0; border-top: 1px solid var(--line-soft); display: block; }
  .admin.nav-open .adm-who #who { display: inline; }
  .admin.is-auth .adm-tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; z-index: 70;
    height: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 0 6px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--line-soft); background: rgba(15, 19, 17, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .adm-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
  .adm-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .adm-tab[aria-current="page"], .adm-tab[aria-expanded="true"] { color: var(--accent); font-weight: 700; }
  .adm-tab-n { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #ff8a5c; color: #1a0a03; font: 700 10.5px/18px 'JetBrains Mono', ui-monospace, monospace; text-align: center; }
  .adm-tab-n[hidden] { display: none; }
  .admin.is-auth .adm-main { padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .admin .gn-actionbar { top: 0; bottom: auto; }
}
@media (max-width: 640px) {
  .hm-card { padding: 14px; }
  .hm-card .hm-n { font-size: 26px; }
  .rp-item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .rp-cover { width: 72px; }
  .rp-dcover { width: 88px; }
  .rp-acts .btn { min-height: 46px; }
  .rp-sort { width: 100%; }
  .rp-sort select { flex: 1; }
}
.hm-grid { align-items: start; }
@media (max-width: 1000px) { .rp-detail .rp-dcover, .rp-detail .rp-dname { display: none; } }

/* admin v2 : pagination + PC Ports en cartes */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; font-size: 13.5px; }
.pager[hidden] { display: none; }
.pager-per { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pager select, .pt-filters select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; }
.pager-btns { display: flex; align-items: center; gap: 10px; }
.pager-pg { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pager .btn:disabled { opacity: .4; cursor: default; }
.pt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.pt-filters label { display: flex; align-items: center; gap: 8px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.pt-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg-raise); overflow: hidden; transition: border-color .15s; }
.pt-card:hover { border-color: var(--line); }
.pt-card.is-hidden { opacity: .6; }
.pt-img { position: relative; aspect-ratio: 16 / 9; background: var(--card); display: grid; place-items: center; }
.pt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-noimg-l { color: var(--dim); font-size: 13px; }
.pt-st { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(9, 11, 10, .85); color: var(--warn); font-size: 11.5px; font-weight: 700; }
.pt-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.pt-title { margin: 0; font-size: 15.5px; line-height: 1.3; }
.pt-sub { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.pt-tag { padding: 2px 8px; border-radius: 6px; background: var(--card); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.pt-tag.is-plat { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pt-tag.is-os { text-transform: capitalize; }
.pt-link { color: var(--dim); font-size: 12px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-link:hover { color: var(--accent); }
.pt-act { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.pt-act .btn { flex: 1; justify-content: center; }
@media (max-width: 640px) {
  .pt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .pt-body { padding: 10px; }
  .pt-act { flex-direction: column; }
  .pager { justify-content: center; }
  .pager-info { order: -1; width: 100%; text-align: center; }
}

/* admin v2 : recherche Ctrl+K, vue cartes des jeux, historique, signalements (onglets), graphique des pubs */
.adm-find { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--bg); color: var(--dim); font: inherit; font-size: 14px; cursor: pointer; }
.adm-find:hover { border-color: var(--line); color: var(--muted); }
.adm-find svg, .find-bar svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.adm-find span { flex: 1; text-align: start; }
.adm-find kbd, .find-bar kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; font: 600 10.5px 'JetBrains Mono', ui-monospace, monospace; color: var(--dim); }
.find-dlg { width: min(640px, calc(100vw - 24px)); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raise); color: var(--fg); }
.find-dlg::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.find-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--dim); }
.find-bar input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 16px; outline: none; }
.find-res { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.find-it { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; text-align: start; cursor: pointer; }
.find-it[aria-selected="true"], .find-it:hover { background: var(--card); }
.find-it img, .find-ic { width: 56px; aspect-ratio: 16 / 9; border-radius: 6px; object-fit: cover; background: var(--card); display: block; }
.find-tx { display: grid; min-width: 0; }
.find-tx b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-tx .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-kind { font: 600 10.5px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.find-none { padding: 18px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .admin.nav-open .adm-find { order: 0; } }

.dash-view { display: flex; gap: 6px; margin-top: 14px; }
.admin-rows.is-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: stretch; }
.admin-rows.is-cards > .adm-empty { grid-column: 1 / -1; }
.admin-rows.is-cards .admin-row { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; }
.admin-rows.is-cards .admin-thumb { width: 100%; }
.admin-rows.is-cards .admin-actions { max-width: none; justify-content: flex-start; flex-wrap: wrap; align-self: end; }
.admin-rows.is-cards .admin-info .link { white-space: nowrap; }
@media (max-width: 640px) { .admin-rows.is-cards { grid-template-columns: minmax(0, 1fr); } }

.rp-tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1px solid var(--line-soft); }
.rp-tab { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.rp-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.rp-layout[hidden], .rp-chips[hidden], .rp-sort[hidden] { display: none; }
#rp-hist { margin-top: 16px; }
.rp-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hist-table td.mono, #rp-hist-t td.mono { white-space: nowrap; font-variant-numeric: tabular-nums; }
#hist-status:empty { display: none; }

.ads-chart { margin: 10px 0 18px; }
.ads-ch-head { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--muted); }
.ads-ch-head strong { font: 700 22px 'JetBrains Mono', ui-monospace, monospace; color: var(--fg); }
.ads-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 3px; height: 140px; margin-top: 10px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.ads-bar { display: block; height: max(2px, var(--h)); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); transition: background .15s; }
.ads-bar:hover { background: var(--accent); }
.ads-bar.is-today { background: var(--accent); }
.ads-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; }

/* PC Ports et APK : filtres en pastilles, mêmes styles que l'accueil (.fam-k / .sys-k) */
.pp-filters { display: grid; gap: 10px; margin: 2px 0 18px; min-width: 0; }
.pp-filters .fam-in, .pp-filters .fam-sys { width: auto; margin: 0; padding: 0; justify-content: flex-start; }
.pp-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.pp-filters .fam-k[data-pg="os"][aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.apk-bar { flex-direction: column; align-items: stretch; }
.apk-bar .pp-filters { margin-bottom: 4px; }
@media (max-width: 640px) {
  .pp-filters .fam-in, .pp-filters .fam-sys { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -16px; padding-inline: 16px; }
  .pp-filters .fam-in::-webkit-scrollbar, .pp-filters .fam-sys::-webkit-scrollbar { display: none; }
  .pp-filters .fam-k, .pp-filters .sys-k { flex: none; }
}
/* « Ajoutés récemment » : même carte verticale que le Top 10, sans numéro */
.rank-card.is-plain { grid-template-columns: 158px; }
.rank-card.is-plain .card-cover.rank-cover, .rank-card.is-plain .rank-body { grid-column: 1; }
.rank-when { margin: 3px 0 0; font: 500 11.5px var(--mono); color: var(--dim); }
@media (max-width: 700px) { .rank-card.is-plain { grid-template-columns: 112px; } }

/* ------------------------------------------------------------------ images : toujours entières, étirées à la taille de leur cadre
   (plus de recadrage « cover » ni de bandes « contain »). :not(#pt-img-fill) donne à cette règle la priorité sur toutes les autres. */
img:not(#pt-img-fill) { object-fit: fill !important; object-position: center !important; }
.cover.fit-contain img:not(#pt-img-fill), html[data-theme="ludo"] .grid .cover:has(img) img:not(#pt-img-fill), .port-img-prev.is-contain img:not(#pt-img-fill) { padding: 0 !important; background: none !important; }

/* ------------------------------------------------------------------ PC Ports / APK : barre de filtres (recherche, type, système, console) */
.pp-filters.pfb { display: grid; gap: 12px; margin: 4px 0 20px; }
.pfb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel, var(--bg-raise)); }
.pfb-search { flex: 1 1 260px; min-width: 0; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.pfb-search:focus-within { border-color: var(--accent); }
.pfb-search svg, .pfb-find svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pfb-search input, .pfb-find input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; color: var(--fg); font: 500 15px var(--body); outline: none; box-shadow: none; }
.pfb-seg { display: flex; height: 44px; padding: 4px; gap: 2px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); }
.pfb-sg { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: 650 14px var(--body); cursor: pointer; white-space: nowrap; }
.pfb-sg small, .pfb-o small { font: 600 11px var(--mono); color: var(--muted); }
.pfb-sg:hover { background: var(--line-soft); }
.pfb-sg[aria-pressed="true"] { background: var(--fg); color: var(--bg); font-weight: 750; }
.pfb-sg[aria-pressed="true"] small { color: inherit; opacity: .6; }
.pfb-dd { position: relative; }
.pfb-btn { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 650 14px var(--body); cursor: pointer; white-space: nowrap; }
.pfb-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pfb-btn:hover, .pfb-btn[aria-expanded="true"] { border-color: var(--fg); }
.pfb-btn.is-on { border-color: var(--accent); background: var(--accent-soft); }
.pfb-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--mono); text-align: center; }
.pfb-btn[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.pfb-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(470px, calc(100vw - 32px)); max-height: min(440px, 70vh); overflow: auto; box-sizing: border-box; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, var(--bg-raise)); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; gap: 12px; }
.pfb-dd:last-child .pfb-pop { left: auto; right: 0; }
.pfb-pop[hidden] { display: none; }
.pfb-find { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.pfb-groups { display: grid; gap: 12px; }
.pfb-grp[hidden] { display: none; }
.pfb-gt { margin: 0 0 6px; font: 600 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pfb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pfb-o { height: 36px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 13px var(--body); cursor: pointer; text-align: start; }
.pfb-o span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfb-o[hidden] { display: none; }
.pfb-o:hover { border-color: var(--fg); }
.pfb-o[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pfb-o[aria-pressed="true"] small { color: var(--accent); }
.pfb-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pfb-active[hidden] { display: none; }
.pfb-chips { display: contents; }
.pfb-chip { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raise); color: var(--fg); font: 600 13px var(--body); cursor: pointer; }
.pfb-chip svg { fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.pfb-chip:hover { border-color: var(--fg); }
.pfb-clear { height: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--accent); font: 650 13px var(--body); cursor: pointer; }
.pfb-sg:focus-visible, .pfb-btn:focus-visible, .pfb-o:focus-visible, .pfb-chip:focus-visible, .pfb-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .pfb-bar { padding: 8px; gap: 8px; }
  .pfb-search { flex-basis: 100%; }
  .pfb-bar, .pfb-search, .pfb-dd { min-width: 0; }
  .pfb-seg { flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .pfb-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfb-sg { flex: 1 0 auto; justify-content: center; padding: 0 10px; }
  .pfb-dd { flex: 1 1 0; }
  .pfb-btn { width: 100%; justify-content: center; }
  .pfb-pop, .pfb-dd:last-child .pfb-pop { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 75vh; border-radius: 20px 20px 0 0; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); z-index: 1200; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  .pfb-o { height: 42px; }
}

/* ------------------------------------------------------------------ PC Ports / APK : avertissement de première visite */
.ports-warn { width: min(520px, calc(100% - 32px)); }
.ports-warn::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.ports-warn-in { display: grid; gap: 12px; padding: clamp(20px, 4vw, 30px); }
.ports-warn-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(242, 184, 75, .12); color: #f2b84b; }
.ports-warn-ic svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ports-warn h2 { margin: 0; font-size: 22px; }
.ports-warn p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ports-warn-ck { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ports-warn-ck input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.ports-warn-ck:has(input:checked) { border-color: var(--accent); }
.ports-warn [data-warn-ok] { justify-self: end; min-width: 140px; min-height: 44px; }
.ports-warn [data-warn-ok]:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------ PC Ports / APK : bouton Signaler + signalements dans l'admin */
.port-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.port-rep { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; padding: 4px 2px; border: 0; background: transparent; color: var(--dim); font: 600 12.5px var(--body); cursor: pointer; }
.port-rep svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.port-rep:hover { color: var(--danger); }
.port-rep.is-sent { color: var(--accent); cursor: default; }
.port-rep.is-ic { flex: none; width: 40px; height: 40px; justify-content: center; margin: 0; padding: 0; border-radius: 10px; }
.port-rep.is-ic:hover { background: var(--line-soft); }
.port-rep:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prp { margin: 0 0 18px; padding: 14px; border: 1px solid rgba(255, 130, 112, .35); border-radius: 14px; background: rgba(255, 130, 112, .05); }
.prp-t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.prp-list { display: grid; gap: 8px; }
.prp-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.prp-img { width: 64px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--line); }
.prp-img img { width: 100%; height: 100%; display: block; }
.prp-tx { display: grid; gap: 2px; min-width: 0; }
.prp-tx strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prp-why { color: var(--muted); font-size: 13px; }
.prp-msg { color: var(--fg); font-size: 13px; font-style: italic; }
.prp-n { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--danger); color: #2a0904; font-size: 12px; text-align: center; }
.prp-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) {
  .prp-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .prp-act { grid-column: 1 / -1; justify-content: stretch; }
  .prp-act > * { flex: 1; }
}

/* Jeu « Instable » : même fenêtre que l'avertissement téléphone, en violet */
.un-dlg { border-color: rgba(176, 140, 255, .5); }
.un-dlg .mf-ic { background: rgba(176, 140, 255, .14); color: #b08cff; }

/* Mon compte : menu de gauche toujours visible, sans bouton pour le replier */
html.side-fixed .side-toggle { display: none !important; }

/* Téléchargement de l'appli PC, sous le bloc Big Picture de l'accueil */
/* Bandeau Big Picture : 2 boutons (ouvrir Big Picture, télécharger l'appli PC) */
.bpx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
.bpx-acts .bpx-go { margin-top: 0; text-decoration: none; }
.bpx-app { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 16px 5px 12px; border-radius: 11px; border: 1px solid var(--line-2, #2c3832); background: rgba(255, 255, 255, .03); color: var(--fg); text-decoration: none; transition: border-color .2s, background-color .2s; }
.bpx-app svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bpx-app span { display: flex; flex-direction: column; line-height: 1.15; }
.bpx-app b { font-size: 13.5px; font-weight: 750; }
.bpx-app small { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bpx-app:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
.bpx-go:focus-visible, .bpx-app:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .bpx-app { display: none; } }
.bpx-dl { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px 18px; border-radius: 14px; background: var(--card, #0f1311); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: border-color .2s; }
.bpx-dl:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.bpx-dl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bpx-dl-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bpx-dl-tx b { font-size: 15px; }
.bpx-dl-tx span { font-size: 13px; color: var(--muted); }
.bpx-dl-os { flex: none; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) { .bpx-dl { display: none; } }

/* Page app-link.php : connexion de l'appli PlayTab par le navigateur (code à comparer avec celui de l'appli) */
.applink .applink-k { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.applink-code { display: inline-block; margin: 8px 0 6px; padding: 10px 22px; border-radius: 14px; background: var(--bg, #0b0d0c); border: 1px solid var(--line); font: 800 30px var(--mono); letter-spacing: .16em; color: var(--accent); }
.applink-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.applink .login-btns { margin-top: 12px; width: 100%; }


/* ================= Page « Appli PC » (/download) ================= */
.dl-page { padding-bottom: 40px; }
.dl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 54px); align-items: center; margin: 14px 0 46px; }
.dl-eye { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.dl-hero h1 { margin: 12px 0 0; font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(34px, 5vw, 58px); line-height: .98; letter-spacing: -.02em; }
.dl-lead { margin: 16px 0 0; max-width: 54ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.dl-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dl-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 22px 10px 18px; border-radius: 16px; background: var(--accent); color: var(--accent-ink, #02150a); text-decoration: none; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform .15s, box-shadow .2s; }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.dl-btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.dl-btn > svg { width: 26px; height: 26px; flex: none; }
.dl-btn > svg:last-child { width: 20px; height: 20px; }
.dl-btn span { display: flex; flex-direction: column; gap: 2px; }
.dl-btn b { font-size: 17px; font-weight: 850; }
.dl-btn small { font-size: 12.5px; font-weight: 600; opacity: .78; }
.dl-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--dim, var(--muted)); }
.dl-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card, #0f1311); color: var(--muted); font-size: 13px; font-weight: 600; }
.dl-chip svg { width: 14px; height: 14px; }
.dl-mob { display: none; margin: 0; color: var(--muted); font-size: 14px; }
.dl-mob a { color: var(--accent); font-weight: 700; text-decoration: none; }
.dl-page[data-os="mobile"] .dl-mob { display: block; }
.dl-hero-shot { display: block; perspective: 1600px; }
.dl-hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 7px solid #050605; box-shadow: 0 0 0 1px #2c3832, 0 40px 70px -24px rgba(0, 0, 0, .95), 0 0 90px -20px color-mix(in srgb, var(--accent) 50%, transparent); transform: rotateY(-9deg) rotateX(3deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.dl-hero-shot:hover img { transform: rotateY(-3deg) rotateX(1deg); }
.dl-sec { margin: 0 0 52px; }
.dl-sec h2 { margin: 0; font-family: var(--display); font-weight: 850; font-stretch: 110%; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; }
.dl-sub { margin: 6px 0 0; color: var(--muted); }
.dl-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.dl-feat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--card, #0f1311); border: 1px solid var(--line); }
.dl-feat b { font-size: 16px; }
.dl-feat > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.dl-feat-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.dl-feat-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dl-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.dl-shot { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #050605; text-decoration: none; color: var(--fg); }
.dl-shot.is-big { grid-column: span 2; grid-row: span 2; }
.dl-shot img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s; }
.dl-shot:hover img { transform: scale(1.03); }
.dl-shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 13.5px; font-weight: 650; background: linear-gradient(transparent, rgba(5, 6, 5, .92)); }
.dl-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dl-os { display: grid; gap: 10px; margin-top: 20px; max-width: 820px; }
.dl-os-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card, #0f1311); border: 1px solid var(--line); }
.dl-os-row.is-you { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-os-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg, #0b0d0c); color: var(--fg); flex: none; }
.dl-os-ic svg { width: 22px; height: 22px; }
.dl-os-row:not(.is-on):not([data-os-row="mobile"]) { opacity: .62; }
.dl-os-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dl-os-tx b { font-size: 15.5px; }
.dl-os-tx small { color: var(--muted); font-size: 13px; }
.dl-soon { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); }
.dl-faq details { max-width: 820px; margin-top: 10px; border-radius: 14px; background: var(--card, #0f1311); border: 1px solid var(--line); }
.dl-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.dl-faq details[open] summary::after { content: "–"; }
.dl-faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.55; }
/* Captures : carrousel (une image à la fois, l'image suit la souris) */
.dl-car { --ry: -9deg; --rx: 3deg; min-width: 0; perspective: 1600px; }
.dl-car .dl-car-view { transform: rotateY(var(--ry)) rotateX(var(--rx)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; border: 7px solid #050605; border-radius: 16px; box-shadow: 0 0 0 1px #2c3832, 0 40px 70px -24px rgba(0, 0, 0, .95), 0 0 90px -20px color-mix(in srgb, var(--accent) 50%, transparent); }
.dl-car.is-tilting .dl-car-view { transition: transform .12s linear; }
.dl-car:not(.is-tilting) .dl-car-view:hover { --ry: -3deg; }
.dl-car-view { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #050605; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 90px -40px color-mix(in srgb, var(--accent) 45%, transparent); }
.dl-car-track { display: flex; transition: transform .55s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.dl-slide { position: relative; flex: 0 0 100%; display: block; aspect-ratio: 16 / 9; overflow: hidden; color: var(--fg); text-decoration: none; cursor: zoom-in; }
.dl-slide-img { --mx: 0; --my: 0; position: absolute; inset: 0; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.dl-slide-img img { display: block; width: 100%; height: 100% !important; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.dl-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 12px; padding: 50px 22px 18px; font-size: 15px; font-weight: 650; background: linear-gradient(transparent, rgba(5, 6, 5, .94)); pointer-events: none; }
.dl-slide-cap b { flex: none; white-space: nowrap; font: 600 12px var(--mono); letter-spacing: .08em; color: var(--accent); }
.dl-slide:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.dl-car-btn { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(9, 11, 10, .72); color: var(--fg); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .85; transition: opacity .2s, background-color .2s, border-color .2s; }
.dl-car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dl-car-btn.is-prev { left: 14px; } .dl-car-btn.is-next { right: 14px; }
.dl-car-btn:hover { opacity: 1; border-color: var(--accent); background: rgba(9, 11, 10, .9); }
.dl-car-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; opacity: 1; }
.dl-car-thumbs { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.dl-car-thumbs::-webkit-scrollbar { display: none; }
.dl-thumb { flex: 1 0 140px; max-width: 220px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #050605; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.dl-thumb { align-self: flex-start; }
.dl-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.dl-thumb:hover { opacity: .9; }
.dl-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.dl-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .dl-car-btn { width: 38px; height: 38px; } .dl-slide-cap { padding: 34px 14px 12px; font-size: 13px; } .dl-thumb { flex-basis: 96px; } }
@media (hover: none) { .dl-car-btn { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dl-car-track, .dl-car .dl-car-view { transition: none !important; } }
@media (max-width: 900px), (hover: none) { .dl-car { --ry: 0deg; --rx: 0deg; } }

/* Appli ou site : tableau comparatif */
.dl-vs { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card, #0f1311); }
.dl-vs-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.dl-vs-row + .dl-vs-row { border-top: 1px solid var(--line-soft, var(--line)); }
.dl-vs-row > span { padding: 14px 18px; font-size: 14.5px; line-height: 1.4; }
.dl-vs-row > [role="rowheader"] { font-weight: 650; color: var(--fg); }
.dl-vs-row > .is-app { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--fg); font-weight: 600; }
.dl-vs-row > .is-web { color: var(--muted); }
.dl-vs-head > span { padding-block: 12px; font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim, var(--muted)); }
.dl-vs-head > .is-app { color: var(--accent); }
.dl-vs-row .is-yes svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dl-vs-row .is-no { color: var(--dim, var(--muted)); }
.dl-vs-tip { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .dl-vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dl-vs-row > [role="rowheader"] { grid-column: 1 / -1; padding-bottom: 4px; }
  .dl-vs-head > span:first-child { display: none; }
  .dl-vs-row > span { padding: 10px 14px; font-size: 13.5px; }
}

.dl-zoom { max-width: min(1400px, 94vw); padding: 0; border: 0; border-radius: 14px; background: #050605; }
.dl-zoom::backdrop { background: rgba(0, 0, 0, .82); }
.dl-zoom img { display: block; width: 100%; height: auto; }
.dl-zoom form { position: absolute; top: 10px; right: 10px; }
.dl-zoom-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 24px; cursor: pointer; }
@media (max-width: 900px) {
  .dl-hero { grid-template-columns: 1fr; }
  .dl-hero-shot img { transform: none; }
  .dl-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dl-feats, .dl-shots { grid-template-columns: 1fr; }
  .dl-shot.is-big { grid-column: auto; grid-row: auto; }
  .dl-btn { width: 100%; }
  .dl-os-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .dl-hero-shot img, .dl-shot img, .dl-btn { transition: none; } }

/* Page Premium : « Un souci avec le paiement ? » à côté des offres */
.prem-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 18px auto 0; color: var(--muted); font-size: 14px; }
.prem-help .btn { display: inline-flex; align-items: center; gap: 8px; }
.prem-help .btn svg { width: 16px; height: 16px; }


/* ---------------------------------------------------------------- page DMCA (dmca.php) */
.dmca-page .panel { padding: 20px 22px; }
.dmca-contact { margin: 22px 0 6px; }
.dmca-contact h2 { margin-top: 0; }
.dmca-contact p { margin: 0; }
.dmca-mail { color: var(--accent); font-weight: 700; word-break: break-all; }
.dmca-list { margin: 0 0 10px; padding-left: 22px; color: #c9d4ce; line-height: 1.65; }
.dmca-list li { margin-bottom: 6px; }
.dmca-form { display: grid; gap: 2px; margin-top: 8px; }
.dmca-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 14px; }
.dmca-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; line-height: 1.5; color: #c9d4ce; cursor: pointer; }
.dmca-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.dmca-req { color: var(--danger); }
.dmca-note { margin: 2px 0 14px !important; font-size: 13px; }
.dmca-form .btn { justify-self: start; }
.dmca-err { padding: 12px 14px; border: 1px solid rgba(255, 130, 112, .45); border-radius: 10px; color: var(--danger) !important; background: rgba(255, 130, 112, .07); }
.dmca-ok { border-color: rgba(52, 226, 127, .45); }
.dmca-ok h3 { margin: 0 0 6px; color: var(--accent); }
.dmca-ok p { margin: 0 !important; }
.dmca-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- admin : DMCA */
.dmca-adm-list { display: grid; gap: 14px; margin-top: 14px; }
.dmca-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.dmca-card.is-closed { opacity: .62; }
.dmca-card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.dmca-badge { padding: 3px 9px; border-radius: 99px; font: 700 11px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); }
.dmca-badge.is-new { border-color: rgba(255, 130, 112, .55); color: var(--danger); }
.dmca-badge.is-review { border-color: rgba(255, 196, 92, .55); color: #ffc45c; }
.dmca-badge.is-removed { border-color: rgba(52, 226, 127, .5); color: var(--accent); }
.dmca-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; margin: 0 0 10px; font-size: 14px; }
.dmca-dl dt { color: var(--dim); font-weight: 650; }
.dmca-dl dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dmca-dl a { color: var(--accent); }
.dmca-notes { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: inherit; resize: vertical; }
.dmca-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .dmca-dl { grid-template-columns: minmax(0, 1fr); } .dmca-dl dt { margin-top: 4px; } }

/* ---------------------------------------------------------------- Accueil allégé (proposition A, 2026-10) */
/* Colonne de droite du bloc « À la une » : « Continuer à jouer » + « En direct » regroupés */
.feat-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feat-side .feat-live { flex: 1; }
.feat-recent { margin: 0; padding: 16px 18px; border: 1px solid var(--panel-line); border-radius: var(--r-lg); background: var(--panel); }
.feat-recent .shelf-head { margin: 0 0 10px; padding: 0; align-items: baseline; }
.feat-recent .shelf-head h2 { font-size: 18px; }
.feat-recent .rc-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.feat-recent .rc { flex-direction: row; align-items: center; gap: 0; border-radius: 12px; }
.feat-recent .rc:nth-child(n + 4) { display: none; }
.feat-recent .rc-art { flex: none; width: 76px; aspect-ratio: 16 / 9; }
.feat-recent .rc-play { left: 50%; top: 50%; bottom: auto; width: 26px; height: 26px; translate: -50% -50%; }
.feat-recent .rc-play svg { width: 11px; height: 11px; }
.feat-recent .rc-tx { padding: 6px 12px; }
.feat-recent .rc-tx b { font-size: 14px; }
/* « Continuer à jouer » affiché : « En direct » se résume à 3 jeux */
.feat-side:has(.feat-recent:not([hidden])) .feat-live .live-pill:nth-child(n + 4) { display: none; }

/* Explorer : 4 familles + catégories */
.explore { margin-top: 40px; }
.explore-h { margin: 0 0 16px; font-family: var(--display); font-weight: 850; font-stretch: 105%; font-size: clamp(20px, 2.2vw, 24px); }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.exp-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--panel-line); border-radius: var(--r-lg); background: var(--panel); color: var(--fg); text-decoration: none; transition: border-color .15s, transform .15s; }
.exp-card:hover { border-color: #3d4a43; transform: translateY(-2px); }
.exp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.exp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.exp-top b { font-size: 18px; font-weight: 800; }
.exp-top small { font: 600 12px var(--mono); color: var(--muted); white-space: nowrap; }
.exp-card.is-fan .exp-top b { color: #ffc45c; }
.exp-sub { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.exp-thumbs { display: flex; gap: 6px; margin-top: 4px; }
.exp-th { flex: 1; aspect-ratio: 460 / 215; border-radius: 8px; overflow: hidden; background: var(--card); }
.exp-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.explore-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.explore-cats .chip { text-decoration: none; }
.explore-all { padding: 6px 8px; color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.explore-all:hover { text-decoration: underline; }

/* Big Picture + appli PC : bandeau fin */
.bp-strip { margin-top: 36px; }
.bps { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 20px; border: 1px solid var(--panel-line); border-radius: var(--r-lg); background: var(--panel); }
.bps-shot { flex: none; width: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.bps-shot img { display: block; width: 100%; height: auto; }
.bps-tx { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bps-tx strong { font-family: var(--display); font-weight: 850; font-size: 19px; }
.bps-tx strong .beta-pill { vertical-align: middle; }
.bps-tx > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.bps-acts { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .feat-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
}
@media (max-width: 600px) {
  .explore { margin-top: 30px; }
  .explore-grid { gap: 10px; }
  .exp-card { padding: 14px; gap: 4px; }
  .exp-sub, .exp-thumbs { display: none; }
  .exp-top { flex-direction: column; gap: 2px; }
  .explore-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .explore-cats::-webkit-scrollbar { display: none; }
  .explore-cats > * { flex: none; }
  .bps { padding: 14px; gap: 12px; }
  .bps-shot { display: none; }
  .bps-acts { width: 100%; }
  .bps-acts .btn { flex: 1; justify-content: center; }
}
/* « En direct » vide (personne ne joue) : masqué s'il y a « Continuer à jouer », et toujours sur mobile */
.feat-side:has(.feat-recent:not([hidden])) .feat-live:not(.is-live) { display: none; }
@media (max-width: 900px) { .feat-side .feat-live:not(.is-live) { display: none; } }
/* Vignette sans image : jaquette dessinée (teinte de la licence) */
.exp-th.is-art { background: linear-gradient(160deg, hsl(var(--h, 140) 42% 30%), hsl(var(--h, 140) 38% 14%)); }

/* ------------------------------------------------------------------ Admin › Appli : Recomp */
.rc-sync { margin-top: 16px; }
.rc-sync .adm-sub { margin: 0 0 12px; }
.rc-cfg { display: grid; gap: 8px; margin-bottom: 12px; }
.rc-cfg:empty { display: none; }
.rc-warn, .rc-note { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.rc-warn { background: color-mix(in srgb, #ffb547 12%, transparent); border: 1px solid color-mix(in srgb, #ffb547 45%, transparent); color: #ffd28a; }
.rc-note { background: var(--card); border: 1px solid var(--line-soft); color: var(--muted); }
.rc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-steps li { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) minmax(130px, auto) auto; align-items: center; gap: 6px 16px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg); }
.rc-steps li b { font-size: 14.5px; }
.rc-steps li span { font-size: 13px; line-height: 1.45; }
.rc-step-st { font: 500 12px var(--mono); font-style: normal; color: var(--accent); text-align: right; }
@media (max-width: 860px) { .rc-steps li { grid-template-columns: 1fr auto; } .rc-steps li span { grid-column: 1 / -1; } .rc-step-st { text-align: left; } }
.rc-prog { height: 6px; margin-top: 12px; border-radius: 99px; background: var(--card); overflow: hidden; }
.rc-prog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s; }
.rc-plat { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.rc-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rc-card .rc-img-c { aspect-ratio: 3 / 4; }
.rc-card .rc-img-c img { width: 100%; height: 100%; object-fit: cover; }
/* Sélection multiple (admin Recomp / Ports Android) : case sur la jaquette, barre d'action groupée collée en haut quand quelque chose est coché */
.rc-pick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; z-index: 1; }
.rc-card.is-sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.adm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-raise); }
.adm-bulk.is-on { position: sticky; top: 8px; z-index: 5; border-color: var(--accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.adm-bulk-n { font-size: 13px; font-weight: 700; min-width: 90px; }
.adm-bulk .adm-select select { max-width: 100%; }
.rc-pc-f { margin-top: 10px; max-width: 420px; }
/* Machines du recomp (carte et éditeur) : une puce par machine, avec d'où elle vient */
.rc-machs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.rc-mach { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; border: 1px dashed color-mix(in srgb, var(--fg) 28%, transparent); color: var(--fg); }
.rc-mach small { font-size: 10.5px; color: var(--dim); }
.rc-mach.is-sure { border-style: solid; }
.rc-mach.is-win { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.rc-mach.is-win b { color: var(--accent); }
.rc-mach.is-none { color: #ffb547; border-color: color-mix(in srgb, #ffb547 50%, transparent); }
.rc-why { margin: 4px 0 0; font-size: 12px; line-height: 1.35; color: var(--dim); }
.rc-files-none { margin: 4px 0 0; font-size: 12px; }
.rc-files-d { margin: 4px 0 0; font-size: 12px; }
.rc-files-d summary { cursor: pointer; color: var(--dim); }
.rc-files-d a { display: inline-block; margin-top: 4px; }
.rc-files-l { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.rc-files-l li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; }
.rc-files-l li b { font-weight: 600; color: var(--dim); }
.rc-files-l li.is-win b { color: var(--accent); }
.rc-files-l li span { overflow-wrap: anywhere; }
.rc-mach-auto { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: 14px; }
.rc-mach-auto input { width: auto; }
.rc-mach-box small { font-size: 11px; }
.rc-files { margin: 0 0 6px; }
@media (max-width: 600px) { .adm-bulk .adm-select, .adm-bulk .adm-bulk-go { flex: 1 1 100%; } }
.rc-fav { background: #ffb547 !important; color: #1f1300 !important; }
.pt-tag.is-ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pt-tag.is-warn { color: #ffb547; background: color-mix(in srgb, #ffb547 12%, transparent); }
.rc-rom { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--fg); }
.rc-rom.is-none { color: var(--dim); }
.rc-dlg .rc-sub { margin: 2px 0 6px; font-size: 13px; }
.rc-h { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rc-help { margin: 4px 0 8px; font-size: 12.5px; }
.rc-imgs { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; }
.rc-img { display: grid; gap: 6px; align-content: start; }
.rc-img input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.rc-prev { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--card); border: 1px solid var(--line-soft); overflow: hidden; color: var(--dim); font-size: 12px; }
.rc-prev.is-cover { aspect-ratio: 3 / 4; }
.rc-img.is-wide .rc-prev { aspect-ratio: auto; height: 213px; }
.rc-prev img { width: 100%; height: 100%; object-fit: cover; }
.rc-igdb { margin-top: 12px; }
.rc-igdb-row { display: flex; gap: 8px; margin-top: 6px; }
.rc-igdb-row input { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.rc-igdb-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rc-igdb-it { display: grid; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--bg); text-align: left; cursor: pointer; }
.rc-igdb-it img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--card); }
.rc-igdb-it b { font-size: 12px; line-height: 1.25; }
.rc-igdb-it:hover { border-color: var(--line); }
.rc-igdb-it.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.rc-flags { padding: 4px 0 0; }
@media (max-width: 640px) { .rc-imgs { grid-template-columns: 1fr; } }
.rc-dlg .check-row input { width: auto; padding: 0; }
.rc-dlg .check-row label { white-space: nowrap; font-weight: 500; }

/* ================================================================== Admin épuré (2026-10)
   7 rubriques dans le menu ; pages d'une rubrique en onglets (adm-subnav) ; en-têtes et chiffres plus légers ;
   outils secondaires dans un menu « Outils » ; filtres repliés. */
.admin .adm-nav { gap: 3px; }
.admin .adm-nav-btn { min-height: 42px; font-size: 14.5px; }
.admin .adm-nav-site { margin-top: 14px; }
.adm-pages { display: none !important; }
.admin .adm-main { max-width: 1280px; padding-top: 26px; }

/* Onglets de la rubrique */
.adm-subnav { display: flex; gap: 2px; margin: 0 0 22px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.adm-subnav::-webkit-scrollbar { display: none; }
.adm-subtab { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 14px 12px; border: 0; background: none; color: var(--muted); font: 600 14px var(--body, inherit); cursor: pointer; white-space: nowrap; }
.adm-subtab:hover { color: var(--fg); }
.adm-subtab[aria-current="page"] { color: var(--fg); }
.adm-subtab[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.adm-subtab .adm-badge { min-width: 18px; padding: 0 6px; font-size: 11px; }

/* En-tête de page : titre, une ligne d'explication, actions à droite */
.admin .adm-head { align-items: center; padding-bottom: 0; border-bottom: 0; gap: 12px 20px; }
.admin .adm-head .admin-h1 { font-size: clamp(22px, 2.4vw, 28px); }
.admin .adm-sub { margin-top: 4px; font-size: 13.5px; color: var(--dim); max-width: 78ch; }
.admin .adm-sub code { font-size: 12px; }
.admin .adm-toolbar { margin-top: 20px; gap: 10px; }
.admin .adm-search { max-width: 340px; }
.adm-select select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--fg); font: 500 14px var(--body, inherit); }
.adm-count { margin-inline-start: auto; font-size: 13px; }

/* Chiffres compacts (une ligne) */
.adm-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-raise); }
.adm-stats:empty { display: none; }
.adm-stat { display: flex; align-items: baseline; gap: 7px; }
.adm-stat b { font: 700 18px var(--mono); color: var(--fg); }
.adm-stat span { font-size: 13px; color: var(--muted); }
.admin .an-kpis { gap: 10px; }
.admin .an-kpis .stat-card { padding: 12px 14px; border-color: var(--line-soft); background: var(--bg-raise); border-radius: 12px; }
.admin .panel { border-color: var(--line-soft); border-radius: 12px; }

/* Bloc repliable (synchronisation…) */
.adm-fold { margin-top: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-raise); }
.adm-fold > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 650; font-size: 14.5px; }
.adm-fold > summary::-webkit-details-marker { display: none; }
.adm-fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); rotate: -45deg; transition: rotate .15s; flex: none; }
.adm-fold[open] > summary::before { rotate: 45deg; }
.adm-fold-meta { margin-inline-start: auto; font: 500 12.5px var(--mono); color: var(--dim); }
.adm-fold > :not(summary) { margin-inline: 16px; }
.adm-fold > :last-child { margin-bottom: 14px; }

/* Menu « Outils » */
.adm-menu { position: relative; }
.adm-menu > summary { list-style: none; }
.adm-menu > summary::-webkit-details-marker { display: none; }
.adm-menu > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.adm-menu-pop { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: 300px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.adm-menu-pop button { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--fg); text-align: start; cursor: pointer; font: inherit; }
.adm-menu-pop button:hover { background: var(--bg-raise); }
.adm-menu-pop button:disabled { opacity: .5; cursor: progress; }
.adm-menu-pop b { font-size: 14px; }
.adm-menu-pop span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Jeux : filtres repliés derrière « Filtres » */
.adm-f-toggle { gap: 8px; }
.adm-f-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.adm-f-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink, #04130a); font-size: 11px; font-weight: 800; }
.admin .adm-filters { margin-top: 10px; }
.admin .adm-tabs .chip { min-height: 32px; font-size: 13px; }
.admin .adm-help { margin-top: 10px; font-size: 13px; }

/* Recomp */
.rc-cfg { margin: 10px 0 0; }
.rc-sync .rc-steps { margin-top: 2px; gap: 6px; }
.rc-steps li { grid-template-columns: 170px minmax(0, 1fr) minmax(110px, auto) auto; padding: 9px 12px; border-radius: 10px; }
.rc-steps li b { font-size: 13.5px; }
.rc-steps li span { font-size: 12.5px; }
.rc-step-st { color: var(--dim); }
.rc-step-st.is-todo { color: #ffb547; }
.rc-sync .rc-help { margin: 10px 16px 14px; }
.rc-prog { margin-top: 10px; }
.rc-grid { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pt-tag.is-man { color: #9ec5ff; background: color-mix(in srgb, #9ec5ff 12%, transparent); }
.rc-add-dlg { width: min(520px, calc(100vw - 32px)); }
.rc-add-dlg h2 { margin: 0 0 6px; }
.rc-add-dlg .muted { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; }
.rc-add-dlg input { width: 100%; }
.rc-dlg textarea { width: 100%; resize: vertical; }
@media (max-width: 860px) { .rc-steps li { grid-template-columns: 1fr auto; } .adm-count { margin-inline-start: 0; flex-basis: 100%; } }
.rc-estatus:not(:empty) { margin: 8px 0 0; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, #ffb547 10%, transparent); border: 1px solid color-mix(in srgb, #ffb547 35%, transparent); color: #ffd28a; font-size: 13px; }
.adm-more-st > summary.chip { cursor: pointer; }
.adm-more-st:has([aria-pressed="true"]) > summary { border-color: var(--accent); color: var(--accent); }
.adm-chip-pop { width: 240px; left: 0; right: auto; }
.adm-chip-pop .chip { justify-content: space-between; width: 100%; border-radius: 8px; }
.admin .adm-toolbar .dash-view { margin: 0 0 0 auto; }
@media (max-width: 640px) { .adm-fold > summary { flex-wrap: wrap; } .adm-fold-meta { flex-basis: 100%; margin-inline-start: 19px; } .adm-stats { gap: 6px 18px; } }
.hm-clear { grid-column: 1 / -1; margin: 0; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }

/* Recomp : import en masse, lien obligatoire (2026-10) */
.rc-bulk-dlg { width: min(680px, calc(100vw - 32px)); }
.rc-bulk-dlg textarea { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.rc-bulk-dlg .rc-prog { margin: 10px 0 0; }
.rc-bulk-list { max-height: 40vh; overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.rc-bulk-list:empty { display: none; }
.rc-bulk-list li { display: grid; grid-template-columns: minmax(0, 14em) 1fr; gap: 10px; padding: 6px 10px; border-radius: 8px; border-left: 3px solid var(--line-hover, #2c3832); }
.rc-bulk-list li + li { margin-top: 3px; }
.rc-bulk-list li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rc-bulk-list li span { color: var(--muted, #8a968f); overflow-wrap: anywhere; }
.rc-bulk-list li.is-run { border-color: #6cb6ff; background: color-mix(in srgb, #6cb6ff 8%, transparent); }
.rc-bulk-list li.is-ok { border-color: #3ddc84; }
.rc-bulk-list li.is-warn { border-color: #ffb547; }
.rc-bulk-list li.is-bad { border-color: #ff6b6b; }
.rc-bulk-list li.is-bad span { color: #ff9b9b; }
.rc-bulk-list li.is-skip { opacity: .55; }
.pt-tag.is-bad { color: #ff8a8a; background: color-mix(in srgb, #ff6b6b 12%, transparent); }
@media (max-width: 560px) { .rc-bulk-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Admin › Recomp / Ports Android : liens de l'éditeur (cliquables, bouton « Tester » : statut, taille, type renvoyés par le serveur) */
.adm-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.adm-link { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); font-size: 12.5px; }
.adm-link b { color: var(--muted); font-weight: 600; }
.adm-link a { color: var(--accent); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, Menlo, monospace; }
.adm-link a:hover { text-decoration: underline; }
.adm-link-res { white-space: nowrap; font-size: 12px; }
.adm-link-res.is-ok { color: var(--accent); }
.adm-link-res.is-bad { color: #ff8270; }
@media (max-width: 700px) { .adm-link { grid-template-columns: minmax(0, 1fr) auto; } .adm-link b { grid-column: 1 / -1; } .adm-link-res { grid-column: 1 / -1; } }
