/* LuxTCG v2 — couche du site par-dessus le kit taste-skill.
   Style : DESIGN.md (Spotify) — fond quasi noir, surfaces charbon, un seul accent vert fonctionnel,
   boutons pilule, cartes 8px, ombres lourdes. Les illustrations des cartes apportent la couleur. */

@font-face { font-family: "Geist"; src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* palette : start.mjs brand --bg #121212 --surface #181818 --ink #fff --accent #1ed760 --muted #b3b3b3 --type geist */
:root {
  --p-bg: #121212; --p-surface: #181818; --p-ink: #ffffff; --p-muted: #b3b3b3;
  --p-accent: #1ed760; --p-accent-ink: #121212; --p-action: #1ed760; --p-action-ink: #121212;
  --p-inv-bg: #ffffff; --p-inv-surface: #ececec; --p-inv-ink: #121212; --p-inv-muted: #616161;
  --p-inv-accent: #121212; --p-inv-accent-ink: #ffffff; --p-inv-action: #121212; --p-inv-action-ink: #ffffff;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;

  /* DESIGN.md (Spotify) : surfaces et élévations */
  --sp-elev: #1f1f1f;      /* pilules, champs */
  --sp-card: #181818;      /* cartes */
  --sp-hover: #282828;     /* survol d'une carte */
  --sp-border: #4d4d4d;
  --sp-border-light: #7c7c7c;
  --sp-shadow-card: rgba(0,0,0,.3) 0 8px 8px;
  --sp-shadow-dialog: rgba(0,0,0,.5) 0 8px 24px;
  --sp-inset: rgb(18,18,18) 0 1px 0, rgb(124,124,124) 0 0 0 1px inset;
  --card-ratio: 600 / 838;
}
html { background: var(--p-bg); color-scheme: dark; }

/* couleurs du jeu (données, comme une pochette d'album : jamais une couleur d'interface) */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }
.dot--Red { background: #e5484d; } .dot--Green { background: #2fa66a; } .dot--Blue { background: #3b8ee6; }
.dot--Purple { background: #a65bd0; } .dot--Black { background: #2b2b2b; box-shadow: 0 0 0 1px #8a8a8a inset; } .dot--Yellow { background: #f2c432; }

/* ---------- vignette de carte (grille) ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
@media (max-width: 639px) { .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
.tcg { display: block; position: relative; padding: var(--s-3); border-radius: 8px; background: var(--sp-card); color: var(--p-ink); text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tcg:hover { background: var(--sp-hover); transform: translateY(-2px); box-shadow: var(--sp-shadow-card); }
.tcg:focus-visible { outline: 2px solid var(--p-action); outline-offset: 2px; }
.tcg__img { display: block; width: 100%; height: auto; aspect-ratio: var(--card-ratio); object-fit: cover; border-radius: 6px; background: #222; box-shadow: var(--sp-shadow-card); }
.tcg__meta { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-family: var(--font-mono); font-size: 13px; color: var(--p-muted); }
.tcg__meta .tcg__rar { margin-left: auto; }
.tcg__name { display: block; margin-top: 2px; font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.tcg__alt { position: absolute; top: calc(var(--s-3) + 8px); left: calc(var(--s-3) + 8px); padding: 2px 8px; border-radius: 999px; background: rgba(18,18,18,.86); color: #fff; font-size: 13px; font-weight: 500; }

/* ---------- pilules de filtre (DESIGN.md : Dark Pill, actif = accent fonctionnel) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 16px; border: 0; border-radius: 9999px; background: var(--sp-elev);
  color: var(--p-ink); font: 500 14px/1 var(--font-text); cursor: pointer; text-decoration: none; transition: background-color .15s ease, transform .1s ease; }
.chip:hover { background: #2a2a2a; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--p-accent); color: var(--p-accent-ink); }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- champ de recherche pilule ---------- */
.search { position: relative; display: block; }
.search input { width: 100%; height: 48px; padding: 0 20px 0 48px; border: 0; border-radius: 500px; background: var(--sp-elev); color: #fff;
  font: 400 16px/1 var(--font-text); box-shadow: var(--sp-inset); }
.search input::placeholder { color: var(--p-muted); }
.search input:focus { outline: 2px solid var(--p-ink); outline-offset: 0; }
.search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--p-muted); pointer-events: none; }
.select { height: 44px; padding: 0 40px 0 16px; border: 0; border-radius: 9999px; background: var(--sp-elev); color: #fff; font: 500 14px/1 var(--font-text);
  appearance: none; box-shadow: var(--sp-inset);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23b3b3b3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.flabel { display: block; margin-bottom: var(--s-2); font-size: 13px; font-weight: 500; color: var(--p-muted); }

/* ---------- pages d'application (recherche, fiche, sets) : hauteur libre, pas d'écran imposé ---------- */
main > section.app { height: auto; min-height: calc(100svh - var(--nav)); padding-top: calc(var(--nav) + var(--s-7)); padding-bottom: var(--s-9); }
.app h1 { font-size: clamp(32px, 2.2vw + 20px, 48px); margin: 0; }
.app__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); }
.app__head p { margin: var(--s-2) 0 0; color: var(--p-muted); }

