/* =====================================================================
   CardFixer — thème « Night City », chargé après base.css (le socle commun à CardFixer et CardCatcher).
   Night City la nuit : fond presque noir, néons qui bavent (jaune acide, cyan, magenta), écran de fixer
   (chiffres en chasse fixe, crochets d'angle), signal qui se corrompt par instants (titres décalés rouge et cyan).
   Signature gardée depuis la 2.0 : jaune acide sur noir, coins coupés en biseau, titres condensés en capitales.
   « Effets sobres » (Mon compte) pose la classe fx-calm sur <body> : ni halo, ni trame, ni lueur, ni glitch.
   « Réduire les animations » (réglage de l'appareil) coupe tout mouvement (règle du socle) et les transitions de page.
   1. Polices et jetons   2. Matière   3. Navigation   4. Composants   5. Cartes   6. Fiche, raretés et decks Cyberpunk
   7. Effets sobres
   ===================================================================== */

/* ---------- 1. Polices et jetons ---------- */
/* Préchargées par la page (layout.php) et « optional » : si l'une n'est pas prête au premier rendu, la police de secours
   reste pour cette page plutôt que de sauter après coup. Chakra Petch, Share Tech Mono et Inter : licence SIL Open Font
   License, servies depuis le site. */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: optional; src: url("fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: optional; src: url("fonts/chakra-petch-700.woff2") format("woff2"); }
@font-face { font-family: "Share Tech Mono"; font-style: normal; font-weight: 400; font-display: optional; src: url("fonts/share-tech-mono.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: optional; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch Fallback"; src: local("Segoe UI"), local("Arial"); size-adjust: 96%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Segoe UI"), local("Arial"); size-adjust: 103%; ascent-override: 91%; descent-override: 23%; line-gap-override: 0%; }

:root {
  /* Asphalte : fond presque noir, panneaux à peine plus clairs */
  --bg: #06060b;
  --surface: #0e0f17;
  --surface-2: #161827;
  --surface-3: #1e2133;
  --border: #262a3d;
  --border-strong: #363b55;
  --text: #e8e9f2;
  --text-2: #c9ccdb;
  --muted: #8a8fa8;
  /* Néons : jaune acide (marque, agir, possédé), cyan (liens, focus, données), magenta (danger, glitch) */
  --accent: #fcee0a;
  --accent-ink: #06060b;
  --accent-dim: rgba(252, 238, 10, .12);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, .14);
  --magenta: #ff2a6d;
  --ok: #3dff9a;      /* toxique : hausse, réussite */
  --danger: #ff2a6d;  /* magenta chrome */
  --warn: #ff9a1f;    /* sodium : lampadaires */
  --foil: #b28dff;    /* violet néon : foil, raretés hautes */
  --font-display: "Chakra Petch", "Chakra Petch Fallback", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 2px;
  --chamfer: 18px;
  --gap: 16px;
  --topbar: 56px;
  color-scheme: dark;
}

/* ---------- 2. Matière : halo de néons, coins coupés, chiffres d'écran ---------- */
/* Halo de néons au ras du bas de l'écran (magenta à gauche, cyan à droite, violet entre les deux) ; couche fixe, derrière
   tout le contenu. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 50% at 6% 110%, rgba(255, 42, 109, .22), transparent 70%),
    radial-gradient(70% 46% at 96% 110%, rgba(0, 229, 255, .17), transparent 70%),
    radial-gradient(60% 30% at 50% 112%, rgba(178, 141, 255, .08), transparent 70%);
}
::selection { background: var(--magenta); color: #fff; }
html { scrollbar-color: rgba(252, 238, 10, .45) #0b0c13; }
/* Coins coupés : la découpe (clip-path) retire vraiment l'angle, et un trait posé sur la diagonale prolonge la bordure.
   Le trait hérite de la couleur de bordure de l'élément : il suit le survol, la carte possédée, le deck survolé…
   --c1 : taille de la coupe. Le trait est un segment pivoté de 45° autour de son extrémité, son épaisseur vers l'intérieur
   (::after pour l'angle haut droit ; ::before pour l'angle bas gauche des boutons). */
.panel, .stat, .trade-row, .wish-list > li, .empty-state, .tile, .btn, .subnav .tabs a, .menu-panel, .toast, .pcard, .top-item, .uchoice {
  --c1: var(--chamfer); clip-path: polygon(0 0, calc(100% - var(--c1)) 0, 100% var(--c1), 100% 100%, 0 100%);
}
.tile { --c1: 14px; }
.subnav .tabs a { --c1: 7px; }
.menu-panel { --c1: 12px; }
.toast { --c1: 10px; }
.btn { --c1: 8px; position: relative; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--c1)) 0, 100% var(--c1), 100% 100%, var(--c1) 100%, 0 calc(100% - var(--c1))); }
.panel::after, .stat::after, .trade-row::after, .wish-list > li::after, .empty-state::after, .tile::after, .btn::after,
.subnav .tabs a::after, .menu-panel::after, .toast::after, .pcard::after, .top-item::after, .uchoice::after {
  content: ""; position: absolute; z-index: 4; pointer-events: none; top: -1px; left: calc(100% + 1px - var(--c1)); right: auto; bottom: auto;
  width: calc(var(--c1) * 1.4142); height: 0; border: 0; border-top: 1.5px solid; border-top-color: inherit; border-radius: 0;
  background: none; box-shadow: none; transform-origin: 0 0; transform: rotate(45deg);
}
.btn::before {
  content: ""; position: absolute; pointer-events: none; left: -1px; top: calc(100% + 1px - var(--c1) - 1.5px);
  width: calc(var(--c1) * 1.4142); height: 0; border-top: 1.5px solid; border-top-color: inherit; transform-origin: 0 100%; transform: rotate(45deg);
}
/* Panneaux : segment néon posé sur la bordure, en haut à gauche, comme un repère d'affichage tête haute. */
.panel::before { content: ""; position: absolute; top: -1px; left: 18px; width: 42px; height: 2px; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 8px rgba(252, 238, 10, .6); }
/* Indicateurs : crochet d'angle cyan en bas à gauche, comme un affichage tête haute. */
.stat::before { content: ""; position: absolute; left: -1px; bottom: -1px; width: 12px; height: 12px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); pointer-events: none; }
/* Chiffres : police d'écran à chasse fixe (cotes, quantités, totaux). Share Tech Mono n'a qu'une graisse. */
.price, .table .num, .stat-value, .stat-sub, .card-price strong, .deck-frac, .deck-qty strong, .ver-qty strong, .history-qty, .side-total, .trade-items .num, .summary-line strong, kbd {
  font-family: var(--font-mono); font-weight: 400; letter-spacing: .02em;
}
.stat-value { font-size: 1.75rem; text-shadow: 0 0 14px rgba(252, 238, 10, .35); }
.stat-value.up { text-shadow: 0 0 14px rgba(61, 255, 154, .3); }
.stat-value.down { text-shadow: 0 0 14px rgba(255, 42, 109, .35); }
.card-price strong { font-size: 1.75rem; }

