/* =========================================================
   CreatorCards! — feuille de style
   Thème sombre par défaut (panneaux arrondis, titres très gras en italique,
   appels à l'action orange), thème clair en option.
   Aucune image ni emoji : toutes les icônes sont des SVG (Lucide).
   ========================================================= */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(/fonts/nunito-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: italic; font-weight: 700 900; font-display: swap; src: url(/fonts/nunito-latin-italic.woff2) format('woff2'); }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #f4f5f8; --bg-glow: rgba(167, 139, 250, .22); --surface: #ffffff; --surface2: #eef0f4; --surface3: #e3e6ed;
  --line: rgba(20, 22, 40, .08); --line2: rgba(20, 22, 40, .14);
  --text: #14161c; --muted: #5c6172; --dim: #8b90a1;
  --accent: #ea580c; --accent2: #ff8a3d;
  --cta: linear-gradient(90deg, #ff7a35 0%, #ff9f2e 45%, #ffcf3f 100%);
  --pink: #ff4d8d; --green: #16a34a; --red: #dc2626; --violet: #7c5cff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .16);
  --r-common: #8e97a6; --r-uncommon: #1fb57a; --r-rare: #3b82f6; --r-epic: #a855f7; --r-legendary: #ff9f1c; --r-mythic: #2dd4bf; --r-secret: #fcd34d;
  --radius: 24px;
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e0f14; --bg-glow: rgba(124, 92, 255, .2); --surface: #171922; --surface2: #1f2230; --surface3: #2a2e3e;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --text: #f2f3f8; --muted: #a6abbd; --dim: #767b8f;
  --accent: #ff8a3d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.55 var(--font); min-height: 100vh; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
a { color: var(--accent); text-decoration: none; font-weight: 700; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 900; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-style: italic; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; } h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; } .ok { color: var(--green); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--text); color: var(--surface); padding: .5rem 1rem; border-radius: 10px; }
:focus-visible { outline: 3px solid rgba(255, 138, 61, .55); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Icônes SVG */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ic.inl { width: 1em; height: 1em; vertical-align: -.14em; }
.ic.h-ic { color: var(--accent); width: 1.05em; height: 1.05em; margin-right: .2em; }
.ic.h-ic.ok, .ic.ok { color: var(--green); }

/* ============ Barre du haut ============ */
#topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tb-inner { max-width: 1360px; margin: auto; display: flex; align-items: center; gap: 1.4rem; padding: 0 1.25rem; height: 76px; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none !important; }
.logo.center { justify-content: center; margin-bottom: 1.2rem; }
.logo-img { height: 64px; width: auto; display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25)); }
.logo-tag { font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: 7.5rem; line-height: 1.15; }
.logo.center { flex-direction: column; gap: .4rem; }
.logo.center .logo-img { height: 120px; }
.hero-logo { display: block; height: clamp(120px, 16vw, 180px); width: auto; margin: 0 0 1rem -6px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)); }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c5cff, #ff4d8d 55%, #ff9f2e); transform: rotate(-7deg); box-shadow: 0 6px 16px rgba(255, 77, 141, .35); }
.logo-mark .ic { width: 22px; height: 22px; }
.logo-txt { display: flex; flex-direction: column; font-weight: 900; font-style: italic; font-size: 1.45rem; line-height: .95; letter-spacing: .01em; }
.logo-txt small { font-size: .62rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tb-links { display: flex; gap: .2rem; flex: 1; }
.tb-links a { color: var(--text); padding: .5rem .75rem; border-radius: 12px; font-weight: 800; font-size: 1rem; white-space: nowrap; text-decoration: none; }
.tb-links a:hover { background: var(--surface2); }
.tb-links a.on { color: var(--accent); }
.tb-right { display: flex; align-items: center; gap: .55rem; position: relative; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); color: var(--text); font-weight: 700; font-size: .95rem; white-space: nowrap; text-decoration: none !important; }
.pill b { font-weight: 900; }
.pill .ic { color: var(--accent); }
a.pill:hover { border-color: var(--accent); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .08); } }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line2); color: var(--text); cursor: pointer; position: relative; }
.round-btn .ic { width: 20px; height: 20px; }
.round-btn[data-theme-toggle] .ic { color: #f59e0b; }
.round-btn:hover, .round-btn.on { border-color: var(--accent); }
.round-btn .dot { position: absolute; top: -4px; right: -4px; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 900; border-radius: 999px; padding: 0 .38rem; min-width: 20px; height: 20px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.me-btn { background: none; border: 0; cursor: pointer; padding: 0; border-radius: 50%; }
.me-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: .45rem; display: flex; flex-direction: column; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: .6rem; color: var(--text); padding: .6rem .75rem; border-radius: 12px; text-align: left; background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.me-menu a .ic, .me-menu button .ic { color: var(--muted); }
.me-menu a:hover, .me-menu button:hover { background: var(--surface2); }
.me-head { display: flex; gap: .7rem; align-items: center; padding: .55rem .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.me-head small { display: block; color: var(--muted); }

/* Navigation mobile */
#bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); }
#bottomnav a, #bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--dim); font-size: .7rem; font-weight: 800; padding: .25rem 0; background: none; border: 0; font-family: inherit; position: relative; cursor: pointer; text-decoration: none; }
#bottomnav .ic { width: 23px; height: 23px; }
#bottomnav .on { color: var(--accent); }
.dot-s { position: absolute; top: 2px; right: 30%; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }

/* ============ Mise en page ============ */
main { outline: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 1.8rem 1.25rem 4rem; animation: pageIn .35s ease-out; position: relative; }
.page-home { overflow-x: clip; }
.page-home::before { content: ''; position: absolute; z-index: -1; right: 0; top: -4rem; width: 60%; height: 720px; background: radial-gradient(closest-side, var(--bg-glow), transparent); pointer-events: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-h h1 { margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.page-h p { flex-basis: 100%; margin: 0; }
.h2 { font-size: 1.4rem; font-style: italic; margin: 2.2rem 0 1rem; display: flex; align-items: center; gap: .4rem; }
.sec-title { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-style: italic; font-weight: 900; line-height: 1.05; margin: 0 0 1.6rem; }
.display { font-size: clamp(2rem, 4vw, 3rem); }
.label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 1.3rem 0 .6rem; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1rem; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.panel-h h3 { margin: 0; display: flex; align-items: center; }
.panel-h a { font-size: .9rem; }
.row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.row.center { justify-content: center; }
.row-end { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; margin-top: 1.1rem; }
.back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1rem; color: var(--muted); }
.span2 { grid-column: span 2; }
.wide { grid-column: 1 / -1; }
.hscroll { display: flex; gap: .8rem; overflow-x: auto; padding: 1.6rem .2rem .9rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.tray { background: var(--surface2); border-radius: 18px; padding: 1rem; }
ul.clean { list-style: none; padding: 0; margin: 0; } ul.clean li { padding: .35rem 0; }
.ic-list li { display: flex; gap: .6rem; align-items: center; } .ic-list .ic { color: var(--accent); }

/* ============ Boutons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .72rem 1.35rem; border-radius: 999px; border: 1px solid transparent; background: var(--surface2); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; transition: transform .12s, filter .15s, box-shadow .2s; text-decoration: none !important; white-space: nowrap; line-height: 1.2; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }
.btn.cta { background: var(--cta); color: #fff; text-shadow: 0 1px 2px rgba(150, 60, 0, .35); box-shadow: 0 10px 24px rgba(255, 138, 40, .35); }
.btn.cta:hover { box-shadow: 0 14px 30px rgba(255, 138, 40, .45); }
.btn.primary, .btn.dark { background: var(--text); color: var(--surface); }
.btn.ghost { background: var(--surface); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { padding: .45rem .9rem; font-size: .88rem; }
.btn.lg { padding: 1rem 1.8rem; font-size: 1.2rem; font-weight: 900; }
.btn.block { width: 100%; }
.btn.busy { position: relative; color: transparent !important; text-shadow: none; }
.btn.busy > * { visibility: hidden; }
.btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(127, 127, 127, .35); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.linkish { background: none; border: 0; padding: .4rem 0 0; font: inherit; font-weight: 800; color: var(--text); text-decoration: underline; cursor: pointer; font-size: .9rem; }

/* ============ Formulaires ============ */
.form { display: flex; flex-direction: column; gap: .9rem; }
.form.grid2, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 800; font-size: .92rem; }
label small, label em { font-weight: 600; color: var(--muted); font-style: normal; }
input, select, textarea { font: inherit; font-weight: 600; color: var(--text); background: var(--surface); border: 1.5px solid var(--line2); border-radius: 14px; padding: .65rem .85rem; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 4px rgba(255, 138, 61, .18); }
input[type=color] { padding: 3px; height: 44px; }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.check { flex-direction: row; align-items: center; gap: .6rem; font-weight: 600; }
fieldset { border: 1.5px solid var(--line2); border-radius: 16px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .45rem; }
legend { font-weight: 800; font-size: .92rem; padding: 0 .35rem; }
.form-err { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); padding: .6rem .8rem; border-radius: 12px; margin: 0; font-size: .92rem; font-weight: 700; }
.alert { background: color-mix(in srgb, var(--violet) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 25%, transparent); border-radius: 16px; padding: .8rem 1.05rem; margin: 0 0 1rem; font-weight: 600; }
.alert.warn { background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 40%, transparent); }
.alert.hot { background: color-mix(in srgb, var(--accent2) 12%, var(--surface)); border-color: color-mix(in srgb, var(--accent2) 45%, transparent); }
.search { position: relative; flex-direction: row; }
.search .ic { position: absolute; left: .85rem; top: 50%; translate: 0 -50%; color: var(--dim); }
.search input { padding-left: 2.5rem; }

/* Pastilles, tags */
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 900; padding: .25rem .65rem; border-radius: 999px; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.tag .ic { width: 1em; height: 1em; }
.tag.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.tag.danger { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.tag.pink { background: var(--pink); color: #fff; }
.tag.new { background: #16a34a; color: #fff; }
.tag.dupe { background: #2a2d3a; color: #e5e7eb; }
.tag.abs { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); z-index: 5; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); font-size: .66rem; }
.count { background: var(--pink); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; font-weight: 900; }
.rpill { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .8rem; border-radius: 999px; font-size: .84rem; font-weight: 900; color: #fff; background: var(--rc); white-space: nowrap; box-shadow: 0 3px 10px color-mix(in srgb, var(--rc) 35%, transparent); letter-spacing: .01em; }
.rpill .ic { width: .95em; height: .95em; }
.rpill.r-mythic { background: linear-gradient(90deg, #2dd4bf, #6366f1 60%, #a855f7); }
.rpill.r-secret { background: #15161c; color: #fcd34d; box-shadow: 0 0 0 1.5px #fcd34d inset, 0 3px 10px rgba(252, 211, 77, .3); }
.rdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rc); flex: none; }
.rdot.r-mythic { background: linear-gradient(135deg, #2dd4bf, #a855f7); } .rdot.r-secret { background: #15161c; box-shadow: 0 0 0 2px #fcd34d inset; }
.r-common { --rc: var(--r-common); } .r-uncommon { --rc: var(--r-uncommon); } .r-rare { --rc: var(--r-rare); } .r-epic { --rc: var(--r-epic); }
.r-legendary { --rc: var(--r-legendary); } .r-mythic { --rc: var(--r-mythic); } .r-secret { --rc: var(--r-secret); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.3rem; }
.bar { height: 10px; background: var(--surface2); border-radius: 999px; overflow: hidden; margin: .45rem 0; }
.bar.sm { height: 7px; }
.bar i { display: block; height: 100%; background: var(--cta); border-radius: inherit; transition: width .6s cubic-bezier(.2, .8, .2, 1); }

/* Onglets & segments */
.tabs { display: flex; gap: .3rem; margin: 0 0 1.1rem; border-bottom: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 800; padding: .7rem .95rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.tabs button.on { color: var(--text); border-color: var(--accent2); }
.seg { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.seg button { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface); border: 1.5px solid var(--line2); color: var(--text); font: inherit; font-weight: 800; padding: .55rem 1rem; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--surface); border-color: var(--text); }

/* Loader / vide */
.loader { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 4rem 1rem; color: var(--muted); font-weight: 700; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3.5px solid var(--surface3); border-top-color: var(--accent2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-ico { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--accent); }
.empty-ico .ic { width: 30px; height: 30px; }
.empty h3 { color: var(--text); }

/* Avatars */
.avatar { --s: 40px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--ac) 65%, white), var(--ac) 60%, color-mix(in srgb, var(--ac) 70%, black)); position: relative; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--ac) 40%, transparent); vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.has-photo { background: var(--surface2); }
.avatar .ic { width: 52%; height: 52%; stroke-width: 2.2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.avatar.frame_neon { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #22d3ee, 0 0 16px #22d3ee, 0 0 26px rgba(255, 77, 141, .55); }
.avatar.frame_gold { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px #f59e0b, 0 0 18px rgba(245, 158, 11, .55); }
.avatar.frame_meme { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px #78716c; }
.avatar.frame_holo::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; z-index: -1; background: conic-gradient(from var(--ang), #2dd4bf, #6366f1, #a855f7, #ff4d8d, #ff9f1c, #2dd4bf); animation: rot 4s linear infinite; }
@keyframes rot { to { --ang: 360deg; } }

/* ============ CARTES (toujours sur fond sombre, comme une vraie carte) ============ */
.card { --w: 200px; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --rc: var(--r-common); --rcl: #d6dae2;
  --frame: linear-gradient(160deg, #e5e8ee, #9aa3b2 50%, #cfd4dc); --glow: 0 0 0 transparent;
  width: var(--w); aspect-ratio: 63 / 88; position: relative; flex: none; container-type: inline-size; perspective: 900px; user-select: none; -webkit-user-select: none; }
.card.clickable, .case { cursor: pointer; }
.card-inner { position: absolute; inset: 0; border-radius: 5cqw; padding: 1.8cqw; background: var(--frame); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; box-shadow: 0 8px 20px rgba(10, 12, 30, .28), var(--glow); overflow: hidden; isolation: isolate; }
.card.tilt.active .card-inner { transition: transform .08s linear; }
.card-face { position: relative; height: 100%; border-radius: 3.6cqw; background: #0e0f16; overflow: hidden; }
.card-art { position: absolute; left: 0; right: 0; top: 0; height: 66%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .32), transparent 52%), linear-gradient(150deg, var(--c1), var(--c2)); }
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 46cqw; height: 46cqw; margin-top: 6cqw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 65%, transparent 70%); }
.art-icon .ic { width: 30cqw; height: 30cqw; color: #fff; stroke-width: 1.7; filter: drop-shadow(0 1.2cqw 2cqw rgba(0, 0, 0, .45)); }
.art-rays { position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg at 50% 52%, rgba(255, 255, 255, .07) 0 7deg, transparent 7deg 18deg); }
.art-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, #0e0f16 92%); }
.card-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 3cqw 4cqw 6cqw; text-align: center; background: linear-gradient(rgba(6, 7, 14, .62), transparent); }
.card-rl { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; font-size: 3.5cqw; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--rcl); }
.stars { display: inline-flex; gap: .4cqw; }
.stars .ic { width: 3.3cqw; height: 3.3cqw; fill: currentColor; stroke: none; }
.card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1.2cqw; font-size: 8.6cqw; font-weight: 900; line-height: 1.04; color: #fff; text-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .6); letter-spacing: -.01em; }
.card-flag { position: absolute; z-index: 2; right: 3cqw; top: 52%; font-size: 3.2cqw; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; background: #ff4d8d; color: #fff; padding: .8cqw 2cqw; border-radius: 999px; }
.card-bottom { position: absolute; z-index: 2; left: 3.4cqw; right: 3.4cqw; top: 59%; bottom: 2.6cqw; display: flex; flex-direction: column; }
.card-no { display: flex; align-items: center; gap: 2cqw; font-size: 3.3cqw; color: #c7c9db; font-weight: 800; white-space: nowrap; }
.card-no i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
.card-desc { margin-top: 1.8cqw; flex: 1; min-height: 0; background: rgba(12, 14, 26, .9); border: .5cqw solid color-mix(in srgb, var(--rc) 45%, rgba(255, 255, 255, .1)); border-radius: 2.6cqw; padding: 2.2cqw 3cqw; font-size: 4.2cqw; font-weight: 700; line-height: 1.28; color: #e8e9f3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.card-foot { display: flex; justify-content: space-between; gap: 2cqw; font-size: 3cqw; color: #8d90a8; padding: 1.4cqw .8cqw 0; font-weight: 800; }
.card-foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-count { position: absolute; bottom: -7px; right: -7px; z-index: 4; background: var(--text); color: var(--surface); font-weight: 900; font-size: .78rem; padding: .12rem .5rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.card-status { position: absolute; top: 40%; left: -4%; right: -4%; z-index: 4; text-align: center; background: var(--red); color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; transform: rotate(-14deg); padding: .2rem; }
.holo, .glare, .sparkles { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; }
.glare { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .38), transparent 45%); opacity: 0; mix-blend-mode: overlay; transition: opacity .3s; }
.card.tilt.active .glare { opacity: 1; }

/* Raretés */
.card.r-uncommon { --rc: var(--r-uncommon); --rcl: #8ff0c5; --frame: linear-gradient(160deg, #a7f3d0, #10b981 45%, #0f766e); --glow: 0 0 10px rgba(16, 185, 129, .35); }
.card.r-rare { --rc: var(--r-rare); --rcl: #bfdbfe; --frame: linear-gradient(160deg, #dbeafe, #3b82f6 35%, #1d4ed8 65%, #93c5fd); --glow: 0 0 16px rgba(59, 130, 246, .5); }
.card.r-epic { --rc: var(--r-epic); --rcl: #f0d9ff; --frame: linear-gradient(160deg, #f5d0fe, #a855f7 35%, #7c3aed 60%, #ec4899); --glow: 0 0 22px rgba(168, 85, 247, .55); }
.card.r-epic .holo, .card.r-legendary .holo, .card.r-mythic .holo, .card.r-secret .holo {
  background: linear-gradient(115deg, transparent 20%, rgba(255, 0, 170, .32) 32%, rgba(0, 255, 255, .32) 44%, rgba(255, 255, 0, .28) 56%, rgba(0, 255, 140, .28) 66%, transparent 80%);
  background-size: 250% 250%; background-position: var(--mx) var(--my); mix-blend-mode: color-dodge; opacity: .3; transition: opacity .3s; }
.card.r-epic.tilt.active .holo { opacity: .65; }
.card.r-legendary { --rc: var(--r-legendary); --rcl: #ffe3a3; --frame: linear-gradient(160deg, #fff4c2, #ffb020 25%, #d97706 55%, #fde68a 80%, #b45309); --glow: 0 0 26px rgba(255, 159, 28, .65); }
.card.r-legendary .card-inner::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 247, 200, .5) 50%, transparent 60%); background-size: 300% 100%; animation: sweep 3.2s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
.card.r-mythic { --rc: #67e8f9; --rcl: #a5f3fc; --frame: conic-gradient(from var(--ang), #2dd4bf, #6366f1, #a855f7, #ff4d8d, #ff9f1c, #2dd4bf); --glow: 0 0 28px rgba(45, 212, 191, .55), 0 0 44px rgba(168, 85, 247, .35); }
.card.r-mythic .card-inner { animation: rot 4s linear infinite; }
.card.r-mythic .holo { opacity: .5; animation: holoShift 6s linear infinite; }
.card.r-mythic .card-name { background: linear-gradient(90deg, #a5f3fc, #ffffff, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes holoShift { to { background-position: 250% 250%; } }
.sparkles { z-index: 4; background-image: radial-gradient(circle, #fff 0 1px, transparent 1.6px), radial-gradient(circle, #fff 0 1px, transparent 1.6px), radial-gradient(circle, #fde68a 0 1.2px, transparent 2px); background-size: 37% 29%, 23% 41%, 31% 33%; background-position: 10% 20%, 70% 60%, 40% 90%; animation: twinkle 2.4s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes twinkle { 0% { opacity: .2; background-position: 10% 20%, 70% 60%, 40% 90%; } 100% { opacity: .9; background-position: 14% 16%, 66% 64%, 44% 86%; } }
/* Secrète : onyx et or, motif de lignes concentriques */
.card.r-secret { --rc: #fcd34d; --rcl: #fde68a; --frame: conic-gradient(from var(--ang), #1a1a1a, #fcd34d, #78350f, #fef3c7, #1a1a1a, #fcd34d, #1a1a1a); --glow: 0 0 28px rgba(252, 211, 77, .6); }
.card.r-secret .card-inner { animation: rot 6s linear infinite; }
.card.r-secret .card-face { background: #07070a; }
.card.r-secret .card-art { background: repeating-radial-gradient(circle at 70% 20%, rgba(252, 211, 77, .22) 0 1px, transparent 1px 7cqw), repeating-linear-gradient(90deg, rgba(252, 211, 77, .08) 0 1px, transparent 1px 6cqw), linear-gradient(150deg, #1b1b20, #050507); }
.card.r-secret .art-icon .ic { color: #fcd34d; filter: drop-shadow(0 0 3cqw rgba(252, 211, 77, .6)); }
.card.r-secret .art-fade { background: linear-gradient(transparent, #07070a 92%); }
.card.r-secret .card-name { background: linear-gradient(90deg, #fde68a, #fff, #fcd34d, #fde68a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 3s linear infinite; }
.card.r-secret .card-desc { background: rgba(10, 10, 12, .92); }
.card.r-secret .holo { opacity: .35; mix-blend-mode: screen; animation: holoShift 4s linear infinite; }
@keyframes slide { to { background-position: 200% 0; } }

/* Carte manquante : silhouette */
.card.missing .card-inner { animation: none !important; background: #3a3d4a !important; box-shadow: 0 6px 14px rgba(10, 12, 30, .18) !important; }
.card.missing .card-face { background: #1b1c24; }
.card.missing .card-art { background: #23242e !important; }
.card.missing .art-icon { background: none; }
.card.missing .art-icon .ic { color: #000; opacity: .5; filter: none; }
.card.missing .card-art img { filter: brightness(0); opacity: .5; }
.card.missing .art-rays, .card.missing .holo, .card.missing .sparkles, .card.missing .card-inner::after { display: none; }
.card.missing .art-fade { background: linear-gradient(transparent, #1b1c24 92%); }
.card.missing .card-head { background: none; }
.card.missing .card-name { color: #8a8da0 !important; background: none !important; text-shadow: none; animation: none; }
.card.missing .card-rl { color: #6b6e80; }
.card.missing .card-desc, .card.missing .card-no, .card.missing .card-foot { opacity: .3; }
.card.missing .card-flag { opacity: .5; }
.card.masked .card-desc { font-style: italic; }
.card.retired .card-inner { filter: grayscale(.7); }

/* Dos de carte */
.card-back { --w: 200px; width: var(--w); aspect-ratio: 63 / 88; border-radius: calc(var(--w) * .05); padding: calc(var(--w) * .03); background: linear-gradient(150deg, #7c5cff, #ff4d8d 55%, #ff9f2e); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); position: relative; }
.cb-inner { height: 100%; border-radius: calc(var(--w) * .035); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .14), transparent 55%), repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, .05) 0 8deg, transparent 8deg 20deg), #14121f; }
.cb-logo { width: 82%; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); user-select: none; -webkit-user-drag: none; }
.cb-txt { font-weight: 900; font-style: italic; letter-spacing: .18em; font-size: calc(var(--w) * .085); color: #fff; }
.card-back.hint-rare { box-shadow: 0 0 24px rgba(59, 130, 246, .8); }
.card-back.hint-epic { box-shadow: 0 0 30px rgba(168, 85, 247, .9); }
.card-back.hint-legendary { box-shadow: 0 0 38px rgba(255, 159, 28, 1); animation: pulse 1.2s ease-in-out infinite; }
.card-back.hint-mythic, .card-back.hint-secret { animation: pulseRainbow 1.4s linear infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 60px rgba(255, 159, 28, 1); } }
@keyframes pulseRainbow { 0% { box-shadow: 0 0 40px #2dd4bf; } 33% { box-shadow: 0 0 52px #a855f7; } 66% { box-shadow: 0 0 52px #fcd34d; } 100% { box-shadow: 0 0 40px #2dd4bf; } }

/* ============ Vitrines ============ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.4rem; max-width: 1040px; margin: 0 auto 1rem; }
.case-grid.dense { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 1.4rem 1rem; max-width: none; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 12px 12px 18px; box-shadow: var(--shadow); text-align: center; position: relative; transition: transform .2s, box-shadow .2s; }
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case-stage { position: relative; background: var(--surface2); border-radius: 20px; padding: 26px 12px; display: flex; justify-content: center; }
.case .card { width: 60%; max-width: 190px; }
.case.compact .case-stage { padding: 20px 10px; }
.case.compact .card { width: 78%; }
.case-tag { position: absolute; top: -12px; left: 12px; z-index: 6; background: #4b5263; color: #fff; font-weight: 900; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); }
.case-tag.pink { background: var(--pink); } .case-tag.green { background: var(--green); }
.case-pill { position: absolute !important; right: 12px; bottom: -13px; z-index: 6; }
.case-name { margin: 1.25rem .5rem .25rem; font-size: 1.15rem; font-weight: 900; line-height: 1.2; }
.case.compact .case-name { font-size: .98rem; margin-top: 1.15rem; }
.case-desc { color: var(--muted); font-size: .94rem; margin: 0 .6rem; line-height: 1.45; }
.case-meta { color: var(--muted); font-size: .82rem; font-weight: 700; margin: 0; }
.case.is-missing .case-name { color: var(--dim); }

/* ============ Accueil ============ */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; min-height: 72vh; padding: .5rem 0 2rem; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--surface); border: 1px solid var(--line2); padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.02; margin-bottom: .6rem; }
.hero-sub { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; font-style: italic; color: var(--accent); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; line-height: 1.6; }
.lead b { color: var(--text); }
.hero-pack { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.hp-title { font-style: italic; font-size: 1.7rem; margin: 0; }
.hp-card { width: 100%; max-width: 460px; padding: 1.6rem 1.4rem 1.4rem; text-align: center; border-radius: 30px; }
.hp-pack { display: inline-block; text-decoration: none !important; }
.hp-pack .pack { --pw: 180px; }
.hp-desc { font-weight: 800; font-size: 1.12rem; margin: 1.1rem 0 .6rem; }
.hp-odds { font-size: .8rem; color: var(--muted); margin: 0 0 1.1rem; line-height: 1.5; }
.ticker { position: relative; height: 44px; width: 100%; max-width: 500px; margin: 0 auto 1rem; }
.hero-pack .ticker { margin: 0; }
.tick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none; }
.tick.on { opacity: 1; transform: none; }
.tick > * { flex: none; }
.tick > .tick-txt { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tick small { color: var(--dim); }
.tick .rpill { padding: .15rem .55rem; font-size: .74rem; }
.section { margin: 4rem 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1040px; margin: 0 auto; }
.steps .panel + .panel { margin: 0; }
.step { text-align: center; padding-top: 1.6rem; }
.step .num { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--cta); color: #fff; font-weight: 900; font-size: 1.3rem; margin-bottom: .8rem; box-shadow: 0 6px 14px rgba(255, 138, 40, .35); }
.step p { color: var(--muted); margin: 0; }
.rarity-ladder { display: grid; grid-template-columns: repeat(7, 1fr); gap: .8rem; }
.rarity-ladder .panel + .panel { margin: 0; }
.rl { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.1rem .6rem; }
.rl b { font-size: 1.45rem; font-weight: 900; margin-top: .3rem; } .rl small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.faq { margin-bottom: .8rem; } .faq h3 { margin-bottom: .35rem; } .faq p { color: var(--muted); margin: 0; }
.final-cta { max-width: 460px; margin: 0 auto; text-align: center; padding: 1.4rem; }
.final-cta p { color: var(--muted); font-weight: 700; margin: .8rem 0 1.1rem; }
.footer { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: center; color: var(--dim); font-size: .88rem; padding: 2rem 0 1rem; border-top: 1px solid var(--line); margin-top: 3rem; }
.ev-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; }
.ev-mini { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: 20px; color: #fff; text-decoration: none !important; background: linear-gradient(120deg, var(--c1), var(--c2)); box-shadow: var(--shadow); }
.ev-mini:hover { filter: brightness(1.08); color: #fff; }
.ev-mini b { font-weight: 900; } .ev-mini small { display: block; opacity: .9; font-weight: 600; }
.ev-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; }
.ev-ic .ic { width: 24px; height: 24px; }
.ev-ic.big { width: 72px; height: 72px; border-radius: 20px; } .ev-ic.big .ic { width: 38px; height: 38px; }

/* Auth */
.auth { min-height: 70vh; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; padding: 2.2rem 1.8rem; border-radius: 30px; }
.auth-card h1 { text-align: center; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .92rem; }
.code-box { display: flex; align-items: center; gap: .7rem; background: var(--surface2); border: 2px dashed var(--accent2); border-radius: 16px; padding: .8rem 1rem; margin: .6rem 0; flex-wrap: wrap; }
.code-box span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.code-box code { font-size: 1.2rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); flex: 1; }

/* Tableau de bord */
.dash-head { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dh-user { display: flex; align-items: center; gap: 1rem; } .dh-user h1 { margin: 0; } .dh-user p { margin: .1rem 0 0; }
.lvl { min-width: 280px; flex: 0 1 380px; padding: .9rem 1.1rem; }
.lvl-top { display: flex; justify-content: space-between; font-size: .92rem; } .lvl-top span { color: var(--muted); font-weight: 700; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.dash-grid .panel + .panel { margin: 0; }
.daily-panel { grid-column: span 2; display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; overflow: hidden; }
.daily-panel h2 { font-style: italic; margin: .5rem 0 .4rem; }
.daily-panel.ready { background: radial-gradient(circle at 85% 50%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent 55%), var(--surface); border-color: color-mix(in srgb, var(--accent2) 40%, transparent); }
.dp-pack { flex: none; padding: .4rem 1rem; text-decoration: none !important; } .dp-pack .pack { --pw: 140px; }
.ring-row { display: flex; gap: 1rem; align-items: center; } .ring-row p { margin: 0; }
.ring { --p: 0; width: 88px; height: 88px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent2) calc(var(--p) * 360deg), var(--surface2) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-weight: 900; font-size: 1.1rem; }
.mini-missions, .notif-mini { list-style: none; padding: 0; margin: 0; }
.mini-missions li { display: flex; align-items: center; gap: .55rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; font-weight: 700; }
.mini-missions li span { flex: 1; } .mini-missions li .ic { color: var(--dim); }
.mini-missions li small { color: var(--muted); font-weight: 800; }
.mini-missions li.done { color: var(--dim); text-decoration: line-through; } .mini-missions li.done .ic { color: var(--green); }
.mini-missions li.ready .ic { color: var(--accent); }
.notif-mini li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; display: flex; flex-direction: column; }
.notif-mini a { color: var(--muted); font-weight: 600; }
.notif-mini li.unread a { color: var(--text); font-weight: 800; }
.notif-mini small { color: var(--dim); }

/* Collection */
.coll-stats { display: flex; gap: .7rem; flex-wrap: wrap; }
.coll-stats .panel { padding: .65rem 1rem; margin: 0; display: flex; flex-direction: column; min-width: 110px; }
.coll-stats b { font-size: 1.4rem; font-weight: 900; line-height: 1.1; } .coll-stats b small { font-size: .9rem; color: var(--dim); }
.coll-stats span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.rar-progress { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.rp { display: inline-flex; gap: .4rem; align-items: center; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--rc) 45%, transparent); color: var(--text); border-radius: 999px; padding: .38rem .9rem; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; }
.rp b { color: var(--rc); font-weight: 900; }
.rp.r-mythic b { color: #14b8a6; } .rp.r-secret b { color: #b45309; }
.filters { display: grid; grid-template-columns: 2fr repeat(6, 1fr); gap: .55rem; margin-bottom: .7rem; padding: .8rem; }
.filters input, .filters select { padding: .55rem .7rem; font-size: .9rem; }
.series-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 1.1rem; }
.series-list .panel + .panel { margin: 0; }
.series.complete { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.series-h { display: flex; justify-content: space-between; gap: 1rem; } .series-h h3 { margin: 0 0 .2rem; display: flex; align-items: center; }
.series-n { font-size: 1.1rem; white-space: nowrap; font-weight: 800; } .series-n b { font-size: 1.7rem; }
.rw-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .6rem 0; }

/* Fiche carte / aperçu */
.card-detail { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 2.5rem; align-items: start; }
.case-stage.big { position: sticky; top: 100px; padding: 2.4rem 1.5rem; border-radius: 30px; box-shadow: inset 0 0 0 1px var(--line); }
.cd-info h1 { margin: .7rem 0 .5rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; font-weight: 800; }
.kv dd.pre { white-space: pre-wrap; font-weight: 500; }
.actions { margin: 1.4rem 0 1rem; }
.qv { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.qv-stage { background: var(--surface2); border-radius: 24px; padding: 1.6rem; }
.qv-info h2 { margin: .7rem 0 .5rem; font-style: italic; font-size: 1.8rem; }
.qv-info .kv { margin: 1rem 0 1.2rem; }

/* Profil */
.profile-h { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ph-info { flex: 1; min-width: 220px; } .ph-info h1 { margin: 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .ph-info p { margin: .2rem 0; }
.ph-title { color: var(--accent); font-weight: 900; font-style: italic; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.1rem; }
.stat-grid .panel + .panel { margin: 0; }
.stat { display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.1rem; }
.stat-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent2) 14%, transparent); color: var(--accent); margin-bottom: .35rem; }
.stat b { font-size: 1.6rem; font-weight: 900; line-height: 1.1; } .stat small { color: var(--muted); font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.profile-grid .panel + .panel { margin: 0; }
.profile-grid h3 { display: flex; align-items: center; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .65rem; }
.badge { background: var(--surface2); border-radius: 18px; padding: .75rem .45rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.badge span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; box-shadow: 0 4px 10px rgba(255, 138, 40, .3); }
.badge span .ic { width: 22px; height: 22px; }
.badge small { font-size: .74rem; font-weight: 800; line-height: 1.2; }
.badge.locked { opacity: .55; } .badge.locked span { background: var(--surface3); color: var(--dim); box-shadow: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0 .5rem 1.1rem; border-left: 2px solid var(--surface3); position: relative; font-size: .92rem; font-weight: 600; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: .85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); }
.timeline small { color: var(--dim); white-space: nowrap; }

/* Classements */
.my-rank { background: color-mix(in srgb, var(--accent2) 10%, transparent); border-radius: 14px; padding: .65rem 1rem; margin-bottom: .9rem; font-weight: 700; }
.lb { list-style: none; padding: 0; margin: 0; }
.lb li { display: flex; align-items: center; gap: .9rem; padding: .65rem .6rem; border-bottom: 1px solid var(--line); border-radius: 14px; }
.lb li.me { background: color-mix(in srgb, var(--accent2) 10%, transparent); }
.lb-rank { width: 2.3rem; text-align: center; font-weight: 900; font-size: 1.1rem; color: var(--muted); display: grid; place-items: center; }
.lb li.top .lb-rank .ic { width: 26px; height: 26px; }
.lb li.top1 .lb-rank { color: #f59e0b; } .lb li.top2 .lb-rank { color: #94a3b8; } .lb li.top3 .lb-rank { color: #c2410c; }
.lb-name { flex: 1; color: var(--text); font-weight: 900; display: flex; flex-direction: column; min-width: 0; }
.lb-name small { color: var(--muted); font-weight: 600; }
.lb-val { text-align: right; font-weight: 900; font-size: 1.15rem; display: flex; flex-direction: column; } .lb-val small { color: var(--muted); font-weight: 600; font-size: .74rem; }

/* Événements */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1.1rem; }
.events .panel + .panel { margin: 0; }
.event { overflow: hidden; padding: 0; }
.ev-banner { display: flex; gap: 1rem; align-items: center; padding: 1.3rem 1.4rem; color: #fff; background: radial-gradient(circle at 92% 0%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(120deg, var(--c1), var(--c2)); }
.ev-banner h2 { margin: .35rem 0; font-style: italic; }
.ev-banner p { margin: 0; font-size: .9rem; opacity: .95; font-weight: 600; }
.ev-banner .tag { background: rgba(0, 0, 0, .3); color: #fff; }
.ev-cd b { font-variant-numeric: tabular-nums; }
.ev-body { padding: 1.1rem 1.4rem 1.3rem; }
.event.ended { opacity: .7; }
.calendar { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .6rem; }
.calendar li { display: flex; gap: 1rem; align-items: center; padding: .7rem 1rem; margin: 0; border-left: 5px solid var(--c2); }
.calendar li .ev-ic { background: linear-gradient(120deg, var(--c1), var(--c2)); }
.calendar small { display: block; color: var(--muted); font-weight: 600; }
.cal-date { text-align: center; min-width: 50px; } .cal-date b { display: block; font-size: 1.6rem; line-height: 1; } .cal-date span { font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 800; }
details.ended summary { cursor: pointer; color: var(--muted); margin: 2rem 0 1rem; font-weight: 800; }

/* Missions */
.missions { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.missions .panel + .panel { margin: 0; }
.mission { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; }
.m-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); }
.mission.ready { border-color: color-mix(in srgb, var(--accent2) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 15%, transparent), var(--shadow); }
.mission.ready .m-ic { background: var(--cta); color: #fff; }
.mission.claimed { opacity: .6; }
.m-main small { display: block; color: var(--muted); font-weight: 600; }
.m-rw { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.rw { display: inline-flex; align-items: center; gap: .3rem; background: var(--surface2); border-radius: 999px; padding: .25rem .65rem; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.rw .ic { color: var(--accent); }

/* Notifications */
.notif-list { list-style: none; margin: 0; padding: .6rem; }
.notif-list li { display: flex; gap: .9rem; padding: .8rem .9rem; border-radius: 16px; align-items: flex-start; }
.notif-list li.unread { background: color-mix(in srgb, var(--accent2) 9%, transparent); }
.ni { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); }
.notif-list a { color: var(--text); font-weight: 700; } .notif-list small { display: block; color: var(--dim); }

/* Paramètres */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.settings-grid .panel + .panel { margin: 0; }
.avatar-edit { display: flex; align-items: center; gap: 1.1rem; background: var(--surface2); border-radius: 18px; padding: 1rem; }
.avatar-preview { display: flex; justify-content: center; }
.avatar-actions { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.avatar-actions small { color: var(--muted); font-weight: 600; }
.file-btn { flex-direction: row; cursor: pointer; }
.file-btn.busy { pointer-events: none; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .4rem; }
.icon-pick button { height: 44px; border-radius: 12px; background: var(--surface2); border: 2px solid transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-pick button.on { border-color: var(--accent2); color: var(--accent); background: color-mix(in srgb, var(--accent2) 10%, var(--surface)); }
.color-pick { display: flex; gap: .45rem; flex-wrap: wrap; }
.color-pick button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line2); cursor: pointer; }
.color-pick button.on { box-shadow: 0 0 0 3px var(--text); }
.danger-zone { border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.sess { padding-left: 0; list-style: none; } .sess li { display: flex; gap: .4rem; align-items: center; padding: .2rem 0; }

/* ============ Boosters ============ */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.2rem; }
.packs .panel + .panel { margin: 0; }
.pack-tile { display: flex; gap: 1.1rem; padding: 12px; border-radius: 28px; transition: transform .2s, box-shadow .2s; }
.pack-tile.can:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pack-tile.free { border-color: color-mix(in srgb, var(--accent2) 50%, transparent); }
.pack-tile.locked { opacity: .7; }
.pt-stage { position: relative; flex: none; background: var(--surface2); border-radius: 20px; padding: 1.2rem 1rem; display: grid; place-items: center; }
.pt-stage .pack { --pw: 104px; }
.pack-tile.can .pt-stage .pack { cursor: pointer; }
.pt-info { display: flex; flex-direction: column; min-width: 0; padding: .4rem .3rem .3rem 0; flex: 1; }
.pt-info h3 { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 900; } .pt-info p { margin: 0 0 .5rem; }
.pt-cost { font-weight: 800; font-size: .9rem; color: var(--accent); margin-top: auto !important; }
.pt-info .btn { margin-top: .3rem; }

/* Sachet de booster (aluminium) */
.pack { --pw: 220px; width: var(--pw); aspect-ratio: 5 / 8; position: relative; filter: drop-shadow(0 calc(var(--pw) * .06) calc(var(--pw) * .08) rgba(20, 15, 40, .35)); user-select: none; }
.pack-bag { position: absolute; inset: 0; overflow: hidden; background:
  radial-gradient(120% 60% at 30% 30%, rgba(255, 255, 255, .45), transparent 50%),
  linear-gradient(160deg, color-mix(in srgb, var(--c1) 70%, white), var(--c1) 35%, var(--c2) 75%, color-mix(in srgb, var(--c2) 65%, black)); }
.pack-bag::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(140% 70% at 50% 50%, transparent 60%, rgba(0, 0, 0, .35)), linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 12%, transparent 88%, rgba(0, 0, 0, .25)); z-index: 3; }
.pack-seal { position: absolute; left: 0; right: 0; height: 9%; z-index: 4; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 2px, rgba(0, 0, 0, .18) 2px 4px), linear-gradient(180deg, #e5e7eb, #9ca3af); opacity: .85; }
.pack-seal.top { top: 0; } .pack-seal.bot { bottom: 0; }
.pack-top { position: absolute; top: 0; left: 0; right: 0; height: 15%; z-index: 5; border-bottom: 2px dashed rgba(255, 255, 255, .5); transition: transform .6s cubic-bezier(.5, -.3, .6, 1), opacity .6s; }
.pack-body { position: absolute; inset: 13% 6% 11%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; text-align: center; }
.pack-logo { font-weight: 900; font-style: italic; letter-spacing: .14em; font-size: calc(var(--pw) * .07); color: #fff; background: rgba(0, 0, 0, .35); padding: .2em .7em; border-radius: 999px; }
.pack-ic { width: calc(var(--pw) * .42); height: calc(var(--pw) * .42); border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06) 70%); box-shadow: 0 0 0 calc(var(--pw) * .012) rgba(255, 255, 255, .5); }
.pack-ic .ic { width: 58%; height: 58%; stroke-width: 2; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.pack-name { font-weight: 900; font-style: italic; font-size: calc(var(--pw) * .1); line-height: 1.02; color: #fff; text-transform: uppercase; letter-spacing: -.01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 calc(var(--pw) * .04) rgba(0, 0, 0, .35); -webkit-text-stroke: calc(var(--pw) * .004) rgba(0, 0, 0, .35); }
.pack-n { font-size: calc(var(--pw) * .058); font-weight: 900; color: #fff; background: rgba(255, 255, 255, .22); padding: .15em .7em; border-radius: 999px; }
.pack-foil { position: absolute; inset: 0; z-index: 1; background: conic-gradient(from var(--ang) at 50% 45%, rgba(255, 0, 150, .25), rgba(0, 220, 255, .25), rgba(255, 230, 0, .22), rgba(120, 255, 120, .2), rgba(255, 0, 150, .25)); mix-blend-mode: overlay; animation: rot 9s linear infinite; pointer-events: none; }
.pack-shine { position: absolute; inset: 0; z-index: 4; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 47%, transparent 58%); background-size: 260% 100%; animation: foil 4.5s ease-in-out infinite; mix-blend-mode: overlay; pointer-events: none; }
@keyframes foil { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.pack.wobble, .pack-tile.can:hover .pack.hover-wobble { animation: wobble 2.6s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-8px); } }

/* Scène d'ouverture (toujours sombre et immersive) */
.stage { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 4.5rem 1rem 2rem; overflow-y: auto; color: #fff; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c1) 50%, #0b0a14), #06050b 72%); opacity: 0; transition: opacity .3s; }
.stage.show { opacity: 1; }
.stage-glow { position: absolute; inset: 0; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, .045) 0 6deg, transparent 6deg 18deg); animation: rot 40s linear infinite; }
.stage-x { position: fixed; top: 14px; right: 14px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; display: grid; place-items: center; }
.stage-title { position: relative; font-weight: 900; font-style: italic; font-size: clamp(1.3rem, 3.4vw, 2rem); text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.pack-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.pack.big { --pw: min(260px, 60vw); cursor: pointer; }
.stage-hint { display: flex; align-items: center; gap: .4rem; font-weight: 800; animation: blink 1.6s ease-in-out infinite; margin: 0; }
@keyframes blink { 50% { opacity: .5; } }
.pack.shake { animation: shake .12s linear infinite; }
@keyframes shake { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-4px, 2px) rotate(-2deg); } 50% { transform: translate(3px, -2px) rotate(2deg); } 75% { transform: translate(-2px, -3px) rotate(-1deg); } }
.pack.glow-legendary { filter: drop-shadow(0 0 40px rgba(255, 159, 28, .95)); }
.pack.glow-mythic { filter: drop-shadow(0 0 40px rgba(45, 212, 191, .9)) drop-shadow(0 0 70px rgba(168, 85, 247, .6)); }
.pack.glow-secret { filter: drop-shadow(0 0 50px rgba(252, 211, 77, 1)); }
.pack.torn { animation: none; transform: translateY(40px) scale(.9); opacity: 0; transition: transform .6s .25s ease-in, opacity .5s .3s; }
.pack.torn .pack-top { transform: translate(40px, -120px) rotate(25deg); opacity: 0; }
.deal { --w: 180px; position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem 1rem; max-width: 1100px; padding-top: 10px; }
.flip { width: var(--w); aspect-ratio: 63 / 88; perspective: 1200px; cursor: pointer; animation: dealIn .55s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * .11s); }
@keyframes dealIn { from { opacity: 0; transform: translateY(60vh) rotate(calc(var(--i) * 9deg - 20deg)) scale(.6); } }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.flip:hover:not(.revealed) .flip-inner { transform: translateY(-8px) rotateZ(-1.5deg); }
.flip.revealed .flip-inner { transform: rotateY(180deg); }
.flip-back, .flip-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { transform: rotateY(180deg); }
.flip-back .card-back, .flip-front .card { width: 100%; }
.flip.charging .flip-inner { animation: shake .09s linear infinite; }
.flip.charging .card-back { filter: brightness(1.5); }
.stage-bar { position: relative; }
.stage-summary { position: relative; text-align: center; animation: pageIn .4s ease-out; }
.sum-stats { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; }
.sum-stats span { display: inline-flex; gap: .4rem; align-items: center; }

/* Effets plein écran */
#fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.particle { position: absolute; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: fly var(--d) cubic-bezier(.1, .8, .3, 1) forwards; }
.particle.star { border-radius: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(260deg) scale(.2); opacity: 0; } }
.screen-flash { position: absolute; inset: 0; animation: flash 1.3s ease-out forwards; }
.f-legendary { background: radial-gradient(circle, rgba(255, 220, 140, .85), rgba(255, 159, 28, .35) 40%, transparent 70%); }
.f-mythic { background: conic-gradient(from 0deg, rgba(45, 212, 191, .5), rgba(99, 102, 241, .5), rgba(168, 85, 247, .5), rgba(255, 77, 141, .5), rgba(45, 212, 191, .5)); }
.f-secret { background: radial-gradient(circle, rgba(252, 211, 77, .9), rgba(0, 0, 0, .6) 70%); }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.rarity-banner { position: absolute; left: 0; right: 0; top: 18%; text-align: center; animation: banner 1.9s cubic-bezier(.2, .9, .2, 1) forwards; }
.rarity-banner span { display: inline-block; font-size: clamp(2.4rem, 9vw, 5.6rem); font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--rc); text-shadow: 0 0 30px var(--rc), 0 4px 0 rgba(0, 0, 0, .4); }
.rarity-banner.r-mythic span { background: linear-gradient(90deg, #2dd4bf, #6366f1, #a855f7, #ff4d8d); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 20px rgba(255, 255, 255, .5)); }
.rarity-banner.r-secret span { color: #fcd34d; text-shadow: 0 0 30px #fcd34d, 0 4px 0 #000; }
@keyframes banner { 0% { opacity: 0; transform: scale(2.4); } 18% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.9) translateY(-20px); } }

/* Historique boosters */
.history { display: grid; gap: .7rem; }
.history .panel + .panel { margin: 0; }
.hist-row { padding: .9rem 1.1rem; }
.hist-h { display: flex; justify-content: space-between; margin-bottom: .5rem; } .hist-h small { color: var(--dim); font-weight: 700; }
.hist-cards { display: flex; flex-wrap: wrap; gap: .4rem; }
.hist-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface2); border: 1.5px solid color-mix(in srgb, var(--rc) 35%, transparent); color: var(--text); border-radius: 999px; padding: .28rem .7rem; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.hist-chip i { font-style: normal; font-size: .64rem; font-weight: 900; background: var(--green); color: #fff; border-radius: 999px; padding: .05rem .45rem; }

/* Probabilités */
.odds { width: 100%; border-collapse: collapse; font-size: .92rem; }
.odds th, .odds td { padding: .55rem .5rem; text-align: right; border-bottom: 1px solid var(--line); }
.odds th:first-child, .odds td:first-child { text-align: left; }
.odds th { color: var(--muted); font-weight: 700; font-size: .8rem; }
.odds td { font-weight: 800; }

/* ============ Échanges ============ */
.trade { margin-bottom: 1rem; }
.trade-h { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.trade-h > div { flex: 1; } .trade-h small { display: block; color: var(--muted); font-weight: 600; }
.st-accepted .st { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.st-declined .st, .st-invalid .st, .st-cancelled .st, .st-expired .st { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.tmsg { font-style: italic; color: var(--muted); font-weight: 600; }
.trade-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.trade-body > div:not(.tarrow) { background: var(--surface2); border-radius: 18px; padding: .9rem; }
.trade-body h4, .recap h4 { font-size: .82rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; display: flex; align-items: center; gap: .35rem; }
.recap h4.give .ic { color: var(--red); } .recap h4.get .ic { color: var(--green); }
.tarrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; box-shadow: 0 6px 14px rgba(255, 138, 40, .35); }
.tside { display: flex; flex-wrap: wrap; gap: .6rem; }
.tcard { position: relative; }
.tq { position: absolute; bottom: -6px; right: -6px; background: var(--text); color: var(--surface); font-weight: 900; font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; z-index: 4; }
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.recap > div { background: var(--surface2); border-radius: 16px; padding: .8rem 1rem; }
.recap ul { padding: 0; margin: 0; list-style: none; font-size: .92rem; } .recap li { display: flex; align-items: center; gap: .45rem; padding: .15rem 0; }
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.builder .panel + .panel { margin: 0; }
.builder input[type=search] { margin-bottom: .5rem; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .7rem; max-height: 60vh; overflow-y: auto; padding: .6rem; margin-top: .5rem; background: var(--surface2); border-radius: 18px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .45rem; border-radius: 16px; border: 2px solid transparent; }
.ptile.on { border-color: var(--accent2); background: var(--surface); }
.ptile-info { text-align: center; } .ptile-info small { color: var(--muted); font-size: .72rem; display: block; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper button .ic { width: 15px; height: 15px; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper b { min-width: 1.3rem; text-align: center; font-weight: 900; }
.builder-bar { position: sticky; bottom: 1rem; margin-top: 1rem; display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; z-index: 10; }
.builder-bar input { flex: 1; min-width: 200px; }
.user-list { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .55rem; }
.user-list a, .user-list li.off { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: 16px; background: var(--surface2); color: var(--text); text-decoration: none; }
.user-list li.off { opacity: .55; }
.user-list a:hover { background: var(--surface3); }
.user-list small { display: block; color: var(--muted); font-weight: 600; }

/* Divers */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.more-grid a, .more-grid button { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .4rem; background: var(--surface2); border-radius: 18px; color: var(--text); font: inherit; font-size: .84rem; font-weight: 800; border: 0; cursor: pointer; text-align: center; text-decoration: none; }
.more-grid .ic { width: 24px; height: 24px; color: var(--accent); }
.td summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-weight: 700; }
.td summary small { color: var(--dim); }
.td-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; margin-top: 1rem; }

/* ============ Modales & toasts ============ */
.modal-wrap { position: fixed; inset: 0; z-index: 300; background: rgba(10, 12, 24, .55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .2s; overflow-y: auto; }
.modal-wrap.show { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 1.6rem; box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-wrap.show .modal { transform: none; }
.modal-sm { max-width: 470px; } .modal-wide { max-width: 900px; }
.modal h2 { padding-right: 2.4rem; display: flex; align-items: center; gap: .3rem; font-style: italic; }
.modal-x { position: absolute; top: .9rem; right: .9rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.sheet { max-width: 480px; }
#toasts { position: fixed; z-index: 500; top: 88px; right: 1rem; display: flex; flex-direction: column; gap: .55rem; align-items: flex-end; pointer-events: none; }
.toast { display: flex; gap: .65rem; align-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: .75rem 1rem; box-shadow: var(--shadow-lg); max-width: 380px; font-size: .94rem; font-weight: 700; transform: translateX(120%); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); pointer-events: auto; }
.toast.show { transform: none; }
.toast-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; }
.toast-ico .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.toast-success .toast-ico { background: var(--green); } .toast-error .toast-ico { background: var(--red); }
.toast-reward .toast-ico { background: var(--cta); }

/* ============ Administration ============ */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 1.3rem; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: .5rem; box-shadow: var(--shadow); }
.admin-nav a { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: 14px; color: var(--muted); font-weight: 800; font-size: .92rem; text-decoration: none; }
.admin-nav a.on, .admin-nav a:hover { background: var(--surface2); color: var(--text); }
.admin-nav a.on .ic { color: var(--accent); }
.admin-body { min-width: 0; }
.admin-body > .row { margin-bottom: .9rem; } .admin-body > .row input { max-width: 320px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; margin-top: .6rem; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--surface2); color: var(--muted); font-weight: 800; font-size: .8rem; }
.tbl tr.dim { opacity: .55; }
.tbl td.acts { white-space: nowrap; } .tbl td.acts .btn { margin: 0 .2rem .25rem 0; }
.tbl td.wrap { word-break: break-word; max-width: 420px; }
.tbl input { padding: .4rem .55rem; }
.res-editor { display: grid; grid-template-columns: 270px 1fr; gap: 1rem; align-items: start; }
.res-list ul { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-direction: column; gap: .3rem; max-height: 70vh; overflow-y: auto; }
.res-list button[data-sel] { width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); color: var(--text); padding: .55rem .75rem; border-radius: 14px; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.res-list button[data-sel] .ic { color: var(--accent); }
.res-list button[data-sel].on { border-color: var(--accent2); }
.res-list small { display: block; color: var(--dim); font-size: .75rem; font-weight: 600; }
textarea.mono { font-size: .82rem; line-height: 1.45; tab-size: 2; font-weight: 500; }
.card-editor { display: grid; grid-template-columns: 1fr 260px; gap: 1.3rem; align-items: start; }
.card-prev { position: sticky; top: 0; background: var(--surface2); border-radius: 22px; padding: 1.2rem; display: flex; justify-content: center; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .tb-links a { padding: .5rem .5rem; font-size: .93rem; }
  .pill.live span { display: none; }
  .filters { grid-template-columns: repeat(3, 1fr); } .filters .search { grid-column: 1 / -1; }
  .rarity-ladder { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .tb-links { display: none; }
  #bottomnav { display: flex; }
  body { padding-bottom: 74px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 2rem; text-align: center; }
  .hero-txt .lead { margin: 0 auto; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .card-detail { grid-template-columns: 1fr; } .case-stage.big { position: static; }
  .profile-grid, .settings-grid, .builder, .td-grid { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .admin-nav a { white-space: nowrap; }
  .res-editor, .card-editor { grid-template-columns: 1fr; }
  #toasts { top: auto; bottom: 88px; right: .7rem; left: .7rem; align-items: stretch; }
  .toast { max-width: none; transform: translateY(160%); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .tb-inner { height: 64px; padding: 0 .8rem; gap: .5rem; }
  .logo-tag { display: none; } .logo-img { height: 44px; }
  .pill { height: 40px; padding: 0 .75rem; } .round-btn { width: 40px; height: 40px; }
  .hide-xs { display: none; }
  .page { padding: 1.2rem .9rem 3rem; }
  .panel { padding: 1rem; border-radius: 22px; }
  .section { margin: 3rem 0; }
  .hero h1 { font-size: 2.3rem; }
  .hero-logo { margin: 0 auto 1rem; }
  .hp-card { padding: 1.3rem 1rem 1.1rem; }
  .case-grid { grid-template-columns: 1fr; max-width: 360px; }
  .case-grid.dense { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .7rem; max-width: none; }
  .case-grid.dense .case { padding: 8px 8px 12px; border-radius: 20px; }
  .case-grid.dense .case-stage { padding: 18px 6px; border-radius: 15px; }
  .case-grid.dense .card { width: 86%; }
  .case-grid.dense .case-pill { right: 6px; font-size: .7rem; padding: .2rem .55rem; }
  .case-grid.dense .case-tag { font-size: .7rem; left: 8px; }
  .rarity-ladder { grid-template-columns: repeat(2, 1fr); }
  .rarity-ladder > :last-child { grid-column: 1 / -1; }
  .dash-grid { grid-template-columns: 1fr; } .span2, .daily-panel { grid-column: auto; }
  .daily-panel { flex-direction: column-reverse; text-align: center; } .dp-pack .pack { --pw: 120px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .form.grid2, .grid2 { grid-template-columns: 1fr; }
  .mission { grid-template-columns: auto 1fr; } .m-rw { grid-column: 1 / -1; justify-content: flex-start; } .m-act { grid-column: 1 / -1; }
  .trade-body { grid-template-columns: 1fr; } .tarrow { transform: rotate(90deg); margin: 0 auto; }
  .recap { grid-template-columns: 1fr; }
  .qv { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qv .kv { text-align: left; } .qv .row { justify-content: center; }
  .pack-tile { flex-direction: column; } .pt-stage { padding: 1.4rem; } .pt-stage .pack { --pw: 120px; }
  .modal { padding: 1.3rem 1.1rem; border-radius: 24px; }
  .deal { gap: 2rem .6rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .lb li { gap: .55rem; padding: .55rem .2rem; }
  .coll-stats .panel { min-width: 0; flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Garde-fous anti-débordement horizontal */
.dash-grid > *, .profile-grid > *, .settings-grid > *, .builder > *, .series-list > *, .events > *, .card-detail > *, .hero > * { min-width: 0; }
.ticker { overflow: hidden; border-radius: 999px; }
@media (max-width: 640px) {
  .pill.live, .tb-right > .round-btn[data-theme-toggle] { display: none; }
  .tick small { display: none; }
  .tick { justify-content: flex-start; font-size: .82rem; }
}
.section.narrow { margin-left: auto; margin-right: auto; }

.filters .search input { padding-left: 2.5rem; }
.ev-body > * + * { margin-top: .75rem; }
.ev-body .bar { margin-top: .3rem; }

.span3 { grid-column: 1 / -1; }

.row.nowrap { flex-wrap: nowrap; }

/* Fenêtre de notifications */
.notif-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 390px; max-height: min(560px, 75vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: popIn .18s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.np-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem .7rem; border-bottom: 1px solid var(--line); }
.np-h b { font-size: 1.05rem; font-weight: 900; font-style: italic; }
.np-h .linkish { padding: 0; font-size: .8rem; color: var(--accent); text-decoration: none; }
.np-list { list-style: none; margin: 0; padding: .4rem; overflow-y: auto; flex: 1; }
.np-list li { position: relative; display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .65rem; border-radius: 14px; }
.np-list li:hover { background: var(--surface2); }
.np-list li.unread { background: color-mix(in srgb, var(--accent2) 9%, transparent); }
.np-list .ni { width: 34px; height: 34px; border-radius: 11px; }
.np-list a { color: var(--text); font-weight: 700; font-size: .9rem; line-height: 1.35; text-decoration: none; display: block; padding-right: .8rem; }
.np-list a::after { content: ''; position: absolute; inset: 0; }
.np-list small { color: var(--dim); font-size: .78rem; }
.np-dot { position: absolute; top: 1rem; right: .7rem; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.np-empty { text-align: center; color: var(--muted); padding: 1.6rem 1rem; margin: 0; }
.np-empty .ic { width: 28px; height: 28px; color: var(--accent); }
.np-all { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .75rem; border-top: 1px solid var(--line); font-size: .88rem; }
.loader.small { padding: 1.5rem; }
@media (max-width: 640px) {
  .notif-pop { position: fixed; top: 70px; left: 8px; right: 8px; width: auto; max-height: calc(100vh - 160px); }
}
@media (max-width: 960px) { .hero-logo { margin: 0 auto 1rem; } }

/* Collection 1 : photos, initiales, crédits */
.card.has-img .card-art img { object-position: 50% 30%; }
.card.has-img .card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(6, 7, 14, .35), transparent 30%); pointer-events: none; }
.art-initials { position: relative; z-index: 1; margin-top: 6cqw; width: 46cqw; height: 46cqw; border-radius: 50%; display: grid; place-items: center; font-size: 17cqw; font-weight: 900; font-style: italic; color: #fff; letter-spacing: -.02em; background: radial-gradient(circle, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05) 65%, transparent 70%); text-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .45); }
.card.missing .art-initials { color: #000; opacity: .45; background: none; text-shadow: none; }
.credit { font-size: .78rem; color: var(--dim); margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.credit a { color: var(--muted); }

/* ============ Économie : pastilles, pièces, marché, banque ============ */
.nav-dot { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 .3rem; margin-left: .35rem; border-radius: 999px; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 900; font-style: normal; vertical-align: 2px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--pink) 60%, transparent); animation: navPulse 1.8s ease-out infinite; }
@keyframes navPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pink) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .nav-dot { animation: none; } }
.me-menu a .nav-dot { margin-left: auto; }
.coins-pill .ic { color: #f5b301; }
.pill .regen { font-size: .72rem; font-weight: 800; color: var(--muted); margin-left: .1rem; font-variant-numeric: tabular-nums; }
.coin-amt { display: inline-flex; align-items: center; gap: .2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.coin-amt .ic { color: #f5b301; }
.mk-filters { grid-template-columns: 2fr 1fr 1fr 1fr; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .9rem; }
.mk-tile { display: flex; gap: .9rem; align-items: center; margin: 0; padding: .8rem; min-width: 0; }
.mk-tile.leading { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.mk-tile .mk-card-wrap { flex: none; }
.mk-info { display: flex; flex-direction: column; gap: .35rem; min-width: 0; align-items: flex-start; }
.mk-info .row { gap: .3rem; flex-wrap: wrap; }
.mk-name { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mk-price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; font-size: 1.25rem; }
.mk-price small { font-size: .78rem; color: var(--muted); font-weight: 700; }
.ok-t { color: var(--green); }
.mk-seller { display: inline-flex; align-items: center; gap: .35rem; }
.mk-tile.compact { padding: .6rem; gap: .6rem; }
.mk-tile.compact .mk-price { font-size: 1.05rem; }
.mk-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .6rem; margin: .6rem 0; }
.mk-card { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.mk-sales { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .6rem; }
.mk-sale { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; }
.mk-sale span { display: flex; flex-direction: column; min-width: 0; } .mk-sale b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-sale small { color: var(--muted); }
.mk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .8rem; }
.mk-pick-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; background: none; border: 0; padding: .3rem; border-radius: 14px; cursor: pointer; color: var(--text); font: inherit; }
button.mk-pick-item:hover { background: var(--surface2); }
.mk-pick-item > span { font-weight: 900; font-size: .85rem; color: var(--muted); }
.mk-pick-item.dup { cursor: default; } .mk-pick-item.dup .btn { width: 100%; justify-content: center; }
.mk-dialog { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.bank-grid .panel { margin: 0; }
.recycle-rates { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: .5rem 0 .8rem; font-weight: 800; font-size: .9rem; }
.recycle-rates span { display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 720px) {
  .mk-filters { grid-template-columns: 1fr 1fr; } .mk-filters .search { grid-column: span 2; }
  .mk-dialog { flex-direction: column; align-items: center; text-align: center; }
  .pill .regen { display: none; }
}
/* Barre du haut : le logo ne rétrécit jamais, les liens prennent la place restante (sans chevauchement) */
.logo { flex: none; }
.logo-tag { flex: none; width: 7.5rem; }
.tb-links { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tb-links::-webkit-scrollbar { display: none; }
.tb-right { flex: none; }
@media (max-width: 1500px) { .tb-inner { gap: 1rem; } .tb-links a { padding: .5rem .55rem; } }
.tb-inner .logo-tag { display: none; } /* pas la place dans la barre (largeur max 1360 px) */
@media (max-width: 1280px) { .tb-right .pill.live { display: none; } }
/* Bouton son de la scène d'ouverture */
.stage-snd { position: fixed; top: 14px; right: 70px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; display: grid; place-items: center; }
.stage-snd:hover, .stage-x:hover { background: rgba(0, 0, 0, .6); }

/* ============ Page d'accueil : cartes visibles dès l'arrivée ============ */
.hero2 { min-height: 0; padding: 1rem 0 1.5rem; gap: 2rem; }
.hero2 .hero-logo { height: clamp(96px, 11vw, 140px); }
.hero2 h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-points .ic { color: var(--accent); }
.hero-fan { position: relative; height: 430px; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.fan-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateX(calc(var(--i) * var(--spread))) translateY(calc(var(--i) * var(--i) * 9px)) rotate(calc(var(--i) * 8deg)); z-index: calc(10 - var(--i) * var(--i)); transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s; animation: fanIn .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc((var(--i) + 2) * 90ms); }
.fan-card:hover { transform: translate(-50%, -50%) translateX(calc(var(--i) * var(--spread))) translateY(-26px) rotate(calc(var(--i) * 4deg)) scale(1.06); z-index: 20; }
.hero-fan:hover .fan-card:not(:hover) { filter: brightness(.75); }
@keyframes fanIn { from { opacity: 0; transform: translate(-50%, -30%) rotate(0deg) scale(.8); } }
.fan-glow { position: absolute; inset: 15% 10%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent); filter: blur(30px); pointer-events: none; }
.hm-marquees { display: flex; flex-direction: column; gap: 1rem; margin: 1rem calc(50% - 50vw) 2.5rem; padding: 1rem 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { overflow: hidden; }
.mq-track { display: flex; gap: 1rem; width: max-content; animation: mq 70s linear infinite; padding: .4rem 0; }
.marquee.rev .mq-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track .card { flex: none; transition: transform .25s; }
.mq-track .card:hover { transform: translateY(-8px) scale(1.04); }
@keyframes mq { to { transform: translateX(-50%); } }
.hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1040px; margin: 0 auto 1rem; }
.hm-stat { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: 1.1rem; }
.hm-stat b { font-size: 1.9rem; font-weight: 900; }
.hm-stat small { color: var(--muted); font-weight: 700; }
.hm-stars { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1rem; max-width: 1180px; margin: 1.6rem auto 0; justify-items: center; }
.hm-star { position: relative; padding-bottom: 1rem; }
.hm-star .case-pill { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.hm-open { display: flex; justify-content: center; }
.hm-open .hp-title { margin-bottom: .8rem; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .fan-card { animation: none; } }
@media (max-width: 960px) {
  .hero-cta, .hero-points { justify-content: center; }
  .hero-fan { height: 340px; }
  .fan-card { transform: translate(-50%, -50%) translateX(calc(var(--i) * 64px)) translateY(calc(var(--i) * var(--i) * 7px)) rotate(calc(var(--i) * 8deg)) scale(.8); }
  .fan-card:hover { transform: translate(-50%, -50%) translateX(calc(var(--i) * 64px)) translateY(-18px) scale(.86); }
  .hm-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero-fan { height: 280px; }
  .fan-card { transform: translate(-50%, -50%) translateX(calc(var(--i) * 46px)) translateY(calc(var(--i) * var(--i) * 6px)) rotate(calc(var(--i) * 8deg)) scale(.62); }
  .fan-card:hover { transform: translate(-50%, -50%) translateX(calc(var(--i) * 46px)) translateY(-12px) scale(.68); }
  .hm-stars { grid-template-columns: repeat(2, 1fr); gap: 1rem .5rem; }
  .hm-stars .card { --w: 150px !important; }
}
/* Sur petit écran : les cartes d'abord, dès l'arrivée */
@media (max-width: 960px) {
  .hero2 .hero-fan { order: -1; margin-top: .5rem; }
  .hero2 .hero-logo { display: none; }
}
@media (max-width: 520px) { .hero2 .hero-fan { height: 250px; } .hero2 { gap: 1rem; } }
.fan-card { --spread: 84px; }

/* ---------- Ouverture ×5 ---------- */
.pt-btns { display: flex; flex-direction: column; gap: .45rem; margin-top: .3rem; }
.pt-btns .btn { margin-top: 0; }
.pt-btns .btn { width: 100%; }
.btn.multi5 { font-weight: 900; background: linear-gradient(135deg, #ffd166, #ff7a59); color: #1b1020; border: 0; box-shadow: 0 4px 14px rgba(255, 122, 89, .35); }
.pack-tile .btn:disabled, .btn.multi5:disabled { opacity: 1; background: var(--surface2); color: var(--muted); border: 1px solid var(--line2); box-shadow: none; filter: none; text-shadow: none; }
.m5-count { margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: rgba(127, 127, 127, .18); }
.stage.multi { justify-content: flex-start; }
.pack-stack { position: relative; }
.pack-stack::before, .pack-stack::after { content: ''; position: absolute; inset: 6% 4%; border-radius: 14px; background: linear-gradient(160deg, var(--c1), var(--c2)); opacity: .45; transform: rotate(-7deg) translate(-14px, 6px); z-index: -1; }
.pack-stack::after { opacity: .3; transform: rotate(8deg) translate(16px, 10px); }
.pack-count { position: absolute; top: -10px; right: -14px; z-index: 3; padding: .3rem .7rem; border-radius: 999px; font-weight: 900; font-size: 1.3rem; color: #1b1020; background: linear-gradient(135deg, #ffd166, #ff7a59); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.deal.multi { gap: 1.2rem .6rem; max-width: 1180px; padding-bottom: .5rem; }
.deal.multi .flip { animation-delay: calc(var(--i) * .045s); }
.deal.multi .tag.abs { font-size: .62rem; padding: .1rem .35rem; }
.stage.multi .stage-bar { position: sticky; bottom: .5rem; z-index: 5; }
.sum-h { margin: 0 0 .6rem; font-size: 1.25rem; font-weight: 900; }
.sum-rar { display: flex; gap: .4rem 1rem; justify-content: center; flex-wrap: wrap; margin: -.3rem 0 1rem; font-size: .9rem; font-weight: 700; opacity: .9; }
.sum-rar span { display: inline-flex; gap: .35rem; align-items: center; }

/* ---------- Tuile du booster en grand ---------- */
.packs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 620px), 1fr)); }
.pack-tile { gap: 1.6rem; padding: 16px; max-width: 860px; }
.pt-stage { padding: 1.8rem 2.2rem; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c1, #7c3aed) 28%, var(--surface2)), var(--surface2) 70%); }
.pt-stage .pack { --pw: 190px; }
.pt-info { justify-content: center; padding: .6rem .6rem .4rem 0; }
.pt-info h3 { font-size: 1.5rem; }
.pt-btns .btn { padding: .85rem 1.35rem; font-size: 1.05rem; }
@media (max-width: 640px) {
  .pack-tile { flex-direction: column; gap: 1rem; }
  .pt-stage { padding: 1.6rem; } .pt-stage .pack { --pw: 170px; }
  .pt-info { padding: 0 .3rem .3rem; }
}
.pack-tile .pt-cost { margin-top: .6rem !important; font-size: 1rem; }
.pack-tile .pt-info > p.small { font-size: .95rem; }

/* ---------- Amis ---------- */
.tag.green { background: color-mix(in srgb, #22c55e 18%, transparent); color: #16a34a; }
.tab-n { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.tabs .nav-dot { position: static; margin-left: .1rem; }
.fr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.fr-feed { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; }
.fr-feed h3 { margin-top: 0; }
.fr-feed .timeline a { color: inherit; }
.fr-count { margin: 0 0 .7rem; display: flex; align-items: center; gap: .35rem; }
.fr-h { margin: 1.2rem 0 .6rem; font-size: 1.05rem; } .fr-h:first-child { margin-top: 0; }
.fr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.fr-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; margin: 0 !important; }
.fr-results .fr-row { background: var(--surface2); border-radius: 16px; }
.fr-who { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 1; color: var(--text); text-decoration: none !important; }
.fr-av { position: relative; flex: none; display: inline-flex; }
.fr-badge { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2.5px solid var(--surface); }
.fr-name { display: flex; flex-direction: column; min-width: 0; }
.fr-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-name small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-acts { display: flex; gap: .4rem; flex: none; align-items: center; }
.fr-on { color: #22c55e; font-weight: 800; }
.fr-off { color: var(--dim); }
.fr-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent); vertical-align: middle; }
.fr-row.online { border-color: color-mix(in srgb, #22c55e 35%, var(--line)); }
.fr-search { display: flex; gap: .5rem; margin-bottom: .9rem; } .fr-search input { flex: 1; min-width: 0; }
.scope-sw { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: .8rem; border-radius: 999px; background: var(--surface2); }
.scope-sw button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; }
.scope-sw button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.15)); }
.ph-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .fr-layout { grid-template-columns: 1fr; }
  .fr-feed { position: static; max-height: none; }
}
@media (max-width: 520px) {
  .fr-row { padding: .6rem .7rem; gap: .5rem; }
  .fr-acts .btn.sm { padding: .5rem .65rem; }
}
/* Barre du haut : 8 liens, on resserre sur les écrans moyens */
@media (max-width: 1320px) { .tb-inner { gap: .7rem; } .tb-links { gap: 0; } .tb-links a { padding: .45rem .45rem; font-size: .94rem; } }
@media (max-width: 1180px) { .pill.live { display: none; } .tb-right .pill small.regen { display: none; } .tb-links a { padding: .45rem .38rem; font-size: .88rem; } }
@media (max-width: 1050px) { .tb-right .round-btn[data-theme-toggle] { display: none; } .tb-links a { font-size: .84rem; padding: .4rem .32rem; } }
/* Amis sur mobile : rien ne déborde */
@media (max-width: 900px) { .fr-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .fr-acts a.btn.ghost { display: none; } .fr-name small:first-of-type { display: none; } }