/* ==========================================================================
   GreyLine PvP — "La loi du plus fort" — v3 cinématique
   Surfaces plates et sombres, typo de jeu, images 3D en vedette, sections
   pleine largeur. Bleu nuit + un seul bleu d'accent.
   ========================================================================== */
@font-face { font-family: 'Anton'; src: url('../fonts/Anton-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #090d13; --bg-2: #0e141c; --bg-3: #131b26; --bg-4: #19232f;
  --ink: #eef2f7; --ink-2: #9aa7b8; --ink-3: #5f6b7b;
  --blue: #3f86d1; --blue-2: #7db8f0; --sonar: #7db8f0; --teal: #4fa3a0;
  --amber: #e0a44a; --amber-2: #f0c070; --blood: #d84a45; --green: #6fcf7f;
  --team-red: #d84a45; --team-blue: #3f86d1;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.16);
  --font-display: 'Anton', 'Impact', sans-serif; --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif; --font-ui: 'Barlow', system-ui, sans-serif; --font-num: 'Barlow Condensed', sans-serif;
  --max: 1400px; --gap: 20px; --topbar-h: 72px; --subnav-h: 44px; --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-ui); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); min-height: 100vh; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #fff; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em; line-height: 1.05; text-transform: uppercase; }
h1 { font-size: 2.6rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; } h4 { font-size: 0.95rem; }
p { margin: 0 0 0.9em; } p:last-child { margin-bottom: 0; }
::selection { background: rgba(63, 134, 209, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex-shrink: 0; }
/* Barres de défilement (page et rails) */
* { scrollbar-width: thin; scrollbar-color: rgba(125, 184, 240, 0.35) rgba(255, 255, 255, 0.04); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { background: rgba(125, 184, 240, 0.28); border-radius: 4px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(125, 184, 240, 0.5); }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- Scène 3D (visible dans le héros et les bannières) ---------- */
/* Vidéo de fond (toutes les pages) : remplace la scène 3D dès qu'elle peut être lue */
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: 0; pointer-events: none; display: none; }
body.has-bg-video .bg-video { display: block; }
body.bg-off .bg-video { display: none; }
.bg-veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(9, 13, 19, 0.35), rgba(9, 13, 19, 0.1) 40%, rgba(9, 13, 19, 0.55)); }
.bg-scan { position: fixed; inset: -20%; z-index: 1; pointer-events: none; opacity: 0.4; background: radial-gradient(40% 30% at 20% 70%, rgba(125, 184, 240, 0.12), transparent 70%), radial-gradient(45% 35% at 75% 60%, rgba(125, 184, 240, 0.08), transparent 70%); animation: fog 40s ease-in-out infinite alternate; mix-blend-mode: screen; }
#site { position: relative; z-index: 2; }

