/* =====================================================================
   Pokémon TCG Tracker — thème sombre « Liquid Glass »
   Verre translucide + reflets spéculaires sur fond aurore animé.
   ===================================================================== */
:root {
  color-scheme: dark;
  /* Surfaces */
  --bg: #06070b;
  --bg-2: #0c0e15;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.28);
  --blur: blur(28px) saturate(180%);
  /* Texte */
  --text: #f5f6fa;
  --text-2: #a9adbb;
  --text-3: #6e7383;
  /* Accents & données (palette dataviz validée, pas sombre) */
  --accent: #3987e5;
  --accent-2: #9085e9;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-7: #9085e9;
  --good: #30d158;
  --bad: #ff5a5f;
  --warn: #ffb340;
  --grid: rgba(255, 255, 255, 0.07);
  /* Formes */
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* + polices japonaises, chinoises, coréennes et thaïes (présentes sur iPhone / Mac, Noto ailleurs) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui,
    "Hiragino Sans", "PingFang TC", "PingFang SC", "Apple SD Gothic Neo", "Thonburi",
    "Noto Sans JP", "Noto Sans TC", "Noto Sans KR", "Noto Sans Thai", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
/* iPhone (app installée) : le fond doit aller jusque sous la barre du bas */
html { background: #0c0a1a; min-height: 100lvh; }
body { min-height: 100lvh; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.up { color: var(--good); }
.down { color: var(--bad); }
[hidden] { display: none !important; }

/* ------------------------------------------------ fond aurore animé */
.aurora { position: fixed; top: 0; left: 0; right: 0; height: 100lvh; bottom: auto; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 110%, #1a1030, transparent 60%), var(--bg); }
.aurora::after { /* grain très léger pour éviter le banding */
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.orb.o1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, #2b4cff 0%, transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.orb.o2 { width: 50vmax; height: 50vmax; right: -16vmax; top: 10vmax; background: radial-gradient(circle, #8a2bff 0%, transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.orb.o3 { width: 44vmax; height: 44vmax; left: 10vmax; bottom: -24vmax; background: radial-gradient(circle, #ff7a1a 0%, transparent 62%); opacity: .32; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 14vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(10vmax, -12vmax) scale(1.2); } }

/* ------------------------------------------------ verre liquide */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 40%, rgba(255,255,255,.05) 100%);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),      /* reflet du bord supérieur */
    inset 0 -1px 0 rgba(255,255,255,.04),
    0 20px 50px -20px rgba(0,0,0,.65);
  isolation: isolate;
}
.glass::before { /* reflet spéculaire qui suit le pointeur (--mx/--my) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), rgba(255,255,255,.10), transparent 45%);
  transition: opacity .4s var(--ease);
}
.glass.pad { padding: 18px; }
.glass.pill { border-radius: 999px; }

/* ------------------------------------------------ structure */
.app { max-width: 1180px; margin: 0 auto; padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 110px); }
.topbar {
  position: sticky; top: calc(var(--safe-top) + 8px); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand .logo { width: 28px; height: 28px; border-radius: 9px; background: conic-gradient(from 200deg, #3987e5, #9085e9, #ff7a1a, #3987e5); box-shadow: 0 0 18px rgba(57,135,229,.6); position: relative; }
.brand .logo::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.spacer { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 11px; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.live.on .dot { background: var(--good); box-shadow: 0 0 0 0 rgba(48,209,88,.7); animation: pulse 2s infinite; }
.live.on { color: var(--good); }
.live.busy .dot { background: var(--warn); animation: pulse 1s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--glass); cursor: pointer;
  transition: transform .25s var(--spring), background .2s;
}
.icon-btn:hover { background: var(--glass-hover); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 19px; height: 19px; }

/* ------------------------------------------------ barre d'onglets flottante (style iOS) */
.tabbar {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 14px); transform: translateX(-50%); z-index: 40;
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  /* verre plus teinté : lisible même au-dessus des cartes et de la 3D */
  background: linear-gradient(160deg, rgba(38,42,60,.72), rgba(16,18,28,.78)) !important;
}
.tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 64px; padding: 7px 10px 6px; border: 0; background: none; border-radius: 999px; cursor: pointer;
  color: var(--text-2); font-size: 10.5px; font-weight: 600; transition: color .3s var(--ease);
}
.tab svg { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.tab.active { color: var(--text); }
.tab.active svg { transform: translateY(-1px) scale(1.08); }
.tab-indicator {
  position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 18px rgba(57,135,229,.25);
  transition: transform .5s var(--spring), width .5s var(--spring);
}

/* ------------------------------------------------ vues + transitions */
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } }
.stagger > * { animation: rise .6s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s } .stagger > *:nth-child(2) { animation-delay: .06s }
.stagger > *:nth-child(3) { animation-delay: .10s } .stagger > *:nth-child(4) { animation-delay: .14s }
.stagger > *:nth-child(5) { animation-delay: .18s } .stagger > *:nth-child(6) { animation-delay: .22s }
.stagger > *:nth-child(7) { animation-delay: .26s } .stagger > *:nth-child(8) { animation-delay: .30s }
.stagger > *:nth-child(n+9) { animation-delay: .34s }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

h1.title { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; margin: 6px 4px 4px; }
.subtitle { margin: 0 4px 20px; color: var(--text-2); }
h2.section { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 30px 4px 12px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 0 0 10px; }

.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cols-2 { grid-template-columns: 1fr; } h1.title { font-size: 30px; } }

/* ------------------------------------------------ coffre-fort : chiffre héros */
.hero { padding: 26px 24px 22px; border-radius: var(--r-xl); overflow: hidden; }
.hero .label { font-size: 13px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero .big { font-size: clamp(40px, 9vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; margin: 6px 0 8px; }
.hero .big .cents { font-size: .5em; color: var(--text-2); font-weight: 700; }
.hero .deltas { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
}
.chip.good { background: rgba(48,209,88,.13); color: var(--good); border-color: rgba(48,209,88,.25); }
.chip.bad { background: rgba(255,90,95,.13); color: var(--bad); border-color: rgba(255,90,95,.25); }
.chip.warn { background: rgba(255,179,64,.13); color: var(--warn); border-color: rgba(255,179,64,.25); }
.chip.info { background: rgba(57,135,229,.15); color: #7fb2f2; border-color: rgba(57,135,229,.3); }

.stat { padding: 16px 16px 14px; }
.stat .k { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.stat .v { font-size: 24px; font-weight: 750; letter-spacing: -0.03em; margin-top: 4px; }
.stat .s { font-size: 12.5px; margin-top: 2px; }

/* ------------------------------------------------ signaux */
.signal { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.signal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.signal.ACHETER, .signal.RENFORCER { color: var(--good); background: rgba(48,209,88,.14); }
.signal.VENDRE { color: var(--bad); background: rgba(255,90,95,.14); }
.signal.GARDER, .signal.ATTENDRE { color: #9ec5f4; background: rgba(57,135,229,.16); }
.signal.ÉVITER { color: var(--warn); background: rgba(255,179,64,.14); }

.signal-card { padding: 20px; }
.signal-head { display: flex; align-items: center; gap: 16px; }
.signal-head .action { font-size: 28px; font-weight: 850; letter-spacing: -0.03em; }
.signal-head .action.ACHETER, .signal-head .action.RENFORCER { color: var(--good); }
.signal-head .action.VENDRE { color: var(--bad); }
.signal-head .action.GARDER, .signal-head .action.ATTENDRE { color: #9ec5f4; }
.signal-head .action.ÉVITER { color: var(--warn); }
.reasons { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.reasons li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.reasons .pts { font-size: 12px; font-weight: 750; text-align: center; padding: 3px 0; border-radius: 8px; background: rgba(255,255,255,.07); }
.reasons .pts.p { color: var(--good); background: rgba(48,209,88,.12); }
.reasons .pts.n { color: var(--bad); background: rgba(255,90,95,.12); }
.disclaimer { font-size: 12px; color: var(--text-3); margin-top: 14px; }

/* anneau de score */
.ring { --v: 50; --c: var(--accent); width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255,255,255,.08) 0); transition: --v 1s var(--ease); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-2); }
.ring span { position: relative; font-weight: 800; font-size: 19px; }
@property --v { syntax: "<number>"; inherits: true; initial-value: 0; }

.meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ------------------------------------------------ cartes Pokémon (tilt 3D + reflet holo) */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
@media (max-width: 420px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.tile { padding: 10px 10px 12px; cursor: pointer; border-radius: var(--r-lg); transition: transform .4s var(--ease), background .3s; }
.tile:hover { background: var(--glass-strong); }
.tile:active { transform: scale(.97); }
.tcg { perspective: 900px; }
.tcg-inner {
  position: relative; aspect-ratio: 63 / 88; border-radius: 4.5% / 3.3%; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.8);
  background: linear-gradient(135deg, #1a1d29, #0f1118);
}
.tcg.tilting .tcg-inner { transition: transform .08s linear; box-shadow: 0 26px 40px -14px rgba(0,0,0,.85); }
.tcg img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s; }
.tcg img.loaded { opacity: 1; }
.tcg .shine { /* reflet holographique iridescent */
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .4s;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 42%),
    repeating-linear-gradient(115deg, #ff3b6b33 0%, #ffd23f33 8%, #3bff9a33 16%, #3bb2ff33 24%, #b13bff33 32%, #ff3b6b33 40%);
  background-size: 100% 100%, 250% 250%;
  background-position: center, var(--gx, 50%) var(--gy, 50%);
}
.tcg.tilting .shine, .tcg:hover .shine { opacity: .75; }
.tile .name { font-weight: 650; font-size: 14px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.tile .price { font-weight: 750; font-size: 16px; }
.qty { position: absolute; top: 16px; right: 16px; z-index: 2; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }

/* skeleton */
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------ listes */
.list { display: grid; gap: 10px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; cursor: pointer; transition: background .25s, transform .3s var(--ease); }
.row-item:hover { background: var(--glass-strong); }
.row-item:active { transform: scale(.985); }
.row-item .thumb { width: 44px; aspect-ratio: 63/88; border-radius: 4px; object-fit: cover; flex: none; background: #151823; }
.row-item .main { flex: 1; min-width: 0; }
.row-item .main b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .main small { color: var(--text-3); }
.row-item .end { text-align: right; flex: none; }

/* barres horizontales (répartition) */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.hbar .lbl { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 10px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--series-1); transform-origin: left; animation: grow 1s var(--ease) both; }
.hbar .val { font-weight: 650; min-width: 70px; text-align: right; }

/* ------------------------------------------------ graphiques SVG */
.chart { position: relative; width: 100%; user-select: none; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .area { opacity: 0; animation: fadein 1s .4s var(--ease) forwards; }
@keyframes fadein { to { opacity: 1; } }
.chart .xhair { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hoverdot { stroke: var(--bg-2); stroke-width: 2; }
.chart .endlabel { font-size: 11.5px; font-weight: 650; fill: var(--text-2); }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 130px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px;
  background: rgba(20,22,32,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s; white-space: nowrap;
}
.tooltip .t { color: var(--text-3); font-size: 11.5px; margin-bottom: 3px; }
.tooltip .r { display: flex; align-items: center; gap: 7px; }
.tooltip .sw { width: 9px; height: 3px; border-radius: 2px; }
.tooltip .r b { margin-left: auto; padding-left: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend i.dashed { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--text-2); cursor: pointer; transition: all .3s var(--ease); }
.seg button.on { background: rgba(255,255,255,.14); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }

/* indicateurs */
.ind { padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.ind .k { font-size: 11.5px; color: var(--text-3); font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.ind .v { font-size: 18px; font-weight: 750; margin-top: 2px; }
.src { font-size: 10px; font-weight: 600; color: var(--text-3); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 0 5px; }

/* ------------------------------------------------ feuille modale (bottom sheet iOS) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: calc(100dvh - var(--safe-top) - 24px); overflow-y: auto;
  margin: 0 auto; max-width: 980px; border-radius: 32px 32px 0 0; padding: 8px 18px calc(var(--safe-bottom) + 28px);
  background: linear-gradient(180deg, rgba(28,31,44,.88), rgba(12,14,21,.96));
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border); border-bottom: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 -20px 60px rgba(0,0,0,.6);
  transform: translateY(100%); transition: transform .55s var(--ease); overscroll-behavior: contain;
}
.sheet.open { transform: translateY(0); }
.sheet .grabber { width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 4px auto 12px; }
.sheet-close { position: sticky; top: 0; float: right; z-index: 3; background: rgba(30,33,46,.85); backdrop-filter: blur(12px); }
.sheet h2.section { padding-right: 52px; }
@media (min-width: 760px) { .sheet { bottom: 3vh; border-radius: 32px; border-bottom: 1px solid var(--glass-border); max-height: 94vh; } }

.detail-top { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .detail-top { grid-template-columns: 1fr; } }
.viewer3d { position: relative; aspect-ratio: 3 / 3.6; width: 100%; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(57,135,229,.25), transparent 60%); cursor: grab; touch-action: none; }
.viewer3d:active { cursor: grabbing; }
.viewer3d canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer3d .hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--text-3); pointer-events: none; }
.viewer3d .gyro { position: absolute; top: 10px; right: 10px; font-size: 11.5px; padding: 5px 10px; }
.price-xl { font-size: 42px; font-weight: 850; letter-spacing: -0.04em; line-height: 1.05; }

/* ------------------------------------------------ formulaires */
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.06); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.input:focus { border-color: rgba(57,135,229,.7); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(57,135,229,.18); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9adbb' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
select.input option { background: #1a1d29; }
.search-input { font-size: 17px; padding: 15px 18px 15px 46px; border-radius: 999px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-3); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.14); transition: .3s var(--ease); cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .35s var(--spring); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::after { transform: translateX(20px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 650; border: 1px solid var(--glass-border); background: rgba(255,255,255,.08); transition: transform .25s var(--spring), background .2s, box-shadow .3s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.btn:hover { background: rgba(255,255,255,.13); }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(180deg, #4b95ee, #2f76d2); border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px -8px rgba(57,135,229,.7); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.fab {
  position: fixed; right: 20px; bottom: calc(var(--safe-bottom) + 92px); z-index: 39; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(160deg, #5aa2f3, #2c6fd0); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 30px -6px rgba(57,135,229,.75);
  transition: transform .35s var(--spring);
}
.fab:hover { transform: scale(1.06) rotate(90deg); }
.fab:active { transform: scale(.92); }
.fab svg { width: 26px; height: 26px; }

/* annonces */
.listing { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; }
.listing img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #151823; }
.listing .t { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* toasts */
.toasts { position: fixed; top: calc(var(--safe-top) + 72px); left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: center; padding: 12px 14px; pointer-events: auto; animation: toastIn .6s var(--spring) both; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
.toast img { width: 36px; border-radius: 4px; }
.toast b { display: block; font-size: 14px; }
.toast small { color: var(--text-2); font-size: 12.5px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.95); } }

/* flash de mise à jour en direct */
.flash-up { animation: flashUp 1.6s var(--ease); }
.flash-down { animation: flashDown 1.6s var(--ease); }
@keyframes flashUp { 20% { color: var(--good); text-shadow: 0 0 18px rgba(48,209,88,.7); } }
@keyframes flashDown { 20% { color: var(--bad); text-shadow: 0 0 18px rgba(255,90,95,.7); } }

/* vitrine 3D du coffre */
.showcase { position: relative; height: 340px; border-radius: var(--r-xl); overflow: hidden; }
.showcase canvas { display: block; width: 100% !important; height: 100% !important; }
.showcase .cap { position: absolute; left: 20px; bottom: 16px; pointer-events: none; }
.showcase .cap b { font-size: 17px; display: block; }
@media (max-width: 620px) { .showcase { height: 280px; } }

/* ------------------------------------------------ écran de verrouillage « coffre-fort » */
.lock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(6,7,11,.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.lock .panel { width: min(380px, 100%); text-align: center; padding: 34px 26px 26px; border-radius: 36px; }
.vault-door { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; position: relative; perspective: 600px; }
.vault-door .door { position: absolute; inset: 0; border-radius: 50%; transform-origin: left center; transition: transform 1.1s var(--ease);
  background: radial-gradient(circle at 35% 30%, #4a5068, #1b1e2b 70%); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -8px 18px rgba(0,0,0,.6), 0 18px 40px rgba(0,0,0,.6); }
.vault-door .dial { position: absolute; inset: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); transition: transform 1s var(--ease);
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 2deg, transparent 2deg 15deg), radial-gradient(circle, #2a2f42, #151823); }
.vault-door .dial::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: linear-gradient(145deg, #5b6380, #242838); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.lock.opening .dial { transform: rotate(540deg); }
.lock.opening .door { transform: rotateY(-100deg); transition-delay: .7s; }
.lock.opening { animation: fadeOut .6s 1.5s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty .ico { font-size: 44px; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table th, table.table td { text-align: right; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
table.table th:first-child, table.table td:first-child { text-align: left; }
table.table th { color: var(--text-3); font-weight: 600; }
.scroll-x { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* en-tête compact sur petit écran */
.brand, .live { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar { padding-left: 14px; gap: 8px; }
  .brand { font-size: 16px; }
  .live { padding: 6px 9px; font-size: 11px; }
}
@media (max-width: 420px) {
  .row-item { gap: 10px; }
  .row-item .end { gap: 10px !important; }
  .row-item .ring { width: 50px; height: 50px; }
  .row-item .ring::before { inset: 5px; }
  .row-item .ring span { font-size: 15px; }
  .row-item .end .num[style*="17px"] { font-size: 15px !important; }
}
.nowrap { white-space: nowrap; }
.toast small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   Scan (appareil photo + pré-gradation)
   ===================================================================== */
.tab-center { margin: -22px 2px 0; }
.tab-center .tc-orb {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #5aa2f3, #6d5ce8 60%, #ff7a1a 140%);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 26px -6px rgba(90,110,240,.8);
  transition: transform .4s var(--spring);
}
.tab-center .tc-orb svg { width: 26px; height: 26px; }
.tab-center.active .tc-orb { transform: scale(1.08) rotate(-6deg); }
.tab-center:active .tc-orb { transform: scale(.92); }

.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 4px 16px; }
.stepper span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 99px; font-size: 12.5px; font-weight: 650; color: var(--text-3); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); transition: all .4s var(--ease); }
.stepper b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.08); }
.stepper .on { color: var(--text); background: rgba(57,135,229,.18); border-color: rgba(57,135,229,.4); }
.stepper .on b { background: var(--accent); }
.stepper .done { color: var(--good); }
.stepper .done b { background: rgba(48,209,88,.2); }
@media (max-width: 420px) { .stepper span { font-size: 0; gap: 0; padding: 4px; } .stepper .on { font-size: 12px; gap: 6px; padding-right: 11px; } }

.cam { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 3 / 4; max-height: 68vh; border-radius: var(--r-xl); overflow: hidden; background: #000; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .guide { position: absolute; left: 50%; top: 47%; height: 78%; aspect-ratio: 63 / 88; transform: translate(-50%, -50%); border-radius: 4.5% / 3.3%; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); }
.cam .guide .c { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; filter: drop-shadow(0 0 6px rgba(57,135,229,.9)); }
.cam .guide .tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.cam .guide .tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.cam .guide .bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.cam .guide .br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.cam .scanline { position: absolute; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, transparent, #5aa2f3, transparent); box-shadow: 0 0 14px #5aa2f3; animation: scanline 2.6s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 6%; } 50% { top: 92%; } }
.cam-hint { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; font-size: 12.5px; font-weight: 600; padding: 8px 12px; border-radius: 99px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cam.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: camflash .45s ease-out forwards; }
@keyframes camflash { from { opacity: .9; } to { opacity: 0; } }
.cam-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0 6px; }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); background: rgba(255,255,255,.12); cursor: pointer; position: relative; transition: transform .25s var(--spring); }
.shutter::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.shutter:active { transform: scale(.88); }

.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scan-id { grid-template-columns: minmax(200px, 320px) 1fr; }
.center-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); align-items: start; }
.result-grid { grid-template-columns: minmax(220px, 300px) 1fr; align-items: start; }
@media (max-width: 760px) { .scan-id, .center-grid, .result-grid { grid-template-columns: 1fr; } }
.cands { display: grid; gap: 8px; }
.cand { display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px 12px 8px 8px; cursor: pointer; border-radius: var(--r-md); transition: transform .25s var(--spring), background .2s; }
.cand:hover { background: var(--glass-strong); }
.cand:active { transform: scale(.98); }
.cand img { width: 52px; border-radius: 4px; flex: none; }
.cand span { display: grid; gap: 2px; }
.cand small { color: var(--text-3); }
.cand em { justify-self: start; font-style: normal; font-size: 11px; padding: 1px 8px; }
.choice-big { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 24px 18px; cursor: pointer; transition: transform .3s var(--spring), background .2s; }
.choice-big:hover { background: var(--glass-strong); transform: translateY(-2px); }
.choice-big b { font-size: 17px; }
.editor-wrap { display: flex; flex-direction: column; align-items: center; }
.border-editor { display: block; touch-action: none; border-radius: 12px; cursor: crosshair; }
.center-vis { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; }
.cv-card { position: relative; width: 74px; aspect-ratio: 63/88; border-radius: 5px; background: #ffcf3f; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.cv-inner { position: absolute; border-radius: 2px; background: linear-gradient(135deg, #3a7bd5, #9b59b6); transition: all .15s; }
.choices { display: grid; gap: 7px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); transition: all .25s var(--ease); flex-wrap: wrap; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choice.on { background: rgba(57,135,229,.16); border-color: rgba(57,135,229,.45); }
.choice span { flex: 1; min-width: 120px; }
.grade-badge { text-align: center; padding: 18px 18px 22px; border-radius: 26px; overflow: hidden; }
.grade-badge .gb-top { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--text-2); margin-bottom: 12px; }
.grade-badge img { width: 120px; border-radius: 6px; box-shadow: 0 14px 30px rgba(0,0,0,.55); animation: rise .8s var(--ease) both; }
.grade-badge .gb-name { font-weight: 700; margin-top: 10px; }
.grade-badge .gb-grade { font-size: 84px; font-weight: 900; line-height: 1; letter-spacing: -.05em; margin-top: 6px; background: linear-gradient(180deg, #fff, #9ec5f4); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .9s var(--spring) both .2s; }
.grade-badge.gem .gb-grade { background-image: linear-gradient(180deg, #fff6c8, #ffc94a); filter: drop-shadow(0 0 18px rgba(255,201,74,.45)); }
.grade-badge.low .gb-grade { background-image: linear-gradient(180deg, #fff, #ffb3b5); }
.grade-badge .gb-label { font-weight: 750; letter-spacing: .08em; color: var(--text-2); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.crit { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crit li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.035); }
.crit li.lim { background: rgba(255,179,64,.08); box-shadow: inset 0 0 0 1px rgba(255,179,64,.3); }
.crit .cap { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; font-size: 18px; background: rgba(255,255,255,.08); }
.crit li.lim .cap { background: rgba(255,179,64,.2); color: var(--warn); }
/* le déclencheur doit rester visible au-dessus de la barre d'onglets */
/* hauteur limitée MAIS proportions 3:4 conservées (sinon le cadre ne correspond plus à la capture) */
.cam { width: auto; max-width: 100%; max-height: none; height: clamp(280px, calc(100dvh - 450px - var(--safe-top) - var(--safe-bottom)), 68vh); aspect-ratio: 3 / 4; }
.cam-actions { margin-bottom: 0; }
.lang { display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: .04em; padding: 1px 6px; margin-right: 4px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--text-2); }
.noimg { position: absolute; inset: 6%; border-radius: 4% / 3%; display: grid; place-content: center; gap: 6px; text-align: center; padding: 10px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px), linear-gradient(160deg, #262b3d, #141722);
  border: 1px solid rgba(255,255,255,.1); }
.noimg b { font-size: 14px; }
.noimg small { font-size: 11px; color: var(--text-3); }
.noimg em { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 6px; }

.orig { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================
   Marché : ⚡ Flash Buy + Explorer
   ===================================================================== */
.market-tabs { margin: 4px 4px 18px; }
.market-tabs button { padding: 8px 16px; font-size: 14px; }
.flash-hero { text-align: center; padding: 26px 22px 24px; border-radius: var(--r-xl); overflow: hidden; }
.flash-hero::after { content: ""; position: absolute; inset: -40% -10% auto; height: 220px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,204,0,.28), transparent); filter: blur(10px); animation: glowpulse 4s ease-in-out infinite; }
@keyframes glowpulse { 50% { opacity: .5; transform: scale(1.1); } }
.flash-hero h2 { margin: 2px 0 4px; font-size: 30px; font-weight: 900; letter-spacing: -.035em;
  background: linear-gradient(90deg, #ffe066, #ffb340, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flash-hero p { margin: 0 auto 16px; max-width: 460px; font-size: 14px; }
.bolt { font-size: 38px; filter: drop-shadow(0 0 16px rgba(255,204,0,.8)); animation: bolt 2.4s ease-in-out infinite; }
.bolt.big { font-size: 54px; }
@keyframes bolt { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }
.budget-row { display: flex; justify-content: center; }
.budget-input { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 22px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); }
.budget-input input { width: 190px; border: 0; background: none; outline: none; text-align: right; font-size: 52px; font-weight: 850; letter-spacing: -.04em; }
.budget-input span { font-size: 30px; font-weight: 800; color: var(--text-2); }
.budget-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.chips-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.chip-btn { border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .25s var(--spring); }
.chip-btn.on, .chip-btn:hover { background: rgba(255,204,0,.16); border-color: rgba(255,204,0,.5); color: #ffe066; }
.chip-btn:active { transform: scale(.94); }
.flash-hero .seg { flex-wrap: wrap; }
.flash-go { margin-top: 18px; font-size: 17px; padding: 15px 30px; background: linear-gradient(180deg, #ffcf3f, #ff9a1a) !important; color: #1b1200;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 30px -8px rgba(255,170,0,.8) !important; border-color: rgba(255,255,255,.4) !important; font-weight: 850; }
.flash-go.scanning { animation: pulsebtn 1s ease-in-out infinite; }
@keyframes pulsebtn { 50% { transform: scale(.97); filter: brightness(1.15); } }
input[type=range] { width: 100%; accent-color: #ffb340; }
.scan-anim { position: relative; overflow: hidden; margin-top: 14px; }
.scan-anim::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,.18), transparent); animation: sweep 1.2s linear infinite; }
@keyframes sweep { to { left: 100%; } }
.basket { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 14px; flex-wrap: wrap;
  border-color: rgba(255,204,0,.35); background: linear-gradient(135deg, rgba(255,204,0,.12), rgba(255,255,255,.03)); }
.basket > div:first-child { flex: 1; min-width: 200px; }
.basket-cards { display: flex; }
.basket-cards img { width: 54px; border-radius: 4px; margin-left: -16px; box-shadow: 0 8px 18px rgba(0,0,0,.5); cursor: pointer; transition: transform .3s var(--spring); }
.basket-cards img:first-child { margin-left: 0; }
.basket-cards img:hover { transform: translateY(-6px) rotate(-3deg); z-index: 1; }
.fb-item { display: grid; grid-template-columns: 26px 70px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; }
.fb-rank { font-weight: 900; font-size: 18px; color: var(--text-3); padding-top: 4px; text-align: center; }
.fb-item:nth-child(1) .fb-rank { color: #ffd23f; } .fb-item:nth-child(2) .fb-rank { color: #d9dde6; } .fb-item:nth-child(3) .fb-rank { color: #e0955a; }
.fb-img { width: 70px; aspect-ratio: 63/88; object-fit: cover; border-radius: 5px; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.45); }
.noimg-s { display: grid; place-items: center; background: #1a1d29; font-size: 24px; }
.fb-main { min-width: 0; }
.fb-main b { font-size: 15.5px; }
.fb-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fb-chips .chip { font-size: 12px; padding: 3px 9px; }
.fb-reasons { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.fb-reasons li::before { content: "•"; margin-right: 6px; color: var(--text-3); }
.fb-reasons li.p::before { content: "▲"; color: var(--good); font-size: 9px; }
.fb-reasons li.n::before { content: "▼"; color: var(--bad); font-size: 9px; }
.fb-end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.psa-out { margin-top: 6px; }
@media (max-width: 560px) {
  .fb-item { grid-template-columns: 58px 1fr; }
  .fb-rank { display: none; }
  .fb-img { width: 58px; }
  .fb-end { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 8px; }
  .fb-end .ring { width: 46px; height: 46px; } .fb-end .ring span { font-size: 14px; }
  .budget-input input { width: 150px; font-size: 44px; }
}
.ex-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 4px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.bloc { flex: none; display: grid; gap: 2px; text-align: left; padding: 12px 16px; min-width: 150px; cursor: pointer; scroll-snap-align: start; border-radius: var(--r-md); transition: all .3s var(--spring); }
.bloc b { font-size: 14px; white-space: nowrap; }
.bloc small { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.bloc.on { background: rgba(57,135,229,.2); border-color: rgba(57,135,229,.55); box-shadow: 0 8px 24px -10px rgba(57,135,229,.8); }
.bloc:active { transform: scale(.96); }
.set-chip { flex: none; border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); padding: 7px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .25s var(--ease); }
.set-chip small { color: var(--text-3); margin-left: 4px; }
.set-chip.on { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.ex-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 480px) { .ex-filters { grid-template-columns: 1fr 1fr; } .ex-filters select { grid-column: 1 / -1; } }

.logo-img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 16px rgba(144,133,233,.55); transition: transform .5s var(--spring); }
.brand:hover .logo-img { transform: rotate(-12deg) scale(1.08); }
.sealed-box { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.sb-3d { font-size: 110px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.6)); animation: float3d 5s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes float3d { 0%, 100% { transform: translateY(0) rotateY(-18deg) rotateX(8deg); } 50% { transform: translateY(-12px) rotateY(18deg) rotateX(-4deg); } }
/* scan : jamais de bouton caché sous la barre d'onglets */
#scan-root { padding-bottom: 40px; }
.cand.dim { opacity: .35; pointer-events: none; }
.cand.loading { box-shadow: inset 0 0 0 2px rgba(57,135,229,.8); animation: pulsebtn 1s ease-in-out infinite; }
@media (max-width: 560px) { .choice-big { padding: 16px 12px; } .choice-big span { font-size: 24px !important; } }
.defect-maps { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.defect-maps figure { margin: 0; text-align: center; }
.defect-maps canvas { border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.defect-maps figcaption { font-size: 12px; color: var(--text-2); margin-top: 6px; font-weight: 600; }
.refine { margin-top: 14px; text-align: left; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.refine summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text-2); list-style: none; text-align: center; }
.refine summary::after { content: " ▾"; }
.refine[open] summary::after { content: " ▴"; }

/* ---------- sets / classeur / import */
.set-row { display: flex; align-items: center; padding: 14px 16px; cursor: pointer; transition: transform .3s var(--spring), background .2s; }
.set-row:hover { background: var(--glass-strong); }
.set-row:active { transform: scale(.985); }
.tile.missing { opacity: .45; filter: grayscale(.9); }
.tile.missing:hover { opacity: .8; filter: none; }
.imp-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.imp-row.none { opacity: .5; }
.imp-row .main { flex: 1; min-width: 0; }
.imp-row .main small { display: block; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.binder-overlay { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 12px; padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 14px);
  background: radial-gradient(120% 90% at 50% 20%, #2a1f3f, #07060c); animation: viewIn .5s var(--ease) both; }
.binder-top { display: flex; align-items: center; gap: 12px; }
.binder-top b { flex: 1; font-size: 17px; }
.binder-stage { flex: 1; display: grid; place-items: center; perspective: 1800px; min-height: 0; }
.binder { width: min(560px, 100%, calc((100dvh - 190px) * .72)); aspect-ratio: 5 / 7; padding: 14px; border-radius: 18px;
  background: linear-gradient(145deg, #2b2440, #17131f); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 30px 60px rgba(0,0,0,.6), inset 14px 0 18px -10px rgba(0,0,0,.6);
  border-left: 10px solid #120e19; }
.binder-page { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px;
  transform-origin: left center; transform-style: preserve-3d; }
.binder-page.flip-next { animation: flipNext .38s ease-in forwards; }
.binder-page.flip-prev { animation: flipPrev .38s ease-in forwards; }
.binder-page.flip-in { animation: flipIn .45s var(--ease); }
@keyframes flipNext { to { transform: rotateY(-100deg); opacity: .2; } }
@keyframes flipPrev { to { transform: rotateY(40deg); opacity: .2; } }
@keyframes flipIn { from { transform: rotateY(60deg); opacity: .3; } }
.pocket { position: relative; border-radius: 6px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; cursor: pointer; }
.pocket::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 45%); } /* reflet de la pochette plastique */
.pocket .tcg, .pocket .tcg-inner { height: 100%; }
.pocket .tcg-inner { aspect-ratio: auto; }
.pocket .ghost { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; padding: 4px; color: var(--text-3);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px); }
.pocket .ghost b { font-size: 20px; color: var(--text-2); }
.pocket .ghost small { font-size: 10px; line-height: 1.2; }
.pocket .ghost em { font-style: normal; font-size: 10.5px; color: #ffd23f; }
.pocket.filler { cursor: default; opacity: .4; }
.binder-nav { display: flex; justify-content: center; gap: 10px; }
.burst-toggle { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 14px 0 0; font-size: 14px; }
.burst-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 4px 4px; scrollbar-width: none; }
.burst-item { flex: none; width: 70px; text-align: center; animation: rise .4s var(--spring) both; }
.burst-item img { width: 70px; aspect-ratio: 63/88; object-fit: cover; border-radius: 5px; box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.burst-item small { display: block; font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.burst-item.work img, .burst-item.wait img { opacity: .5; animation: pulsebtn 1s infinite; }
.burst-item.ok img { box-shadow: 0 0 0 2px var(--good), 0 6px 14px rgba(0,0,0,.5); }
.burst-item.err img { box-shadow: 0 0 0 2px var(--warn); }

/* =====================================================================
   Holographie réaliste des vignettes (selon la rareté de la carte)
   --ax0/--ay0/--ax1/--ay1 = fenêtre de l'illustration ; --gx/--gy = position du doigt
   ===================================================================== */
@property --hx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.tcg { --gx: 50%; --gy: 50%; }
.tcg .shine { opacity: .55; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.5), transparent 45%); mix-blend-mode: soft-light; }
.tcg.tilting .shine, .tcg:hover .shine { opacity: .9; }
.tcg .holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .38;
  background-size: 260% 260%; background-position: var(--gx) var(--gy);
  transition: opacity .35s var(--ease); animation: holoIdle 7s ease-in-out infinite alternate; }
.tcg.tilting .holo, .tcg:hover .holo { opacity: .8; animation: none; }
@keyframes holoIdle { from { background-position: 20% 30%; } to { background-position: 80% 70%; } }
.tcg .sparkle { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(255,255,255,.8) 0 .7px, transparent 1.2px);
  background-size: 23px 29px, 13px 17px; background-position: calc(var(--gx) * .3) calc(var(--gy) * .3), calc(var(--gx) * -.2) 0;
  animation: sparkleIdle 3.5s ease-in-out infinite alternate; }
@keyframes sparkleIdle { from { opacity: .15; } to { opacity: .55; } }
.tcg.tilting .sparkle, .tcg:hover .sparkle { animation: none; opacity: .75; }

/* zones : illustration seule / tout sauf l'illustration */
.tcg[data-holo="holo"] .holo, .tcg[data-holo="vintage"] .holo, .tcg[data-holo="holo"] .sparkle, .tcg[data-holo="vintage"] .sparkle {
  clip-path: inset(var(--ay0) calc(100% - var(--ax1)) calc(100% - var(--ay1)) var(--ax0) round 2px); }
.tcg[data-holo="reverse"] .holo, .tcg[data-holo="reverse"] .sparkle {
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, var(--ax0) var(--ay0), var(--ax0) var(--ay1), var(--ax1) var(--ay1), var(--ax1) var(--ay0), var(--ax0) var(--ay0)); }

/* motifs */
.tcg[data-holo="holo"] .holo { background-image:
  repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 5%, rgba(255,255,255,.35) 7%, rgba(255,255,255,0) 9% 14%),
  linear-gradient(110deg, #ff3b6b, #ffd23f, #3bff9a, #3bb2ff, #b13bff, #ff3b6b, #ffd23f); }
.tcg[data-holo="vintage"] .holo { background-image:
  repeating-conic-gradient(from 0deg at 50% 30%, rgba(255,255,255,.45) 0 4deg, rgba(255,255,255,0) 4deg 14deg),
  linear-gradient(120deg, #ff6b8b, #ffe066, #6bffb8, #6bc8ff, #c86bff, #ff6b8b); }
.tcg[data-holo="reverse"] .holo { background-image: linear-gradient(115deg, #ff3b6b, #ffd23f, #3bff9a, #3bb2ff, #b13bff, #ff3b6b); opacity: .45; }
.tcg[data-holo="fullart"] .holo { background-image:
  repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 1px, rgba(255,255,255,0) 1px 3px),
  repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 1px, rgba(255,255,255,0) 1px 4px),
  linear-gradient(120deg, #ff4f7b, #ffd84f, #4fffa8, #4fbfff, #b84fff, #ff4f7b); }
.tcg[data-holo="illustration"] .holo { background-image:
  radial-gradient(circle, rgba(255,255,255,.55) 0 .6px, transparent 1px),
  linear-gradient(125deg, #ff7a9a, #ffe27a, #7affc4, #7ad0ff, #d07aff, #ff7a9a); background-size: 4px 4px, 260% 260%; }
.tcg[data-holo="gold"] .holo { background-image: linear-gradient(115deg, #6b4a0a, #ffe28a, #b8860b, #fff4c9, #8a6414, #ffd76a, #6b4a0a); opacity: .6; }
.tcg[data-holo="rainbow"] .holo { background-image: linear-gradient(100deg, #ff2d6f, #ff9f2d, #fff02d, #2dff8a, #2dd5ff, #8a2dff, #ff2d6f); opacity: .6; }
.tcg[data-holo="cosmos"] .holo { background-image:
  radial-gradient(circle at 20% 30%, rgba(255,255,255,.7) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
  linear-gradient(130deg, #6b7bff, #ff6bd8, #6bffe6, #ffd36b, #6b7bff); background-size: 17px 19px, 11px 13px, 260% 260%; }
.tcg[data-holo="unknown"] .holo { background-image: linear-gradient(115deg, #ff3b6b, #ffd23f, #3bff9a, #3bb2ff, #b13bff, #ff3b6b); opacity: .22; }
.tcg[data-holo="none"] .holo, .tcg[data-holo="none"] .sparkle, .tcg[data-holo="holo"] .sparkle,
.tcg[data-holo="unknown"] .sparkle, .tcg[data-holo="rainbow"] .sparkle { display: none; }
.tcg[data-holo="gold"] .sparkle { background-image: radial-gradient(circle, rgba(255,240,190,.95) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(255,220,140,.8) 0 .8px, transparent 1.3px); }

.holo-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: linear-gradient(110deg, rgba(255,59,107,.25), rgba(255,210,63,.25), rgba(59,255,154,.25), rgba(59,178,255,.25), rgba(177,59,255,.25));
  border: 1px solid rgba(255,255,255,.15); }
/* réglage de la fusion : « overlay » pour l'arc-en-ciel et « screen » pour les paillettes
   (robuste sur tous les navigateurs ; color-dodge + filtre effaçait l'image) */
.tcg .holo { mix-blend-mode: overlay; opacity: .45; }
.tcg.tilting .holo, .tcg:hover .holo { opacity: .78; }
.tcg[data-holo="unknown"] .holo { opacity: .2; }
.tcg[data-holo="gold"] .holo, .tcg[data-holo="rainbow"] .holo { opacity: .6; }
.tcg .sparkle { mix-blend-mode: screen; }
@keyframes sparkleIdle { from { opacity: .12; } to { opacity: .45; } }
/* la vignette reste plate (l'inclinaison vient de la perspective du parent) et isole ses calques de fusion */
.tcg-inner { transform-style: flat; isolation: isolate; }

/* ---------- raretés supplémentaires (vignettes) */
.tcg[data-holo="double"] .holo, .tcg[data-holo="double"] .sparkle {
  clip-path: inset(var(--ay0) calc(100% - var(--ax1)) calc(100% - var(--ay1)) var(--ax0) round 2px); }
.tcg[data-holo="rare"] .holo { mix-blend-mode: soft-light; opacity: .6; background-size: 300% 300%;
  background-image: linear-gradient(125deg, transparent 35%, rgba(255,255,255,.95) 48%, rgba(255,255,255,.2) 52%, transparent 62%); }
.tcg[data-holo="double"] .holo { background-size: 18px 22px, 260% 260%;
  background-image: conic-gradient(from 30deg, rgba(255,255,255,.45), rgba(255,255,255,0) 25%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 75%, rgba(255,255,255,.4)),
  linear-gradient(115deg, #ff3b6b, #ffd23f, #3bff9a, #3bb2ff, #b13bff, #ff3b6b); opacity: .6; }
.tcg[data-holo="sir"] .holo { opacity: .6; background-size: 3px 3px, 220% 220%, 260% 260%;
  background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 .6px, transparent 1px),
  repeating-radial-gradient(ellipse at 30% 110%, rgba(255,255,255,.35) 0 6px, transparent 6px 18px),
  linear-gradient(125deg, #ff5f8f, #ffe05f, #5fffbf, #5fc8ff, #c85fff, #ff5f8f); }
.tcg[data-holo="vpower"] .holo { opacity: .6;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.3) 0 1px, transparent 1px 4px),
  linear-gradient(135deg, #ff3b6b 0%, #ffd23f 14%, #3bff9a 28%, #3bb2ff 42%, #b13bff 56%, #ff3b6b 70%, #ffd23f 84%, #3bff9a 100%); }
.tcg[data-holo="alt"] .holo { opacity: .55; background-size: 40px 30px, 260% 260%;
  background-image: repeating-radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35) 0 3px, transparent 3px 8px),
  linear-gradient(120deg, #ff6b9a, #ffe36b, #6bffb4, #6bc4ff, #c46bff, #ff6b9a); }
.tcg[data-holo="radiant"] .holo { opacity: .6; background-size: 100% 100%, 260% 260%;
  background-image: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255,255,255,.5) 0 5deg, transparent 5deg 14deg),
  conic-gradient(from 0deg at 50% 30%, #ff3b6b, #ffd23f, #3bff9a, #3bb2ff, #b13bff, #ff3b6b); }
.tcg[data-holo="acespec"] .holo { opacity: .6; background-image: linear-gradient(120deg, #ff4fc3, #9b5bff, #ff7ad9, #7a5bff, #ff4fc3); }
.tcg[data-holo="amazing"] .holo { opacity: .6; background-size: 34px 34px, 260% 260%;
  background-image: radial-gradient(circle, transparent 0 9px, rgba(255,255,255,.55) 10px 12px, transparent 13px),
  linear-gradient(120deg, #ff3b6b, #ffd23f, #3bff9a, #3bb2ff, #b13bff, #ff3b6b); }
.tcg[data-holo="legend"] .holo { opacity: .55; mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.6) 0 1px, transparent 1px 3px),
  linear-gradient(120deg, #9aa4b8, #ffffff, #8a93a8, #e9eef8, #9aa4b8); }
.tcg[data-holo="rare"] .sparkle, .tcg[data-holo="radiant"] .sparkle, .tcg[data-holo="legend"] .sparkle, .tcg[data-holo="vpower"] .sparkle { display: none; }
.tcg[data-holo="sir"] .sparkle { opacity: .5; }

/* galerie des brillances */
.holo-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.holo-gallery .tile .name { font-size: 12.5px; white-space: normal; line-height: 1.25; }
.holo-gallery .tile .meta { white-space: normal; }
/* animations de scintillement uniquement sur les cartes visibles (classe « live ») */
.tcg:not(.live) .holo, .tcg:not(.live) .sparkle { animation: none; }

/* =====================================================================
   Recherche plein écran + filtres
   ===================================================================== */
.search-screen { position: fixed; left: 0; right: 0; top: 0; height: 100dvh; z-index: 70; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(12,13,22,.97), rgba(6,7,11,.99)); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  animation: ssIn .28s var(--ease) both; }
.search-screen.closing { animation: ssOut .22s ease-in forwards; }
@keyframes ssIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes ssOut { to { opacity: 0; transform: translateY(18px); } }
.ss-head { display: flex; gap: 8px; align-items: center; padding: calc(var(--safe-top) + 10px) 12px 8px; }
.ss-head .search-input { font-size: 16px; padding: 12px 14px 12px 44px; } /* 16px : évite le zoom automatique d'iOS */
.ss-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 10px; scrollbar-width: none; flex: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.ss-filters::-webkit-scrollbar { display: none; }
.fchip { position: relative; flex: none; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.06); font-size: 13px; font-weight: 650; color: var(--text-2); cursor: pointer; padding: 0; white-space: nowrap; }
.fchip select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; font: inherit; padding: 8px 28px 8px 13px; cursor: pointer; outline: none; }
.fchip::after { content: "▾"; position: absolute; right: 11px; pointer-events: none; font-size: 10px; opacity: .7; }
.fchip.on { background: rgba(57,135,229,.2); border-color: rgba(57,135,229,.6); color: #cfe2ff; }
.fchip.reset, .ss-recent .fchip { padding: 8px 13px; }
.fchip.reset::after, .ss-recent .fchip::after { content: none; }
.fchip.reset { color: var(--warn); }
.ss-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 12px calc(var(--safe-bottom) + 20px); }
.ss-count { font-size: 12px; margin: 6px 4px 8px; }
.ss-list { display: grid; gap: 6px; }
.ss-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer;
  padding: 7px 12px 7px 7px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.035); transition: background .2s, transform .2s var(--spring); }
.ss-row:hover { background: rgba(255,255,255,.07); }
.ss-row:active { transform: scale(.985); }
.ss-row img, .ss-noimg { width: 44px; aspect-ratio: 63/88; object-fit: cover; border-radius: 4px; background: #151823; display: grid; place-items: center; font-size: 18px; }
.ss-main { min-width: 0; display: grid; gap: 1px; }
.ss-main b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-main small { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-rar { justify-self: start; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-top: 2px;
  background: rgba(255,255,255,.07); color: var(--text-2); }
.ss-rar:not([data-holo="none"]):not([data-holo="unknown"]):not([data-holo="rare"]) {
  background: linear-gradient(110deg, rgba(255,59,107,.28), rgba(255,210,63,.28), rgba(59,255,154,.28), rgba(59,178,255,.28), rgba(177,59,255,.28)); color: var(--text); }
.ss-rar[data-holo="gold"] { background: linear-gradient(110deg, rgba(255,200,80,.45), rgba(255,235,160,.35)); }
.ss-end { text-align: right; display: grid; gap: 2px; }
.ss-end b { font-size: 14.5px; }
.ss-end small { color: var(--text-3); font-size: 10.5px; letter-spacing: .04em; }
.ss-empty { text-align: center; padding: 26px 10px; color: var(--text-2); }
.ss-empty h3 { text-align: left; }
.ss-recent { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
/* les fiches, alertes et classeur passent AU-DESSUS de la recherche */
.sheet-backdrop { z-index: 80; }
.sheet { z-index: 81; }
.toasts { z-index: 95; }