/* ---------- 3. Navigation ---------- */
.topbar { background: linear-gradient(180deg, #0d0e16, #07070c); box-shadow: none; }
/* Trame d'écran très discrète sur le bandeau, liseré jaune puis cyan dessous */
.topbar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
/* Le liseré luit, et une impulsion blanche le parcourt toutes les six secondes. */
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, #fff 50%, transparent) -40% 0 / 16% 100% no-repeat,
    linear-gradient(90deg, var(--accent), var(--accent) 55%, var(--cyan) 85%, transparent);
  box-shadow: 0 0 10px rgba(252, 238, 10, .35); animation: nc-pulse 6s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes nc-pulse { 0% { background-position: -40% 0, 0 0; } 35%, 100% { background-position: 140% 0, 0 0; } }
.topbar-in { position: relative; z-index: 1; }
.brand-name { letter-spacing: .08em; }
/* Enseigne : le logo et « Fixer » luisent, et grésillent par instants comme un néon fatigué. */
.brand .logo { filter: drop-shadow(0 0 5px rgba(252, 238, 10, .55)); }
.brand-name em { text-shadow: 0 0 8px rgba(252, 238, 10, .6), 0 0 22px rgba(252, 238, 10, .25); }
.brand .logo, .brand-name em { animation: nc-flicker 7s steps(1) infinite; }
@keyframes nc-flicker { 0%, 100% { opacity: 1; } 71% { opacity: .3; } 72% { opacity: 1; } 73.5% { opacity: .5; } 74.5% { opacity: 1; } 88% { opacity: .75; } 88.6% { opacity: 1; } }
.nav a.active { text-shadow: 0 0 12px rgba(252, 238, 10, .45); }
/* Entrée active : trait posé au-dessus du liseré, épais et lumineux */
.nav a.active::after { left: 12px; right: 12px; bottom: 8px; height: 4px; border-radius: 0; box-shadow: 0 0 12px rgba(252, 238, 10, .75); }
.menu summary, .menu-panel { border-radius: 0; }
/* Sous-navigation : puces à coin coupé, l'entrée active pleine en jaune */
.subnav { background: rgba(11, 12, 19, .94); }
@supports (backdrop-filter: blur(6px)) { .subnav { background: rgba(11, 12, 19, .82); backdrop-filter: blur(6px); } }
.subnav .tabs a.active::after { content: none; }
@media (min-width: 721px) {
  .subnav .tabs { gap: 6px; padding: 9px 0; }
  .subnav .tabs a { padding: 8px 12px; border: 1px solid var(--border); font-size: .82rem; color: var(--text-2); }
  .subnav .tabs a:hover { border-color: var(--cyan); color: var(--text); text-decoration: none; }
  .subnav .tabs a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}
/* Barre du bas (mobile) : fond d'asphalte, trait lumineux au-dessus de l'entrée active */
@media (max-width: 720px) {
  .bottombar { background: linear-gradient(180deg, #0b0c13, #06060b); }
  .bottombar a.active::before { height: 3px; box-shadow: 0 0 10px rgba(252, 238, 10, .8); }
}

/* ---------- 4. Composants ---------- */
/* Titres : signal légèrement décalé (rouge et cyan) ; le titre de page se corrompt à l'arrivée, puis de nouveau,
   brièvement, toutes les neuf secondes. */
h1 { text-shadow: -2px 0 rgba(255, 42, 109, .5), 2px 0 rgba(0, 229, 255, .45); }
.page-head h1, .card-title-row h1 { animation: nc-glitch .65s steps(1) 1 both, nc-glitch-idle 9s steps(1) 3s infinite; }
@keyframes nc-glitch-idle {
  0% { clip-path: none; transform: none; }
  95% { clip-path: inset(8% 0 52% 0); transform: translateX(-5px); text-shadow: -6px 0 rgba(255, 42, 109, .9), 6px 0 rgba(0, 229, 255, .85); }
  96% { clip-path: inset(56% 0 6% 0); transform: translateX(4px); }
  97% { clip-path: none; transform: translateX(-2px); }
  98%, 100% { clip-path: none; transform: none; text-shadow: -2px 0 rgba(255, 42, 109, .5), 2px 0 rgba(0, 229, 255, .45); }
}
@keyframes nc-glitch {
  0% { clip-path: inset(0 0 58% 0); transform: translateX(5px); text-shadow: -7px 0 rgba(255, 42, 109, .9), 7px 0 rgba(0, 229, 255, .9); }
  14% { clip-path: inset(42% 0 18% 0); transform: translateX(-6px); }
  28% { clip-path: inset(72% 0 0 0); transform: translateX(3px); }
  42% { clip-path: none; transform: none; text-shadow: -4px 0 rgba(255, 42, 109, .8), 4px 0 rgba(0, 229, 255, .75); }
  100% { clip-path: none; transform: none; text-shadow: -2px 0 rgba(255, 42, 109, .5), 2px 0 rgba(0, 229, 255, .45); }
}
/* Surtitre de page en commentaire de code : « // COLLECTION » */
.page-head .eyebrow { font-family: var(--font-mono); font-weight: 400; color: var(--cyan); letter-spacing: .16em; }
.page-head .eyebrow::before { content: "// "; opacity: .7; }
.page-head .eyebrow::after { content: "_"; margin-left: .2em; color: var(--accent); animation: nc-blink 1.1s steps(1) infinite; }
@keyframes nc-blink { 50% { opacity: 0; } }
/* Boutons à coins coupés. Le contour de focus serait rogné par la découpe : il passe à l'intérieur. */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.btn:hover { border-color: var(--cyan); }
/* Bouton principal survolé : lueur intérieure et signal qui saute (rouge et cyan) pendant un tiers de seconde. */
.btn-primary:hover { background: #fff35c; border-color: #fff35c; box-shadow: inset 0 0 12px rgba(255, 255, 255, .5); animation: nc-btn .3s steps(1) 1; }
@keyframes nc-btn {
  0% { text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan); transform: translateX(2px); }
  33% { text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan); transform: translateX(-2px); }
  66%, 100% { text-shadow: none; transform: none; }
}
.btn-ghost:hover { color: var(--cyan); }
.btn-danger:hover { background: rgba(255, 42, 109, .14); }
/* Confirmation demandée (second clic) : ruban de danger magenta qui défile. */
.btn.confirming { color: #fff; border-color: var(--danger); text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  background: repeating-linear-gradient(-45deg, var(--danger) 0 25%, #b8104a 0 50%) 0 0 / 20px 20px; animation: nc-hazard .6s linear infinite; }
@keyframes nc-hazard { to { background-position: 20px 0; } }
.view-toggle { border-radius: 0; }
/* Champs : focus cyan lumineux */
input:focus, select:focus, textarea:focus { outline: 1px solid var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
#quick-input { color: var(--cyan); caret-color: var(--accent); }
/* Tableaux : survol cyan à peine visible */
.table tbody tr:hover { background: rgba(0, 229, 255, .035); }
/* Progression : barres lumineuses */
.progress span { box-shadow: 0 0 8px rgba(252, 238, 10, .45); }
.progress-dual span.play { box-shadow: 0 0 8px rgba(61, 255, 154, .4); }
/* Messages : liseré néon */
.flash-ok { background: rgba(61, 255, 154, .06); }
.flash-error { background: rgba(255, 42, 109, .08); }
.flash-warn { background: rgba(255, 154, 31, .08); }
/* Avertissement « cotes indicatives » : bande de danger jaune et noire à gauche */
.price-note { position: relative; border-left: 0; padding-left: 20px; }
.price-note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: repeating-linear-gradient(-45deg, var(--accent) 0 5px, var(--bg) 5px 10px); }
/* Indicateurs cliquables */
/* Pied de page : ruban jaune et noir, fond qui masque la ville pour garder les mentions lisibles. */
.footer { position: relative; border-top: 0; background: linear-gradient(180deg, rgba(6, 6, 11, .55), rgba(6, 6, 11, .92) 60%); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(252, 238, 10, .6) 0 8px, transparent 8px 16px); }
/* Changement de page : le contenu se corrompt puis se recompose (moins d'un tiers de seconde) ; la barre du haut et celle
   du bas restent en place. Navigateurs récents (Chrome, Edge, Safari 18.2 et plus) ; ailleurs, la page change normalement. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.topbar { view-transition-name: nc-topbar; }
.bottombar { view-transition-name: nc-bottombar; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
::view-transition-old(root) { animation: nc-out .14s steps(2, jump-none) both; }
::view-transition-new(root) { animation: nc-in .26s steps(1) both; }
@keyframes nc-out {
  0% { clip-path: none; transform: none; opacity: 1; }
  50% { clip-path: inset(18% 0 46% 0); transform: translateX(-14px); opacity: .9; }
  100% { clip-path: inset(62% 0 8% 0); transform: translateX(10px); opacity: 0; }
}
@keyframes nc-in {
  0% { opacity: 0; }
  20% { opacity: 1; clip-path: inset(0 0 64% 0); transform: translateX(10px); filter: hue-rotate(70deg) saturate(1.6); }
  40% { clip-path: inset(36% 0 22% 0); transform: translateX(-8px); filter: none; }
  60% { clip-path: inset(0 0 28% 0); transform: translateX(4px); }
  80% { clip-path: none; transform: translateX(-2px); }
  100% { clip-path: none; transform: none; opacity: 1; }
}

/* ---------- 5. Cartes ---------- */
.tile { background: var(--surface); }
.tile:hover, a.tile:hover { border-color: var(--cyan); }
/* Carte possédée : bordure jaune et lueur intérieure (une lueur extérieure serait rognée par la découpe de l'angle). */
.tile.owned { border-color: rgba(252, 238, 10, .8); box-shadow: inset 0 0 0 1px rgba(252, 238, 10, .22), inset 0 0 26px rgba(252, 238, 10, .07); }
.tile:not(.owned) .tile-img img { filter: saturate(.65); }
/* Trame d'écran sur l'illustration */
.tile-img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px); }
/* Reflet holographique au survol (repris de CardCatcher), aux couleurs néon : cyan, magenta, jaune. */
.tile-img::after, .card-visual a::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .5) 42%, rgba(0, 229, 255, .45) 48%, rgba(255, 0, 170, .4) 54%, rgba(252, 238, 10, .4) 60%, transparent 72%);
  background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: overlay;
}
.tile:hover .tile-img::after, .card-visual a:hover::after { opacity: 1; animation: holo-sweep 1.2s ease-out forwards; }
@keyframes holo-sweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }
/* Carte survolée : l'illustration décroche une fraction de seconde (décalage, couleurs qui dérivent). */
.tile:hover .tile-img img { animation: nc-jolt .3s steps(1) 1; }
@keyframes nc-jolt {
  0% { transform: translate(4px, 0); filter: hue-rotate(60deg) saturate(1.8) brightness(1.15); }
  25% { transform: translate(-3px, 1px); filter: hue-rotate(-40deg) saturate(1.5); }
  50% { transform: translate(2px, -1px); filter: none; }
  75% { transform: translate(-1px, 0); }
  100% { transform: none; }
}
/* Pastille ×N : parallélogramme jaune, centré en haut pour laisser voir le coût imprimé en haut à gauche de la carte. */
.tile .badge { left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; border-radius: 0; padding: 0 11px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.badge-free { font-weight: 600; opacity: .8; }
.price { color: var(--text); }

/* ---------- 6. Fiche, raretés et decks Cyberpunk ---------- */
/* Raretés (lettres et symboles) */
.rar-UC { color: #7ee2a8; border-color: #2f6b4b; }
.rar-R { color: #6cc4ff; border-color: #2a5c80; }
.rar-E { color: #c9a7ff; border-color: #5b4691; }
.rar-S { color: #ffd166; border-color: #8a6d1f; }
.rar-I, .rar-IL, .rar-IO, .rar-IS { color: #ff8fd0; border-color: #8a3a6a; }
.rar-NR { color: var(--cyan); border-color: #1f6170; }
/* Couleurs du jeu (bleu, vert, rouge, jaune) : pastilles, Légendes, fiche */
.dot.col-red { background: #e5484d; } .dot.col-green { background: #3ddc97; } .dot.col-blue { background: #3b9eff; } .dot.col-yellow { background: var(--accent); }
.chip.col-red, .legend-slot.col-red { border-color: #e5484d; }
.chip.col-green, .legend-slot.col-green { border-color: #3ddc97; }
.chip.col-blue, .legend-slot.col-blue { border-color: #3b9eff; }
.chip.col-yellow, .legend-slot.col-yellow { border-color: var(--accent); }
/* Couleur de carte (--card) : fiche, listes (type sur fond de couleur, couleur écrite en couleur) */
.col-red { --card: #e5484d; } .col-green { --card: #3ddc97; } .col-blue { --card: #3b9eff; } .col-yellow { --card: var(--accent); }
.card-specs.col-red { --card: #e5484d; } .card-specs.col-green { --card: #3ddc97; } .card-specs.col-blue { --card: #3b9eff; } .card-specs.col-yellow { --card: var(--accent); }
.eddies { color: var(--accent); font: 700 .85rem/1 var(--font-display); }
.tag-chip { position: relative; display: inline-block; padding: 3px 14px 3px 9px; border: 1px solid var(--card); color: var(--card); font: 700 .74rem/1.3 var(--font-display); letter-spacing: .1em; }
.tag-chip::after { content: ""; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px;
  background: linear-gradient(to bottom left, var(--bg) 0 50%, var(--card) 50% calc(50% + 1px), transparent calc(50% + 1px)); }
.spec-type { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.rules { border-left-color: var(--accent); }
.deck-cost { font-family: var(--font-mono); font-weight: 400; }

/* ---------- 6b. Statistiques : le tableau de bord du fixer ---------- */
/* Joueurs à cocher (Statistiques, Joueurs) : badges d'identité à coin coupé, trait à la couleur du joueur, allumés quand cochés. */
.uchoice { --c1: 9px; position: relative; border: 1px solid var(--border-strong); border-radius: 0; background: var(--surface); padding: 8px 14px 8px 12px;
  font: 600 .82rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 3px 0 0 var(--c); }
.uchoice:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface));
  box-shadow: inset 3px 0 0 var(--c), inset 0 0 16px color-mix(in srgb, var(--c) 28%, transparent); }
.uchoice:has(input:not(:checked)) { opacity: .5; border-style: solid; }
/* Cartes de joueur : écran teinté de sa couleur, trame, valeur en néon, chiffres en chasse fixe. */
.pcard { border-color: var(--border-strong);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 60%); }
.pcard::before { width: 3px; box-shadow: 0 0 10px var(--c); }
.pcard-name { text-transform: uppercase; letter-spacing: .1em; }
.pcard-tag { font-family: var(--font-mono); color: var(--cyan); }
.pcard-tag::before { content: "// "; opacity: .7; }
.pcard-label, .pcard-figures dt { font-family: var(--font-mono); color: #6f7899; letter-spacing: .1em; white-space: nowrap; }
.pcard-label::before, .pcard-figures dt::before { content: "> "; color: var(--cyan); }
.pcard-value .stat-value { font-size: 2.3rem; color: var(--accent); }
.pcard-figures dd { font: 400 1.15rem/1.2 var(--font-mono); letter-spacing: .02em; }
.pcard-group { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 6px, transparent 6px 12px); border-style: dashed; }
.pcard-group::before { box-shadow: none; opacity: .6; }
/* Montants cachés : bandeau caviardé, comme un fichier dont le fixer n'a pas la clé. */
.pcard-private { color: var(--magenta); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.pcard-value .pcard-private::after { content: ""; display: inline-block; width: 92px; height: .95em; margin-left: 8px; vertical-align: -2px;
  background: repeating-linear-gradient(90deg, rgba(255, 42, 109, .55) 0 7px, transparent 7px 9px); }
.lock-note { color: var(--magenta); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }
/* Graphiques : numérotés comme des flux de données, sur un écran sombre à crochets d'angle ; traits et barres en néon. */
.charts { counter-reset: nc-feed; }
.chart-card { counter-increment: nc-feed; }
.chart-card figcaption h2::before, .top-cards > h2::before { content: "0" counter(nc-feed) " // "; font-family: var(--font-mono); font-weight: 400; color: var(--cyan); letter-spacing: .04em; }
.top-cards > h2::before { content: "// "; }
.chart { background: radial-gradient(120% 90% at 50% 0%, rgba(0, 229, 255, .05), transparent 70%), #08090f; border: 1px solid var(--border); }
.chart::before, .chart::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; border: 0 solid var(--cyan); }
.chart::before { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.chart::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.chart-svg .grid { stroke: rgba(0, 229, 255, .1); stroke-dasharray: 2 4; }
.chart-svg .axis { stroke: rgba(0, 229, 255, .4); }
.chart-svg .tick { fill: #7a83a3; font-family: var(--font-mono); }
.chart-svg .cat { font-family: var(--font-display); letter-spacing: .04em; }
.chart-svg .line { filter: drop-shadow(0 0 4px var(--c)); }
.chart-svg .dot { filter: drop-shadow(0 0 6px var(--c)); }
.chart-svg .bar { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--c) 70%, transparent)); }
.chart-tip { border-radius: 0; border-color: var(--cyan); background: rgba(8, 9, 15, .96); box-shadow: 0 0 18px rgba(0, 229, 255, .15); }
.tip-row strong { font-family: var(--font-mono); font-weight: 400; }
/* Cartes les plus chères : tableau des primes. Rang en grand, podium plus grand encore, cote en néon. */
.top-item { --c1: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, var(--surface-2)), var(--surface-2) 45%); }
.top-item:hover { border-color: var(--cyan); border-left-color: var(--c); }
.top-rank { font: 400 1.5rem/1 var(--font-mono); color: var(--accent); text-shadow: 0 0 10px rgba(252, 238, 10, .45); }
.top-item:nth-child(-n+3) .top-rank { font-size: 2.1rem; }
.top-img img { border: 1px solid var(--border-strong); border-radius: 0; }
.top-price { font: 400 1.3rem/1 var(--font-mono); color: var(--accent); text-shadow: 0 0 12px rgba(252, 238, 10, .35); }
.top-owner { font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 7. Effets sobres ---------- */
.fx-calm::before, .fx-calm .topbar::before, .fx-calm .tile-img::before, .fx-calm .page-head .eyebrow::after { display: none; }
.fx-calm h1 { text-shadow: none; }
.fx-calm .page-head h1, .fx-calm .card-title-row h1 { animation: none; }
.fx-calm .tile.owned, .fx-calm .stat-value, .fx-calm .progress span, .fx-calm .progress-dual span.play { box-shadow: none; text-shadow: none; }
.fx-calm .nav a.active { text-shadow: none; }
.fx-calm .nav a.active::after, .fx-calm .bottombar a.active::before, .fx-calm .topbar::after, .fx-calm .panel::before { box-shadow: none; }
.fx-calm .brand .logo, .fx-calm .brand-name em { filter: none; text-shadow: none; }
.fx-calm .brand .logo, .fx-calm .brand-name em, .fx-calm .topbar::after, .fx-calm .tile:hover .tile-img img,
.fx-calm .btn-primary:hover, .fx-calm .btn.confirming { animation: none; }
.fx-calm .btn-primary:hover { box-shadow: none; }
.fx-calm .pcard::before, .fx-calm .top-rank, .fx-calm .top-price, .fx-calm .chart-tip { box-shadow: none; text-shadow: none; }
.fx-calm .chart-svg .line, .fx-calm .chart-svg .dot, .fx-calm .chart-svg .bar { filter: none; }
/* Pas de transition de page (les couches de transition dépendent de html : visé par :has, la classe étant sur body). */
:root:has(> body.fx-calm)::view-transition-old(root), :root:has(> body.fx-calm)::view-transition-new(root) { animation: none; }

/* Collection par set : libellés en texte courant, seuls les nombres en chasse fixe */
.table .num .set-part > span { font-family: var(--font-body); letter-spacing: 0; }
.set-part strong { font-family: var(--font-mono); font-weight: 400; }