/* ---------- Barre haute (transparente, se fond dans la scène) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); background: linear-gradient(180deg, rgba(9, 13, 19, 0.92), rgba(9, 13, 19, 0.6)); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: 8px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 56px; display: block; filter: drop-shadow(0 0 10px rgba(63, 134, 209, 0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { white-space: nowrap; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-name .pvp, .brand-name b { color: var(--blue-2); font-weight: 400; }
.brand-tag { white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 0.66rem; color: var(--ink-3); letter-spacing: 0.3em; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: stretch; height: 100%; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-link { display: flex; align-items: center; gap: 5px; padding: 0 11px; background: none; border: 0; color: var(--ink-2); font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.09em; text-transform: uppercase; position: relative; white-space: nowrap; }
.nav-link .ic { width: 14px; height: 14px; opacity: 0.6; }
.nav-link .ic:first-child { display: none; }
.nav-link::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 20px; height: 2px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav-item:hover .nav-link, .nav-item.active .nav-link { color: #fff; }
.nav-item.active .nav-link::after, .nav-item:hover .nav-link::after { transform: scaleX(1); }
.nav-item.admin .nav-link { color: var(--blue-2); }
.nav-item.admin .nav-link::after { background: var(--blue-2); }
.dropdown { position: absolute; top: calc(100% - 8px); left: 0; min-width: 260px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; padding-top: 8px; }
.dropdown-in { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; display: grid; gap: 2px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6); }
.dropdown.wide { min-width: 540px; }
.dropdown.wide .dropdown-in { grid-template-columns: 1fr 1fr; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--ink-2); font-weight: 500; font-size: 0.92rem; border-radius: 3px; }
.dd-link .ic { width: 16px; height: 16px; color: var(--blue-2); opacity: 0.8; }
.dd-link:hover, .dd-link.active { background: rgba(125, 184, 240, 0.1); color: #fff; }
.dd-link .dev { margin-left: auto; font-size: 0.66rem; color: var(--amber); letter-spacing: 0.1em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wallet { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; background: rgba(224, 164, 74, 0.1); border: 1px solid rgba(224, 164, 74, 0.3); border-radius: var(--r); color: var(--amber-2); font-family: var(--font-num); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; }
.wallet .ic { width: 20px; height: 20px; color: var(--amber); }
.wallet.bump .ic { animation: coinbump 0.5s ease; }
.wallet-pop, .bell-pop, .user-pop { position: fixed !important; top: 0; right: 0; width: 340px; z-index: 200; display: none; background: var(--bg-3) !important; border: 1px solid var(--line-2) !important; border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); animation: modalin 0.18s ease; }
.wallet-pop.open, .bell-pop.open, .user-pop.open { display: block; }
.wallet-pop > .pi, .bell-pop > .pi, .user-pop > .pi { padding: 0 !important; }
.wallet-pop .ptitle, .bell-pop .ptitle { margin: 0 !important; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.wallet-pop .ptitle h2, .bell-pop .ptitle h2 { font-size: 0.95rem; letter-spacing: 0.14em; }
.pop-list { max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.pop-list .empty { padding: 26px 16px; }
.wallet-pop .flex { padding: 12px 16px; border-top: 1px solid var(--line); }
.user-pop > .pi { padding: 6px !important; }
.pop-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.pop-row:last-child { border-bottom: 0; }
.pop-row .amt { margin-left: auto; font-family: var(--font-num); font-size: 1.05rem; font-weight: 700; }
.pop-row .amt.plus { color: var(--green); } .pop-row .amt.minus { color: var(--blood); }
.pop-row .when { font-size: 0.75rem; color: var(--ink-3); }
.iconbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink-2); overflow: visible; padding: 0; line-height: 0; }
.iconbtn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.iconbtn .ic { width: 18px; height: 18px; }
.iconbtn .badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--blood); color: #fff; font-family: var(--font-num); font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center; border-radius: 9px; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.iconbtn .badge-slot { position: absolute; inset: 0; pointer-events: none; }
.iconbtn .badge.live { background: var(--amber); color: #1a1000; }
.btn-steam { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border: 1px solid rgba(125, 184, 240, 0.35); background: #1b2838; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--r); }
.btn-steam .ic { width: 18px; height: 18px; color: #8ec3ea; }
.btn-steam:hover { background: #24384d; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink); font-weight: 600; font-size: 0.9rem; border-radius: var(--r); }
.user-chip .avatar { width: 30px; height: 30px; }
.user-chip .role { font-size: 0.68rem; color: var(--amber); letter-spacing: 0.12em; text-transform: uppercase; }
/* Barre du haut : pièces, cloche et profil en bleu (DA GreyLine) */
.wallet { background: rgba(63, 134, 209, 0.16); border-color: rgba(125, 184, 240, 0.55); color: #eef2f7; transition: background .15s, border-color .15s, box-shadow .15s; }
.wallet .ic { color: var(--blue-2); }
.wallet .amount-label { color: var(--blue-2); }
.wallet:hover { background: rgba(63, 134, 209, 0.24); border-color: var(--blue-2); box-shadow: 0 0 14px rgba(63, 134, 209, 0.25); }
.topbar-right .iconbtn { background: rgba(63, 134, 209, 0.16); border-color: rgba(125, 184, 240, 0.55); color: var(--blue-2); transition: background .15s, border-color .15s, box-shadow .15s; }
.topbar-right .iconbtn:hover { background: rgba(63, 134, 209, 0.24); border-color: var(--blue-2); color: #fff; box-shadow: 0 0 14px rgba(63, 134, 209, 0.25); }
.user-chip { background: rgba(63, 134, 209, 0.16); border-color: rgba(125, 184, 240, 0.55); transition: background .15s, border-color .15s, box-shadow .15s; }
.user-chip:hover { background: rgba(63, 134, 209, 0.24); border-color: var(--blue-2); box-shadow: 0 0 14px rgba(63, 134, 209, 0.25); }
.user-chip .role { color: var(--blue-2); }
.user-chip > .ic { color: var(--blue-2); }
.avatar { display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.9em; letter-spacing: 0.04em; background: linear-gradient(135deg, #3f86d1, #1f3f66); color: #fff; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.avatar.has-photo { background-size: cover; background-position: center; color: transparent; }
.avatar.lg { width: 92px; height: 92px; font-size: 2rem; } .avatar.md { width: 44px; height: 44px; font-size: 1.05rem; } .avatar.sm { width: 32px; height: 32px; font-size: 0.8rem; }
.burger { display: none; }

/* Sous-navigation : simples liens */
.subnav { position: sticky; top: var(--topbar-h); z-index: 40; height: var(--subnav-h); background: rgba(9, 13, 19, 0.96); border-bottom: 1px solid var(--line); }
.subnav-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav-cat { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.24em; color: var(--blue-2); padding-right: 22px; white-space: nowrap; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.subnav-cat .ic { width: 14px; height: 14px; }
.subtab { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; color: var(--ink-2); font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s; }
.subtab:hover { color: #fff; }
.subtab.active { color: #fff; border-bottom-color: var(--blue-2); }
.subtab .dev { font-size: 0.62rem; color: var(--amber); }

/* ---------- Mise en page ---------- */
.page { width: 100%; padding: 0 0 90px; min-height: calc(100vh - var(--topbar-h) - var(--subnav-h)); background: linear-gradient(180deg, transparent var(--head-h, 320px), var(--bg) var(--head-h, 320px)); }
/* Contenu centré ; les bannières/bandeaux (.page-head, .hero, .band, .strip, .ticker) restent pleine largeur */
.page > :not(.page-head):not(.hero):not(.band):not(.full) { width: min(100% - 48px, var(--max) - 48px); margin-left: auto; margin-right: auto; }
.page > :first-child:not(.page-head):not(.hero) { padding-top: 32px; }
.page-enter { animation: pagein 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.full { width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); }
/* Bannière de page : pleine largeur, la scène 3D apparaît derrière */
.page-head { position: relative; width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); min-height: 300px; display: flex; align-items: flex-end; padding: 48px max(24px, calc(50vw - var(--max) / 2 + 24px)) 40px; margin-bottom: 44px; background: linear-gradient(180deg, rgba(9, 13, 19, 0) 0%, rgba(9, 13, 19, 0.3) 50%, var(--bg) 100%); border-bottom: 1px solid var(--line); gap: 24px; flex-wrap: wrap; }
.page-head .ph-icon { display: none; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 6vw, 5.2rem); letter-spacing: 0.03em; line-height: 0.95; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8); }
.page-head .crumb { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--blue-2); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 10px; }
.page-head .lead { color: var(--ink-2); max-width: 64ch; margin-top: 14px; font-size: 1.05rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.page-head .ph-right { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } .grid-side { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.stack { display: grid; gap: var(--gap); align-content: start; }
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 6px; } .grow { flex: 1 1 auto; min-width: 0; }
.mt { margin-top: var(--gap); } .mt-sm { margin-top: 10px; } .mb { margin-bottom: var(--gap); } .mb-sm { margin-bottom: 10px; }
.muted { color: var(--ink-2); } .dim { color: var(--ink-3); } .small { font-size: 0.85rem; } .tiny { font-size: 0.76rem; }
.center { text-align: center; } .right { text-align: right; } .hidden { display: none !important; }
.num { font-family: var(--font-num); font-weight: 700; letter-spacing: 0.02em; }
.sonar { color: var(--blue-2); } .amber { color: var(--amber-2); } .blood { color: #ef7b76; } .green { color: var(--green); } .nowrap { white-space: nowrap; }

/* Section pleine largeur (accueil, bandeaux) */
.band { width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); padding: 72px max(24px, calc(50vw - var(--max) / 2 + 24px)); background: var(--bg); }
.band.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: 0.05em; }
.sec-h .sub { color: var(--ink-2); font-size: 0.95rem; }
.sec-h .more { margin-left: auto; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--blue-2); }

/* ---------- Panneaux : surfaces plates ---------- */
.panel { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.panel > .pi { position: relative; height: 100%; padding: 22px 24px; border-radius: inherit; overflow: hidden; }
.panel.tight > .pi { padding: 14px 16px; } .panel.flush > .pi { padding: 0; }
.panel.sonar { border-color: rgba(125, 184, 240, 0.35); background: linear-gradient(180deg, rgba(63, 134, 209, 0.12), var(--bg-2) 60%); }
.panel.amber { border-color: rgba(224, 164, 74, 0.35); background: linear-gradient(180deg, rgba(224, 164, 74, 0.1), var(--bg-2) 60%); }
.panel.blood { border-color: rgba(216, 74, 69, 0.4); background: linear-gradient(180deg, rgba(216, 74, 69, 0.12), var(--bg-2) 60%); }
.panel.green { border-color: rgba(111, 207, 127, 0.35); background: linear-gradient(180deg, rgba(111, 207, 127, 0.1), var(--bg-2) 60%); }
.panel.red-team { border-color: rgba(216, 74, 69, 0.5); background: linear-gradient(180deg, rgba(216, 74, 69, 0.14), var(--bg-2) 70%); }
.panel.blue-team { border-color: rgba(63, 134, 209, 0.5); background: linear-gradient(180deg, rgba(63, 134, 209, 0.16), var(--bg-2) 70%); }
.panel .pi > .ptitle { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ptitle h2, .ptitle h3 { font-size: 1.15rem; letter-spacing: 0.1em; }
.ptitle .ic { width: 18px; height: 18px; color: var(--blue-2); }
.ptitle .right { margin-left: auto; font-family: var(--font-ui); font-weight: 500; font-size: 0.85rem; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.panel.clickable { cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.panel.clickable:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.panel.selected { border-color: var(--blue-2); box-shadow: 0 0 0 1px var(--blue-2); }
.tilt { transform-style: preserve-3d; }
.ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); padding: 3px 40px; background: var(--amber); color: #1a1000; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ribbon.blood { background: var(--blood); color: #fff; } .ribbon.sonar { background: var(--blue-2); color: #0a1620; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; color: #fff; background: var(--blue); border-radius: var(--r); transition: transform 0.12s ease, filter 0.2s ease, background 0.2s; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); } .btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn.sm { padding: 7px 14px; font-size: 0.86rem; } .btn.sm .ic { width: 14px; height: 14px; }
.btn.lg { padding: 15px 30px; font-size: 1.15rem; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); filter: none; }
.btn.sonar { background: var(--blue-2); color: #08131f; }
.btn.gold { background: var(--amber); color: #1f1204; }
.btn.danger { background: var(--blood); }
.btn.green { background: var(--green); color: #0a1a0d; }
.btn.red-team { background: var(--team-red); } .btn.blue-team { background: var(--team-blue); }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn.icon { padding: 9px; }
.link { background: none; border: 0; color: var(--blue-2); padding: 0; font-weight: 600; }
.link:hover { color: #fff; text-decoration: underline; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; color: var(--ink-2); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.input, .select, .textarea { width: 100%; padding: 11px 14px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--r); outline: none; transition: border-color 0.2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-2); }
.input::placeholder { color: var(--ink-3); }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.select option { background: var(--bg-3); }
.textarea { min-height: 96px; resize: vertical; }
.search { position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 38px; }
input[type=range].range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-2) var(--p, 0%), rgba(255, 255, 255, 0.12) var(--p, 0%)); outline: none; }
input[type=range].range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 3px rgba(125, 184, 240, 0.35); cursor: pointer; }
input[type=range].range::-moz-range-thumb { width: 18px; height: 18px; border: 0; background: #fff; border-radius: 50%; cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: 0.9rem; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .tk { width: 42px; height: 22px; background: rgba(255, 255, 255, 0.12); position: relative; border-radius: 11px; transition: background 0.2s; }
.toggle .tk::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.toggle input:checked + .tk { background: var(--blue); }
.toggle input:checked + .tk::after { transform: translateX(20px); }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border: 0; cursor: pointer; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); transition: transform 0.15s; }
.swatch:hover { transform: scale(1.15); }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
input[type=color].colorpick { width: 44px; height: 30px; padding: 0; border: 1px solid var(--line-2); background: transparent; cursor: pointer; border-radius: var(--r); }

/* ---------- Données ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1; color: #fff; letter-spacing: 0.02em; }
.stat .v.sm { font-size: 1.4rem; }
.stat { min-width: 0; }
.stat .l { font-size: 0.74rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v { min-width: 0; white-space: nowrap; }
.panel.sm .stat .v { font-size: 1.6rem; }
.panel.sm .stat .l { letter-spacing: 0.08em; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
/* Bandeau de stats : dans le conteneur, 4 cellules égales */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); margin-top: 0; overflow: hidden; }
.strip > div { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.strip b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: #fff; letter-spacing: 0.02em; }
.strip b small { font-size: 1rem; color: var(--ink-3); font-weight: 600; }
.strip span { display: block; margin-top: 6px; font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.18em; text-transform: uppercase; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.kv:last-child { border-bottom: 0; } .kv .k { color: var(--ink-2); } .kv .v { font-family: var(--font-num); font-weight: 700; font-size: 1.05rem; }
.bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: var(--blue-2); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.amber > i { background: var(--amber); } .bar.green > i { background: var(--green); } .bar.blood > i { background: var(--blood); } .bar.teal > i { background: var(--teal); }
.bar.thin { height: 4px; } .bar.thick { height: 12px; }
.bar.red-team > i { background: var(--team-red); } .bar.blue-team > i { background: var(--team-blue); }
.rows { display: flex; flex-direction: column; }
.row { display: grid; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background 0.15s; }
.rows .row:last-child { border-bottom: 0; }
.row:hover { background: rgba(255, 255, 255, 0.03); }
.row.me { background: rgba(63, 134, 209, 0.1); box-shadow: inset 3px 0 0 var(--blue-2); }
.row.head { color: var(--ink-3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 6px; padding-bottom: 6px; }
.row.head:hover { background: none; }
.rank { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 50%; flex: 0 0 auto; }
.rank.r1 { background: var(--amber); border-color: var(--amber); color: #1f1204; } .rank.r2 { background: #cfd6de; border-color: #cfd6de; color: #131a22; } .rank.r3 { background: #c98a5a; border-color: #c98a5a; color: #2a1300; }
.name { font-weight: 600; display: flex; align-items: center; gap: 10px; min-width: 0; }
.name .sub { font-size: 0.78rem; color: var(--ink-3); font-weight: 500; }
.name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255, 255, 255, 0.06); color: var(--ink-2); border-radius: 3px; white-space: nowrap; }
.tag .ic { width: 12px; height: 12px; }
.tag.sonar { background: rgba(125, 184, 240, 0.15); color: var(--blue-2); } .tag.amber { background: rgba(224, 164, 74, 0.18); color: var(--amber-2); }
.tag.blood { background: rgba(216, 74, 69, 0.2); color: #f08b86; } .tag.green { background: rgba(111, 207, 127, 0.16); color: var(--green); }
.tag.violet { background: rgba(160, 130, 220, 0.2); color: #c9b6f0; } .tag.red-team { background: rgba(216, 74, 69, 0.22); color: #f08b86; } .tag.blue-team { background: rgba(63, 134, 209, 0.25); color: #9cc6ea; }
.tag.carn { background: rgba(216, 74, 69, 0.18); color: #f08b86; } .tag.herb { background: rgba(111, 207, 127, 0.16); color: var(--green); } .tag.omni { background: rgba(224, 164, 74, 0.18); color: var(--amber-2); }
.tag.apex { background: linear-gradient(90deg, rgba(224, 164, 74, 0.35), rgba(216, 74, 69, 0.3)); color: #f5d9a3; }
.live-dot { width: 9px; height: 9px; background: var(--blood); display: inline-block; border-radius: 50%; box-shadow: 0 0 10px var(--blood); animation: pulse 1.4s ease-in-out infinite; }
.live-dot.off { background: var(--ink-3); box-shadow: none; animation: none; }
.online-dot { width: 8px; height: 8px; background: var(--green); display: inline-block; border-radius: 50%; box-shadow: 0 0 6px var(--green); flex: 0 0 auto; }
.online-dot.off { background: var(--ink-3); box-shadow: none; }
.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 18px; background: none; color: var(--ink-2); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tab:hover { color: #fff; } .tab.active { color: #fff; border-bottom-color: var(--blue-2); }
.tab .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.tab.amber.active { border-bottom-color: var(--amber); color: var(--amber-2); }
.empty { padding: 34px 20px; text-align: center; color: var(--ink-2); }
.empty .ic { width: 38px; height: 38px; margin: 0 auto 10px; color: var(--ink-3); }
.empty h3 { font-family: var(--font-ui); font-weight: 700; margin-bottom: 4px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-size: 0.9rem; background: rgba(63, 134, 209, 0.1); border-left: 3px solid var(--blue-2); border-radius: 3px; }
.notice .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--blue-2); }
.notice.amber { background: rgba(224, 164, 74, 0.1); border-color: var(--amber); } .notice.amber .ic { color: var(--amber-2); }
.notice.blood { background: rgba(216, 74, 69, 0.12); border-color: var(--blood); } .notice.blood .ic { color: #f08b86; }
.notice.green { background: rgba(111, 207, 127, 0.1); border-color: var(--green); } .notice.green .ic { color: var(--green); }
.countdown { display: inline-flex; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; }
.countdown b { display: inline-grid; place-items: center; min-width: 48px; padding: 6px 4px 3px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); line-height: 1; }
.countdown b small { font-family: var(--font-ui); font-weight: 600; font-size: 0.56rem; color: var(--ink-3); letter-spacing: 0.14em; margin-top: 3px; }
.divider { height: 1px; margin: 16px 0; background: var(--line); }
.diag { height: 1px; margin: 36px 0; background: var(--line); }
.icon-tile { width: 52px; height: 52px; display: grid; place-items: center; background: rgba(125, 184, 240, 0.1); color: var(--blue-2); border-radius: var(--r); flex: 0 0 auto; }
.icon-tile .ic { width: 24px; height: 24px; }
.icon-tile.amber { color: var(--amber-2); background: rgba(224, 164, 74, 0.12); } .icon-tile.green { color: var(--green); background: rgba(111, 207, 127, 0.12); }
.icon-tile.blood { color: #f08b86; background: rgba(216, 74, 69, 0.14); } .icon-tile.violet { color: #c9b6f0; background: rgba(160, 130, 220, 0.14); }
.icon-tile.sm { width: 38px; height: 38px; } .icon-tile.sm .ic { width: 18px; height: 18px; } .icon-tile.lg { width: 76px; height: 76px; } .icon-tile.lg .ic { width: 36px; height: 36px; }
.dino-sil { width: 100%; height: auto; color: var(--ink-2); } .dino-sil.sm { width: 56px; }

/* ---------- Accueil : héros plein écran ---------- */
.hero { position: relative; width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); min-height: calc(100vh - var(--topbar-h) - var(--subnav-h)); display: flex; align-items: flex-end; padding: 80px max(24px, calc(50vw - var(--max) / 2 + 24px)) 64px; background: linear-gradient(180deg, rgba(9, 13, 19, 0) 40%, var(--bg) 100%); }
.hero > div:first-child { max-width: 720px; }
.hero + .strip { margin-top: -20px; position: relative; z-index: 2; }
.hero-kicker { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.34em; color: var(--blue-2); text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ''; width: 40px; height: 2px; background: var(--blue-2); }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(4rem, 11vw, 9.5rem); line-height: 0.88; letter-spacing: 0.02em; margin: 0; text-transform: uppercase; color: #fff; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); }
.hero-title .pvp { display: block; color: var(--blue-2); }
.hero-title span, .hero-title .pvp { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; } .hero-title .pvp { animation-delay: 0.12s; }
.hero-tagline { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: 0.34em; color: var(--ink-2); margin-top: 22px; text-transform: uppercase; }
.hero-tagline em { font-style: normal; color: var(--amber-2); }
.hero-lead { color: var(--ink-2); max-width: 56ch; margin-top: 18px; font-size: 1.05rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-side { display: none; }
.hero-scroll { position: absolute; right: max(24px, calc(50vw - var(--max) / 2 + 24px)); bottom: 28px; font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.34em; color: var(--ink-3); text-transform: uppercase; writing-mode: vertical-rl; }
.server-card .big { font-family: var(--font-head); font-weight: 700; font-size: 3rem; line-height: 1; color: #fff; }
.server-card .big small { font-size: 1.1rem; color: var(--ink-3); }
/* Illustration héros fournie (PNG transparent) : remplace le T-rex 3D si présente */
.hero-art { position: absolute; right: max(0px, calc(50vw - var(--max) / 2 - 40px)); bottom: 0; height: min(92%, 820px); width: auto; max-width: 62vw; object-fit: contain; pointer-events: none; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75)); animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@media (max-width: 860px) { .hero-art { height: 46%; max-width: 70vw; right: -6vw; opacity: 0.85; } }
/* Vidéo héros : fond plein cadre (mode background) ou personnage détouré (mode character) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -1; pointer-events: none; display: none; }
.hero-video.character { inset: auto max(0px, calc(50vw - var(--max) / 2 - 40px)) 0 auto; width: auto; max-width: 62vw; height: min(92%, 820px); object-fit: contain; z-index: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75)); }
body.has-hero-video .hero-video { display: block; }
body.has-hero-video .hero, body.has-bg-video .hero { background: linear-gradient(90deg, rgba(9, 13, 19, 0.85) 0%, rgba(9, 13, 19, 0.35) 55%, rgba(9, 13, 19, 0.1) 100%), linear-gradient(180deg, rgba(9, 13, 19, 0) 40%, var(--bg) 100%); overflow: hidden; }
body.has-bg-video .page-head { background: linear-gradient(90deg, rgba(9, 13, 19, 0.8) 0%, rgba(9, 13, 19, 0.3) 60%, rgba(9, 13, 19, 0.15) 100%), linear-gradient(180deg, rgba(9, 13, 19, 0.1) 0%, rgba(9, 13, 19, 0.35) 50%, var(--bg) 100%); }
body.has-hero-video .hero-art { display: none; }
@media (max-width: 860px) { .hero-video.character { height: 46%; max-width: 70vw; right: -6vw; opacity: 0.85; } }
/* Fil « Sur l'île » : dans le conteneur, sous le bandeau */
.ticker { display: flex; align-items: center; height: 44px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.04em; color: var(--ink-2); }
.ticker .tk-label { flex: 0 0 auto; height: 100%; padding: 0 18px; display: flex; align-items: center; gap: 8px; color: var(--blue-2); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; border-right: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 1; }
.ticker .tk-viewport { flex: 1 1 auto; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker .tk-track { display: flex; gap: 40px; white-space: nowrap; animation: ticker 50s linear infinite; padding-left: 24px; }
.ticker .tk-track span { display: inline-flex; align-items: center; gap: 8px; } .ticker .tk-track span b { color: #fff; font-weight: 600; }
.ticker .tk-track span em { font-style: normal; font-family: var(--font-num); font-weight: 700; font-size: 0.8rem; min-width: 26px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 11px; background: rgba(125, 184, 240, 0.16); color: var(--blue-2); }
.ticker .tk-track span i { font-style: normal; color: var(--ink-3); margin-left: 8px; }
.ticker:hover .tk-track { animation-play-state: paused; }
/* Derniers combats */
.panel.flush > .pi { display: flex; flex-direction: column; }
.panel.flush > .pi > .ptitle { margin: 0; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.panel.flush > .pi > .ptitle .right { white-space: nowrap; }
.panel.flush > .pi > .rows { flex: 1 1 auto; }
.fights .row { flex: 1 1 auto; padding: 10px 16px; }
.fights .fight { display: grid; gap: 2px; font-size: 0.9rem; line-height: 1.35; }
.fights .fight .diet { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; margin-left: 4px; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); vertical-align: 1px; }
.fights .fight .diet.blood { background: rgba(216, 74, 69, 0.22); color: #f08b86; } .fights .fight .diet.green { background: rgba(111, 207, 127, 0.18); color: var(--green); } .fights .fight .diet.amber { background: rgba(224, 164, 74, 0.2); color: var(--amber-2); }
.fights .fight .abattu { font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #f08b86; margin-right: 4px; }
/* Cartes vedettes (image 3D + titre) */
.feature-card { position: relative; display: block; min-height: 320px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: radial-gradient(70% 50% at 50% 40%, rgba(63, 134, 209, 0.18), transparent 70%), var(--bg-2); color: var(--ink); transition: transform 0.25s ease, border-color 0.25s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-2); color: var(--ink); }
.feature-card .fc-img { position: absolute; inset: 0 0 28%; display: grid; place-items: center; }
.feature-card .fc-img img { width: 104%; max-width: none; aspect-ratio: 4 / 3; object-fit: contain; background: none; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.7)); transition: transform 0.4s ease; }
.feature-card:hover .fc-img img { transform: scale(1.06) translateY(-6px); }
.feature-card .fc-label { position: absolute; left: 18px; top: 16px; font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.24em; color: var(--blue-2); text-transform: uppercase; }
.feature-card .fc-body { position: absolute; inset: auto 0 0; padding: 20px 18px 18px; background: linear-gradient(180deg, rgba(14, 20, 28, 0), rgba(14, 20, 28, 0.95) 45%); }
.feature-card h3 { font-size: 1.35rem; letter-spacing: 0.06em; } .feature-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.9rem; }
/* Vitrine des espèces : nom géant derrière le dino */
.species-rail { display: flex; gap: 16px; overflow-x: auto; padding: 6px 0 6px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.species-rail::-webkit-scrollbar { display: none; }
.rail-nav { display: inline-flex; gap: 6px; margin-left: 12px; }
.rail-bar { height: 3px; margin-top: 14px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; position: relative; overflow: hidden; }
.rail-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--blue-2); border-radius: 2px; transition: transform 0.2s; }
.species-card { position: relative; flex: 0 0 calc((100% - 48px) / 4); min-width: 240px; height: 360px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); color: var(--ink); }
.species-card .sp-bg { position: absolute; left: 10px; top: 10px; font-family: var(--font-display); font-size: 4.6rem; line-height: 0.85; color: rgba(255, 255, 255, 0.045); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.species-card img { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 112%; max-width: none; aspect-ratio: 4 / 3; object-fit: contain; background: none; filter: drop-shadow(0 30px 24px rgba(0, 0, 0, 0.75)); transition: transform 0.4s ease; }
.species-card:hover img { transform: translate(-50%, -54%) scale(1.06); }
.species-card .sp-body { position: absolute; inset: auto 0 0; padding: 18px; background: linear-gradient(180deg, rgba(14, 20, 28, 0), rgba(14, 20, 28, 0.96) 40%); }
.species-card h3 { font-size: 1.5rem; } .species-card .sp-body .flex { margin-top: 8px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; margin-bottom: 4px; text-transform: none; letter-spacing: 0; }
.feature p { color: var(--ink-2); font-size: 0.9rem; }
.home-section { margin-top: 56px; }
.home-section > h2 { font-size: 1.8rem; margin-bottom: 20px; }
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; align-items: end; }
.podium .pod { text-align: center; padding: 20px 12px 16px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.podium .pod.p1 { padding-top: 36px; border-color: rgba(224, 164, 74, 0.4); background: linear-gradient(180deg, rgba(224, 164, 74, 0.12), var(--bg-3)); }
.podium .pod .avatar { margin: 0 auto 8px; } .podium .pod .nm { font-weight: 700; }
.podium .pod .sc { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--amber-2); }
/* Pied de bande géante */
.giant { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 9rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; pointer-events: none; user-select: none; }

/* ---------- Sac de survie ---------- */
.bag-cap { padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.bag-cap .num { font-family: var(--font-head); font-size: 1.15rem; color: var(--blue-2); }
.bag-cap.near .num { color: var(--amber-2); } .bag-cap.is-full .num { color: #f08b86; }
.bag-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 4px; margin: 12px 0 10px; }
.bag-slots i { display: block; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); }
.bag-slots i.on { background: var(--blue-2); box-shadow: 0 0 8px rgba(125, 184, 240, 0.45); }
.bag-cap.near .bag-slots i.on { background: var(--amber); box-shadow: 0 0 8px rgba(224, 164, 74, 0.45); } .bag-cap.is-full .bag-slots i.on { background: var(--blood); box-shadow: 0 0 8px rgba(216, 74, 69, 0.45); }
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bag-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 10%, var(--bg-2)), var(--bg-2) 70%); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); border-radius: 6px; color: var(--ink); text-align: center; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.bag-item:hover { transform: translateY(-4px); border-color: var(--rc); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent); }
.bag-item.rar-legendaire::after { content: ''; position: absolute; inset: -1px; border-radius: 7px; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(240, 180, 92, 0.25) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 3s linear infinite; }
.bag-qty { position: absolute; right: 10px; top: 10px; padding: 2px 8px; font-family: var(--font-num); font-weight: 700; font-size: 0.8rem; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); }
.bag-icon { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 72%); }
.bag-icon.lg { width: 120px; height: 120px; margin: 0 auto; }
.bag-emoji { font-size: 46px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); transition: transform 0.25s ease; }
.bag-icon.lg .bag-emoji { font-size: 68px; }
.bag-item:hover .bag-emoji { transform: scale(1.12) translateY(-3px); }
.bag-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.bag-meta { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rc, var(--ink-3)); }
.bag-detail { text-align: center; }
.bag-detail h2 { margin-top: 12px; font-size: 1.6rem; }
.bag-actions { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.bag-stepper { display: inline-flex; align-items: center; gap: 6px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.bag-stepper b { min-width: 34px; text-align: center; font-family: var(--font-num); font-size: 1.1rem; }

/* ---------- Boutique d'objets ---------- */
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.shop-balance { display: flex; align-items: center; gap: 14px; }
.shop-balance b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--amber-2); }
.shop-balance span:last-child { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 16px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 9%, var(--bg-2)), var(--bg-2) 65%); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); border-radius: 6px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.shop-item:hover { transform: translateY(-3px); border-color: var(--rc); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.shop-item .bag-icon { width: 72px; height: 72px; } .shop-item .bag-emoji { font-size: 40px; }
.shop-price { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--amber-2); }
.shop-price .ic { width: 20px; height: 20px; color: var(--amber); }
.shop-hours { font-size: 0.74rem; color: var(--ink-3); margin-bottom: 8px; }
.shop-item .btn { margin-top: auto; }