/* barre de filtres */
.filters { display: grid; gap: var(--s-5); padding: var(--s-5); border-radius: 8px; background: var(--sp-card); margin-bottom: var(--s-6); }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: end; }
.filters__row > div { min-width: 0; }
.filters .search { flex: 1 1 320px; }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend { padding: 0; margin-bottom: var(--s-2); font-size: 13px; font-weight: 500; color: var(--p-muted); }
.toggle { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: 14px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--p-accent); }
.results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.results__count { margin: 0; color: var(--p-muted); font-size: 14px; }
.results__more { display: flex; justify-content: center; margin-top: var(--s-7); }
.empty { padding: var(--s-8) var(--s-5); border-radius: 8px; background: var(--sp-card); text-align: left; }
.empty h2 { font-size: 24px; margin: 0 0 var(--s-2); }
.empty p { margin: 0; color: var(--p-muted); }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* bandeau d'un set sélectionné */
.setband { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; padding: var(--s-5); border-radius: 8px;
  background: linear-gradient(180deg, #2a2a2a 0%, var(--sp-card) 100%); margin-bottom: var(--s-6); }
.setband img { width: 96px; border-radius: 6px; box-shadow: var(--sp-shadow-dialog); aspect-ratio: var(--card-ratio); object-fit: cover; }
.setband h2 { margin: 2px 0 4px; font-size: clamp(24px, 1.2vw + 18px, 32px); }
.setband p { margin: 0; color: var(--p-muted); font-size: 14px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--p-muted); }

/* ---------- fiche carte ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
@media (max-width: 899px) { .detail { grid-template-columns: 1fr; gap: var(--s-6); } }
.detail__img { width: 100%; max-width: 480px; aspect-ratio: var(--card-ratio); border-radius: 12px; box-shadow: var(--sp-shadow-dialog); background: #222; display: block; }
.detail h1 { margin: var(--s-2) 0 var(--s-4); }
.detail__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.tag { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; padding: 0 12px; border-radius: 9999px; background: var(--sp-elev); font-size: 14px; color: #fff; text-decoration: none; }
a.tag:hover { background: #2a2a2a; }
.cstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-6); }
.cstats > div { padding: var(--s-4); border-radius: 8px; background: var(--sp-card); }
.cstats dt { font-size: 13px; color: var(--p-muted); }
.cstats dd { margin: 4px 0 0; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.effect { padding: var(--s-5); border-radius: 8px; background: var(--sp-card); font-size: 16px; line-height: 1.65; margin-bottom: var(--s-4); }
.effect h2 { font-size: 13px; font-weight: 500; color: var(--p-muted); margin: 0 0 var(--s-2); letter-spacing: 0; }
.effect p { margin: 0; }
.kw { display: inline-block; padding: 0 8px; margin: 1px 0; border-radius: 4px; background: #2e2e2e; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.kw--trg { background: #3b3218; color: #ffd36a; }
.kw--don { background: #1d2b22; color: #8ff0b0; }
.rows-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-3) var(--s-6); margin: var(--s-6) 0 0; font-size: 16px; }
.rows-dl dt { color: var(--p-muted); }
.rows-dl dd { margin: 0; }
.prints { margin-top: var(--s-8); }
.prints h2, .related h2 { font-size: 24px; margin: 0 0 var(--s-5); }
.related { margin-top: var(--s-8); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: 14px; color: var(--p-muted); margin-bottom: var(--s-5); }
.crumbs a { color: var(--p-muted); }
.crumbs a:hover { color: #fff; }
.pager { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); }

/* ---------- liste des sets ---------- */
.setgroup { margin-bottom: var(--s-8); }
.setgroup h2 { font-size: 24px; margin: 0 0 var(--s-5); }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
@media (max-width: 639px) { .setgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
.settile { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: 8px; background: var(--sp-card); color: #fff; text-decoration: none; height: 100%;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.settile:hover { background: var(--sp-hover); transform: translateY(-2px); box-shadow: var(--sp-shadow-card); }
.settile__fan { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #2c2c2c 0%, #1a1a1a 70%); }
.settile__fan img { position: absolute; bottom: -18%; width: 46%; aspect-ratio: var(--card-ratio); border-radius: 5px; box-shadow: var(--sp-shadow-dialog); object-fit: cover; transition: transform .3s ease; }
.settile__fan img:nth-child(1) { left: 6%; transform: rotate(-9deg); }
.settile__fan img:nth-child(2) { left: 27%; z-index: 2; bottom: -12%; }
.settile__fan img:nth-child(3) { left: 48%; transform: rotate(9deg); }
.settile:hover .settile__fan img:nth-child(2) { transform: translateY(-4%) scale(1.02); }
.settile__code { font-family: var(--font-mono); font-size: 13px; color: var(--p-muted); }
.settile__name { font-size: 16px; font-weight: 500; line-height: 1.35; }
.settile__info { font-size: 14px; color: var(--p-muted); }

/* ---------- accueil ---------- */
/* la scène du hero : de vraies cartes posées sur le fond de la page (pas de boîte, comme le hero product du kit) */
.hero--product .hero__stage.cardfan { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  flex: 1 1 auto; min-height: 0; margin-top: var(--s-7); background: none; border-radius: 0; overflow: visible; }
@media (min-width: 1024px) {
  .hero--product:has(.cardfan) .hero__head { grid-template-rows: auto auto; row-gap: var(--s-5); }
  .hero--product:has(.cardfan) .hero__head > :first-child { display: contents; }
  .hero--product:has(.cardfan) .hero__head h1 { grid-column: 1 / span 7; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .hero--product:has(.cardfan) .hero__head .hero__lead { grid-column: 9 / -1; grid-row: 1; align-self: end; margin: 0; max-width: none; }
  .hero--product:has(.cardfan) .hero__head > .btn-row { grid-column: 9 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--product:has(.cardfan) .hero__head h1 { grid-column: 1 / span 6; }
  .hero--product:has(.cardfan) .hero__head .hero__lead, .hero--product:has(.cardfan) .hero__head > .btn-row { grid-column: 7 / -1; }
}
@media (max-width: 639px) { .hero--product .hero__stage.cardfan { aspect-ratio: auto; flex: 1 1 auto; margin-top: var(--s-5); gap: var(--s-2); } }
.cardfan a { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: center; border-radius: 10px; transition: transform .25s ease; }
.cardfan img { width: auto !important; max-width: 100%; height: auto; max-height: 100%; }
.cardfan a:hover { transform: translateY(-2px); }
.cardfan img { display: block; width: 100%; height: auto; max-height: 100%; aspect-ratio: var(--card-ratio); object-fit: cover; border-radius: 10px; box-shadow: var(--sp-shadow-dialog); background: #222; }
.cardfan a:hover img { transform: scale(1.02); }
.cardfan img { transition: transform .3s ease; }
@media (max-width: 639px) { .cardfan a:nth-child(n+3) { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { .cardfan a:nth-child(n+5) { display: none; } }

.appframe { border-radius: 12px; background: #000; box-shadow: var(--sp-shadow-dialog), 0 0 0 1px #2a2a2a; overflow: hidden; }
.appframe__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: #0a0a0a; border-bottom: 1px solid #222; }
.appframe__bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.appframe__body { display: grid; grid-template-columns: 260px 1fr; min-height: 0; }
.appframe__side { padding: var(--s-5); background: #121212; display: grid; align-content: start; gap: var(--s-5); }
.appframe__main { padding: var(--s-5); background: linear-gradient(180deg, #1e1e1e 0%, #121212 220px); min-width: 0; }
.appframe .cardgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.appframe .tcg { padding: var(--s-2); }
.appframe .tcg__name { font-size: 14px; }
.appframe .tcg__meta { margin-top: var(--s-2); }
@media (max-width: 1279px) { .appframe .cardgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .appframe .cardgrid > li:nth-child(n+9) { display: none; } }
@media (max-width: 899px) { .appframe__body { grid-template-columns: 1fr; } .appframe__side { padding-bottom: 0; } .appframe__side .af-cat { display: none; } }
@media (max-width: 639px) { .appframe .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .appframe .cardgrid > li:nth-child(n+5) { display: none; } }
.af-count { margin: 0 0 var(--s-4); font-size: 14px; color: var(--p-muted); }

.latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1023px) { .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
.latest .settile__fan { aspect-ratio: 1 / 1; }

.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.feature__text { grid-column: 1 / span 5; }
.feature__visual { grid-column: 7 / -1; display: grid; grid-template-columns: 220px 1fr; gap: var(--s-5); padding: var(--s-5); border-radius: 12px; background: var(--p-bg); box-shadow: var(--sp-shadow-dialog); }
.feature__visual img { width: 100%; aspect-ratio: var(--card-ratio); border-radius: 8px; object-fit: cover; box-shadow: var(--sp-shadow-card); }
.feature__visual .cstats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--s-4); }
.feature__visual .cstats dd { font-size: 20px; }
.feature__visual .effect { padding: var(--s-4); font-size: 14px; line-height: 1.6; margin: 0; }
.feature .rows { margin-top: var(--s-6); }
@media (max-width: 1023px) { .feature__text, .feature__visual { grid-column: 1 / -1; } .feature__visual { margin-top: var(--s-6); } }
@media (max-width: 639px) { .feature__visual { grid-template-columns: 1fr; } .feature__visual img { max-width: 200px; } }

/* footer : avertissement fan-site */
.footer__note { margin: var(--s-4) 0 0; font-size: 13px; color: var(--p-muted); max-width: 72ch; }

/* pages de texte (à propos, mentions) */
.prose { max-width: 68ch; font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 24px; margin: var(--s-7) 0 var(--s-3); }
.prose p, .prose li { color: #e6e6e6; }
.prose a { color: #fff; }

/* ---------- corrections après le contrôle de mise en page ---------- */
/* la fenêtre d'application est un visuel (.frame) : le texte à l'intérieur n'est pas une ligne de page */
.appframe.frame { display: block; padding: 0; border: 0; background: #000; border-radius: 12px; }
.appframe.frame::before { content: none; }
.appframe .cardgrid > li:nth-child(n+7) { display: none; }
@media (max-width: 1279px) { .appframe .cardgrid > li:nth-child(n+5) { display: none; } }
@media (max-width: 639px) {
  .appframe .cardgrid > li:nth-child(n+3) { display: none; }
  .appframe__bar { display: none; }
  #search .section-head .muted { display: none; }
}
/* les quatre derniers sets : une rangée jusqu'à la tablette, 2 x 2 sur téléphone */
@media (max-width: 1023px) { .latest { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); } .latest .settile { padding: var(--s-3); } }
@media (max-width: 639px) { .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); } .latest .settile__fan { aspect-ratio: 4 / 3; } }
/* h1 du hero sur téléphone : deux lignes même à 38 caractères */
@media (max-width: 639px) { .hero--product { --ly-h1: 34px; } }
/* questions : les réponses à gauche, trois cartes à droite */
.faq-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.faq-split > .qa { grid-column: 1 / span 7; }
.faq-split > .faqfan { grid-column: 9 / -1; position: relative; aspect-ratio: 1 / 1; }
.faqfan img { position: absolute; width: 58%; aspect-ratio: var(--card-ratio); border-radius: 10px; box-shadow: var(--sp-shadow-dialog); object-fit: cover; }
.faqfan img:nth-child(1) { left: 0; top: 8%; transform: rotate(-8deg); }
.faqfan img:nth-child(2) { left: 21%; top: 0; z-index: 2; }
.faqfan img:nth-child(3) { right: 0; top: 8%; transform: rotate(8deg); }
@media (max-width: 1023px) { .faq-split > .qa, .faq-split > .faqfan { grid-column: 1 / -1; } .faq-split > .faqfan { width: min(100%, 420px); margin-top: var(--s-6); } }
@media (max-width: 639px) { .faq-split > .faqfan { display: none; } }
/* tablette : sets en 2 x 2 avec un éventail large ; questions avec un éventail réduit */
@media (min-width: 640px) and (max-width: 1023px) {
  .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest .settile__fan { aspect-ratio: 16 / 9; }
  .faq-split > .faqfan { width: 240px; }
}
/* téléphone : on coupe la ligne grise des titres et la liste secondaire, pour tenir dans un écran */
@media (max-width: 639px) {
  #sets .section-head .muted { display: none; }
  #card-page .rows { display: none; }
  .feature__visual { grid-template-columns: 112px 1fr; gap: var(--s-4); padding: var(--s-4); }
  .feature__visual img { max-width: none; }
  .feature__visual .cstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
  .feature__visual .cstats > div { padding: var(--s-2); }
  .feature__visual .cstats dd { font-size: 16px; }
  .feature__visual .effect { grid-column: 1 / -1; }
}

/* ---------- gate, tour 1 ---------- */
/* les illustrations de set : trois cartes droites côte à côte, jamais penchées ni qui débordent */
.settile.card { padding: var(--s-4); border: 0; background: var(--sp-card); border-radius: 8px; }
.settile__fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; padding: 12% 8% 0; background: radial-gradient(120% 90% at 50% 100%, #2c2c2c 0%, #1a1a1a 70%); }
.settile__fan img, .settile__fan img:nth-child(n) { position: static; width: 100%; transform: none; bottom: auto; left: auto; border-radius: 4px 4px 0 0; aspect-ratio: auto; height: 100%; object-fit: cover; object-position: top; }
.settile:hover .settile__fan img:nth-child(2) { transform: none; }
.settile:hover .settile__fan img { transform: translateY(-3%); }
.settile__fan img { transition: transform .3s ease; }
.faq-split > .qa { grid-column: 1 / span 6; }
.faq-split > .faqfan { grid-column: 7 / -1; aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.faqfan img, .faqfan img:nth-child(n) { position: static; width: 100%; transform: none; }
.faqfan img:nth-child(2) { margin-top: var(--s-7); }
@media (max-width: 1023px) { .faq-split > .faqfan { width: min(100%, 420px); } }
@media (max-width: 639px) {
  .faq-split > .faqfan { display: grid; width: 240px; margin-top: var(--s-5); gap: var(--s-2); }
  .faqfan img:nth-child(2) { margin-top: 0; }
  #questions .faq__item:nth-child(4) { display: none; }
}
/* le nom en grand du pied de page : Geist a des capitales hautes, l'interligne .86 les coupait */
.close__word { line-height: 1.05; }
/* 320px : le bouton du bandeau laisse la place au menu (il est dans le hero et le menu) */
@media (max-width: 359px) { .nav__actions .btn { display: none; } }
/* la fiche en vitrine : grande carte à gauche, statistiques, effet et versions à droite */
.feature__visual { grid-template-columns: 300px 1fr; grid-template-rows: auto auto auto 1fr; align-items: start; column-gap: var(--s-5); row-gap: var(--s-4); }
.feature__visual .fv__img { grid-row: 1 / -1; width: 100%; }
.feature__visual .cstats { margin: 0; }
.fv__head .t-card { margin: 4px 0 0; }
.fv__prints { display: grid; grid-template-columns: repeat(4, 64px); gap: var(--s-2); }
.fv__prints img { width: 64px; border-radius: 4px; aspect-ratio: var(--card-ratio); object-fit: cover; box-shadow: none; }
.feature__visual:hover .fv__img { transform: scale(1.02); }
.fv__img { transition: transform .3s ease; }
@media (max-width: 1279px) { .feature__visual { grid-template-columns: 220px 1fr; } }
@media (max-width: 639px) {
  .feature__visual { grid-template-columns: 88px 1fr; grid-template-rows: none; }
  .feature__visual .fv__img { grid-row: auto; }
  .feature__visual .cstats, .feature__visual .effect { grid-column: 1 / -1; }
  .fv__prints { display: none; }
}
@media (max-width: 359px) { .feature__visual .cstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* couvertures de set : trois cartes entières, droites */
.settile__fan { padding: var(--s-4); align-items: center; aspect-ratio: auto; }
.settile__fan img, .settile__fan img:nth-child(n) { height: auto; aspect-ratio: var(--card-ratio); border-radius: 4px; object-fit: cover; }
.latest .settile__fan { aspect-ratio: auto; }
@media (max-width: 639px) { .latest .settile__fan { aspect-ratio: auto; padding: var(--s-2); gap: 4px; } }
.feature__text .t-lead { margin-top: var(--s-5); }
@media (max-width: 1023px) { .faq-split > .qa, .faq-split > .faqfan { grid-column: 1 / -1; } }
/* accueil : deux grandes cartes par set */
.latest .settile__fan { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-4) var(--s-5); }
@media (max-width: 639px) { .latest .settile__fan { gap: 6px; padding: var(--s-2); } }
/* DESIGN.md « Outlined Pill » : le bouton secondaire a un contour #7c7c7c, sinon il se fond dans le fond */
.btn.btn--secondary { background: transparent; border: 1px solid var(--sp-border-light); color: #fff; }
.btn.btn--secondary:hover { border-color: #fff; }
/* filtres plus compacts sur grand écran : deux colonnes */
@media (min-width: 1024px) {
  .filters { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); row-gap: var(--s-5); }
  .filters > .filters__row { grid-column: 1 / -1; }
}
.filters .btn { min-height: 44px; }
/* panneau « Filtres » : toujours ouvert sur grand écran, repliable sur téléphone */
.morefilters { display: contents; }
.morefilters > summary { display: none; }
.morefilters__body { display: contents; }
.filters__row > * { min-width: 0; }
@media (max-width: 639px) {
  .filters { padding: var(--s-4); gap: var(--s-4); }
  .filters .search { flex: 1 1 100%; }
  .filters__row > div { flex: 1 1 calc(50% - var(--s-5)); }
  .filters__row .select { width: 100%; }
  .morefilters { display: block; }
  .morefilters > summary { display: inline-flex; list-style: none; }
  .morefilters > summary::-webkit-details-marker { display: none; }
  .morefilters[open] > summary { background: #fff; color: #121212; }
  .morefilters__body { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
  .morefilters__n { font-weight: 500; }
  .detail__img { max-width: 260px; }
}

/* utility spacing (replaces inline style attributes, so the CSP can stay strict) */
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; }
.fv__head .t-card { margin: 4px 0 0; }
/* the closing footer grows with its content instead of letting the big name run over the links */
footer.closing { height: auto; min-height: 100svh; }
footer.closing .close__word { margin-top: var(--s-7); }
footer.footer--app { padding-top: var(--s-8); padding-bottom: var(--s-7); }
/* previous / next card: stacked on a phone so the two buttons never push the page sideways */
.pager { flex-wrap: wrap; }
@media (max-width: 639px) { .pager { flex-direction: column; } .pager .btn { width: 100%; justify-content: center; } .pager > span:empty { display: none; } }
/* filter panel, take 2: <details> does not honour display: contents, so the body itself is the grid */
.morefilters { display: block; }
.morefilters__body { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
  .filters { grid-template-columns: 1fr; }
  .morefilters__body { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
  .morefilters__body > .filters__row { grid-column: 1 / -1; }
}
@media (max-width: 639px) { .morefilters__body { grid-template-columns: 1fr; } }

/* ---------- collection controls (under a card tile, on the card page) ---------- */
.tcg-li { display: grid; gap: var(--s-2); align-content: start; }
.tcg.is-owned { box-shadow: inset 0 0 0 2px rgba(30, 215, 96, .55); }
.ctl { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--sp-card); width: max-content; max-width: 100%; }
.ctl__btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sp-elev); color: #fff; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease; }
.ctl__btn svg { width: 16px; height: 16px; }
.ctl__btn:hover:not(:disabled) { background: #2e2e2e; }
.ctl__btn:active:not(:disabled) { transform: scale(.92); }
.ctl__btn:disabled { opacity: .35; cursor: default; }
.ctl__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ctl__wish { color: var(--p-muted); margin-left: 4px; }
.ctl__wish[aria-pressed="true"] { color: #f3727f; background: #3a1d20; }
.ctl__n { min-width: 26px; text-align: center; font: 500 15px/1 var(--font-mono); color: var(--p-muted); font-variant-numeric: tabular-nums; }
.ctl__n.is-owned { color: var(--p-accent); }
.ctl.is-error { box-shadow: inset 0 0 0 1px #f3727f; }
@media (max-width: 639px) { .ctl__btn { width: 34px; height: 34px; } .ctl { gap: 2px; } }
.tcg__qty, .tcg__match { position: absolute; top: calc(var(--s-3) + 8px); right: calc(var(--s-3) + 8px); padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.tcg__qty { background: rgba(18,18,18,.86); color: #fff; }
.tcg__match { top: auto; bottom: 64px; background: var(--p-accent); color: #121212; }
.mycard { margin-top: var(--s-6); padding: var(--s-5); border-radius: 8px; background: var(--sp-card); display: grid; gap: var(--s-4); }
.mycard:empty { display: none; }
.mycard__h { font-size: 13px; font-weight: 500; color: var(--p-muted); margin: 0; }
.mycard__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.mycard .ctl { background: #121212; }

/* ---------- collection page ---------- */
.cstats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 639px) { .cstats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coll-totals { margin-bottom: var(--s-6); }
.coll-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin: var(--s-7) 0 var(--s-5); }
.coll-search { flex: 0 1 320px; }
.coll-search input { padding-left: 20px; }
.share { padding: var(--s-5); border-radius: 8px; background: var(--sp-card); }
.share h2 { font-size: 22px; margin: 0 0 var(--s-2); }
.share__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-6); margin-top: var(--s-4); align-items: start; }
@media (max-width: 767px) { .share__grid { grid-template-columns: 1fr; } }
.share__grid input:not([type="checkbox"]), .share__link input { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--sp-elev); color: #fff; font: 400 16px var(--font-text); box-shadow: var(--sp-inset); }
.share__lists { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.share__link { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.share__link input { flex: 1 1 280px; font-family: var(--font-mono); font-size: 14px; }
.prog__group { font-size: 18px; margin: var(--s-6) 0 var(--s-3); }
.progs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.prog { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 88px; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-4); border-radius: 8px; background: var(--sp-card); }
.prog__name { color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog__name:hover { text-decoration: underline; }
.prog__bar { height: 8px; border-radius: 9999px; background: #2a2a2a; overflow: hidden; }
.prog__bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--p-accent); }
.prog__n { text-align: right; font-family: var(--font-mono); font-size: 14px; color: var(--p-muted); }
@media (max-width: 639px) { .prog { grid-template-columns: 1fr 72px; } .prog__bar { grid-column: 1 / -1; grid-row: 2; } }

/* counters aligned on one line across a row, whatever the name length */
.tcg-li { grid-template-rows: 1fr auto; }
.tcg-li > .tcg { height: 100%; }
.share__lists .toggle { white-space: nowrap; }
.share__lists .toggle input { width: 20px; height: 20px; min-height: 0; box-shadow: none; }

/* ---------- clean-up pass: no arrows on links, meta lines instead of eyebrows ---------- */
.link::after { content: none; }
.fv__meta, .detail__meta { margin: 4px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--p-muted); }
.detail__meta { margin: 0 0 var(--s-4); }

/* ---------- search field in the top bar (every page) ---------- */
.nav__search { position: relative; display: flex; align-items: center; }
.nav__search svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--p-muted); pointer-events: none; }
.nav__search input {
  height: var(--btn-h); width: 220px; padding: 0 16px 0 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #1f1f1f; color: var(--ink); font: inherit; font-size: 15px;
  transition: width .2s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.nav__search input::placeholder { color: var(--p-muted); }
.nav__search input:focus { outline: none; border-color: var(--ink); background: #242424; width: 280px; }
.nav__search input::-webkit-search-cancel-button { filter: invert(1); }
@media (max-width: 1279px) { .nav__search input, .nav__search input:focus { width: 180px; } }

/* ---------- FAQ that opens on click (own class: the kit keeps .faq answers always open) ---------- */
.qa > details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding: var(--s-4) 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; }
.qa summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa summary:hover h3 { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.qa details > p { margin: 0 0 var(--s-5); max-width: 64ch; color: var(--p-muted); }
.qa details[open] > p { animation: mask-in .32s var(--ease) both; }

/* ---------- motion: masks for things that open, a blur for icons that change ---------- */
@keyframes mask-in { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes icon-in { from { filter: blur(4px); opacity: 0; transform: scale(.7); } }
@keyframes saved { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.nav__toggle svg, .pw-toggle svg, [data-copy] svg { animation: icon-in .22s var(--ease); }
.notice, .ui-dialog[open] .ui-dialog__box { animation: mask-in .3s var(--ease) both; }
.is-saved { animation: saved .32s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .nav__toggle svg, .pw-toggle svg, [data-copy] svg, .notice, .ui-dialog__box, .is-saved, .qa details[open] > p { animation: none; } }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong); background: #1f1f1f; color: var(--ink); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .15s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #2a2a2a; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- show password, copy buttons ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 56px; width: 100%; }
.pw-toggle, .copy-btn {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--p-muted); cursor: pointer;
}
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.pw-toggle:hover, .copy-btn:hover { color: var(--ink); background: #2a2a2a; }
.pw-toggle svg, .copy-btn svg { width: 18px; height: 18px; }
.copy-row { display: inline-flex; align-items: center; gap: var(--s-2); }
.copy-btn { height: 36px; min-width: 36px; margin: -8px 0; }
.copy-btn.is-done { color: var(--accent, #1ed760); }

/* ---------- confirmation window ---------- */
.ui-dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(440px, calc(100% - 32px)); }
.ui-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.ui-dialog__box { background: #1f1f1f; border: 1px solid var(--line-strong); border-radius: 12px; padding: var(--s-6); display: grid; gap: var(--s-4); }
.ui-dialog__box h2 { font-size: 20px; margin: 0; }
.ui-dialog__box p { margin: 0; color: var(--p-muted); }

/* ---------- print: the content only ---------- */
@media print {
  .nav, .footer, .to-top, .nav__toggle, .btn, .chips, .filters, .pager, .ctl, [data-ctl], .skip-link { display: none !important; }
  body, .section, .ground-surface { background: #fff !important; color: #000 !important; }
  * { color: #000 !important; box-shadow: none !important; }
  main { padding-top: 0 !important; }
  a { text-decoration: none; }
  img { max-width: 260px; break-inside: avoid; }
}
/* the open mobile menu: the search field takes the whole width */
@media (max-width: 1023px) {
  .nav.is-open .nav__search { width: 100%; }
  .nav.is-open .nav__search input, .nav.is-open .nav__search input:focus { width: 100%; height: 48px; font-size: 16px; }
}
/* no arrow or chevron drawn on buttons */
html[data-buttons] .btn::after, .btn::after { content: none !important; }
.coll-note { margin: var(--s-2) 0 0; font-size: 14px; color: var(--accent, #1ed760); font-weight: 500; }

/* ---------- cards per row (search page) ---------- */
.density { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9999px; background: var(--sp-card, #1f1f1f); margin-left: auto; }
.density__btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 9999px; background: transparent; color: var(--p-muted); cursor: pointer; font: 500 13px/1 var(--font-mono); transition: background-color .15s var(--ease), color .15s var(--ease); }
.density__btn svg { width: 16px; height: 16px; fill: currentColor; }
.density__btn:hover { color: var(--ink); }
.density__btn[aria-pressed="true"] { background: var(--sp-elev, #2a2a2a); color: var(--ink); }
.results__bar #login-hint { flex-basis: 100%; }
.results__more { gap: var(--s-3); flex-wrap: wrap; }
.cardgrid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cardgrid[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cardgrid[data-cols="8"] { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s-3); }
.cardgrid[data-cols="10"] { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--s-2); }
/* dense rows: smaller text; at 10 per row only the picture (the card page has the details and the buttons) */
.cardgrid:is([data-cols="8"], [data-cols="10"]) .tcg__name { font-size: 13px; }
.cardgrid:is([data-cols="8"], [data-cols="10"]) .tcg__meta { font-size: 11px; gap: 4px; }
.cardgrid[data-cols="8"] .ctl__btn { width: 28px; height: 28px; }
.cardgrid[data-cols="8"] .ctl { gap: 2px; padding: 2px; }
.cardgrid[data-cols="10"] :is(.tcg__meta, .tcg__name, .ctl) { display: none; }
.cardgrid > li { content-visibility: auto; contain-intrinsic-size: auto 320px; }
@media (max-width: 1023px) {
  .cardgrid:is([data-cols="6"], [data-cols="8"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cardgrid[data-cols="10"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .density__n { display: none; }
  .density__btn { padding: 0 8px; min-width: 36px; }
  .cardgrid[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cardgrid:is([data-cols="6"], [data-cols="8"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cardgrid[data-cols="10"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cardgrid:is([data-cols="6"], [data-cols="8"]) :is(.ctl) { display: none; }
}
@media (max-width: 639px) { .cardgrid:is([data-cols="6"], [data-cols="8"], [data-cols="10"]) .tcg__meta { font-size: 10px; gap: 3px; } .cardgrid:is([data-cols="6"], [data-cols="8"]) .tcg__name { font-size: 13px; } }

/* logo: two fanned trading cards on their stand (same drawing as favicon.svg), replaces the kit arch */
.mark[data-mark="arc"] { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='21 14 58 58'%3E%3Cg transform='translate(50 47)'%3E%3Crect x='-15' y='-27' width='26' height='36' rx='3.5' fill='none' stroke='black' stroke-width='5' transform='rotate(-12)'/%3E%3Crect x='-6' y='-29' width='26' height='36' rx='3.5' transform='rotate(8)'/%3E%3Cpath d='M-26 16 H26 L18 27 H-18 Z'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- suggestions under the menu search field ---------- */
.nav__search { position: relative; }
.suggest {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: min(420px, 92vw); max-height: min(70vh, 520px); overflow: auto;
  background: #1f1f1f; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); padding: 6px;
  animation: mask-in .18s var(--ease) both;
}
.suggest ul { list-style: none; margin: 0; padding: 0; }
.suggest a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.suggest img { width: 30px; height: 42px; border-radius: 3px; object-fit: cover; flex: none; background: #2a2a2a; }
.suggest b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.suggest small { display: block; font-size: 12px; color: var(--p-muted); line-height: 1.3; }
.suggest [aria-selected="true"] a, .suggest a:hover { background: #2a2a2a; }
.suggest__set { width: 30px; height: 42px; flex: none; border-radius: 4px; border: 2px solid var(--accent, #1ed760); }
.suggest__all a { min-height: 44px; font-size: 14px; color: var(--p-muted); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
/* in the open mobile menu the field sits at the bottom: the list opens upwards and takes the width */
@media (max-width: 1023px) { .nav.is-open .suggest { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; width: auto; max-height: 55vh; } }

/* ---------- set page: my progress and "add the whole set" ---------- */
.setmine { display: grid; gap: var(--s-4); margin: 0 0 var(--s-6); padding: var(--s-5); border-radius: 12px; background: var(--sp-card, #181818); }
.setmine[hidden] { display: none; }
.setmine__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.setmine__h { margin: 0; font-size: 18px; }
.setmine .prog__bar { display: block; width: 100%; }
.setmine__msg { margin: 0; color: var(--accent, #1ed760); font-weight: 500; }

/* ---------- banned list ---------- */
.ban-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: var(--s-8) 0 var(--s-4); font-size: 24px; }
.ban-h .muted { font-size: 15px; font-weight: 400; }
.banpairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s-4); }
.banpairs > li { padding: var(--s-4); border-radius: 12px; background: var(--sp-card, #181818); }
.banpairs .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ban { margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-5); border-radius: 10px; border: 1px solid #b38600; background: rgba(255, 196, 0, .08); }
.ban--out { border-color: #e22134; background: rgba(226, 33, 52, .1); }
.ban p { margin: 0 0 6px; }
.ban p:last-child { margin: 0; }
.ban__src { font-size: 14px; }
@media (max-width: 639px) { .banpairs { grid-template-columns: 1fr; } }

/* top bar on medium screens: the account button needs room. "Buy me a coffee" stays in the footer and on the
   home page; the search field gets narrower */
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav__actions > a[href$="#support"], .nav__actions > a[href="/account/support.php"] { display: none; }
  .nav__search input, .nav__search input:focus { width: 170px; }
  .nav__actions { gap: var(--s-3); }
}

/* wanted copies: a small number on the heart when more than one copy is looked for */
.ctl__wish { position: relative; }
.ctl__wish[data-count]::after {
  content: attr(data-count); position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #e91429; color: #fff; font: 600 10px/16px var(--font-text); text-align: center;
}
.ctl__n.is-wanted { color: #ff4f62; }
.coll-note--wish { color: #ff4f62; }
