/* =====================================================================
   WEUCH v30 : refonte visuelle complète « Néon holo »
   Se charge APRÈS style.css et theme.css : il habille tout par-dessus,
   sans toucher au fonctionnement du site.
   ===================================================================== */
:root {
  --bg: #07040f; --surface: #120a22; --surface2: #1a1030; --line: #2d1f4d;
  --text: #fbf8ff; --muted: #a79bc4;
  --accent: #c6ff3d; --accent2: #22d3ee; --foil: #ffd34d; --pink: #ff3d9a; --violet: #8b5cf6;
  --glass: rgba(24, 14, 44, .62);
  --grad: linear-gradient(120deg, #ff3d9a 0%, #8b5cf6 52%, #22d3ee 100%);
  --grad-lime: linear-gradient(120deg, #c6ff3d, #22d3ee);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .09);
  --font-display: 'Unbounded', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-C: #b4abc9; --r-PC: #5df0a0; --r-R: #4cb3ff; --r-SP: #c084ff; --r-UR: #ff4f9f; --r-L: #ffd34d;
  --ring: 0 0 0 3px rgba(198, 255, 61, .35);
}
html { background: var(--bg); }
body { font-family: var(--font-body); background: transparent !important; position: relative; }
h1, h2, h3, h4, .logo, .heroName { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.05rem; }
::selection { background: rgba(255, 61, 154, .55); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--pink), var(--violet)); border-color: var(--bg); }