/* ---------- ElderPrime ---------- */
.ep-kicker { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--blue-2); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ep-kicker::before { content: ''; width: 22px; height: 2px; background: var(--blue-2); }
.ep-intro { padding: 22px 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.ep-intro p { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; } .ep-intro b { color: var(--blue-2); }
.ep-status { display: flex; align-items: center; gap: 24px; padding: 22px 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; flex-wrap: wrap; }
.ep-status h2 { font-size: 1.8rem; margin-bottom: 4px; }
.ep-status.prime { border-color: rgba(240, 180, 92, 0.5); background: linear-gradient(90deg, rgba(240, 180, 92, 0.12), var(--bg-2) 60%); }
.ep-ring { --p: 0; position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue-2) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); flex: 0 0 auto; }
.ep-ring::before { content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: var(--bg-2); }
.ep-ring span { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: #fff; line-height: 1; }
.ep-ring span small { font-size: 1rem; color: var(--ink-3); }
.ep-status.prime .ep-ring { background: conic-gradient(var(--amber-2) 100%, transparent 0); }
.ep-dino { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ep-dino .thumb3d { width: 120px; }
.ep-zone { padding: 14px 0 10px; border-top: 1px solid var(--line); }
.ep-zone .name { align-items: baseline; gap: 10px; flex-wrap: wrap; } .ep-zone .name > span { white-space: normal; } .ep-zone .bar { margin-top: 8px; }
.ep-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-3); display: inline-block; vertical-align: -1px; flex: 0 0 auto; }
.ep-dot.ok { background: var(--green); border-color: var(--green); box-shadow: 0 0 8px rgba(111, 207, 127, 0.6); }
.ep-table { display: flex; flex-direction: column; }
.ep-row { display: grid; grid-template-columns: 70px 1fr 120px; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.15s; }
.ep-row:last-child { border-bottom: 0; } .ep-row:hover { background: rgba(255, 255, 255, 0.03); }
.ep-row.head { cursor: default; color: var(--ink-3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 12px; padding-bottom: 12px; }
.ep-row.head:hover { background: none; }
.ep-row > span:last-child { text-align: right; }
.ep-state { display: grid; place-items: center; } .ep-state i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-3); display: block; }
.ep-state .ic { width: 20px; height: 20px; color: var(--green); }
.ep-row.ok b { color: #fff; }
.ep-how { display: none; font-size: 0.85rem; color: var(--ink-2); margin-top: 4px; font-weight: 400; }
.ep-row.open .ep-how { display: block; }
.ep-row.ok .tag.green { box-shadow: 0 0 0 1px rgba(111, 207, 127, 0.5); }
@media (max-width: 860px) { .ep-row { grid-template-columns: 40px 1fr 90px; padding: 12px; } .ep-dino { margin-left: 0; } }

/* ---------- Histoire ---------- */
.story-text { padding: 28px 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.story-text p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.1em; }
.story-text p:last-child { margin-bottom: 0; }
.story-text .story-first::first-letter { font-family: var(--font-display); font-size: 3.2rem; line-height: 0.85; float: left; margin: 6px 10px 0 0; color: var(--blue-2); }
.story-growth { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 18px 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.story-growth .sg { flex: 0 0 auto; text-align: center; min-width: 110px; }
.story-growth .sg b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; color: #fff; }
.story-growth .sg:last-child b { color: var(--blue-2); }
.story-growth .sg span { display: block; margin-top: 4px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.story-growth i { flex: 1 1 auto; height: 2px; min-width: 24px; background: linear-gradient(90deg, var(--line-2), var(--blue-2)); }
.story-card { padding: 24px 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.story-card.v2 { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(63, 134, 209, 0.35), 0 20px 50px rgba(0, 0, 0, 0.4); }
.story-card.today { border-color: var(--blue); background: linear-gradient(180deg, rgba(63, 134, 209, 0.12), var(--bg-2) 70%); }
.story-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.story-card p { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.story-card.today p { color: var(--ink); }
@media (max-width: 860px) { .story-text { padding: 20px; } }

/* ---------- Règlement ---------- */
.rl { display: flex; flex-direction: column; gap: 16px; }
.rl-intro { padding: 16px 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); font-size: 1rem; }
.rl-intro b { color: var(--blue-2); }
.rl-section { padding: 20px 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.rl-section.rl-amber { border-color: rgba(224, 164, 74, 0.5); }
.rl-section h2 { font-size: 1.35rem; letter-spacing: 0.04em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.rl-index { color: var(--blue-2); font-family: var(--font-head); }
.rl-title { font-size: 1.4rem; margin: 10px 0 -6px; display: flex; align-items: center; gap: 8px; }
.rl-line { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 1.02rem; color: var(--ink-2); line-height: 1.5; }
.rl-line > span:last-child { flex: 1; }
.rl-mark { width: 20px; flex: 0 0 auto; text-align: center; font-weight: 700; font-size: 1rem; line-height: 1.5; }
.rl-mark.ok { color: var(--green); } .rl-mark.no { color: #ef5a52; } .rl-mark.warn { color: var(--amber-2); } .rl-mark.dot { color: var(--ink-3); }
.rl-num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 8px; padding: 0 5px; border-radius: 4px; background: rgba(63, 134, 209, 0.25); color: var(--blue-2); font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; vertical-align: 2px; }
.rl-head { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; color: var(--blue-2); padding: 10px 0 2px 32px; }
.rl-note { font-size: 0.85rem; color: var(--ink-3); padding: 2px 0 8px 32px; }
.rl-sub { display: flex; gap: 8px; font-size: 0.88rem; color: var(--ink-3); padding: 4px 0 4px 32px; }
.rl-arrow { color: var(--blue-2); }
.rl-outro { padding: 22px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.08em; color: var(--blue-2); border: 1px solid var(--blue); border-radius: var(--r); background: rgba(63, 134, 209, 0.08); }
.rl-tier { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 7px; box-shadow: 0 0 8px currentColor; }
.rl-table { padding: 4px 24px; }
.rl-row { display: grid; grid-template-columns: 20px 260px 90px 1fr; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rl-row:last-child { border-bottom: 0; }
.rl-row .rl-tier { margin-top: 0; }
.rl-name { font-weight: 700; color: var(--ink); }
.rl-max { display: inline-grid; place-items: center; padding: 3px 10px; border: 1px solid; border-radius: 12px; font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; }
.rl-desc { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 860px) { .rl-row { grid-template-columns: 16px 1fr 80px; } .rl-desc { grid-column: 2 / -1; } }

/* ---------- Amis ---------- */
.fr-block { padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.fr-block.amber { border-color: rgba(224, 164, 74, 0.45); }
.fr-search { position: sticky; top: calc(var(--topbar-h) + var(--subnav-h) + 16px); }
.fr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fr-row:last-child { border-bottom: 0; }
.fr-row .name > span { white-space: normal; }
.fr-status { font-size: 0.76rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.fr-list { margin-top: 12px; max-height: 60vh; overflow: auto; }
@media (max-width: 860px) { .fr-search { position: static; } }

/* ---------- Partenaires ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pt-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; text-align: center; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.pt-card:hover { transform: translateY(-4px); border-color: var(--blue-2); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.pt-card b { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pt-more { font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-2); }
.pt-logo { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--blue-2); }
.pt-card .pt-logo { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.row .pt-logo { width: 48px; height: 48px; border-radius: 8px; font-size: 1rem; }
#pt-preview .pt-logo { width: 64px; height: 64px; border-radius: 8px; }
.pt-fiche { text-align: center; } .pt-fiche .pt-logo { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 16px; }
.pt-fiche h2 { font-size: 1.6rem; margin-bottom: 8px; }

/* ---------- Partenaires ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pt-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.pt-card:hover { transform: translateY(-4px); border-color: var(--blue-2); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.pt-card b { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pt-more { font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-2); }
.st-photo { border-radius: 50%; }
.pt-logo { object-fit: cover; border-radius: 12px; background: var(--bg); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); display: inline-block; }
.pt-empty { display: inline-grid; place-items: center; color: var(--ink-3); border: 1px dashed var(--line-2); }
.pt-empty .ic { width: 40%; height: 40%; }

/* ---------- Équipe ---------- */
.st-photo { object-fit: cover; border-radius: 50%; background: var(--bg); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--line-2); display: inline-block; }
.st-empty { display: inline-grid; place-items: center; color: var(--ink-2); font-family: var(--font-head); font-weight: 700; background: linear-gradient(135deg, #3f86d1, #1f3f66); }
.st-grade { display: inline-block; padding: 3px 10px; border: 1px solid; border-radius: 12px; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.st-card .small { margin-top: -2px; }

/* ---------- TopServer ---------- */
.ts-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.ts-hero h2 { font-size: 1.5rem; margin-bottom: 6px; } .ts-hero p { margin: 0 0 4px; }
.ts-cta { text-align: right; }
.ts-prize { padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: var(--r); }
.ts-prize.p1 { border-left-color: var(--amber-2); } .ts-prize.p2 { border-left-color: #cfd6de; } .ts-prize.p3 { border-left-color: #c98a5a; }
.ts-rank { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.ts-line { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-weight: 600; }
.ts-quality { margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-2); }
.ts-medal { font-size: 1.2rem; text-align: center; font-family: var(--font-head); font-weight: 700; }
.ts-admin { padding: 20px 24px; background: var(--bg-2); border: 1px solid rgba(224, 164, 74, 0.35); border-radius: var(--r); }
@media (max-width: 860px) { .ts-cta { text-align: left; } }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); }
.pager-btns { display: flex; align-items: center; gap: 6px; }
.pager-btns .btn.sm { min-width: 36px; padding-left: 10px; padding-right: 10px; }
.pager-btns .btn.sm .ic { width: 14px; height: 14px; }
.bag-grid + .pager, .shop-grid + .pager, .grid + .pager, .pt-grid + .pager { border-top: 0; padding-left: 0; padding-right: 0; }

/* ---------- Mutations ---------- */
.mu-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mu-slot { padding: 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); }
.mu-slot.ok { border-color: rgba(111, 207, 127, 0.55); } .mu-slot.bad { border-color: rgba(216, 74, 69, 0.7); } .mu-slot.elder { border-style: dashed; border-color: rgba(240, 180, 92, 0.6); }
.mu-slot-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--ink-2); }
.mu-slot-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.8rem; }
.mu-slot.elder .mu-slot-n { background: var(--amber); color: #1f1204; }
.mu-verdict { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.mu-verdict.ok { border-color: var(--green); background: rgba(111, 207, 127, 0.08); } .mu-verdict.bad { border-color: var(--blood); background: rgba(216, 74, 69, 0.08); }
.mu-list { margin: 10px 0 0; padding-left: 18px; font-size: 0.88rem; color: var(--ink-2); } .mu-list.bad { color: #f08b86; }
.mu-card { padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; }
.mu-card p { margin: 0; } .mu-pct { color: var(--blue-2); font-family: var(--font-head); font-size: 0.9rem; margin-left: 4px; }

/* ---------- Profil (page fournie) : ajustements DA ---------- */
.profile-visual { overflow: hidden; }
/* Colonnes du profil : cadres à la taille de leur contenu, jamais coupés (doublon volontaire du correctif de profil.js) */
.profile-redesign .profile-columns { align-items: stretch !important; }
.profile-redesign .profile-columns > .profile-column { height: auto !important; min-height: 0 !important; grid-template-rows: minmax(max-content, 1fr) !important; align-content: stretch !important; }
.profile-redesign .profile-columns > .profile-column:nth-child(2) { grid-template-rows: auto auto minmax(max-content, 1fr) !important; }
.profile-redesign .profile-columns > .profile-column > .profile-card { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; padding: 18px !important; box-sizing: border-box !important; align-self: stretch !important; }
.profile-redesign .dino-mini { min-height: 92px !important; padding: 14px 12px !important; justify-content: center !important; }
.profile-redesign .badge-show { min-height: 92px !important; padding: 12px 8px !important; }
.profile-redesign .dino-mini h4 { margin: 0 0 6px !important; }
.profile-redesign .dino-mini .mini-line { padding-bottom: 2px; }
dialog.profile-cover-editor { overscroll-behavior: contain !important; }
dialog.profile-cover-editor #cover-crop-stage { touch-action: none; user-select: none; cursor: grab; }
dialog.profile-cover-editor #cover-crop-stage.dragging { cursor: grabbing; }
dialog.profile-cover-editor #cover-crop-stage img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
/* Curseurs de l'éditeur */
dialog.profile-cover-editor input[type=range] { -webkit-appearance: none !important; appearance: none !important; width: 100% !important; height: 4px !important; border-radius: 2px !important; background: rgba(255, 255, 255, 0.14) !important; outline: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
dialog.profile-cover-editor input[type=range]::-webkit-slider-runnable-track { height: 4px; background: transparent; border: 0; }
dialog.profile-cover-editor input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 0 0 3px rgba(125, 184, 240, 0.35); cursor: pointer; }
dialog.profile-cover-editor input[type=range]::-moz-range-track { height: 4px; background: rgba(255, 255, 255, 0.14); border: 0; border-radius: 2px; }
dialog.profile-cover-editor input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; background: #fff; border-radius: 50%; box-shadow: 0 0 0 3px rgba(125, 184, 240, 0.35); cursor: pointer; }
dialog.profile-cover-editor .cover-simple-controls label { display: grid !important; grid-template-columns: 90px 1fr 52px !important; align-items: center !important; gap: 12px !important; padding: 6px 0 !important; }
dialog.profile-cover-editor .cover-simple-controls label > span { font-size: 0.8rem; color: var(--ink-2); }
dialog.profile-cover-editor .cover-simple-controls label > b { text-align: right; font-family: var(--font-num); font-size: 0.9rem; color: var(--ink); }
/* Bouton fermer */
dialog.profile-cover-editor .cover-close { width: 38px !important; height: 38px !important; display: grid !important; place-items: center !important; padding: 0 !important; margin: 0 !important; background: rgba(255, 255, 255, 0.05) !important; border: 1px solid var(--line-2) !important; border-radius: 6px !important; color: var(--ink-2) !important; font-size: 1.1rem !important; line-height: 1 !important; cursor: pointer !important; box-shadow: none !important; }
dialog.profile-cover-editor .cover-close:hover { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
dialog.profile-cover-editor .cover-close .ic { width: 16px !important; height: 16px !important; }

dialog.profile-cover-editor::backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(2, 6, 10, 0.86) !important; }
body.editor-open .bg-scan { display: none; }
.profile-insight-grid { align-items: stretch !important; }
.profile-insight-grid > .insight-panel { height: 100% !important; align-self: stretch !important; min-height: 0 !important; display: flex !important; flex-direction: column !important; box-sizing: border-box !important; }
.profile-insight-grid > .insight-panel > .insight-metrics { margin-top: auto !important; }
.profile-insight-grid > .progression-panel > .insight-metrics { margin-top: auto !important; }
.profile-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.theme-color-field, .theme-color-field > * { min-width: 0 !important; }
.theme-color-field .input, .theme-color-field input[type=text] { width: 100% !important; min-width: 0 !important; }
.profile-redesign .profile-name, .profile-redesign .profile-card-title, .profile-redesign .profile-species b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Bannière cookies ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); animation: toastin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cookie-banner .cb-in { max-width: var(--max); margin: 0 auto; padding: 18px 22px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cookie-banner .cb-text { flex: 1 1 420px; font-size: 0.9rem; color: var(--ink-2); }
.cookie-banner .cb-text b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.cookie-banner .cb-text p { margin: 0; }
.cookie-banner .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .cookie-banner { left: 8px; right: 8px; bottom: 8px; } .cookie-banner .cb-actions { width: 100%; } .cookie-banner .cb-actions .btn { flex: 1 1 auto; } }

/* ---------- Modale ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(3, 6, 10, 0.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadein 0.2s ease; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; animation: modalin 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); background: var(--bg-3); }
.modal.wide { width: min(880px, 100%); }
.modal .mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal .mhead h2 { font-size: 1.2rem; letter-spacing: 0.08em; } .modal .mhead .close { margin-left: auto; }
.modal .mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Toasts / notifications ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 320; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: var(--bg-3); color: var(--ink); border: 1px solid var(--line-2); border-left: 3px solid var(--blue-2); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); animation: toastin 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); font-size: 0.92rem; }
.toast .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--blue-2); }
.toast.ok { border-left-color: var(--green); } .toast.ok .ic { color: var(--green); }
.toast.warn { border-left-color: var(--amber); } .toast.warn .ic { color: var(--amber-2); }
.toast.err { border-left-color: var(--blood); } .toast.err .ic { color: #f08b86; }
.toast.coin { border-left-color: var(--amber-2); } .toast.coin .ic { color: var(--amber-2); }
.toast.live { border-left-color: var(--blood); } .toast.live .ic { color: #f08b86; }
.toast.out { animation: toastout 0.3s ease forwards; }
.notif { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.88rem; cursor: pointer; position: relative; transition: background 0.15s; }
.notif:hover { background: rgba(255, 255, 255, 0.04); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: rgba(125, 184, 240, 0.06); }
.notif.unread::before { content: ''; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--blue-2); }
.notif .ic { width: 34px; height: 34px; padding: 8px; border-radius: 6px; background: rgba(125, 184, 240, 0.12); color: var(--blue-2); }
.notif.live .ic { color: #f08b86; background: rgba(216, 74, 69, 0.14); } .notif.coin .ic { color: var(--amber-2); background: rgba(224, 164, 74, 0.14); } .notif.ok .ic { color: var(--green); background: rgba(111, 207, 127, 0.12); } .notif.warn .ic { color: var(--amber-2); background: rgba(224, 164, 74, 0.14); }
.notif > div { min-width: 0; line-height: 1.4; }
.notif .when { font-size: 0.72rem; color: var(--ink-3); margin-top: 2px; }

/* ---------- Visionneuse 3D ---------- */
.viewer3d { position: relative; width: 100%; aspect-ratio: 4 / 3; background: radial-gradient(70% 60% at 50% 65%, rgba(63, 134, 209, 0.2), rgba(9, 13, 19, 0) 70%), var(--bg); overflow: hidden; border-radius: var(--r); cursor: grab; }
.viewer3d:active { cursor: grabbing; } .viewer3d canvas { width: 100% !important; height: 100% !important; }
.viewer3d .v-hint { position: absolute; left: 14px; bottom: 12px; font-size: 0.7rem; color: var(--ink-3); letter-spacing: 0.2em; text-transform: uppercase; pointer-events: none; }
.viewer3d .v-label { position: absolute; left: 14px; top: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.viewer3d.tall { aspect-ratio: 1 / 1; }
.viewer3d.nowebgl::before { content: 'WebGL indisponible'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.thumb3d { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: radial-gradient(70% 60% at 50% 65%, rgba(63, 134, 209, 0.2), transparent 70%), var(--bg); border-radius: var(--r); }

/* ---------- Carte ---------- */
.map-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #08111a; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: grab; }
.map-wrap:active { cursor: grabbing; } .map-wrap svg { width: 100%; height: 100%; }
.map-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.72rem; }
.poi { cursor: pointer; } .poi text { font-family: var(--font-ui); font-weight: 700; font-size: 11px; fill: #eef2f7; paint-order: stroke; stroke: #08111a; stroke-width: 3px; pointer-events: none; }
.poi.hidden { display: none; } .map-ping { animation: ping 1.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.footer-in { max-width: var(--max); margin: 0 auto; padding: 32px 24px; display: flex; gap: 30px; align-items: center; flex-wrap: wrap; color: var(--ink-3); font-size: 0.85rem; position: relative; }
.footer-in .brand-name { color: var(--ink-2); font-size: 1rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; } .footer-links a { color: var(--ink-2); font-family: var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.footer-demo { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.dev-page { text-align: center; padding: 40px 20px 30px; }
.dev-page .dev-mark { width: 110px; height: 110px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--amber-2); background: rgba(224, 164, 74, 0.1); border: 1px solid rgba(224, 164, 74, 0.35); border-radius: 50%; }
.dev-page .dev-mark .ic { width: 48px; height: 48px; }
.dev-page h2 { font-size: 1.8rem; margin-bottom: 8px; }
.dev-page .dev-badge { display: inline-block; margin-top: 14px; padding: 6px 18px; background: var(--amber); color: #1f1204; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.3em; border-radius: 3px; }
.lock-page { text-align: center; padding: 40px 20px; } .lock-page .ic { width: 46px; height: 46px; color: var(--ink-3); margin: 0 auto 12px; }
.dino-card { display: flex; flex-direction: column; gap: 10px; } .dino-card .top { display: flex; align-items: center; gap: 12px; }
.dino-card .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .dino-card .stats .stat .v { font-size: 1.3rem; }
.skin-card .thumb3d { margin-bottom: 8px; }
/* Sac de survie → Skins : envoyer un skin à un ami (inventaire.js, préfixe skenv-) */
.skenv-recu { display: flex; align-items: center; gap: 6px; color: var(--blue-2); } .skenv-recu .ic { width: 13px; height: 13px; }
.skenv-skin { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; }
.skenv-skin .thumb3d { width: 160px; height: 110px; object-fit: contain; border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.skenv-amis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.skenv-ami { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; }
.skenv-ami:hover:not([disabled]) { border-color: var(--blue-2); background: rgba(63, 134, 209, .08); }
.skenv-ami[disabled] { cursor: not-allowed; opacity: .6; }
.skenv-ami > .ic { width: 16px; height: 16px; margin-left: auto; color: var(--ink-3); }
.skenv-ami-txt { display: flex; flex-direction: column; min-width: 0; } .skenv-ami-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skenv-dest { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.skenv-cout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.skenv-cout > div { display: flex; flex-direction: column; gap: 2px; } .skenv-cout b { font-size: 1.25rem; display: flex; align-items: center; gap: 5px; } .skenv-cout .ic { width: 15px; height: 15px; }
@media (max-width: 560px) { .skenv-skin { grid-template-columns: 1fr; } .skenv-cout { grid-template-columns: 1fr 1fr; } }
.pattern-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.74rem; border-radius: var(--r); cursor: pointer; }
.pattern-btn:hover { border-color: var(--line-2); color: #fff; } .pattern-btn.active { border-color: var(--blue-2); color: #fff; box-shadow: inset 0 0 0 1px var(--blue-2); }
.pattern-btn svg { width: 48px; height: 30px; }
.pattern-btn .pattern-thumb { width: 100%; height: 62px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.02); }
.pattern-btn.active .pattern-thumb { background: rgba(58,160,255,.07); }
.pattern-btn .pattern-flat { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.voice-user { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.voice-user.speaking .avatar { box-shadow: 0 0 0 2px var(--green); }
.voice-user .lvl { margin-left: auto; display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.voice-user .lvl i { width: 4px; background: var(--ink-3); height: 30%; border-radius: 2px; }
.voice-user.speaking .lvl i { background: var(--green); animation: vu 0.6s ease-in-out infinite alternate; }
.voice-user.speaking .lvl i:nth-child(2) { animation-delay: 0.1s; } .voice-user.speaking .lvl i:nth-child(3) { animation-delay: 0.2s; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before { content: ''; position: absolute; left: -24px; top: 7px; width: 9px; height: 9px; background: var(--blue-2); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.tl-item .when { font-family: var(--font-head); font-weight: 700; color: var(--blue-2); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; }
.tl-item h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; margin: 2px 0 4px; text-transform: none; letter-spacing: 0; }
.badge-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.badge-tile.locked { opacity: 0.35; filter: grayscale(1); } .badge-tile .nm { font-weight: 700; font-size: 0.85rem; } .badge-tile .ds { font-size: 0.74rem; color: var(--ink-3); }
.team-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.team-vs .vs { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink-3); }
.team-score { font-family: var(--font-display); font-size: 4.2rem; line-height: 1; letter-spacing: 0.04em; }
.team-score.red { color: #ef7b76; } .team-score.blue { color: #7db8f0; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--amber-2); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.02em; }
.price .ic { width: 20px; height: 20px; color: var(--amber); } .price.eur { color: var(--green); } .price.sm { font-size: 1.1rem; } .price.sm .ic { width: 15px; height: 15px; }
.dev-grid .panel .pi { display: flex; gap: 12px; align-items: center; }

@keyframes pagein { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalin { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateX(30px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.6; } }
@keyframes coinbump { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-12deg); } 100% { transform: scale(1); } }
@keyframes vu { from { height: 25%; } to { height: 100%; } }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes fog { from { transform: translate3d(-4%, 2%, 0) scale(1); } to { transform: translate3d(4%, -2%, 0) scale(1.08); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; height: 14px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; } }

@media (max-width: 1560px) {
  .nav-link { padding: 0 8px; font-size: 0.88rem; letter-spacing: 0.06em; } .brand-tag { display: none; } .wallet { font-size: 1.02rem; padding: 6px 10px 6px 8px; }
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-link { padding: 0 9px; font-size: 0.9rem; } .brand-tag { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; } .burger { display: grid; }
  .grid-2, .grid-3, .grid-main, .grid-side, .tri { grid-template-columns: 1fr; }
  .wallet .amount-label { display: none; } .user-chip .role { display: none; } .btn-steam span { display: none; } .btn-steam { padding: 10px 12px; }
  .team-vs { grid-template-columns: 1fr; text-align: center; } .page-head .ph-right { margin-left: 0; }
  .wallet-pop, .bell-pop, .user-pop { width: min(320px, calc(100vw - 30px)); }
  .podium { grid-template-columns: 1fr; } .podium .pod.p1 { padding-top: 18px; } .footer-demo { margin-left: 0; }
  .hero { padding-top: 40px; padding-bottom: 40px; min-height: 72vh; } .hero-scroll { display: none; }
  .page-head { min-height: 220px; padding-top: 30px; padding-bottom: 28px; margin-bottom: 28px; }
  .band { padding-top: 48px; padding-bottom: 48px; } .species-card { flex-basis: 240px; height: 300px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; } .page { padding-bottom: 60px; } .page > :not(.page-head):not(.hero):not(.band):not(.full) { width: calc(100% - 28px); } .topbar-in, .subnav-in { padding: 0 12px; } .brand-text { display: none; }
  .stat .v { font-size: 1.6rem; } .hero-title { font-size: 3.6rem; } .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(2) { border-right: 0; } .strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .strip b { font-size: 1.8rem; }
  .topbar-in { gap: 8px; } .topbar-right { gap: 6px; } .brand { margin-right: 0; } .brand-mark { height: 42px; } .wallet { padding: 6px 10px 6px 8px; font-size: 1rem; }
  .user-chip { padding: 3px; gap: 0; } .user-chip > span, .user-chip > .ic { display: none; } .user-chip .avatar { width: 32px; height: 32px; }
}

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; } .drawer.open { display: block; }
.drawer .dback { position: absolute; inset: 0; background: rgba(3, 6, 10, 0.72); }
.drawer .dpan { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 90vw); background: var(--bg-2); border-left: 1px solid var(--line-2); overflow: auto; padding: 18px 14px 40px; animation: drawerin 0.25s ease; }
@keyframes drawerin { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .dcat { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.24em; color: var(--blue-2); padding: 14px 8px 6px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.drawer .dcat .ic { width: 14px; height: 14px; } .drawer .dd-link { padding: 9px 12px; }


/* ======================= Achats de dinosaures ======================= */
.buy-grid { gap: 14px; }
.buy-card { padding: 0 !important; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.buy-card .pi { padding: 0 !important; }
.buy-card-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.buy-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-card-price { position: absolute; top: 10px; right: 10px; background: rgba(9, 13, 19, .82); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(4px); }
.buy-card-body { padding: 12px 14px 14px; }
.buy-card-body h3 { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: .02em; margin-bottom: 4px; color: var(--ink); }
.buy-card:hover .buy-card-body h3 { color: var(--blue-2); }
.buy-config .viewer3d { height: 260px; }
.buy-total { font-family: var(--font-num); font-size: 1.9rem; font-weight: 700; color: var(--amber-2); line-height: 1; }
.buy-total .ic { width: 20px; height: 20px; }
.buy-muts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.buy-mut { text-align: left; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink-2); font-size: .82rem; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.buy-mut:hover { border-color: var(--line-2); color: #fff; }
.buy-mut.on { border-color: var(--blue-2); color: #fff; background: rgba(125, 184, 240, .1); box-shadow: inset 0 0 0 1px var(--blue-2); }
.buy-mut.off { opacity: .45; }
@media (max-width: 820px) {
  .buy-muts { max-height: none; grid-template-columns: 1fr 1fr; }
  .buy-config .viewer3d { height: 220px; }
}


/* ---- Boutique : packs de pièces (cartes de même hauteur, bouton aligné en bas) ---- */
.shop-pack, .shop-pack > .pi { height: 100%; }
.shop-pack > .pi { display: flex; flex-direction: column; }
.shop-pack-inner { display: flex; flex-direction: column; flex: 1 1 auto; }
.shop-pack-price { margin-top: auto; padding-top: 14px; }

.tag.tiny { padding: 1px 6px; font-size: 0.62rem; letter-spacing: 0.1em; margin-left: 8px; }

/* Rappels dans les cartes de packs */
.shop-notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.shop-notes li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; line-height: 1.35; color: var(--ink-3); }
.shop-notes .ic { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: var(--ink-2); }

/* ---- Boutique : pack « montant libre » ---- */
.shop-custom-coins { font-family: var(--font-num); font-weight: 700; font-size: 1.25rem; color: var(--amber-2); display: inline-flex; align-items: center; gap: 6px; }
.shop-custom-coins .ic { width: 16px; height: 16px; }
.shop-custom-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.shop-custom-row .btn { padding: 8px 10px; }
.shop-custom-field { position: relative; flex: 0 1 120px; }
.shop-custom-field .input { padding-right: 26px; font-family: var(--font-num); font-size: 1.1rem; font-weight: 700; }
.shop-custom-field .input::-webkit-outer-spin-button, .shop-custom-field .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-custom-field .input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.shop-custom-unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .9rem; pointer-events: none; }


/* ---- Profil : dino en jeu (direct) ---- */
.live-dino.on { border-color: rgba(88, 200, 140, .35); }
.live-dino .live-dino-thumb { width: 116px; height: 88px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.03); flex: 0 0 auto; }

/* ======================= Skins : Skin, Skin Extra, admin ======================= */
/* Les panneaux colorés (sonar, amber) ne teintent pas le texte sur ces pages. */
.page-skin .panel, .page-skin-extra .panel, .page-admin-skins .panel { color: var(--ink); }
/* Zones de couleur du jeu (sous l'aperçu 3D) */
.sk-zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px 16px 0; }
.sk-zone { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); font-size: .78rem; font-weight: 600; text-align: left; transition: border-color .15s, color .15s; }
.sk-zone:hover { border-color: var(--line-2); color: #fff; }
.sk-zone.on { border-color: var(--blue-2); color: #fff; box-shadow: inset 0 0 0 1px var(--blue-2); }
.sk-zone i { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sk-zone.glow i { box-shadow: 0 0 10px 2px var(--zc), inset 0 0 0 1px rgba(255, 255, 255, .45); }
.sk-zone span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-zone .ic { flex: none; width: 13px; height: 13px; margin-left: auto; }
.sk-zone .sk-hid { opacity: .4; } .sk-zone .sk-anim { color: var(--amber-2); }
.sk-zname { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
/* Sélecteur libre (toutes les couleurs) + code hexadécimal */
.sk-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sk-pick input[type=color] { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); cursor: pointer; }
.sk-pick .input { width: 118px; font-family: var(--font-num); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.sk-pal-t { margin: 14px 0 6px; font-size: .7rem; color: var(--ink-3); letter-spacing: .18em; text-transform: uppercase; }
.sk-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 6px; }
.sk-pal .swatch { width: 100%; height: 26px; border-radius: 6px; }
/* Éclat (Skin Extra) */
.sk-glow { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sk-glow b { display: inline-flex; align-items: center; gap: 6px; } .sk-glow b .ic { width: 15px; height: 15px; color: var(--amber-2); }
.sk-glow-v { font-family: var(--font-num); font-weight: 700; font-size: 1.15rem; color: var(--amber-2); }
.sk-glow input[type=range].range { background: linear-gradient(90deg, var(--amber-2) var(--p, 0%), rgba(255, 255, 255, .12) var(--p, 0%)); }
/* Pastilles de choix (éclat, effets, vitesse, styles) */
.sk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: .8rem; font-weight: 600; transition: border-color .15s, color .15s; }
.sk-chip:hover { border-color: var(--line-2); color: #fff; }
.sk-chip.on { border-color: var(--amber-2); color: #fff; box-shadow: inset 0 0 0 1px var(--amber-2); background: rgba(224, 164, 74, .1); }
.sk-chip .ic { width: 14px; height: 14px; }
/* État en jeu */
.sk-status { display: grid; gap: 6px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); font-size: .88rem; }
.sk-status > div { display: flex; align-items: center; gap: 8px; }
.sk-status .ic { flex: none; width: 15px; height: 15px; }
.sk-status .ok, .sk-line.ok { color: var(--green); } .sk-status .warn, .sk-line.warn { color: var(--amber-2); } .sk-status .bad, .sk-line.bad { color: #f08b86; } .sk-status .dim, .sk-line.dim { color: var(--ink-3); }
.sk-ok { color: var(--green); }
.btn.sk-liked { color: #ff7b93; border-color: rgba(255, 123, 147, .45); }
/* Aperçu plus sombre en Extra : le fluo ressort */
.viewer3d.sk-dark { background: radial-gradient(70% 60% at 50% 65%, rgba(224, 164, 74, .12), rgba(9, 13, 19, 0) 70%), #05080c; }
@media (max-width: 1100px) { .sk-zones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sk-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-pick .btn { width: 100%; } }
/* Zones que l'aperçu 3D ne peut pas montrer (changent en jeu seulement) */
.sk-zone.ingame { border-style: dashed; }
.sk-jeu { margin-left: auto; padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-3); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.sk-zcap { margin: 8px 16px 0; }
.sk-zcap .sk-jeu { margin-left: 0; }
.sk-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; font-size: .82rem; }
.sk-legend span { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.sk-legend .swatch { flex: none; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.sk-legend b { color: var(--ink); font-weight: 600; }
/* ======================================================================
   Sac de survie — CARTES à collectionner (js/pages/inventaire.js)
   ====================================================================== */
.gc-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 20px; perspective: 1200px; }
.gc { --rc: #9aa7b8; --rc2: #4a5462; container-type: inline-size; position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; border: 0; padding: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transform-style: preserve-3d; transition: transform 0.25s ease; will-change: transform; }
div.gc, span.gc { cursor: default; }
.gc:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 14px; }
.gc-shell { position: absolute; inset: 0; display: block; border-radius: 14px; padding: 3px; background: linear-gradient(145deg, var(--rc) 0%, color-mix(in srgb, var(--rc) 35%, #0b0f15) 45%, var(--rc2) 100%); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6); transition: box-shadow 0.25s ease; }
button.gc:hover .gc-shell { box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65), 0 0 28px color-mix(in srgb, var(--rc) 45%, transparent); }
.gc-in { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 11px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 14%, #0d131b) 0%, #0b1017 55%, #080c12 100%); }
.gc-top { display: flex; align-items: center; justify-content: space-between; min-height: 33px; padding: 10px 12px 0; }
.gc-rar { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--rc); }
.gc-gem { width: 9px; height: 9px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.gc-qty { font: 700 13px/1 var(--font-head); padding: 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); color: #fff; }
.gc-art { position: relative; flex-shrink: 0; display: grid; place-items: center; height: 43%; margin: 9px 12px 0; border-radius: 8px; overflow: hidden; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rc) 42%, transparent) 0%, transparent 62%), linear-gradient(180deg, #121a25, #0a0f16); border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7); }
.gc-art::before { content: ''; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 16%, transparent) 0 8deg, transparent 8deg 22deg); animation: gcSpin 40s linear infinite; opacity: 0.75; }
.gc-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); }
.gc-emoji { position: relative; z-index: 1; font-size: clamp(50px, 5vw, 68px); line-height: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); transition: transform 0.3s ease; }
button.gc:hover .gc-emoji { transform: translateY(-4px) scale(1.08); }
.gc-cat { position: absolute; z-index: 1; left: 8px; bottom: 8px; font: 700 10px/1 var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); background: rgba(0, 0, 0, 0.55); padding: 4px 7px; border-radius: 3px; }
.gc-name { padding: 10px 12px 0; font: 700 18px/1.05 var(--font-head); letter-spacing: 0.03em; text-transform: uppercase; }
.gc-effect { align-self: flex-start; margin: 8px 12px 0; padding: 6px 9px; border-radius: 3px; font: 700 13px/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: #0a0e14; background: linear-gradient(90deg, var(--rc), color-mix(in srgb, var(--rc) 70%, #fff)); }
.gc-desc { margin: 8px 12px 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); font: 600 10.5px/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.gc-foot b { display: inline-flex; align-items: center; gap: 4px; color: var(--rc); font-weight: 700; }
.gc-glare, .gc-holo { position: absolute; inset: 0; border-radius: 11px; pointer-events: none; }
.gc-glare { opacity: 0; transition: opacity 0.25s ease; mix-blend-mode: screen; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.28), transparent 45%); }
button.gc:hover .gc-glare { opacity: 1; }
.gc-holo { opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: color-dodge; background: linear-gradient(115deg, transparent 20%, rgba(255, 80, 180, 0.35) 36%, rgba(80, 200, 255, 0.35) 46%, rgba(140, 255, 140, 0.3) 56%, rgba(255, 220, 90, 0.35) 66%, transparent 80%); background-size: 220% 220%; background-position: var(--hx, 50%) var(--hy, 50%); }
.gc.r-commun { --rc: #9aa7b8; --rc2: #4a5462; }
.gc.r-rare { --rc: #5aa6ee; --rc2: #24507e; }
.gc.r-epique { --rc: #b08cf0; --rc2: #553a8c; }
.gc.r-legendaire { --rc: #f0b45c; --rc2: #8a5a1c; }
.gc.r-elder { --rc: #c79bff; --rc2: #6b3fb8; }
.gc.r-epique .gc-holo { opacity: 0.35; }
.gc.r-legendaire .gc-holo { opacity: 0.45; }
.gc.r-elder .gc-holo { opacity: 0.55; }
button.gc:hover .gc-holo { opacity: 0.75; }
@property --gca { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.gc.r-legendaire .gc-shell { background: conic-gradient(from var(--gca, 0deg), #f0b45c, #fff2c8, #b9792a, #f0b45c, #ffe39a, #f0b45c); animation: gcRot 4s linear infinite; }
.gc.r-elder .gc-shell { background: conic-gradient(from var(--gca, 0deg), #b08cf0, #f0b45c, #6b3fb8, #f0c070, #b08cf0); animation: gcRot 3s linear infinite; }
.gc.r-elder .gc-in { background: linear-gradient(180deg, #24173a 0%, #120c1d 60%, #0a0710 100%); }
@keyframes gcRot { to { --gca: 360deg; } }
/* carte étroite : pas de description coupée en plein milieu */
@container (max-width: 225px) { .gc-desc { display: none; } }
@keyframes gcSpin { to { transform: rotate(360deg); } }
/* fiche détaillée : la carte en grand à gauche */
.gc-detail { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 26px; align-items: center; }
.gc-detail-side { text-align: left; }
.gc-detail-side .bag-actions { justify-content: flex-start; }
.gc-detail-card .gc-name { font-size: 22px; }
.gc-detail-card .gc-desc { -webkit-line-clamp: 4; line-clamp: 4; font-size: 13.5px; }
.gc-fuse-hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--ink-2); background: rgba(240, 180, 92, 0.07); border: 1px solid rgba(240, 180, 92, 0.3); }
.gc-fuse-hint > svg { color: var(--amber); }
.gc-fuse-hint span { flex: 1; min-width: 180px; }
/* mini-cartes (atelier) */
.gc-mini .gc-desc { display: none; }
.gc-mini .gc-name { font-size: 14px; padding-top: 7px; }
.gc-mini .gc-effect { font-size: 10.5px; padding: 4px 6px; margin-top: 6px; }
.gc-mini .gc-emoji { font-size: 40px; }
.gc-mini .gc-foot, .gc-mini .gc-cat { display: none; }
.gc-mini .gc-top { padding: 7px 8px 0; min-height: 0; } .gc-mini .gc-rar { font-size: 9px; letter-spacing: 0.12em; }
.gc-mini .gc-art { margin: 6px 8px 0; height: 50%; }

/* ---------- Fusion : l'atelier ---------- */
.fz-bench { display: flex; justify-content: center; align-items: center; gap: 16px; }
.fz-op { font: 400 34px/1 var(--font-display); color: var(--ink-3); }
.fz-slot { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 7; flex: 0 0 150px; width: 150px; padding: 0; border-radius: 12px; border: 2px dashed var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--ink-2); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.fz-slot:hover { border-color: var(--blue-2); background: rgba(125, 184, 240, 0.05); }
.fz-slot.fz-on { border-style: solid; border-color: transparent; background: none; }
.fz-slot .gc { position: absolute; inset: 0; }
.fz-out { cursor: default; border-color: rgba(240, 180, 92, 0.35); }
.fz-out:hover { border-color: rgba(240, 180, 92, 0.35); background: rgba(255, 255, 255, 0.02); }
.fz-empty { display: grid; justify-items: center; gap: 6px; padding: 10px; text-align: center; }
.fz-empty svg { width: 26px; height: 26px; }
.fz-empty b { font: 700 14px/1 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.fz-empty small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.fz-x { position: absolute; top: -8px; right: -8px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blood); color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
.fz-preview { filter: saturate(0.6) brightness(0.55); }
.fz-q { position: absolute; z-index: 3; font: 400 54px/1 var(--font-display); color: #fff; text-shadow: 0 0 18px var(--amber), 0 4px 12px rgba(0, 0, 0, 0.8); }
.fz-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.fz-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; perspective: 1000px; }
.fz-cell { position: relative; }
.fz-cell .gc .gc-desc, .fz-cell .gc .gc-foot, .fz-cell .gc .gc-cat { display: none; }
.fz-cell .gc .gc-name { font-size: 13.5px; padding-top: 7px; }
.fz-cell .gc .gc-effect { font-size: 10.5px; padding: 4px 6px; margin-top: 6px; }
.fz-cell .gc .gc-emoji { font-size: 38px; }
.fz-cell .gc .gc-art { height: 50%; margin: 6px 8px 0; }
.fz-cell .gc .gc-top { padding: 7px 8px 0; min-height: 28px; } .fz-cell .gc .gc-rar { font-size: 9px; letter-spacing: 0.1em; }
.fz-cell.off .gc { opacity: 0.35; filter: grayscale(0.7); cursor: not-allowed; }
.fz-why { position: absolute; z-index: 2; left: 50%; top: 32%; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 3px; font: 700 10.5px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.75); }

/* ---------- Fusion : la cinématique du mixeur ---------- */
.fz-ov { position: fixed; inset: 0; z-index: 400; background: radial-gradient(circle at 50% 60%, rgba(20, 30, 46, 0.92), rgba(3, 5, 9, 0.97) 70%); animation: fadein 0.3s ease; overflow: hidden; }
.fz-stage { position: absolute; inset: 0; }
.fz-blender { position: absolute; left: 50%; top: 46vh; width: min(220px, 46vw); height: auto; transform: translateX(-50%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7)); transition: transform 0.6s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.6s ease; }
.fz-jar { transform-origin: 110px 290px; }
.fz-liquid { fill: var(--fzc); opacity: 0.55; transition: transform 2.2s cubic-bezier(0.3, 0.6, 0.3, 1); }
.fz-swirl ellipse { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 3; opacity: 0; transform-origin: 110px 150px; }
.fz-blades { transform-origin: 110px 204px; }
.fz-knob-mark { transform-origin: 110px 254px; transition: transform 0.4s ease; }
.fz-led { fill: #2a3442; transition: fill 0.3s ease, filter 0.3s ease; }
.fz-card { position: absolute; left: 50%; top: 9vh; width: min(150px, 30vw); }
.fz-card .gc { cursor: default; }
.fz-a { transform: translateX(calc(-50% - min(130px, 26vw))) rotate(-10deg); }
.fz-b { transform: translateX(calc(-50% + min(130px, 26vw))) rotate(10deg); }
.fz-ov.go .fz-a { animation: fzDropA 1.2s cubic-bezier(0.55, 0, 0.6, 1) forwards; }
.fz-ov.go .fz-b { animation: fzDropB 1.2s 0.12s cubic-bezier(0.55, 0, 0.6, 1) forwards; }
@keyframes fzDropA { 0% { transform: translateX(calc(-50% - min(130px, 26vw))) rotate(-10deg); } 35% { transform: translateX(calc(-50% - min(70px, 14vw))) translateY(-4vh) rotate(-30deg) scale(0.95); opacity: 1; } 100% { transform: translateX(-50%) translateY(37vh) rotate(-380deg) scale(0.22); opacity: 0; } }
@keyframes fzDropB { 0% { transform: translateX(calc(-50% + min(130px, 26vw))) rotate(10deg); } 35% { transform: translateX(calc(-50% + min(70px, 14vw))) translateY(-4vh) rotate(30deg) scale(0.95); opacity: 1; } 100% { transform: translateX(-50%) translateY(37vh) rotate(380deg) scale(0.22); opacity: 0; } }
.fz-ov.mix .fz-jar { animation: fzShake 0.11s linear infinite; }
.fz-ov.mix .fz-blades { animation: gcSpin 0.16s linear infinite; }
.fz-ov.mix .fz-liquid { transform: translateY(-150px); }
.fz-ov.mix .fz-swirl ellipse { opacity: 1; animation: fzSwirl 0.5s linear infinite; }
.fz-ov.mix .fz-swirl ellipse:nth-child(2) { animation-duration: 0.38s; animation-direction: reverse; }
.fz-ov.mix .fz-swirl ellipse:nth-child(3) { animation-duration: 0.62s; }
.fz-ov.mix .fz-knob-mark { transform: rotate(130deg); }
.fz-ov.mix .fz-led { fill: #6fcf7f; filter: drop-shadow(0 0 6px #6fcf7f); }
@keyframes fzShake { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 1px) rotate(-1deg); } 50% { transform: translate(2px, -1px) rotate(1deg); } 75% { transform: translate(-1px, -1px) rotate(-0.6deg); } 100% { transform: translate(0, 0) rotate(0); } }
@keyframes fzSwirl { 0% { transform: scaleX(1) rotate(0); } 50% { transform: scaleX(0.55) rotate(8deg); } 100% { transform: scaleX(1) rotate(0); } }
.fz-status { position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; font: 700 15px/1 var(--font-head); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); animation: fzBlink 1s ease-in-out infinite; }
@keyframes fzBlink { 50% { opacity: 0.35; } }
.fz-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, #fff, color-mix(in srgb, var(--fzc) 60%, #fff) 30%, transparent 70%); opacity: 0; pointer-events: none; }
.fz-ov.boom .fz-flash { animation: fzFlash 0.9s ease-out forwards; }
@keyframes fzFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.fz-rays { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--fzc) 22%, transparent) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%); opacity: 0; transition: opacity 0.6s ease; }
.fz-ov.win .fz-rays { opacity: 1; animation: gcSpin 18s linear infinite; }
.fz-ov.boom .fz-blender, .fz-ov.win .fz-blender { transform: translateX(-50%) translateY(60vh); opacity: 0; }
.fz-ov.boom .fz-status, .fz-ov.stop .fz-status { display: none; }
.fz-win, .fz-fail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; pointer-events: none; opacity: 0; }
.fz-ov.win .fz-win, .fz-ov.ko .fz-fail { opacity: 1; pointer-events: auto; }
.fz-win-title { font: 400 clamp(38px, 7vw, 76px)/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; text-shadow: 0 0 26px var(--fzc), 0 6px 18px rgba(0, 0, 0, 0.7); }
.fz-ov.win .fz-win-title { animation: fzTitle 0.7s 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes fzTitle { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fz-win-card { width: min(230px, 56vw); perspective: 1200px; }
.fz-ov.win .fz-win-card .gc { animation: fzPop 1.1s cubic-bezier(0.2, 1.2, 0.3, 1) both; }
@keyframes fzPop { 0% { transform: translateY(40vh) rotateY(900deg) scale(0.15); } 70% { transform: translateY(-14px) rotateY(-10deg) scale(1.06); } 100% { transform: translateY(0) rotateY(0) scale(1); } }
.fz-ov.win .fz-win-card .gc-shell { box-shadow: 0 0 60px color-mix(in srgb, var(--fzc) 70%, transparent), 0 24px 60px rgba(0, 0, 0, 0.7); }
.fz-win-sub { font: 700 15px/1.3 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.fz-ov.win .fz-win-sub, .fz-ov.win .fz-win .btn { animation: fadein 0.5s 1s both; }
.fz-fail-msg { max-width: 48ch; color: var(--ink-2); margin: 0; }
.fz-ov.ko .fz-jar, .fz-ov.ko .fz-blades, .fz-ov.ko .fz-swirl ellipse { animation: none; }
.fz-ov.ko .fz-led { fill: var(--blood); filter: drop-shadow(0 0 6px var(--blood)); }
.fz-ov.ko .fz-fail { background: rgba(3, 5, 9, 0.55); }
@media (max-width: 640px) {
  .gc-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .gc-deck .gc-name { font-size: 14.5px; padding-top: 8px; }
  .gc-deck .gc-effect { font-size: 11px; padding: 5px 7px; }
  .gc-deck .gc-desc { display: none; }
  .gc-deck .gc-emoji { font-size: 44px; }
  .gc-deck .gc-foot { font-size: 9px; letter-spacing: 0.06em; padding: 7px 9px 8px; }
  .gc-deck .gc-rar { font-size: 9px; letter-spacing: 0.12em; }
  .gc-detail { grid-template-columns: 1fr; justify-items: center; }
  .gc-detail-card { width: min(250px, 80vw); }
  .gc-detail-side { text-align: center; } .gc-detail-side .bag-actions { justify-content: center; }
  .fz-bench { gap: 4px; } .fz-op { font-size: 18px; } .fz-slot { flex-basis: 23vw; width: 23vw; }
  .fz-slot .gc-name { font-size: 11px; } .fz-slot .gc-effect { display: none; } .fz-x { width: 20px; height: 20px; top: -6px; right: -6px; }
  .fz-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .fz-empty small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-art::before, .gc.r-legendaire .gc-shell, .gc.r-elder .gc-shell, .fz-ov.win .fz-rays { animation: none; }
}
/* Boutique d'objets (achats.js) : la carte + la zone d'achat dessous */
.gc-shop { display: flex; flex-direction: column; gap: 10px; }
.gc-shop-buy { display: flex; flex-direction: column; gap: 8px; }
.gc-shop-buy .shop-price { display: inline-flex; align-items: center; gap: 4px; font: 700 1.15rem/1 var(--font-head); }
.gc-shop-buy .shop-hours { font-size: 0.78rem; color: var(--ink-3); }