/* ----- Décor de fond : aurore animée + grain + projecteur souris ----- */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(420px 420px at var(--px, 70%) var(--py, 20%), rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(55% 45% at 12% 10%, rgba(255, 61, 154, .42), transparent 70%),
    radial-gradient(50% 50% at 92% 18%, rgba(139, 92, 246, .45), transparent 70%),
    radial-gradient(60% 50% at 70% 100%, rgba(34, 211, 238, .26), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(198, 255, 61, .12), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
@keyframes aurora { from { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); } to { transform: translate3d(3%, 2%, 0) rotate(6deg) scale(1.08); } }

/* ----- En-tête flottant en verre ----- */
.top {
  margin: .6rem .8rem 0; border-radius: 22px; top: .5rem;
  background: rgba(16, 9, 32, .55); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 50px -24px #000, inset 0 1px 0 rgba(255, 255, 255, .1);
}
.logo { font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.logo em {
  background: linear-gradient(100deg, #ff3d9a, #ffd34d, #c6ff3d, #22d3ee, #ff3d9a); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hue 6s linear infinite;
}
@keyframes hue { to { background-position: 300% 0; } }
.logoMark { color: var(--accent); filter: drop-shadow(0 0 10px rgba(198, 255, 61, .9)); display: inline-block; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tab { font-weight: 600; letter-spacing: .01em; }
.tab:hover { background: rgba(255, 255, 255, .07); }
.tab.active { color: #fff; background: rgba(255, 61, 154, .16); box-shadow: inset 0 0 0 1px rgba(255, 61, 154, .55), 0 0 22px -4px rgba(255, 61, 154, .6); }
.dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }
#whoName { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.who a { color: var(--accent); }
.menu { background: rgba(18, 10, 34, .94) !important; backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .12) !important; border-radius: 18px !important; }

/* ----- Boutons : dégradé vivant + éclat qui traverse ----- */
.btn {
  position: relative; overflow: hidden; border: 0; border-radius: 14px; font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: #fff;
  background: var(--grad); background-size: 200% 100%; animation: flow 6s ease-in-out infinite alternate;
  box-shadow: 0 14px 34px -12px rgba(255, 61, 154, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s, box-shadow .2s, filter .2s;
}
@keyframes flow { to { background-position: 100% 0; } }
.btn:not(.ghost):not(.danger) { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transition: transform .7s;
}
.btn:hover:not(:disabled)::after { transform: translateX(120%); }
.btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: saturate(1.2); }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled { animation: none; filter: grayscale(.8) brightness(.6); box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; animation: none; color: var(--text); }
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); background: rgba(198, 255, 61, .1); }
.btn.danger { background: linear-gradient(120deg, #ff4d6d, #c9184a); animation: none; }
.link { color: var(--muted); text-decoration-color: rgba(255, 255, 255, .25); }
.link:hover { color: var(--accent); }

/* ----- Champs ----- */
input:not([type=checkbox]):not([type=radio]), select, textarea {
  background: rgba(8, 4, 20, .6) !important; color: var(--text); border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 14px !important; font-family: var(--font-body); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent) !important; box-shadow: var(--ring); }
label { color: var(--muted); font-weight: 500; }

/* ----- Panneaux de verre ----- */
.panel, .quest, .modalBox, .authCard {
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.view > h3, .panel h3 { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.view h2 {
  background: linear-gradient(100deg, #fff 30%, #d6b5ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.view { animation: viewIn .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.muted { color: var(--muted); }

/* ----- Connexion : héros + cartes en éventail ----- */
.authSplit { max-width: 1080px; margin-top: 4vh; position: relative; }
.authBrand { position: relative; }
.authBrand .eyebrow { color: var(--accent); letter-spacing: .25em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.authBrand .heroName { font-size: clamp(2.2rem, 6.4vw, 4.4rem); line-height: .98; font-weight: 900; text-transform: uppercase; }
.authBrand .heroName em {
  display: block; font-size: 1.35em; letter-spacing: -.03em; padding: 0;
  background: linear-gradient(100deg, #ff3d9a, #ffd34d, #c6ff3d, #22d3ee, #8b5cf6, #ff3d9a); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hue 7s linear infinite;
  filter: drop-shadow(0 0 28px rgba(255, 61, 154, .45));
}
.tagline { font-size: 1.1rem; }
.heroCards { position: relative; height: 210px; margin: 0 0 1.6rem; perspective: 800px; }
.heroCards i {
  position: absolute; top: 0; left: 50%; width: 118px; height: 172px; margin-left: -59px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent 40%), conic-gradient(from 200deg at 50% 50%, #ff3d9a, #8b5cf6, #22d3ee, #c6ff3d, #ffd34d, #ff3d9a);
  border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .8), 0 0 40px -6px rgba(139, 92, 246, .7);
  transform-origin: 50% 120%; animation: fan 5s ease-in-out infinite alternate;
}
.heroCards i::after { content: '✦'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: rgba(255, 255, 255, .9); text-shadow: 0 0 24px #fff; }
.heroCards i:nth-child(1) { --a: -22deg; animation-delay: -1.2s; filter: hue-rotate(-40deg); }
.heroCards i:nth-child(2) { --a: 0deg; z-index: 2; }
.heroCards i:nth-child(3) { --a: 22deg; animation-delay: -2.4s; filter: hue-rotate(60deg); }
@keyframes fan { from { transform: rotate(calc(var(--a) - 5deg)) translateY(6px); } to { transform: rotate(calc(var(--a) + 5deg)) translateY(-8px); } }
.perks .pi { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; }
.authCard::before { background: linear-gradient(140deg, #ff3d9a, transparent 40%, #22d3ee 90%); }
.authTabs { background: rgba(6, 3, 16, .7); }
.authTabs button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 61, 154, .9); }
.ticker { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; margin-top: 1rem; border-block: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); transform: rotate(-1deg); }
.ticker div { display: inline-block; padding: .55rem 0; animation: tick 28s linear infinite; font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (max-width: 820px) { .heroCards { height: 170px; } .heroCards i { width: 92px; height: 134px; margin-left: -46px; } .heroCards i::after { font-size: 2rem; } }

/* ----- Booster : halo conique, lévitation, pastille néon ----- */
.packZone::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 42%; width: min(520px, 120vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff3d9a, #8b5cf6, #22d3ee, #c6ff3d, #ffd34d, #ff3d9a); filter: blur(70px); opacity: .42; animation: halo 14s linear infinite;
}
@keyframes halo { to { rotate: 360deg; } }
.packZone > * { position: relative; z-index: 1; }
.pack:not(:disabled):not(.tearing) { animation: levitate 4.5s ease-in-out infinite; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(139, 92, 246, .55)); }
.pack:not(:disabled):not(.tearing):hover { animation: none; transform: scale(1.06) rotate(-2deg); }
@keyframes levitate { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
.pack:disabled:not(.tearing) { animation: none; }
.packSub {
  background: var(--grad); color: #fff; font-family: var(--font-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255, 61, 154, .8), inset 0 1px 0 rgba(255, 255, 255, .5); animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow { 50% { box-shadow: 0 0 40px rgba(34, 211, 238, .9), inset 0 1px 0 rgba(255, 255, 255, .5); } }
.pack:disabled .packSub { animation: none; background: rgba(30, 20, 50, .9); box-shadow: none; }
.bonusBadge { background: rgba(198, 255, 61, .12); border-color: rgba(198, 255, 61, .6); color: var(--accent); box-shadow: 0 0 20px -4px rgba(198, 255, 61, .6); }
#packInfo { color: var(--muted); }

/* ----- Cartes : lumière de rareté, inclinaison 3D, reflet ----- */
.card { border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--c) 70%, #fff 10%); background: var(--surface); }
.card .meta { background: linear-gradient(180deg, rgba(18, 10, 34, .9), rgba(10, 5, 22, .98)); border-top: 1.5px solid var(--c); }
.card .meta b { font-family: var(--font-body); font-weight: 700; }
.badge { background: var(--c); color: #0b0618; font-family: var(--font-display); font-weight: 800; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.qty { background: rgba(7, 4, 15, .8); border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; }
.card.r-PC { box-shadow: 0 0 16px -6px var(--r-PC); } .card.r-R { box-shadow: 0 0 18px -5px var(--r-R); }
.card.r-SP { box-shadow: 0 0 22px -2px var(--r-SP); } .card.r-UR { box-shadow: 0 0 26px 0 var(--r-UR); }
.card.r-L { box-shadow: 0 0 34px 2px var(--r-L); animation: legend 3s ease-in-out infinite alternate; }
@keyframes legend { to { box-shadow: 0 0 52px 6px var(--r-L); } }
.grid .card:not(.unknown) { transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s, filter .3s; will-change: transform; }
@media (hover: hover) {
  .grid .card:not(.unknown):hover { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) scale(1.05); z-index: 5; filter: brightness(1.1) saturate(1.2); }
  .grid .card:not(.unknown)::after {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s; mix-blend-mode: soft-light; border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .85), transparent 55%);
  }
  .grid .card:not(.unknown):hover::after { opacity: 1; }
}
.card.unknown { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .12); }
.card.sel { outline: 3px solid var(--accent); box-shadow: 0 0 26px rgba(198, 255, 61, .55); }
.dcard .back, .flip .back { /* le dos reprend le sachet blanc « La Caro-Zone » de l'Édition 2 */
  border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .7), 0 0 22px -6px rgba(139, 92, 246, .6);
}
.godBanner { background-size: 300% 100%; animation: hue 3s linear infinite; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.recapSummary { color: var(--accent); }
.recapNew { background: var(--grad-lime); color: #0b0618; font-family: var(--font-display); }

/* ----- Filtres, barres, quêtes ----- */
.chip { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 600; transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 61, 154, .9); }
.bar { height: 10px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.bar div { background: var(--grad-lime); box-shadow: 0 0 16px rgba(198, 255, 61, .7); }
.quest { transition: transform .25s, border-color .25s, box-shadow .25s; }
.quest:hover { transform: translateY(-3px); border-color: rgba(255, 61, 154, .55); box-shadow: 0 20px 40px -20px rgba(255, 61, 154, .5), var(--shadow); }
.quest.done { opacity: .5; filter: saturate(.5); }
.adsPanel { border-color: rgba(34, 211, 238, .35); }

/* ----- Échanges, fenêtres, notifications ----- */
.stepLabel span { background: var(--grad); color: #fff; }
.tray { background: rgba(255, 255, 255, .04); border-radius: 18px; }
.modal, .picker, .adModal { background: rgba(5, 2, 14, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modalBox { animation: boxIn .45s cubic-bezier(.2, 1.1, .3, 1.2) both; }
@keyframes boxIn { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.toast { background: rgba(20, 10, 40, .92); border: 1px solid rgba(198, 255, 61, .5); border-radius: 16px; font-weight: 600; box-shadow: 0 20px 50px -16px #000, 0 0 30px -8px rgba(198, 255, 61, .5); }
.cookieBar { background: rgba(16, 9, 32, .92); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; backdrop-filter: blur(20px); }
.foot { color: #6f6390; border-top: 1px solid rgba(255, 255, 255, .06); }
.foot a { color: var(--muted); }

/* ----- Téléphone : dock flottant façon app ----- */
@media (max-width: 640px) {
  /* IMPORTANT : un backdrop-filter sur l'en-tête piégerait la barre d'onglets (position: fixed) dedans, en haut de l'écran */
  .top { margin: 0; top: 0; border-radius: 0 0 24px 24px; border-top: 0; background: rgba(14, 8, 28, .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .logo { font-size: .9rem; }
  nav {
    left: .7rem; right: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom)); width: auto; padding: .35rem; border-radius: 26px;
    background: rgba(16, 9, 32, .72); border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .9), 0 0 36px -10px rgba(139, 92, 246, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .tab { border-radius: 20px; }
  .tab.active { background: linear-gradient(160deg, rgba(255, 61, 154, .3), rgba(139, 92, 246, .25)); }
  .tab.active .ti { transform: translateY(-2px) scale(1.18); filter: drop-shadow(0 0 8px rgba(255, 61, 154, .9)); }
  .tab .ti { transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
  main { padding-bottom: calc(6.6rem + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(6.6rem + env(safe-area-inset-bottom)); }
  .cookieBar { bottom: calc(6.6rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ----- Réserve de boosters (jusqu'à 3) ----- */
.stockPips { display: flex; justify-content: center; gap: .55rem; margin: .6rem 0 .2rem; }
.stockPips i { width: 34px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); transition: all .4s; }
.stockPips i.on { background: var(--grad-lime); border-color: transparent; box-shadow: 0 0 14px rgba(198, 255, 61, .8); animation: pulseGlow 2.4s ease-in-out infinite; }

/* ----- Tablettes et grands téléphones (écran tactile > 640px) : onglets en bas, comme sur téléphone ----- */
@media (min-width: 641px) and (max-width: 1400px) and (pointer: coarse) and (min-height: 481px) {
  .top { background: rgba(14, 8, 28, .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  nav {
    position: fixed; left: 50%; translate: -50% 0; right: auto; z-index: 40; order: 0; overflow: visible; flex: none;
    width: min(620px, calc(100% - 1.4rem)); bottom: calc(.8rem + env(safe-area-inset-bottom));
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: .4rem; border-radius: 28px;
    background: rgba(16, 9, 32, .76); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .9), 0 0 36px -10px rgba(139, 92, 246, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: transform .3s;
  }
  nav[hidden] { display: none; }
  body.immersive nav { transform: translateY(140%); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0; border-radius: 22px; font-size: .78rem; }
  .tab .ti { display: block; font-size: 1.5rem; line-height: 1.2; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
  .tab.active { background: linear-gradient(160deg, rgba(255, 61, 154, .3), rgba(139, 92, 246, .25)); }
  .tab.active .ti { transform: translateY(-2px) scale(1.18); filter: drop-shadow(0 0 8px rgba(255, 61, 154, .9)); }
  .tab .dot { position: absolute; top: 6px; left: 56%; margin: 0; }
  main { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .toast, .cookieBar { bottom: calc(7rem + env(safe-area-inset-bottom)); }
}

/* Offre de bienvenue : mise en avant tout en haut des quêtes */
.qWelcome { margin: 1rem 0 1.4rem; }
.qWelcome .quest { border-color: rgba(255, 61, 154, .6); box-shadow: 0 0 0 1px rgba(255, 61, 154, .25), 0 12px 32px -14px rgba(255, 61, 154, .55); }
.qWelcome .quest b { font-size: 1.1rem; }

/* Panel admin : statistiques des pubs */
.statGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-top: .6rem; }
.stat { display: flex; flex-direction: column; gap: .25rem; padding: .8rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(45, 212, 191, .25); }
.stat b { font-size: 1.6rem; line-height: 1; }
.stat span { font-size: .8rem; color: var(--muted); }

/* ===== Gambling ===== */
.gbPanel { margin: 1rem 0 1.4rem; }
.gbCount { margin: .2rem 0 .6rem; font-weight: 600; }
.gbOdds { display: grid; gap: .4rem; margin: .4rem 0 .9rem; }
.gbOdd { display: grid; grid-template-columns: 10.5rem 1fr 4.2rem; align-items: center; gap: .6rem; font-size: .88rem; }
.gbName { display: flex; align-items: center; gap: .45rem; }
.gbDot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c); flex: none; }
.gbBar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.gbBar i { display: block; height: 100%; background: var(--c); border-radius: inherit; transition: width .35s; }
.gbOdd b { text-align: right; font-variant-numeric: tabular-nums; }
.gbToolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin: .6rem 0 .9rem; }
@media (max-width: 520px) { .gbOdd { grid-template-columns: 7.6rem 1fr 3.6rem; font-size: .8rem; } }

.gbPick { position: relative; border-radius: 14px; }
.gbPick > .card { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.gbPick.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.gbCtl { position: absolute; top: 6px; right: 6px; z-index: 20; display: flex; align-items: center; gap: .15rem; padding: 2px; border-radius: 99px; background: rgba(5, 14, 18, .88); border: 1px solid var(--line); font-size: .78rem; }
.gbCtl button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--surface2); color: var(--text); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.gbCtl button:hover { background: var(--accent); color: #04211d; }
.gbCtl span { min-width: 2.6rem; text-align: center; font-variant-numeric: tabular-nums; }

.gbStage { text-align: center; padding: 1rem 0 2rem; }
.gbMsg { min-height: 1.5em; font-weight: 700; margin: .4rem 0; }
.gbMixer { position: relative; height: min(430px, 90vw); max-width: 560px; margin: 0 auto; perspective: 900px; }
.gbFly { position: absolute; left: 50%; top: 50%; width: 120px; height: 173px; margin: -86px 0 0 -60px; transform-style: preserve-3d; z-index: var(--i);
  animation: gbMix 3.3s cubic-bezier(.55, 0, .3, 1) both; animation-delay: calc(var(--i) * 35ms); }
.gbFly > * { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px; overflow: hidden; }
.gbFly .gbBackFace { transform: rotateY(180deg); background: url('/card-back-2.jpg?v=2') center / cover no-repeat; border: 2px solid var(--line); }
@keyframes gbMix {
  0%   { transform: translate(var(--x), var(--y)) rotate(var(--r)) rotateY(0deg) scale(.9); }
  28%  { transform: translate(0, 0) rotate(0deg) rotateY(0deg) scale(.82); }
  38%  { transform: translate(0, 0) rotate(0deg) rotateY(180deg) scale(.82); }
  50%  { transform: translate(-100px, -6px) rotate(-12deg) rotateY(180deg) scale(.82); }
  62%  { transform: translate(100px, 4px) rotate(12deg) rotateY(180deg) scale(.82); }
  74%  { transform: translate(-80px, -4px) rotate(-9deg) rotateY(180deg) scale(.82); }
  86%  { transform: translate(80px, 2px) rotate(9deg) rotateY(180deg) scale(.82); }
  100% { transform: translate(0, 0) rotate(0deg) rotateY(180deg) scale(.82); }
}

.gbCardWrap { width: min(250px, 62vw); aspect-ratio: 170 / 245; margin: 1rem auto 1.2rem; perspective: 1100px; }
.gbFlip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: gbPop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.gbFlip.spin { animation: gbSpin 2s cubic-bezier(.45, .05, .25, 1) forwards; }
.gbFace { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; }
.gbFace.gbBack { background: url('/card-back-2.jpg?v=2') center / cover no-repeat; border: 2px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 28px rgba(45, 212, 191, .25); }
.gbFace.gbFront { transform: rotateY(180deg); }
.gbFace.gbFront > .card { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes gbPop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gbSpin { 0% { transform: rotateY(0deg) scale(1); } 50% { transform: rotateY(540deg) scale(1.12); } 100% { transform: rotateY(900deg) scale(1); } }

.gbBooster { --c: var(--foil); display: flex; flex-direction: column; box-shadow: 0 0 26px 2px var(--foil); }
.gbBooster .art { display: grid; place-items: center; font-size: 4.6rem; background: radial-gradient(circle at 50% 40%, rgba(255, 211, 107, .4), #0f0c17 72%); }
.gbBooster .meta b { text-align: center; color: var(--foil); font-size: 1.15rem; }
.gbInfo { animation: gbPop .4s both; }
.gbResult { font-family: var(--font-display); font-size: 1.3rem; margin: .2rem 0; }
.gbInfo .row { gap: .6rem; margin-top: .8rem; }

/* Gambling : pas d'animation de survol sur les cartes, sinon elles passent devant les boutons + / − */
.gbPick > .card:not(.unknown), .gbPick > .card:not(.unknown):hover { transform: none !important; filter: none !important; z-index: 1 !important; will-change: auto; }
.gbPick > .card::after { display: none !important; }
.gbPick > .card:hover { box-shadow: 0 0 0 2px var(--accent); }

/* Échanges : compteur « pris / stock » et boutons − / + sur chaque carte du plateau, stock sous les cartes des propositions */
.tc.sel .tcStock { position: absolute; z-index: 4; top: 3px; right: 3px; background: var(--accent); color: #03231f; font-weight: 800; font-size: .62rem; padding: .02rem .32rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.tc.sel .tcCtl { position: absolute; z-index: 5; bottom: -8px; left: 0; right: 0; display: flex; justify-content: center; gap: .3rem; }
.tc.sel .tcCtl button { position: static; transform: none; width: 24px; height: 24px; border-radius: 50%; border: 0; color: #fff; font-weight: 800; font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.tc.sel .tcCtl .rm { background: var(--danger); }
.tc.sel .tcCtl .add { background: var(--accent); color: #03231f; }
.tcWrap { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.tcOwn { font-size: .58rem; color: var(--muted); white-space: nowrap; }

/* ===== Classement ===== */
.rankMe { font-weight: 700; margin: .4rem 0 .8rem; }
.rankList { display: grid; gap: .5rem; max-width: 720px; }
.rankRow { display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rankRow.me { outline: 2px solid var(--accent); }
.rankRow.top1 { border-color: #ffd36b; box-shadow: 0 0 18px -6px #ffd36b; }
.rankRow.top2 { border-color: #cfd8e3; }
.rankRow.top3 { border-color: #d28b50; }
.rankPos { display: flex; align-items: center; gap: .3rem; font-size: 1.15rem; }
.rankPos b { font-family: var(--font-display); font-size: .95rem; }
.rankName { display: grid; gap: .3rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rankName em { font-style: normal; color: var(--accent); font-weight: 700; }
.rankBar { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rankBar i { display: block; height: 100%; background: var(--grad-lime, var(--accent)); border-radius: inherit; }
.rankScore { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 640px) { .tab .tl { font-size: .66rem; } .rankRow { grid-template-columns: 3.9rem 1fr auto; } }

/* ===== Messages d'échange + Notifications ===== */
.msgField { display: block; margin: .8rem 0 .3rem; font-weight: 700; }
#tradeMessage, .refuseBox textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 3.2rem; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; }
.msgCount { text-align: right; font-size: .75rem; margin: .2rem 0 .8rem; }
.tmsg { margin: .5rem 0; padding: .5rem .7rem; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, .04); border-radius: 8px; font-size: .88rem; }
.tmsg b { display: block; font-size: .78rem; color: var(--muted); }
.tmsg p { margin: .2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.refuseBox { margin-top: .6rem; display: grid; gap: .4rem; }
.refuseBox[hidden], .acts[hidden] { display: none; }
.notifList { display: grid; gap: .7rem; max-width: 720px; }
.notifActions { margin: .6rem 0; }
.notif { padding: .8rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left-width: 5px; }
.notif.req { border-left-color: var(--accent); }
.notif.yes { border-left-color: #4ade80; }
.notif.no { border-left-color: var(--danger); }
.notif.back { border-left-color: #94a3b8; }
.notif.unread { box-shadow: 0 0 0 1px var(--accent), 0 0 18px -8px var(--accent); }
.nHead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nIcon { font-size: 1.3rem; }
.nNew { background: var(--accent); color: #03231f; font-size: .68rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; }
.nDate { margin-left: auto; font-size: .75rem; }
.nMsg { margin: .6rem 0 .2rem; padding: .55rem .75rem; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.nMsg span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.nMsg p { margin: .2rem 0 0; font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.nNoMsg { margin: .5rem 0 0; font-size: .85rem; }
.nSum { margin: .5rem 0; font-size: .85rem; color: var(--muted); }

/* ===== Onglet Jouer : duel (mobile d'abord) ===== */
#view-play > .muted { margin-bottom: 1rem; }
#pl { display: flex; flex-direction: column; gap: 1rem; padding-bottom: env(safe-area-inset-bottom); }
#pl .panel + .panel { margin-top: 0; }
#pl .panel h3 { margin-top: 0; font-size: 1rem; }
#pl .panel h3:not(:first-child) { margin-top: 1.1rem; }
#pl .panel .grid { margin-top: .7rem; }
#pl button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Menu */
.plHero { text-align: center; padding: 1.4rem 1rem 1.1rem; border-radius: 20px; border: 1px solid rgba(45, 212, 191, .2);
  background: radial-gradient(120% 140% at 50% 0%, rgba(45, 212, 191, .22), transparent 65%), rgba(12, 27, 32, .78); }
.plHeroIcons { display: flex; justify-content: center; gap: .6rem; font-size: 2.4rem; line-height: 1; }
.plHeroIcons span { display: grid; place-items: center; width: 3.9rem; height: 3.9rem; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); animation: plFloat 3s ease-in-out infinite; }
.plHeroIcons span:nth-child(2) { animation-delay: .4s; }
.plHeroIcons span:nth-child(3) { animation-delay: .8s; }
.plHero p { margin: .9rem 0 0; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--muted); }
@keyframes plFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.plOption { padding: 1.1rem; border-radius: 18px; border: 1px solid rgba(45, 212, 191, .16); background: rgba(12, 27, 32, .78); box-shadow: var(--shadow); }
.plOptHead { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.plOptHead h3 { margin: 0; padding: 0; border: 0; font-size: 1.05rem; }
.plOptHead p { margin: .15rem 0 0; font-size: .86rem; }
.plOptIcon { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; font-size: 1.5rem; background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .25); }
.plOption .btn.wide { margin-top: 0; }
.plJoinRow { display: flex; gap: .6rem; }
.plJoinRow .btn { flex: none; min-height: 52px; padding-inline: 1.2rem; }
input.plCode { flex: 1; min-width: 0; min-height: 52px; text-align: center; text-transform: uppercase; letter-spacing: .35em; font-size: 1.3rem; font-weight: 800; border-radius: 14px; }

/* Choix de la mise */
.plTitle { margin: .2rem 0 0; }
.plBar { position: sticky; bottom: 0; z-index: 25; display: flex; align-items: center; gap: .6rem; margin: .4rem -.2rem 0;
  padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0;
  background: rgba(5, 14, 18, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(45, 212, 191, .2); border-bottom: 0; }
.plBar .btn { min-height: 48px; padding-inline: 1.2rem; }
.plBar .btn:last-child { flex: 1; }
.plCount { flex: none; font-weight: 700; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gbCtl button { width: 30px; height: 30px; }

/* Salon */
.plRoomCode { display: flex; flex-direction: column; align-items: center; gap: .1rem; width: 100%; padding: .8rem 1rem; border-radius: 18px; cursor: pointer; color: var(--text); font: inherit;
  border: 1px dashed rgba(45, 212, 191, .5); background: rgba(45, 212, 191, .08); }
.plRoomCode small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plRoomCode b { font-size: 2.1rem; line-height: 1.1; letter-spacing: .3em; padding-left: .3em; color: var(--accent); }
.plRoomCode:active { transform: scale(.98); }
.plWait { display: flex; align-items: center; justify-content: center; gap: .7rem; text-align: center; padding: .9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .04); font-weight: 600; }
.plPulse { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); animation: plPulse 1.2s ease-out infinite; }
@keyframes plPulse { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); } 100% { box-shadow: 0 0 0 .9rem rgba(45, 212, 191, 0); } }
.plActs { display: flex; justify-content: center; gap: .6rem; }
.plActs .btn { min-height: 48px; }

/* Score */
.plScore { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: 1rem .6rem; border-radius: 20px; border: 1px solid rgba(45, 212, 191, .18); background: rgba(12, 27, 32, .78); box-shadow: var(--shadow); }
.plSide { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 0; }
.plName { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .9rem; color: var(--muted); }
.plSide.me .plName { color: var(--accent); }
.plSide b { font-size: 2.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plDots { display: flex; gap: .3rem; margin-top: .3rem; }
.plDots i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.plDots i.on { background: var(--foil); box-shadow: 0 0 8px rgba(245, 196, 81, .7); }
.plVs { font-weight: 900; font-size: .85rem; letter-spacing: .1em; color: var(--muted); }
.plLast { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .6rem 1rem; border-radius: 14px; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.plLast span { font-size: 1.7rem; line-height: 1; }
.plLast em { font-style: normal; font-weight: 700; }
.plLast.win { border-color: rgba(45, 212, 191, .45); color: #7bf0dc; }
.plLast.lose { border-color: rgba(255, 77, 109, .45); color: #ff8fa3; }
.plMsg { text-align: center; font-weight: 700; font-size: 1.05rem; margin: .2rem 0 0; }

/* Boutons de choix : gros, au pouce */
.plChoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.plChoice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 7.5rem; padding: .8rem .3rem; border-radius: 20px; cursor: pointer; color: var(--text); font: inherit;
  border: 1px solid rgba(45, 212, 191, .3); background: linear-gradient(160deg, rgba(45, 212, 191, .2), rgba(56, 189, 248, .08)); box-shadow: var(--shadow); transition: transform .12s, border-color .2s, background .2s, opacity .2s; }
.plChoice .plEmoji { font-size: 2.9rem; line-height: 1; }
.plChoice .plLabel { font-weight: 700; font-size: .9rem; }
.plChoice:active:not(:disabled) { transform: scale(.94); border-color: var(--accent); }
.plChoice:disabled { cursor: default; opacity: .4; }
.plChoice.picked:disabled { opacity: 1; border-color: var(--accent); background: linear-gradient(160deg, rgba(45, 212, 191, .45), rgba(56, 189, 248, .2)); box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(45, 212, 191, .35); }

/* Résultat */
.plResult { text-align: center; padding: 1.6rem 1rem 1.3rem; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(12, 27, 32, .78); }
.plResult h3 { margin: .2rem 0 .3rem; padding: 0; border: 0; font-size: 1.7rem; }
.plResultIcon { font-size: 3.6rem; line-height: 1; }
.plResult.win { border-color: rgba(245, 196, 81, .6); background: radial-gradient(120% 120% at 50% 0%, rgba(245, 196, 81, .22), transparent 65%), rgba(12, 27, 32, .78); }
.plResult.win .plResultIcon { animation: plFloat 2s ease-in-out infinite; }
.plResult.lose { border-color: rgba(255, 77, 109, .4); background: radial-gradient(120% 120% at 50% 0%, rgba(255, 77, 109, .16), transparent 65%), rgba(12, 27, 32, .78); }

@media (max-width: 380px) {
  .plChoice { min-height: 6.6rem; } .plChoice .plEmoji { font-size: 2.4rem; }
  .plSide b { font-size: 2.3rem; } .plRoomCode b { font-size: 1.8rem; }
}
@media (min-width: 641px) { #pl { max-width: 560px; margin-inline: auto; } .plBar { margin-inline: 0; border-radius: 18px; border-bottom: 1px solid rgba(45, 212, 191, .2); } }
@media (prefers-reduced-motion: reduce) { .plHeroIcons span, .plPulse, .plResult.win .plResultIcon { animation: none; } }

/* Duel : visibilité, liste des salons, fin de partie */
.plVisRow { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.plVis { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .8rem .5rem; border-radius: 16px; cursor: pointer; color: var(--text); font: inherit; text-align: center;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.plVis span { font-size: 1.6rem; line-height: 1; }
.plVis b { font-size: .95rem; }
.plVis small { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.plVis.on { border-color: var(--accent); background: rgba(45, 212, 191, .16); box-shadow: 0 0 0 2px rgba(45, 212, 191, .35); }
.plLobby { display: flex; flex-direction: column; gap: .5rem; }
.plRoom { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.plRoom.full { opacity: .75; }
.plRoomInfo { display: flex; flex-direction: column; min-width: 0; }
.plRoomInfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plRoomInfo span { font-size: .8rem; }
.plRoom .btn { flex: none; min-height: 44px; padding-inline: 1rem; }
.plFullTag { flex: none; font-size: .78rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; color: #ff8fa3; border: 1px solid rgba(255, 77, 109, .45); background: rgba(255, 77, 109, .1); }
.plFullTag.mine { color: var(--accent); border-color: rgba(45, 212, 191, .5); background: rgba(45, 212, 191, .1); }
.plEmpty { padding: .4rem 0; margin: 0; }
.plPublicTag { text-align: center; font-weight: 700; padding: .55rem 1rem; border-radius: 999px; font-size: .9rem; color: var(--accent); border: 1px solid rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .08); align-self: center; }
.plFinalScore { display: flex; justify-content: center; align-items: center; gap: .6rem; margin: .4rem 0 .6rem; font-weight: 700; color: var(--muted); }
.plFinalScore span.w { color: var(--foil); }
.plFinalScore i { font-style: normal; }
.plEndActs { display: flex; flex-direction: column; gap: .6rem; }
.plEndActs .btn { min-height: 52px; width: 100%; }
.plDots { flex-wrap: wrap; justify-content: center; }
@media (min-width: 641px) { .plEndActs { flex-direction: row; } }

/* Duel : décompte de manche, adversaire absent, bouton d'exclusion */
.plTimer { align-self: center; text-align: center; font-weight: 800; font-size: 1.15rem; padding: .3rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; }
.plTimer.low { color: #ff6b6b; background: rgba(255, 107, 107, .12); animation: plPulse 1s ease-out infinite; }
.plAway { text-align: center; font-weight: 700; margin: 0; padding: .55rem 1rem; border-radius: 14px; color: #ffb454; background: rgba(255, 180, 84, .1); border: 1px solid rgba(255, 180, 84, .35); }
.plAway[hidden] { display: none; }
.plAutoNote { font-size: .8rem; margin: 0; }
.btn.danger { color: #ff6b6b; border-color: rgba(255, 107, 107, .5); }
@media (prefers-reduced-motion: reduce) { .plTimer.low { animation: none; } }

/* Chat de la partie (duel) */
.plChat { margin-top: .9rem; }
.plChatList { max-height: 190px; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: .3rem; padding: .5rem; margin: .4rem 0 .6rem; border-radius: 12px; background: rgba(8, 4, 20, .6); border: 1px solid var(--line); }
.plChatMsg { font-size: .88rem; line-height: 1.35; word-break: break-word; }
.plChatMsg b { color: var(--muted); font-weight: 700; }
.plChatMsg.me b { color: var(--text); }
.plChatEmpty { margin: 0; font-size: .85rem; }
.plChatRow { display: flex; gap: .5rem; }
.plChatInput { flex: 1; min-width: 0; padding: .55rem .7rem; border-radius: 12px; font: inherit; }

/* Cartes plus packables : cadenas (possédée) / noir et blanc (non possédée) */
.soldLock { position: absolute; right: 6px; bottom: 6px; z-index: 2; font-size: .8rem; line-height: 1; padding: .22rem .3rem; border-radius: 8px; background: rgba(8, 6, 20, .8); border: 1px solid var(--line); }
.card.soldout { opacity: .92; }
.card.soldout .art { display: block; }
.card.soldout .art img { filter: grayscale(1) brightness(.7); }
.card.soldout .meta b { color: var(--muted); }
.card.soldout .badge { filter: grayscale(1); }
.soldLabel { position: absolute; left: 0; right: 0; bottom: 0; padding: .25rem .3rem; text-align: center; font-family: var(--font-body, inherit); font-size: .66rem; font-weight: 600; color: var(--text); background: rgba(8, 6, 20, .78); }

/* Collection : trois aspects bien distincts pour les cartes que tu n'as pas */
.card.unknown.soldout, .card.unknown.todo { cursor: pointer; opacity: 1; }
.card.unknown.soldout { border: 2px solid #ff4d6d; box-shadow: 0 0 0 1px rgba(255, 77, 109, .3), 0 10px 26px -12px rgba(255, 77, 109, .7); }
.card.unknown.soldout .art, .card.unknown.todo .art { display: block; overflow: hidden; }
.card.unknown.soldout .art img { filter: grayscale(1) brightness(.45) contrast(1.1); }
.card.unknown.soldout .meta b { color: #ff9aa9; text-decoration: line-through; text-decoration-thickness: 1px; }
.soldRibbon { position: absolute; top: 38%; left: -25%; width: 150%; padding: .28rem 0; transform: rotate(-24deg); text-align: center; font-family: var(--font-display); font-size: .62rem; font-weight: 800; letter-spacing: .14em; color: #fff; background: rgba(255, 77, 109, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .55); z-index: 3; }
.card.unknown.todo { border: 1px dashed rgba(198, 255, 61, .55); }
.card.unknown.todo .art img { filter: grayscale(1) brightness(.6); }
.todoLabel { position: absolute; left: 4px; bottom: 4px; padding: .08rem .32rem; border-radius: 999px; font-size: .56rem; font-weight: 700; color: var(--accent); background: rgba(8, 6, 20, .75); border: 1px solid rgba(198, 255, 61, .45); z-index: 2; }
.card.unknown.unseen { opacity: .85; border-style: dotted; }
.card.unknown.unseen .art { display: grid; place-items: center; }
.unseenLabel { padding: 0 .4rem; text-align: center; font-family: var(--font-body, inherit); font-size: .7rem; font-weight: 600; color: var(--muted); }
.big .card.unknown { cursor: default; }
.collLegend { margin: .2rem 0 .8rem; font-size: .78rem; line-height: 2; }
.collLegend .lg { display: inline-block; padding: .05rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 800; }
.lgSold { background: #ff4d6d; color: #fff; }
.lgTodo { border: 1px solid rgba(198, 255, 61, .45); color: var(--accent); }
.lgUnseen { border: 1px dotted var(--muted); color: var(--muted); }

/* Fenêtre d'une carte : joueurs qui la possèdent */
.ownersBtn { margin-top: .7rem; }
.ownersBox { margin-top: .5rem; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: .35rem; text-align: left; }
.ownerRow { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 10px; background: rgba(8, 4, 20, .6); border: 1px solid var(--line); }
.ownerRow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ownerQty { color: var(--accent); font-weight: 800; }
.ownerTrade { padding: .25rem .65rem; font-size: .78rem; }

.cardStat { margin: .2rem 0; font-size: .92rem; font-weight: 600; }

.quest.big { border-color: var(--foil); box-shadow: 0 0 0 1px rgba(255, 211, 77, .35), 0 8px 24px -14px rgba(255, 211, 77, .6); }
.quest.big .reward { color: var(--foil); font-weight: 800; }

/* Échange : carte que tu as et que l'autre joueur n'a pas */
.ptile.theirMissing { box-shadow: 0 0 0 2px var(--accent2), 0 8px 22px -8px rgba(34, 211, 238, .7); border-radius: 14px; }
.ptile.theirMissing.on { outline-color: var(--accent); }
.pMiss { display: block; margin-top: 5px; padding: .18rem .3rem; border-radius: 8px; text-align: center; font-size: .62rem; font-weight: 800; line-height: 1.2; color: #06141a; background: var(--accent2); overflow-wrap: anywhere; }

/* Échange : validation avant d'accepter une carte UR ou L */
.confirmBox { margin-top: .6rem; padding: .7rem .8rem; border-radius: 12px; background: rgba(255, 211, 77, .08); border: 1px solid var(--foil); }
.confirmBox p { margin: .2rem 0; font-size: .9rem; }
.confirmBox .confirmWarn { font-weight: 800; color: var(--foil); }
.confirmBox .acts { margin-top: .5rem; }

/* Choix de la mise : la barre Retour / Créer reste toujours visible à l'écran.
   `overflow-x: hidden` sur body en faisait un conteneur de défilement (le sticky ne collait plus à l'écran) :
   `clip` coupe pareil le débordement sans créer de conteneur de défilement. */
body { overflow-x: clip; }
@media (max-width: 640px) { .plBar { bottom: calc(4.9rem + env(safe-area-inset-bottom)); } }
@media (min-width: 641px) and (max-width: 1400px) and (pointer: coarse) and (min-height: 481px) { .plBar { bottom: calc(5.8rem + env(safe-area-inset-bottom)); } }

/* Classement : pastille « en ligne » / « vu il y a… » */
.rankSeen { display: flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--muted); }
.rankSeen i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .25); flex: none; }
.rankSeen.on { color: #8dff9c; }
.rankSeen.on i { background: #3ddc5a; box-shadow: 0 0 8px #3ddc5a; }

/* ===== Chat global + notifications téléphone ===== */
.chatWrap { max-width: 720px; display: grid; gap: .6rem; }
.chatList { height: min(60vh, 520px); overflow-y: auto; display: flex; flex-direction: column; gap: .35rem; padding: .7rem; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.chatMsg { padding: .4rem .65rem; border-radius: 10px; background: rgba(255, 255, 255, .06); max-width: 92%; align-self: flex-start; word-break: break-word; }
.chatMsg.mine { align-self: flex-end; background: rgba(120, 90, 255, .22); }
.chatMsg.mention { outline: 1px solid var(--accent); box-shadow: 0 0 12px rgba(255, 255, 255, .12); }
.chatMsg p { margin: .1rem 0 0; }
.chatHead { display: flex; gap: .5rem; align-items: baseline; font-size: .85rem; }
.chatName { cursor: pointer; }
.chatName.adm::after { content: ' ⚙️'; }
.chatTime { font-size: .72rem; margin-left: auto; }
.chatDel { background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; padding: 0 .2rem; }
.chatForm { display: flex; gap: .5rem; }
.chatForm input { flex: 1; min-width: 0; }
.pushPanel { max-width: 720px; margin-bottom: 1rem; }
.pushOpts { display: grid; gap: .5rem; margin-top: .8rem; }

.chatInputBox { position: relative; flex: 1; min-width: 0; }
.chatInputBox input { width: 100%; box-sizing: border-box; }
.mentionBox { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; border-radius: 12px; overflow: hidden; background: #1a1230; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.mentionBox button { text-align: left; padding: .6rem .8rem; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.mentionBox button:hover, .mentionBox button:focus { background: rgba(255, 61, 154, .22); }
#chatNotifBtn { margin-left: .6rem; vertical-align: middle; font-size: .75rem; }

/* ===== Chat v86 : page figée, seule la liste des messages défile ===== */
.chatReplyBtn { background: none; border: 0; color: inherit; cursor: pointer; opacity: .55; padding: 0 .25rem; font-size: 1rem; line-height: 1; }
.chatReplyBtn:hover { opacity: 1; }
.chatTime { margin-left: auto; }
.chatQuote { margin: .25rem 0 .1rem; padding: .25rem .5rem; border-left: 3px solid var(--accent, #ff3d9a); border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: .78rem; opacity: .85; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatQuote.gone { cursor: default; font-style: italic; opacity: .55; }
.chatMsg.flash { animation: chatFlash 1.4s ease; }
@keyframes chatFlash { 0%, 60% { background: rgba(255, 61, 154, .35); } 100% { background: rgba(255, 255, 255, .06); } }
.replyBar { display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; border-radius: 10px; background: rgba(255, 61, 154, .14); border-left: 3px solid #ff3d9a; font-size: .8rem; }
.replyBar .replyTxt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replyBar button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; padding: .2rem .4rem; }
.chatInputBox input, #chatInput { font-size: 16px; } /* évite le zoom automatique d'iOS */
.chatList { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

html:has(body.chatMode) { scroll-behavior: auto; overflow: hidden; overscroll-behavior: none; }
body.chatMode { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); width: 100%; height: var(--vvh, 100dvh); max-height: var(--vvh, 100dvh); min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
body.chatMode .foot { display: none; }
body.chatMode main { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-top: .6rem; padding-bottom: .8rem; }
body.chatMode #view-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: none; }
body.chatMode #view-chat[hidden] { display: none; }
body.chatMode #view-chat h2 { margin-bottom: .1em; font-size: 1.35rem; }
body.chatMode #view-chat > p.muted { margin: 0 0 .5rem; font-size: .82rem; line-height: 1.3; }
body.chatMode .chatWrap { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 720px; gap: .5rem; }
body.chatMode .chatList { flex: 1; min-height: 0; height: auto; }
body.chatMode .chatForm, body.chatMode .replyBar { flex: none; }
@media (max-width: 640px) {
  body.chatMode main { padding-bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
  body.chatMode.chatTyping main { padding-bottom: .6rem; }
  body.chatMode.chatTyping nav { transform: translateY(110%); }
  body.chatMode.chatTyping #view-chat > p.muted { display: none; }
}

/* Logo image dans l'en-tête */
.logoImg { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 0 12px rgba(255, 61, 154, .45); }


/* ============================================================
   ÉVÉNEMENT HALLOWEEN (31 octobre → 5 novembre)
   ============================================================ */
:root { --hw: #ff7a00; --hw2: #ffb347; }

/* (L'événement Halloween est terminé : plus de booster Halloween. Les cartes Halloween gardent leur sticker dans les collections.) */

/* Sticker Halloween sur une carte : contour orange + petite étiquette (la rareté garde sa couleur sur le badge) */
.card.hw { border-color: var(--hw); box-shadow: 0 0 0 1px rgba(255, 122, 0, .55), 0 0 18px 2px rgba(255, 122, 0, .7); animation: none; }
.card.hw .meta { border-top-color: var(--hw); }
.card.hw.unknown { border-style: solid; border-color: rgba(255, 122, 0, .55); box-shadow: 0 0 12px rgba(255, 122, 0, .3); }
.grid .card.hw:not(.unknown):hover { box-shadow: 0 0 0 1px var(--hw), 0 16px 34px -8px var(--hw); }
.hwTag {
  position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%) rotate(-3deg); z-index: 3; white-space: nowrap;
  background: linear-gradient(135deg, var(--hw2), var(--hw)); color: #1b0b00; font-weight: 800; font-size: .62rem; letter-spacing: .02em;
  padding: .1rem .5rem; border-radius: 99px; border: 1px solid #1b0b00; box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.big .hwTag { font-size: .85rem; padding: .15rem .7rem; bottom: 10px; }
.tc .hwTag, .grid.mini .hwTag { font-size: .5rem; padding: .02rem .3rem; bottom: 3px; }
@media (max-width: 640px) { .grid .hwTag { font-size: .52rem; padding: .04rem .35rem; } }

/* Collection : catégorie Halloween après les L, ligne de séparation « Carte Halloween » */
.chip.chipHw { border-color: rgba(255, 122, 0, .6); color: var(--hw2); }
.chip.chipHw.active { background: linear-gradient(135deg, var(--hw2), var(--hw)); color: #1b0b00; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255, 122, 0, .9); }
.grid > .collSep { grid-column: 1 / -1; aspect-ratio: auto; display: flex; align-items: center; gap: .8rem; margin: .8rem 0 .2rem; }
.collSep::before, .collSep::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--hw), transparent); }
.collSep span { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--hw2); text-shadow: 0 0 14px rgba(255, 122, 0, .7); white-space: nowrap; }

/* Rareté H (Halloween) */
:root { --r-H: #ff7a00; }
.rtag.H { background: linear-gradient(135deg, #ffb347, #ff7a00); color: #1b0b00; }
.card.r-H { --c: var(--hw, #ff7a00); }
.dcard.tease-H { --tc: var(--hw, #ff7a00); }

/* Annonces */
.newsList { display: grid; gap: 1rem; max-width: 760px; margin: 1rem auto 0; }
.newsHead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; margin-bottom: .7rem; }
.newsHead h3 { margin: 0; }
.newsHead time { font-size: .85rem; }
.newsMedia { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: .8rem; }
.newsMedia iframe, .newsMedia video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.newsText { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }

/* Lecteur YouTube épuré (annonces) */
.ytWrap iframe { pointer-events: none; z-index: 0; }
/* On agrandit l'iframe de 72 px en haut et en bas puis on rogne : la barre de titre / chaîne de YouTube (haut) et les logos (bas) tombent hors du cadre, la vidéo reste entière */
.ytWrap iframe { inset: auto; left: 0; top: -72px; width: 100%; height: calc(100% + 144px); }
.ytPoster { z-index: 1; }
/* Chargement : l'affiche reste visible (pas d'écran noir / logo YouTube), sans bouton ▶ */
.ytWrap.loading .ytPoster .ytPlay { display: none; }
.ytWrap.loading .ytTap { cursor: progress; }
/* Pause : on recouvre le cadre par l'affiche pour cacher les « autres vidéos » proposées par YouTube */
.ytWrap.playing.loading .ytPoster, .ytWrap.playing.paused .ytPoster { display: block; }
.ytWrap.playing.paused .ytPoster .ytPlay { display: none; }
.ytWrap .ytTap.paused { background: rgba(0, 0, 0, .3); }
.ytPoster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.ytPoster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .93; transition: opacity .2s, transform .35s; }
.ytPoster:hover img, .ytPoster:focus-visible img { opacity: 1; transform: scale(1.02); }
.ytPlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; padding-left: 5px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--accent, #ff7a00); box-shadow: 0 8px 28px rgba(0, 0, 0, .55); transition: transform .15s; }
.ytPoster:hover .ytPlay { transform: translate(-50%, -50%) scale(1.08); }
.ytWrap.playing .ytPoster { display: none; }
.ytTap { position: absolute; inset: 0; z-index: 2; cursor: pointer; background: transparent; }
.ytTap .ytPlay { display: none; }
.ytTap.paused { background: rgba(0, 0, 0, .5); }
.ytTap.paused .ytPlay { display: grid; }
.ytFs { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.1rem; cursor: pointer; }
.newsMedia:fullscreen { aspect-ratio: auto; border-radius: 0; margin: 0; }
/* Mode « manuel » (démarrage automatique bloqué, surtout sur téléphone) : le joueur touche directement le lecteur YouTube */
.ytWrap.manual iframe { pointer-events: auto; }
.ytWrap.manual .ytTap { display: none; }
.ytWrap.manual .ytPoster { display: none; }
.newsMedia:-webkit-full-screen { aspect-ratio: auto; border-radius: 0; margin: 0; }

/* Bouton « Plein écran » au-dessus de la vidéo + plein écran (natif ou simulé pour iPhone) */
.ytFsBtn { display: block; width: 100%; margin: 0 0 .5rem; padding: .6rem 1rem; border: 0; border-radius: 10px; background: var(--accent, #ff7a00); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
body.ytNoScroll { overflow: hidden; }
/* Plein écran simulé : on neutralise ce qui piégerait la position fixe (flou « verre », animations) sur les parents */
.ytLift { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important; filter: none !important; animation: none !important; contain: none !important; will-change: auto !important; }
.ytWrap { --fw: 100vw; --fh: 100vh; }
@supports (height: 100dvh) { .ytWrap { --fh: 100dvh; } }
.ytWrap.ytFake { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 99999; border-radius: 0; margin: 0; aspect-ratio: auto; background: #000; }
@supports (height: 100dvh) { .ytWrap.ytFake { height: 100dvh; } }
/* iPhone en portrait : on tourne la vidéo de 90° pour qu'elle remplisse l'écran (il suffit de tourner le téléphone) */
@media (orientation: portrait) {
  .ytWrap.ytFake { --fw: 100vh; --fh: 100vw; width: 100vh; height: 100vw; transform-origin: top left; transform: translateX(100vw) rotate(90deg); }
  @supports (height: 100dvh) { .ytWrap.ytFake { --fw: 100dvh; width: 100dvh; } }
}
/* En plein écran : le cadre 16/9 de la vidéo reste entier et centré ; les bandeaux YouTube (titre, chaîne, logos) sont rognés par clip-path */
.ytWrap.full { background: #000; }
.ytWrap.full iframe { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(var(--fw), calc(var(--fh) * 1.7778)); height: calc(min(var(--fw), calc(var(--fh) * 1.7778)) * 0.5625 + 144px); clip-path: inset(72px 0 72px 0); }
.ytWrap.full .ytFs { top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; }

/* Plus de gros bouton ▶ ni de voile sombre devant la vidéo en pause : un tap sur la vidéo = pause / lecture */
.ytTap .ytPlay, .ytTap.paused .ytPlay { display: none !important; }
.ytWrap .ytTap.paused { background: transparent; }

/* Le lecteur YouTube n'est jamais touchable : aucun de ses boutons (pause, logo…) ne peut apparaître devant la vidéo */
.ytWrap iframe, .ytWrap.manual iframe { pointer-events: none !important; }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .packZone::before, .pack::before, .pack, .pack:not(:disabled):not(.tearing),
  .ticker div, .logoMark, .dot, .heroCards i { animation: none !important; }
}

/* Classement : lignes cliquables → collection du joueur */
.rankRow.clickable { cursor: pointer; transition: transform .12s, border-color .12s; }
.rankRow.clickable:hover, .rankRow.clickable:focus-visible { transform: translateY(-1px); border-color: var(--accent); outline: none; }
#rankPlayer .collTools { margin: .6rem 0; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Durée de vie des boosters bonus (72 h) */
.bonusExpiry { display: grid; gap: .3rem; justify-items: center; margin: .5rem auto 0; max-width: 28rem; font-size: .88rem; }
.bonusExpiry .bxRow { padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.bonusExpiry .bxRow.soon { border-color: rgba(255, 90, 90, .7); background: rgba(255, 90, 90, .14); color: #ffb3b3; font-weight: 700; }

.chatTime { white-space: nowrap; }

/* Mini-jeux solo (Memory, Blackjack) */
#mg { margin-top: 1.2rem; }
.mgPanel h3 { margin: 0 0 .3rem; }
.mgNote { margin: 0 0 .8rem; font-size: .9rem; }
.mgTabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mgInfo { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; font-weight: 700; }
.mgInfo .btn { margin-left: auto; }
.mgMenu { display: grid; gap: .6rem; }
.mgMenu p { margin: 0 0 .3rem; }
.mgLevel { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.mgGrid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: .5rem; max-width: 30rem; margin: 0 auto; }
.mem { padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; aspect-ratio: 5 / 7; }
.memIn { position: relative; width: 100%; height: 100%; transition: transform .35s; transform-style: preserve-3d; }
.mem.on .memIn { transform: rotateY(180deg); }
.memFront, .memBack { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.memBack { transform: rotateY(180deg); }
.mem.done { cursor: default; }
.mem.done .memIn { box-shadow: 0 0 0 2px var(--accent, #2dd4bf); border-radius: 8px; }
.pcard { position: relative; border-radius: 8px; background: #fff; border: 1px solid #c9ccd3; aspect-ratio: 5 / 7; width: 100%; box-sizing: border-box; overflow: hidden; }
.pcard.red { color: #d12a3a; }
.pcard.blk { color: #15171c; }
.pcTop { position: absolute; top: 5%; left: 9%; display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: clamp(.75rem, 3.2vw, 1.15rem); font-weight: 800; }
.pcTop i { font-style: normal; }
.pcMid { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.4rem, 6vw, 2.6rem); }
.pcard.back { background: repeating-linear-gradient(45deg, var(--accent, #2dd4bf) 0 6px, rgba(0, 0, 0, .4) 6px 12px); border: 3px solid #fff; }
.mgEnd { text-align: center; margin-top: 1rem; }
.mgEnd h4 { margin: 0 0 .3rem; font-size: 1.2rem; }
.mgEnd .btn { margin: .3rem; }
.bjTable p { margin: .4rem 0; }
.bjLabel { font-weight: 700; margin-top: .6rem; }
.bjHand { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.bjHand .pcard { width: clamp(3.4rem, 16vw, 4.6rem); }
.bjActs, .bjBets { display: flex; gap: .5rem; flex-wrap: wrap; margin: .6rem 0; }
.bjMsg { font-weight: 800; font-size: 1.05rem; }
.bjMsg.win { color: #7dffb0; }
.bjMsg.lose { color: #ff9a9a; }
.bjMsg.push { color: #ffd479; }

/* ---------- Hub « Jouer » : les trois jeux sous la même forme + CaroCoins ---------- */
.hubTop { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.hubTop h2 { margin: 0; }
.coinBadge { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border-radius: 999px; font-weight: 800;
  background: rgba(255, 211, 107, .12); border: 1px solid rgba(255, 211, 107, .5); color: #ffd36b; box-shadow: 0 0 18px -6px rgba(255, 211, 107, .6); }
.coinBadge span { font-weight: 600; font-size: .85em; opacity: .85; }
.hubTiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.hubTiles.two { grid-template-columns: repeat(2, 1fr); }
.hubTile { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .4rem; border-radius: 14px; cursor: pointer; font: inherit; color: var(--text, #fff);
  background: var(--surface, rgba(255, 255, 255, .04)); border: 1px solid var(--line, rgba(255, 255, 255, .15)); transition: transform .15s, border-color .15s, background .15s; }
.hubTile span { font-size: 1.6rem; line-height: 1.2; }
.hubTile b { font-size: .95rem; }
.hubTile small { font-size: .72rem; opacity: .65; }
.hubTile:hover { transform: translateY(-2px); border-color: var(--accent, #2dd4bf); }
.hubTile.on { border-color: var(--accent, #2dd4bf); background: linear-gradient(160deg, rgba(45, 212, 191, .22), rgba(139, 92, 246, .18)); box-shadow: 0 0 22px -8px var(--accent, #2dd4bf); }
.hubGame { background: var(--surface, rgba(255, 255, 255, .04)); border: 1px solid var(--line, rgba(255, 255, 255, .15)); border-radius: 16px; padding: 1.1rem; }
.hubHead { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .12)); }
.hubHead h3 { margin: 0 0 .2rem; }
.hubHead p { margin: 0; font-size: .9rem; }
.hubIcon { font-size: 1.8rem; line-height: 1; flex: none; }
.coinPanel { margin-bottom: 1rem; border-color: rgba(255, 211, 107, .45); }
.coinPanelHead { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.coinPanelHead h3 { margin: 0 0 .2rem; }
.coinPanelHead p { margin: 0; font-size: .9rem; }
.mgLevel { display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line, rgba(255, 255, 255, .12)); }
.mgLevelInfo { display: grid; gap: .15rem; min-width: 0; }
.mgLevelInfo .muted { font-size: .82rem; }
.mgRules { margin: 0 0 .4rem; }
.mgWarn { font-weight: 700; }
.mgPlay .mgInfo { margin-bottom: .8rem; }
.rankCoinsHint { margin: 0 0 .6rem; }
@media (max-width: 480px) {
  .hubTile small { display: none; }
  .hubTile span { font-size: 1.4rem; }
  .coinBadge span { display: none; }
  .hubGame { padding: .9rem; }
}

/* ---------- Hub « Jouer » v122 : 5 jeux sous la même forme ---------- */
.hubTiles.five { grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.hubTile small { min-height: 1em; }
.gChip { display: inline-block; margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; font-style: normal; vertical-align: middle;
  background: rgba(255, 211, 107, .12); border: 1px solid rgba(255, 211, 107, .4); color: #ffd36b; }
@media (max-width: 560px) {
  .hubTiles.five { gap: .35rem; }
  .hubTiles.five .hubTile { padding: .55rem .15rem; }
  .hubTiles.five .hubTile b { font-size: .74rem; }
  .hubTiles.five .hubTile small { display: block; font-size: .62rem; }
  .gChip { display: block; margin: .25rem 0 0; width: fit-content; }
}

/* Memory : vraies cartes, dos = image du booster */
.pcard.boosterBack { background: url('/card-back-2.jpg?v=2') center / cover no-repeat; border: 2px solid var(--line, rgba(255, 255, 255, .25)); }
.mcard { position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 10px; overflow: hidden; background: #120a22; border: 2px solid var(--c, #8b5cf6); box-sizing: border-box; }
.mcard img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mcBadge { position: absolute; top: 3px; left: 3px; font-size: .6rem; font-weight: 800; padding: 0 .3rem; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; }
.mcName { position: absolute; left: 0; right: 0; bottom: 0; padding: .15rem .2rem; font-size: .58rem; font-weight: 700; text-align: center; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem { -webkit-tap-highlight-color: transparent; }
.memPrev { display: flex; justify-content: center; align-items: center; gap: .8rem; min-height: 8.6rem; margin: 1rem auto 0; padding: .6rem; max-width: 30rem; border-radius: 14px;
  border: 1px dashed var(--line, rgba(255, 255, 255, .25)); background: rgba(255, 255, 255, .03); }
.memPrevCard { width: 5.2rem; animation: memPop .25s ease-out; }
@keyframes memPop { from { transform: translateY(-10px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* Roulette et Fusée : parties communes */
.rgBox { display: grid; gap: .7rem; }
.rgTop { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.rgStatus { font-size: 1.02rem; }
.rgPlayers { font-size: .85rem; }
.rgHistRow { display: flex; gap: .35rem; flex-wrap: wrap; min-height: 1.7rem; }
.rgHist { padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 800; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.rgHist.c-r { color: #ff8a9a; } .rgHist.c-g { color: #7dffb0; } .rgHist.c-gold { color: #ffd36b; border-color: #ffd36b; } .rgHist.c-epic { color: #d8b4ff; border-color: #b87bff; box-shadow: 0 0 12px -2px #b87bff; }
.rgHist.c-b { background: #1d1f27; color: #fff; } .rgHist.c-g { }
.rgOut { margin: 0; min-height: 1.3em; font-weight: 800; }
.rgOut.win { color: #7dffb0; } .rgOut.lose { color: #ff9a9a; }
.rgChipsBox { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.rgChips { display: flex; gap: .35rem; flex-wrap: wrap; }
.rgMine { margin: 0; font-size: .85rem; }

.rlReel { position: relative; overflow: hidden; height: 64px; border-radius: 12px; background: #0b0614; border: 1px solid var(--line, rgba(255, 255, 255, .2)); }
.rlStrip { display: flex; height: 100%; will-change: transform; position: absolute; left: 0; top: 0; }
.rlTile { flex: none; width: 56px; margin: 4px 2px; height: calc(100% - 8px); display: grid; place-items: center; border-radius: 8px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.rlTile.r { background: #c62839; } .rlTile.b { background: #23252e; border: 1px solid #444; } .rlTile.g { background: #1d8a4c; }
.rlMark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #ffd36b; box-shadow: 0 0 12px 2px rgba(255, 211, 107, .8); z-index: 2; }
.rlBets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.rlBet { position: relative; display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .6rem .2rem; border-radius: 12px; font: inherit; color: var(--text, #fff); cursor: pointer;
  background: var(--surface, rgba(255, 255, 255, .05)); border: 1px solid var(--line, rgba(255, 255, 255, .2)); }
.rlBet small { opacity: .65; }
.rlBet .rlMine { font-style: normal; font-size: .75rem; font-weight: 800; color: #ffd36b; min-height: 1em; }
.rlBet.has { border-color: #ffd36b; background: rgba(255, 211, 107, .12); }
.rlBet.k-red b { color: #ff8a9a; }

.rkStage { position: relative; height: 230px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line, rgba(255, 255, 255, .2));
  background: radial-gradient(ellipse at 50% 120%, #3a1b6e 0%, #0b0614 65%); }
.rkStars { position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(#fff 1px, transparent 1.5px), radial-gradient(#fff 1px, transparent 1.5px); background-size: 70px 70px, 110px 110px; background-position: 0 0, 35px 50px; }
.rkRocket { position: absolute; left: 6%; bottom: 6%; font-size: 2.2rem; transform: rotate(-35deg); transition: left .2s linear, bottom .2s linear; filter: drop-shadow(0 0 10px rgba(255, 160, 60, .8)); }
.rkRocket.boom { transform: none; font-size: 2.8rem; filter: none; }
.rkMult { position: absolute; top: .6rem; left: 0; right: 0; text-align: center; font-size: 2.4rem; font-weight: 900; letter-spacing: .02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.rkMult.up { color: #7dffb0; } .rkMult.boom { color: #ff6b81; }
.rkPanel { display: grid; gap: .6rem; }
.rkBet { display: grid; gap: .6rem; }
.rkAuto { padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line, rgba(255, 255, 255, .25)); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; }
.rkMine { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .8rem; border-radius: 12px; border: 1px solid #ffd36b; background: rgba(255, 211, 107, .1); font-weight: 700; }
.rkCash { padding: 1rem; font-size: 1.1rem; font-weight: 900; background: linear-gradient(180deg, #ffe08a, #f5a623) !important; color: #2a1800 !important; }
@media (max-width: 480px) { .rkMult { font-size: 2rem; } .rkStage { height: 200px; } }
.mcard.r-C { --c: var(--r-C); } .mcard.r-PC { --c: var(--r-PC); } .mcard.r-R { --c: var(--r-R); } .mcard.r-SP { --c: var(--r-SP); } .mcard.r-UR { --c: var(--r-UR); } .mcard.r-L { --c: var(--r-L); } .mcard.r-H { --c: var(--r-H, #ff7a00); }
/* correctif : les deux faces d'une carte du Memory restent superposées (le style des cartes ne doit pas les remettre dans le flux) */
.memIn > .memFront, .memIn > .memBack { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.rgChips .btn { padding: .45rem .75rem; }

/* =====================================================================
   v123 — Records Memory, classement discret, confort mobile
   ===================================================================== */
.memRecords { margin-top: 1.2rem; display: grid; gap: .6rem; }
.recTitle { margin: 0 0 .1rem; }
.recLevel { padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line, rgba(255, 255, 255, .12)); background: rgba(255, 255, 255, .03); }
.recCols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .4rem; }
.recCol { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.recHead { font-size: .78rem; font-weight: 800; opacity: .8; }
.recLine { display: flex; align-items: baseline; gap: .35rem; min-width: 0; font-size: .85rem; flex-wrap: wrap; }
.recName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.recVal { font-size: .75rem; }

/* Choix Cartes / CaroCoins du classement : petit et discret */
#rankTiles { display: flex; justify-content: flex-end; gap: .25rem; margin: -.2rem 0 .6rem; }
#rankTiles .hubTile { flex-direction: row; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; background: none; border-color: transparent; box-shadow: none; opacity: .5; }
#rankTiles .hubTile span { font-size: .8rem; }
#rankTiles .hubTile b { font-size: .72rem; font-weight: 600; }
#rankTiles .hubTile small { display: none !important; }
#rankTiles .hubTile.on { opacity: .9; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
#rankTiles .hubTile:hover { transform: none; opacity: .9; }

/* Confort téléphone */
html { -webkit-text-size-adjust: 100%; }
button, .btn, .tab, .hubTile, .mem, .plChoice, .chip, select, summary { touch-action: manipulation; }
img { -webkit-user-drag: none; }
@media (max-width: 640px) {
  /* iOS zoome sur les champs < 16 px : on évite le zoom surprise */
  input, select, textarea { font-size: 16px !important; }
  .btn, button.btn { min-height: 44px; }
  .btn.small { min-height: 38px; }
  .view { max-width: 100%; }
  .hubTop { gap: .5rem; flex-wrap: wrap; }
  .hubHead { gap: .6rem; }
  .hubHead .muted { font-size: .85rem; }
  .hubGame { padding: .8rem .7rem; }
  /* Memory : la grille et l'aperçu tiennent sur l'écran sans zoomer */
  .mgGrid { gap: .35rem; max-width: min(100%, 26rem); }
  .mgInfo { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; padding: .4rem 0; background: var(--bg, #0b0618); }
  .memPrev { min-height: 6.6rem; gap: .5rem; margin-top: .6rem; }
  .memPrevCard { width: 4.2rem; }
  .mcName { font-size: .5rem; }
  .mgLevel .btn { width: 100%; }
  .recCols { grid-template-columns: 1fr; }
  /* Duel : gros boutons faciles à toucher */
  .plChoices { gap: .45rem; }
  .plChoice { min-height: 6.4rem; border-radius: 18px; }
  .plScore { padding: .8rem .4rem; }
  .plJoinRow { flex-direction: column; }
  .plJoinRow .btn, .plJoinRow input { width: 100%; }
  .plChatInput { min-height: 44px; }
  /* Tableaux et grilles : jamais de débordement horizontal */
  table { font-size: .85rem; }
  .tableWrap { -webkit-overflow-scrolling: touch; }
  .rankRow { padding: .55rem .6rem; gap: .5rem; }
  .rankScore { font-size: .85rem; }
  .gChip { white-space: normal; }
  /* Roulette / Blackjack : cibles tactiles plus grandes */
  .bjTable .btn, .bjActs .btn, #mgBj .btn { min-height: 46px; }
}
@media (max-width: 380px) {
  .hubTiles.five .hubTile b { font-size: .66rem; }
  .plChoice { min-height: 5.6rem; }
}
/* Paysage sur téléphone : la grille du Memory ne dépasse pas la hauteur de l'écran */
@media (max-height: 480px) and (orientation: landscape) { .mgGrid { max-width: 20rem; } .memPrev { display: none; } }

/* Mise personnalisée (blackjack et fusée) */
.betPick { display: grid; gap: .5rem; margin: .5rem 0; }
.betLine { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.betInput { width: 6.5rem; padding: .5rem .6rem; border-radius: 12px; font: inherit; font-weight: 700; text-align: center; }

/* =====================================================================
   Booster 3D « Édition 2 » : sachet alu blanc qui s'incline, plis, reflets irisés
   ===================================================================== */
.pack { --c1: 255, 122, 184; --c2: 155, 140, 255; --c3: 90, 209, 244; --c4: 125, 255, 208;   /* rose · violet · bleu ciel · menthe (couleurs de l'Édition 2) */
  --rx: 0deg; --ry: 0deg; --fy: 0px; --mx: 50%; --my: 34%; --p: 50%; --px: 0px; --py: 0px; --sx: 0px; }
.pack.god { --c1: 255, 211, 77; --c2: 255, 160, 46; --c3: 255, 240, 160; --c4: 255, 190, 90; }  /* god pack : reflets dorés */
.pack, .pack:not(:disabled):not(.tearing), .pack:not(:disabled):not(.tearing):hover, .pack:hover:not(:disabled) {
  transform: perspective(850px) translate3d(0, var(--fy), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: none; will-change: transform;
}
.pack:not(:disabled):not(.tearing) { animation: none; filter: none; }
.pack.tearing { transform: none; }
/* halo derrière le sachet aux couleurs de l'Édition 2 */
.packZone::before { background: conic-gradient(from 0deg, #ff7ab8, #9b8cff, #5ad1f4, #7dffd0, #ffd6e8, #ff7ab8); opacity: .38; }
.pack::before { background: radial-gradient(closest-side, rgba(155, 140, 255, .55), rgba(90, 209, 244, .22) 55%, transparent 75%); }
.pack.god::before { background: radial-gradient(closest-side, rgba(255, 190, 70, .6), rgba(255, 120, 40, .24) 55%, transparent 75%); }
/* ombre posée au sol, elle glisse quand le sachet s'incline */
.pack::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: -6%; height: 6%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), transparent 70%); filter: blur(7px); translate: var(--sx) 0;
}
.pack:disabled::after { opacity: .4; }
/* plis, froissures et relief du sachet (suivent les deux moitiés quand on déchire) */
.pkTop { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.pk::before { content: ''; position: absolute; inset: 0; background: url('/booster-folds.webp?v=1') center / 100% 100% no-repeat; pointer-events: none; }
.pkBottom::after { display: none; }
/* reflets : irisation, plis qui brillent, éclat de lumière */
.pkFx {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: opacity .25s;
}
.fxHolo {
  -webkit-mask-image: url('/booster.webp?v=3'); mask-image: url('/booster.webp?v=3');
  background: linear-gradient(112deg, transparent calc(var(--p) - 38%), rgba(var(--c1), .62) calc(var(--p) - 22%), rgba(var(--c2), .68) calc(var(--p) - 5%),
    rgba(var(--c3), .64) calc(var(--p) + 12%), rgba(var(--c4), .55) calc(var(--p) + 27%), transparent calc(var(--p) + 42%));
  mix-blend-mode: multiply; opacity: .8;
}
.fxRidge {
  -webkit-mask-image: url('/booster-ridge.webp?v=1'), url('/booster.webp?v=3'); mask-image: url('/booster-ridge.webp?v=1'), url('/booster.webp?v=3');
  -webkit-mask-composite: source-in; mask-composite: intersect;
  background: radial-gradient(ellipse 52% 34% at var(--mx) var(--my), rgba(255, 255, 255, .95), rgba(var(--c3), .75) 38%, rgba(var(--c1), .35) 62%, transparent 78%);
}
.fxGlare {
  -webkit-mask-image: url('/booster.webp?v=3'); mask-image: url('/booster.webp?v=3');
  background: radial-gradient(ellipse 58% 40% at var(--mx) var(--my), rgba(255, 255, 255, .8), rgba(255, 255, 255, .16) 50%, transparent 72%);
  mix-blend-mode: screen; opacity: .75;
}
.pack:disabled .pkFx, .pack.tearing .pkFx { opacity: 0; }
.packSub { translate: var(--px) var(--py); }
@media (prefers-reduced-motion: reduce) { .pack, .pack:not(:disabled):not(.tearing) { animation: none !important; } }

/* v124 : petits ajustements graphiques */
.card { border-radius: 12px; }
.grid .card:not(.unknown) { box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.btn { transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.btn:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:not(:disabled):active { transform: translateY(0) scale(.98); }
#pack { filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }

/* v125 : pré-lancement Édition 2 */
body.prelaunch .tab[data-tab="collection"], body.prelaunch .tab[data-tab="quests"], body.prelaunch .tab[data-tab="gamble"],
body.prelaunch .tab[data-tab="trades"], body.prelaunch .tab[data-tab="notifications"], body.prelaunch #goQuests,
body.prelaunch .tab[data-tab="pass"], body.prelaunch .tab[data-tab="custom"] { display: none !important; }
.launchBanner { margin: 10px auto 14px; max-width: 760px; padding: 12px 16px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(185,135,255,.22), rgba(255,111,168,.2)); border: 1px solid rgba(255,211,107,.45);
  box-shadow: 0 6px 22px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 4px; }
.launchBanner[hidden] { display: none !important; }
.launchBanner strong { font-size: 1.15rem; color: #ffd36b; letter-spacing: .02em; }
.launchBanner span { font-size: .85rem; opacity: .9; line-height: 1.35; }

/* Booster de fin de saison : ton visuel bleu et or (booster-endseason.webp), affiché automatiquement avant l'Édition 2 */
body.prelaunch .pack { aspect-ratio: 900 / 1248; --c1: 255, 214, 107; --c2: 90, 160, 255; --c3: 255, 240, 170; --c4: 150, 200, 255; }
body.prelaunch .pack .pk { background-image: url('/booster-endseason.webp?v=2'); }
body.prelaunch .pack .pk::before, body.prelaunch .pack .fxRidge { display: none; }   /* l'image a déjà ses plis et ses reflets */
body.prelaunch .pack .fxHolo, body.prelaunch .pack .fxGlare {
  -webkit-mask-image: url('/booster-endseason.webp?v=2'); mask-image: url('/booster-endseason.webp?v=2'); }
body.prelaunch .pack .fxHolo { mix-blend-mode: soft-light; opacity: .55; }
body.prelaunch .pack .fxGlare { opacity: .5; }
body.prelaunch .pack::before { background: radial-gradient(closest-side, rgba(255, 200, 80, .5), rgba(40, 100, 255, .32) 55%, transparent 75%); }
body.prelaunch .packZone::before { background: conic-gradient(from 0deg, #2f6bff, #ffd36b, #1a3fa8, #ffe9a8, #2f6bff); opacity: .4; }


/* ===== v151 : Pass Édition 2, Personnaliser, cosmétiques ===== */
.nm { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; vertical-align: middle; }
.nmBadge { font-style: normal; font-size: 1.05em; line-height: 1; }
.nmText { overflow-wrap: anywhere; }
.nmTitle { font-size: .68em; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--foil); opacity: .9; white-space: nowrap; }
.nmFrame { padding: .12rem .6rem; border-radius: 999px; border: 1.5px solid #ffcf4d; background: linear-gradient(135deg, rgba(255, 207, 77, .16), rgba(255, 207, 77, .04)); box-shadow: 0 0 12px rgba(255, 207, 77, .35), inset 0 0 8px rgba(255, 207, 77, .15); }
body[data-back="edition2"] .dcard .back,
body[data-back="edition2"] .gbFly .gbBackFace,
body[data-back="edition2"] .gbFace.gbBack,
body[data-back="edition2"] .pcard.boosterBack { background-image: url('/card-back-pass.jpg?v=1'); }

.passHead { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.1rem; align-items: center; }
.passLvl { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--foil); background: radial-gradient(circle at 30% 25%, rgba(245, 196, 81, .3), rgba(245, 196, 81, .05)); box-shadow: 0 0 18px rgba(245, 196, 81, .3); text-align: center; line-height: 1; }
.passLvl span { font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .5rem; }
.passLvl b { font-size: 1.8rem; color: var(--foil); margin-bottom: .35rem; }
.passBarWrap { display: grid; gap: .35rem; min-width: 0; }
.passHead .btn { grid-column: 1 / -1; }
.passRules { margin: .7rem 0 1rem; color: var(--muted); font-size: .92rem; }
.passRules summary { cursor: pointer; font-weight: 600; color: var(--text); }
.passRules ul { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.passList { display: grid; gap: .55rem; }
.passRow { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; padding: .65rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: transform .15s, border-color .15s; }
.passNum { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; background: var(--surface2); border: 1px solid var(--line); }
.passRew { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.passChip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface2); border: 1px solid var(--line); }
.passChip.coin { color: #ffd76b; } .passChip.boost { color: #7ee7d8; } .passChip.cos { color: #d9c2ff; } .passChip.card { color: #ffcf4d; border-color: #ffcf4d; }
.passRow.locked { opacity: .55; }
.passRow.ready { border-color: var(--accent); box-shadow: 0 0 16px rgba(45, 212, 191, .28); }
.passRow.ready .passNum { background: var(--accent); color: #04211d; border-color: var(--accent); }
.passRow.done .passNum { background: rgba(45, 212, 191, .15); color: var(--accent); }
.passRow.next { border-color: var(--foil); }
.passRow.final { border-color: #ffcf4d; background: linear-gradient(135deg, rgba(255, 207, 77, .14), var(--surface)); }
.passSide { text-align: right; white-space: nowrap; }
.passSide .claimed { color: var(--accent); font-weight: 700; }
@media (max-width: 520px) { .passNum { width: 34px; height: 34px; } }

.customPreview { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cpName { font-size: 1.25rem; font-weight: 700; min-width: 0; }
.cpBack { flex: none; width: 74px; aspect-ratio: 170 / 245; border-radius: 9px; border: 2px solid var(--line); background: url('/card-back-2.jpg?v=2') center / cover no-repeat; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.cpBack.edition2 { background-image: url('/card-back-pass.jpg?v=1'); border-color: #ffcf4d; }
.customGroup { margin: 1rem 0; }
.customGroup h3 { margin: 0 0 .5rem; }
.customOpts { display: flex; flex-wrap: wrap; gap: .5rem; }
.copt { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.copt:hover:not(:disabled) { border-color: var(--accent); }
.copt.on { border-color: var(--accent); background: rgba(45, 212, 191, .14); box-shadow: 0 0 12px rgba(45, 212, 191, .25); }
.copt:disabled { opacity: .5; cursor: not-allowed; }
.copt small { color: var(--muted); font-weight: 500; }
.copt .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); }

/* v152 */
.edTabs { margin: .4rem 0 .6rem; }
.edTabs .chip { font-weight: 700; }
@media (max-width: 520px) {
  .passRow { grid-template-columns: 34px 1fr auto; gap: .55rem; padding: .55rem .6rem; }
  .passSide { grid-column: auto; text-align: right; }
  .passSide .btn.small { padding: .4rem .6rem; font-size: .8rem; }
}

.collSep.edSep::before, .collSep.edSep::after { background: linear-gradient(90deg, transparent, #8fb3ff, transparent); }
.collSep.edSep span { color: #b9cdff; text-shadow: 0 0 14px rgba(110, 160, 255, .6); }

.gbFilters { align-items: center; gap: 1.2rem; }
.gbChk { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }
.gbChk select { background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .5rem; font: inherit; }

/* Avant l'Édition 2 : le dos des cartes reprend le booster bleu et or de fin de saison */
body.prelaunch .dcard .back, body.prelaunch .flip .back, body.prelaunch .pcard.boosterBack { background-image: url('/card-back-endseason.jpg?v=1'); background-size: cover; }

/* v160 : en-tête sur ordinateur — le pseudo / Panel admin / Déconnexion restent à droite sur la même ligne que les onglets (plus de retour à la ligne) */
@media (min-width: 641px) {
  .top { flex-wrap: nowrap; gap: .8rem; }
  .logo { flex: 0 0 auto; white-space: nowrap; }
  nav {
    flex: 1 1 0; min-width: 0; overflow-x: auto; overflow-y: hidden; gap: .1rem;
    padding: 8px 4px; margin: -8px 0; scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; padding: .5rem .8rem; font-size: .92rem; }
  .who { flex: 0 0 auto; white-space: nowrap; gap: .5rem; }
  .menu { gap: .6rem; }
}
@media (min-width: 641px) and (max-width: 1500px) {
  .tab { padding: .45rem .6rem; font-size: .88rem; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .logo em { display: none; }
  #adminLink span, .menu .lo-t { display: none; }
  .menu .lo-i { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; font-size: 1.2rem; }
  #whoName { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}

/* v161 : Proposition Carte (joueurs) */
.propList { display: flex; flex-direction: column; gap: .7rem; }
.propItem { display: flex; gap: .8rem; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.propItem.approved { border-color: rgba(74, 222, 128, .5); }
.propItem.rejected { border-color: rgba(248, 113, 113, .45); opacity: .88; }
.propThumb { width: 56px; height: 80px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; background: #0f0c17; }
.propInfo { min-width: 0; flex: 1; }
.propSt { margin-left: .5rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.propMeta { font-size: .82rem; margin: .15rem 0; }
.propDesc { margin: .3rem 0; font-size: .9rem; overflow-wrap: anywhere; }
.propNote { margin: .4rem 0; padding: .4rem .6rem; font-size: .88rem; }
.propGrid .preview { margin-bottom: 1rem; }
.propItem .btn { margin-top: .3rem; }
/* admin : onglets sur plusieurs lignes si besoin */
.tabsA { flex-wrap: wrap; }

/* v161 fix : propositions de cartes (admin) — liste en pleine largeur, formulaire à gauche seulement quand une proposition est ouverte */
#propsGrid { grid-template-columns: 1fr; }
#propsGrid.withForm { grid-template-columns: minmax(300px, 380px) 1fr; }
#propsGrid #paListPanel { min-width: 0; }
#propsGrid .thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; }
@media (max-width: 900px) { #propsGrid.withForm { grid-template-columns: 1fr; } }
#propsGrid.withForm #paBody td:last-child { white-space: normal !important; }
#propsGrid.withForm #paBody td:last-child .btn { margin: 2px 4px 2px 0; }

/* v164 : booster de fin d’édition grisé tant qu’il n’est pas ouvrable (cooldown) ou déjà ouvert ; animation + couleurs au déblocage */
body.prelaunch #pack { transition: filter .9s ease; }
body.prelaunch #pack:disabled:not(.tearing):not(.opening) { filter: grayscale(1) brightness(.55) drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
body.prelaunch #pack:not(:disabled) { filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
body.prelaunch #pack.unlocking { animation: unlockPop 1.6s ease-out 1; }
@keyframes unlockPop {
  0%   { filter: grayscale(1) brightness(.55) drop-shadow(0 14px 22px rgba(0,0,0,.45)); scale: 1; }
  35%  { filter: grayscale(0) brightness(2) drop-shadow(0 0 46px rgba(255,214,107,.95)); scale: 1.14; }
  65%  { filter: grayscale(0) brightness(1.3) drop-shadow(0 0 30px rgba(90,160,255,.8)); scale: 1.06; }
  100% { filter: grayscale(0) brightness(1) drop-shadow(0 14px 22px rgba(0,0,0,.45)); scale: 1; }
}

/* ===== v165 : Pass Édition 2 « façon Fortnite » (piste horizontale à faire glisser) ===== */
.psHero { position: relative; overflow: hidden; border-radius: 20px; padding: 1.1rem 1.2rem 1.2rem; margin-bottom: .8rem; border: 1px solid rgba(255, 207, 77, .35);
  background: radial-gradient(520px 220px at 85% -20%, rgba(255, 207, 77, .28), transparent 70%), radial-gradient(420px 260px at 0% 120%, rgba(139, 92, 246, .35), transparent 70%), linear-gradient(135deg, #1b1245 0%, #2a1858 55%, #3a1d63 100%);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.psHero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: repeating-conic-gradient(from 0deg at 88% 20%, rgba(255, 224, 130, .9) 0 3deg, transparent 3deg 12deg); mask-image: radial-gradient(circle at 88% 20%, #000, transparent 65%); -webkit-mask-image: radial-gradient(circle at 88% 20%, #000, transparent 65%); }
.psHeroTxt h2 { margin: 0 0 .15rem; text-shadow: 0 2px 14px rgba(255, 207, 77, .35); }
.psHeroTxt p { margin: 0 0 .8rem; max-width: 60ch; }
.psStats { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .8rem 1.1rem; align-items: center; }
.psStats .passLvl { width: 92px; height: 92px; border-radius: 0; border: 0; box-shadow: none; padding-top: .2rem;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: linear-gradient(160deg, #ffe58a, #f5c451 55%, #d99a1e); filter: drop-shadow(0 0 14px rgba(255, 207, 77, .6)); }
.psStats .passLvl span { display: none; }
.psStats .passLvl b { color: #2b1a00; font-size: 1.9rem; margin: .5rem 0 0; }
.psStats .passBarWrap .bar { height: 14px; margin-bottom: 0; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); }
.psStats .passBarWrap .bar div { position: relative; background: linear-gradient(90deg, #7c5cff, #38bdf8 55%, #ffd76b); box-shadow: 0 0 16px rgba(255, 207, 77, .55); }
.psStats .passBarWrap .bar div::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 220% 100%; animation: psShine 2.6s linear infinite; }
@keyframes psShine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.psStats .btn { grid-column: 1 / -1; animation: psPulse 1.8s ease-in-out infinite; }
@keyframes psPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .55); } 50% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } }

.psNav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .2rem 0 .4rem; }
.psArrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform .15s, border-color .15s, opacity .15s; }
.psArrow:hover:not(:disabled) { border-color: var(--foil); transform: scale(1.08); }
.psArrow:disabled { opacity: .3; cursor: default; }
.psMine { padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--foil); background: rgba(245, 196, 81, .12); color: var(--foil); font: inherit; font-weight: 700; cursor: pointer; }
.psMine:hover { background: rgba(245, 196, 81, .24); }

.psWrap { position: relative; margin: 0 -.4rem; }
.psTrack { -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); display: flex; overflow-x: auto; overflow-y: hidden; padding: .3rem 1rem 1.1rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; cursor: grab; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #2b4f57 transparent; outline: none; }
.psTrack.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.psTrack.drag * { pointer-events: none; }
.psHint { text-align: center; font-size: .82rem; margin: .1rem 0 0; }

.psTile { flex: none; width: 158px; scroll-snap-align: center; user-select: none; -webkit-user-select: none; }
.psRail { position: relative; height: 46px; }
.psLine, .psFill { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 0; }
.psLine { left: 0; right: 0; background: rgba(255, 255, 255, .09); }
.psTile:first-child .psLine { left: 50%; }
.psTile:last-child .psLine { right: 50%; }
.psFill.L { left: 0; } .psFill.R { left: 50%; }
.psFill { background: #4cc3ff; box-shadow: 0 0 10px rgba(76, 195, 255, .7); transition: width .8s ease; }
.psNode { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: .95rem; background: #101c2a; border: 2px solid rgba(255, 255, 255, .22); color: var(--muted); z-index: 1; }
.psTile.reached .psNode { background: linear-gradient(160deg, #3be8cb, #20b3a0); border-color: #aaf5ea; color: #032b25; box-shadow: 0 0 14px rgba(45, 212, 191, .55); }
.psTile.next .psNode { border-color: var(--foil); color: var(--foil); box-shadow: 0 0 14px rgba(245, 196, 81, .5); animation: psNodePulse 1.6s ease-in-out infinite; }
@keyframes psNodePulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.14); } }

.psCard { --tc: #8fb3b0; --tg: rgba(143, 179, 176, .15); position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; height: 258px; margin: 0 7px; padding: .7rem .6rem .75rem; text-align: center; overflow: hidden; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--tc) 55%, transparent);
  background: radial-gradient(180px 120px at 50% 18%, var(--tg), transparent 75%), linear-gradient(180deg, #14232d, #0b151c); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9); transition: transform .2s, box-shadow .2s, border-color .2s; }
.psTile:hover .psCard { transform: translateY(-4px); }
.psTile.t-coin .psCard { --tc: #ffd76b; --tg: rgba(255, 215, 107, .22); }
.psTile.t-boost .psCard { --tc: #4fe3cf; --tg: rgba(79, 227, 207, .24); }
.psTile.t-cos .psCard { --tc: #b894ff; --tg: rgba(184, 148, 255, .28); }
.psTile.t-card .psCard { --tc: #ffcf4d; --tg: rgba(255, 207, 77, .3); }
.psLvlTag { font-size: .62rem; font-weight: 800; letter-spacing: .12em; color: var(--tc); opacity: .9; }
.psArt { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.psIcon { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 16px var(--tg)); transition: transform .25s; }
.psTile:hover .psIcon { transform: scale(1.12) rotate(-4deg); }
.psArtImg { height: 100%; max-height: 112px; width: auto; max-width: 100%; border-radius: 10px; object-fit: cover; box-shadow: 0 8px 18px rgba(0, 0, 0, .6), 0 0 18px rgba(255, 207, 77, .45); pointer-events: none; }
.psName { font-weight: 800; font-size: .92rem; line-height: 1.15; overflow-wrap: anywhere; }
.psSub { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.psList { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .1rem; font-size: .74rem; color: var(--muted); font-weight: 600; }
.psFoot { min-height: 34px; display: grid; place-items: center; margin-top: auto; padding-top: .3rem; width: 100%; }
.psFoot .claimed { color: var(--accent); font-weight: 800; font-size: .85rem; }
.psFoot .psLock { color: var(--muted); font-size: .78rem; font-weight: 600; }
.psFoot .btn.small { width: 100%; padding: .45rem .5rem; font-size: .85rem; }
.psTile.locked .psCard { opacity: .72; filter: saturate(.65); }
.psTile.done .psCard { opacity: .82; }
.psTile.ready .psCard { border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc), 0 0 26px -2px var(--tc), 0 12px 26px -12px rgba(0, 0, 0, .9); animation: psReady 1.9s ease-in-out infinite; }
@keyframes psReady { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.psTile.next .psCard { border-color: var(--foil); }
.psTile.final .psCard { background: radial-gradient(200px 140px at 50% 20%, rgba(255, 207, 77, .4), transparent 75%), linear-gradient(180deg, #2a1d4d, #120c25); border-width: 2px; }
.psTile.final { width: 190px; }
.psTile.final .psCard { height: 276px; }
.psTile.final .psCard::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%); background-size: 250% 100%; animation: psShine 3.2s linear infinite; }
.psTile.final .psArtImg { max-height: 128px; }

@media (max-width: 520px) {
  .psHero { padding: .9rem .9rem 1rem; }
  .psStats .passLvl { width: 78px; height: 78px; } .psStats .passLvl b { font-size: 1.6rem; }
  .psTile { width: 138px; } .psTile.final { width: 168px; }
  .psCard { height: 244px; margin: 0 5px; } .psTile.final .psCard { height: 262px; }
  .psIcon { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .psTile.ready .psCard, .psTile.next .psNode, .psStats .btn, .psStats .passBarWrap .bar div::after, .psTile.final .psCard::after { animation: none; }
}

/* ===== v167 : Personnaliser refait (aperçu en direct + grille de tuiles) et cadres de couleur ===== */
.nm.nmFrame { --fc: #ffcf4d; border-color: var(--fc); background: linear-gradient(135deg, color-mix(in srgb, var(--fc) 22%, transparent), color-mix(in srgb, var(--fc) 5%, transparent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--fc) 45%, transparent), inset 0 0 8px color-mix(in srgb, var(--fc) 18%, transparent); }

.cuLayout { display: grid; grid-template-columns: 320px 1fr; gap: 1.2rem; align-items: start; margin-top: .8rem; }
.cuPreview { position: sticky; top: 86px; display: grid; gap: .6rem; }
.cuStage { position: relative; display: grid; justify-items: center; gap: .7rem; padding: 2.2rem 1rem 1.3rem; text-align: center; overflow: hidden; border-radius: 22px; border: 1px solid rgba(184, 148, 255, .35);
  background: radial-gradient(300px 200px at 50% 0%, rgba(184, 148, 255, .32), transparent 70%), radial-gradient(260px 200px at 50% 110%, rgba(56, 189, 248, .2), transparent 70%), linear-gradient(180deg, #1a1240, #0d0a22);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.cuStageLbl { position: absolute; top: .7rem; left: .9rem; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cuAvatar { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; font-size: 1.9rem; font-weight: 800; color: #1a1240; background: linear-gradient(160deg, #ffe58a, #f5c451 60%, #d99a1e); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 0 26px rgba(245, 196, 81, .45); }
.cuStage .cpName { font-size: 1.45rem; max-width: 100%; display: flex; justify-content: center; }
.cuStage .nm { flex-wrap: wrap; justify-content: center; row-gap: .15rem; }
.cuStage .nmFrame { padding: .3rem .9rem; }
.cuTag { max-width: 100%; padding: .35rem .7rem; border-radius: 12px; font-size: .78rem; font-weight: 600; color: var(--foil); border: 1px dashed rgba(245, 196, 81, .6); background: rgba(245, 196, 81, .08); }
.cuStage .cpBack { width: 118px; margin-top: .3rem; transform: rotate(-4deg); transition: transform .3s; box-shadow: 0 14px 28px rgba(0, 0, 0, .6); }
.cuStage .cpBack:hover { transform: rotate(0) scale(1.05); }
.cuActions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.cuCount { font-size: .85rem; font-weight: 700; color: var(--muted); }

.cuGroups { display: grid; gap: 1rem; min-width: 0; }
.cuGroup { padding: .9rem 1rem 1rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--surface); }
.cuGroupHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.cuGroupHead h3 { margin: 0; font-size: 1.05rem; }
.cuGroupCount { font-size: .75rem; font-weight: 700; color: var(--muted); padding: .15rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.cuGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .6rem; }
.cuTile { position: relative; display: grid; justify-items: center; align-content: start; gap: .3rem; padding: .75rem .4rem .65rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cuTile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .35); }
.cuVis { height: 62px; display: grid; place-items: center; max-width: 100%; }
.cuLbl { font-weight: 700; font-size: .84rem; line-height: 1.15; overflow-wrap: anywhere; }
.cuSub { font-size: .7rem; color: var(--muted); font-weight: 600; }
.cuNone { font-size: 1.9rem; color: var(--muted); }
.cuEmoji { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.cuRibbon { font-size: 2rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.cuAa { font-size: 2rem; font-weight: 800; }
.cuFr { font-size: .8rem; padding: .22rem .7rem; }
.cuBack { display: block; height: 58px; aspect-ratio: 170 / 245; border-radius: 6px; border: 1.5px solid var(--line); background: url('/card-back-2.jpg?v=2') center / cover no-repeat; box-shadow: 0 5px 12px rgba(0, 0, 0, .5); }
.cuBack.edition2 { background-image: url('/card-back-pass.jpg?v=1'); border-color: #ffcf4d; }
.cuTile.on { border-color: var(--accent); background: linear-gradient(180deg, rgba(45, 212, 191, .16), rgba(45, 212, 191, .04)); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(45, 212, 191, .3); }
.cuTile.on::after { content: '✓'; position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .7rem; font-weight: 800; color: #032b25; background: var(--accent); }
.cuTile.on .cuSub { color: var(--accent); }
.cuTile.locked { opacity: .72; }
.cuTile.locked .cuVis { filter: grayscale(.55); }
.cuTile.sel { opacity: 1; border: 1.5px dashed var(--foil); background: rgba(245, 196, 81, .08); }
.cuTile.sel .cuVis { filter: none; }

@media (max-width: 820px) {
  .cuLayout { grid-template-columns: 1fr; }
  .cuPreview { position: static; }
  .cuStage { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; padding: 1.7rem 1rem 1rem; column-gap: .8rem; }
  .cuStage .cuAvatar { width: 52px; height: 52px; font-size: 1.4rem; }
  .cuStage .cpName { justify-content: flex-start; font-size: 1.15rem; }
  .cuStage .cuTag { grid-column: 1 / -1; }
  .cuStage .cpBack { width: 64px; margin: 0; grid-column: 3; grid-row: 1; }
  .cuGrid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

/* ===== v168 : photo de profil (niveau 10 du Pass), pdp dans les classements, Pass + Personnaliser adaptés au téléphone ===== */
/* Photo à côté du pseudo (classements, chat, en-tête, collection d'un joueur) */
.nmAv { flex: none; width: 1.55em; height: 1.55em; border-radius: 50%; object-fit: cover; background: #241a3d; border: 1.5px solid rgba(255, 255, 255, .28); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); user-select: none; -webkit-user-select: none; }
.nmAvPh { display: grid; place-items: center; font-size: .8em; font-weight: 800; line-height: 1; color: #1a1240; background: linear-gradient(160deg, #ffe58a, #f5c451 60%, #d99a1e); border-color: rgba(255, 255, 255, .18); }
.rankName .nm { gap: .5rem; }
.rankName .nmAv { width: 38px; height: 38px; font-size: 1.05rem; }
.rankName .nmAvPh { font-size: 1.05rem; }
.rankRow.top1 .nmAv { border-color: #ffd36b; } .rankRow.top2 .nmAv { border-color: #cfd8e3; } .rankRow.top3 .nmAv { border-color: #d28b50; }
.chatName .nmAv { width: 1.7em; height: 1.7em; }
#whoName .nmAv { width: 1.7em; height: 1.7em; }
.nmFrame .nmAv { margin-left: -.35rem; }
@media (max-width: 640px) { .rankName .nmAv { width: 32px; height: 32px; font-size: .9rem; } .rankName .nmAvPh { font-size: .9rem; } }

/* Aperçu : grand avatar avec photo */
.cuAvatar { overflow: hidden; }
.cuAvatar img, .cuAvBig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cuAvatar.hasImg { background: #241a3d; }

/* Section « Photo de profil » dans Personnaliser */
.cuAvRow { display: flex; align-items: center; gap: 1rem; }
.cuAvBig { flex: none; display: grid; place-items: center; overflow: hidden; width: 92px; height: 92px; border-radius: 50%; font-size: 2.4rem; font-weight: 800; color: #1a1240; background: linear-gradient(160deg, #ffe58a, #f5c451 60%, #d99a1e); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 0 26px rgba(245, 196, 81, .35); }
.cuAvBig.hasImg { background: #241a3d; }
.cuAvatarBox.locked .cuAvBig { filter: grayscale(.7); opacity: .7; }
.cuAvSide { display: grid; gap: .6rem; min-width: 0; flex: 1; }
.cuAvTxt { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.cuAvBtns { display: flex; flex-wrap: wrap; gap: .5rem; }
.cuAvBtns .btn { min-height: 44px; }
.cuFile { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* Fenêtre de recadrage */
body.avOpen { overflow: hidden; }
.avModal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: max(.8rem, env(safe-area-inset-top)) .8rem max(.8rem, env(safe-area-inset-bottom)); background: rgba(5, 3, 14, .86); overflow-y: auto; overscroll-behavior: contain; }
.avBox { width: min(100%, 360px); display: grid; gap: .7rem; padding: 1.1rem; border-radius: 22px; border: 1px solid rgba(184, 148, 255, .4); background: linear-gradient(180deg, #2a1d4d, #150d2c); box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .9); }
.avBox h3 { margin: 0; text-align: center; }
.avHint { margin: 0; text-align: center; font-size: .82rem; }
.avStage { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #000; }
.avCv { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.avCv:active { cursor: grabbing; }
.avMask { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 999px rgba(5, 3, 14, .62); }
.avZoom { display: flex; align-items: center; gap: .6rem; padding: 0 .3rem; }
.avRange { flex: 1; min-width: 0; height: 44px; accent-color: var(--accent, #c6ff3d); touch-action: pan-y; }
.avBtns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.avBtns .btn { min-height: 48px; }

/* Pas de « survol » collé sur écran tactile */
@media (hover: none) {
  .cuTile:hover { transform: none; border-color: var(--line); }
  .cuTile.on:hover { border-color: var(--accent); }
  .psTile:hover .psCard { transform: none; }
  .psTile:hover .psIcon { transform: none; }
}

/* ----- Téléphone : Pass ----- */
@media (max-width: 640px) {
  .psHero { padding: .75rem .8rem .85rem; margin-bottom: .5rem; border-radius: 18px; }
  .psHeroTxt h2 { font-size: 1.25rem; }
  .psHeroTxt p { font-size: .8rem; line-height: 1.35; margin: 0 0 .6rem; }
  .psStats { gap: .55rem .8rem; }
  .psStats .passLvl { width: 58px; height: 58px; }
  .psStats .passLvl b { font-size: 1.2rem; margin-top: .4rem; }
  .psStats .passBarWrap small { font-size: .78rem; }
  .psStats .btn { min-height: 46px; }
  .passRules { margin: .35rem 0 .45rem; font-size: .88rem; }
  .passRules summary { min-height: 40px; display: flex; align-items: center; }
  .psNav { margin: 0 0 .1rem; gap: .5rem; }
  .psArrow { width: 46px; height: 46px; }
  .psMine { min-height: 46px; }
  .psWrap { margin: 0 -.9rem; }
  .psTrack { scroll-snap-type: x mandatory; padding: .3rem .9rem 1rem; scroll-padding: 0 .9rem; }
  .psTile { width: clamp(138px, 42vw, 170px); }
  .psTile.final { width: clamp(158px, 50vw, 190px); }
  .psTile .psCard { height: 250px; }
  .psFoot .btn.small { min-height: 44px; font-size: .9rem; }
  .psName { font-size: .9rem; }
  .psHint { font-size: .78rem; }
}

/* ----- Téléphone : Personnaliser ----- */
@media (max-width: 820px) {
  #view-custom > h2 { margin: .2rem 0 .3rem; font-size: 1.35rem; }
  #view-custom > .muted { font-size: .84rem; line-height: 1.4; margin: 0 0 .5rem; }
  /* L'aperçu reste collé sous l'en-tête : on voit l'effet du choix en faisant défiler la liste */
  .cuPreview { position: sticky; top: calc(var(--topH, 3.9rem) - 2px); z-index: 30; gap: .3rem; padding: .45rem .5rem .5rem; margin: 0 -.5rem; border-radius: 18px; background: #0f0820; border-bottom: 1px solid rgba(184, 148, 255, .25); box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .9); }
  .cuStage { padding: .65rem .8rem; column-gap: .7rem; border-radius: 16px; min-height: 0; }
  .cuStageLbl { display: none; }
  .cuStage .cuAvatar { width: 48px; height: 48px; font-size: 1.3rem; }
  .cuStage .cpName { font-size: 1.05rem; flex-wrap: wrap; }
  .cuStage .cpBack { width: 44px; }
  .cuStage .cuTag { padding: .25rem .55rem; font-size: .74rem; }
  .cuActions { padding: 0 .2rem; }
  .cuActions .btn { min-height: 40px; padding: .3rem .9rem; font-size: .78rem; box-shadow: none; }
  .cuMore { display: none; }
  .cuGroups { gap: .75rem; }
  .cuGroup { padding: .75rem .7rem .8rem; border-radius: 16px; }
  .cuGroupHead { margin-bottom: .55rem; }
}
@media (max-width: 520px) {
  .cuGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .cuTile { padding: .6rem .25rem .5rem; min-height: 104px; border-radius: 12px; }
  .cuVis { height: 50px; }
  .cuEmoji { font-size: 2rem; } .cuRibbon { font-size: 1.7rem; } .cuAa { font-size: 1.7rem; } .cuNone { font-size: 1.6rem; }
  .cuBack { height: 48px; }
  .cuLbl { font-size: .74rem; }
  .cuSub { font-size: .65rem; }
  .cuFr { font-size: .68rem; padding: .18rem .5rem; }
  .cuAvBig { width: 76px; height: 76px; font-size: 2rem; }
  .cuAvRow { gap: .8rem; }
  .cuAvBtns .btn { flex: 1 1 auto; }
}
@media (max-width: 340px) { .cuGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v168b : pseudo de l'en-tête compact (le titre est visible dans le classement et le chat, pas ici) pour ne plus cacher les onglets */
#whoName .nm { flex-wrap: nowrap; gap: .35rem; }
#whoName .nmTitle { display: none; }
#whoName .nmText { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#whoName .nmFrame { padding: .08rem .45rem; }
#whoName .nmAv { width: 1.5em; height: 1.5em; }

/* v170 : profil d'un joueur (fiche stylée, pensée téléphone) + vitrine de cartes */
.pfModal { place-items: end center; padding: 0; overflow: hidden; animation: pfFade .2s ease-out both; }
.pfSheet:focus { outline: none; }
.pfSheet { --fc: #9d7bff; position: relative; width: min(100%, 460px); max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); border-bottom: 0; background: linear-gradient(180deg, #1d1238 0%, #120a24 45%, #0c0718 100%); box-shadow: 0 -18px 60px -10px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03) inset; animation: pfUp .32s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes pfUp { from { transform: translateY(46px); opacity: 0; } }
@keyframes pfFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pfSheet, .pfModal { animation: none; } }
@media (min-width: 640px) { .pfModal { place-items: center; padding: 1rem; } .pfSheet { border-radius: 26px; border-bottom: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); } }

/* En-tête */
.pfHero { position: relative; display: grid; justify-items: center; gap: .5rem; padding: 1.6rem 1rem 1.1rem; text-align: center; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--fc) 55%, transparent), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); }
.pfX { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(8, 4, 20, .55); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.pfX:active { transform: scale(.92); }
.pfAv { display: grid; place-items: center; overflow: hidden; width: 112px; height: 112px; border-radius: 50%; font-size: 3rem; font-weight: 800; color: #1a1240; background: linear-gradient(160deg, #ffe58a, #f5c451 60%, #d99a1e); border: 4px solid var(--fc); box-shadow: 0 0 0 4px rgba(8, 4, 20, .6), 0 0 34px color-mix(in srgb, var(--fc) 65%, transparent); }
.pfAv.hasImg { background: #241a3d; }
.pfAv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfName { margin: .2rem 0 0; font-size: 1.4rem; font-weight: 800; max-width: 100%; line-height: 1.2; }
.pfName .nm { flex-wrap: wrap; justify-content: center; row-gap: .25rem; }
.pfName em { font-style: normal; color: var(--accent); font-size: .6em; font-weight: 700; }
.pfSince { font-size: .78rem; font-weight: 700; color: #e9e1ff; padding: .28rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); }

/* Contenu */
.pfBody { display: grid; gap: .75rem; padding: .2rem .8rem 1rem; }
.pfKpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: -.2rem; }
.pfKpi { display: grid; justify-items: center; gap: .1rem; padding: .65rem .2rem .55rem; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.pfKpiIc { font-size: 1.25rem; line-height: 1; }
.pfKpi b { font-size: 1.1rem; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfKpi small { font-size: .66rem; color: var(--muted); font-weight: 700; text-align: center; line-height: 1.15; }
.pfSec { display: grid; gap: .65rem; padding: .8rem .8rem .85rem; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.pfSecHead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pfSecHead h3 { margin: 0; font-size: .95rem; letter-spacing: .02em; }
.pfPct { font-weight: 800; font-size: 1.1rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.pfEdit { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: .78rem; font-weight: 700; padding: .4rem .75rem; border-radius: 999px; min-height: 36px; cursor: pointer; }
.pfHint, .pfEmpty { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.35; }

/* Barres de complétion */
.pfBar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; --c: var(--accent); }
.pfBar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c)); transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.pfBar.big { height: 12px; --c: var(--accent); }
.pfBar.big i { background: linear-gradient(90deg, var(--violet), var(--accent2) 55%, var(--accent)); }
.pfBar.done i { box-shadow: 0 0 10px var(--c); }
.pfRars { display: grid; gap: .45rem; }
.pfRar { display: grid; grid-template-columns: 2.1rem 1fr 3.4rem; align-items: center; gap: .6rem; --c: var(--r-C); }
.pfRar.r-PC, .pfRec.r-PC { --c: var(--r-PC); } .pfRar.r-R, .pfRec.r-R { --c: var(--r-R); } .pfRar.r-SP, .pfRec.r-SP { --c: var(--r-SP); }
.pfRar.r-UR, .pfRec.r-UR { --c: var(--r-UR); } .pfRar.r-L, .pfRec.r-L { --c: var(--r-L); } .pfRar.r-H, .pfRec.r-H { --c: var(--r-H, #ff7a00); }
.pfRar .pfBar { --c: inherit; }
.pfRarTag { justify-self: start; min-width: 2.1rem; text-align: center; font-size: .7rem; font-weight: 800; padding: .12rem .3rem; border-radius: 7px; color: #12101a; background: var(--c); }
.pfRar small { text-align: right; font-size: .74rem; font-weight: 700; color: #d9d0f0; font-variant-numeric: tabular-nums; }

/* Records */
.pfRecs { display: grid; grid-template-columns: 1.35fr 1fr; gap: .55rem; }
.pfRec { --c: var(--accent2); display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .6rem; border-radius: 14px; background: rgba(8, 4, 20, .5); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: inherit; font: inherit; text-align: left; }
button.pfRec { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.pfRec:active { transform: scale(.98); }
.pfRarest { box-shadow: 0 0 22px -8px var(--c); }
.pfMini { flex: 0 0 54px; width: 54px; aspect-ratio: 170 / 245; pointer-events: none; }
.pfMini .card { border-radius: 8px; border-width: 1.5px; }
.pfMini .card .meta, .pfMini .card .badge, .pfMini .card .qty { display: none; }
.pfRecTxt { display: grid; gap: .1rem; min-width: 0; }
.pfRecTxt small { font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pfRecTxt b { font-size: .88rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pfRecTxt b.pfBig { font-size: 1.7rem; line-height: 1; color: var(--accent2); font-variant-numeric: tabular-nums; }
.pfRecTxt em { font-style: normal; font-size: .72rem; color: var(--c); font-weight: 700; }
.pfDup { justify-content: center; text-align: center; }
.pfDup .pfRecTxt { justify-items: center; }
.pfDup .pfRecTxt em { color: var(--muted); }
@media (max-width: 340px) { .pfRecs { grid-template-columns: 1fr; } }

/* Vitrine */
.pfShow { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .8rem .8rem 1rem; margin: -.55rem -.8rem -.3rem; scroll-padding-left: .8rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pfShow::-webkit-scrollbar { display: none; }
.pfShowItem { flex: 0 0 112px; aspect-ratio: 170 / 245; scroll-snap-align: start; }
.pfShowItem:first-child:last-child { margin: 0 auto; }
.pfShowItem .card, .pfPick .card { animation: none; box-shadow: 0 0 14px -5px var(--c); }
.pfShowItem .card .meta { padding: .3rem .4rem .35rem; }
.pfShowItem .card .meta b { font-size: .68rem; }

/* Barre du bas collée */
.pfFoot { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr 2fr; gap: .6rem; padding: .7rem .8rem max(.8rem, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(12, 7, 24, 0), #0c0718 38%); }
.pfFoot .btn { min-height: 50px; font-weight: 800; }
.pfFoot3 { grid-template-columns: 1fr 1fr 1.6fr; }

/* Choix de la vitrine */
.pfPickSheet { overflow-y: auto; }
.pfPickHead { position: sticky; top: 0; z-index: 3; display: grid; gap: .5rem; padding: 1rem .9rem .7rem; background: linear-gradient(180deg, #1d1238 70%, rgba(29, 18, 56, 0)); }
.pfPickCount { font-size: 1.05rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.pfPickSearch { width: 100%; min-height: 44px; padding: 0 .9rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 4, 20, .6); color: #fff; font: inherit; font-size: 16px; }
.pfPickGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; padding: .2rem .9rem .8rem; }
@media (min-width: 420px) { .pfPickGrid { grid-template-columns: repeat(4, 1fr); } }
.pfPick { position: relative; aspect-ratio: 170 / 245; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.pfPick:active { transform: scale(.95); }
.pfPick .card { pointer-events: none; }
.pfPick .card .meta b { font-size: .62rem; }
.pfPick.on { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 18px -2px var(--accent); }
.pfPickNo { position: absolute; bottom: -7px; right: -7px; z-index: 3; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #12101a; font-size: .8rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }

/* ===== v183 : classement sur téléphone, le titre ne doit plus écraser le pseudo ===== */
.rankName .nmText { min-width: 0; }
@media (max-width: 640px) {
  .rankName .nm { flex-wrap: wrap; row-gap: .1rem; column-gap: .45rem; }
  .rankName .nmText { flex: 0 1 auto; overflow-wrap: break-word; word-break: normal; }
  .rankName .nmTitle { flex: 1 0 100%; white-space: normal; font-size: .62em; line-height: 1.2; }
}
