/* TRI CLASH — styles */
:root {
  --bg: #0D0D0C; --bg2: #121211; --surface: #181816; --surface2: #20201D; --surface3: #2A2A26;
  --line: rgba(237, 234, 227, .08); --line2: rgba(237, 234, 227, .16);
  --text: #EDEAE3; --muted: #8F8B81; --dim: #5E5B54;
  --gold: #D9B36A; --good: #6CC48A; --bad: #E0634F;
  --r: 14px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overflow-x: hidden; }
body.in-game { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-stretch: 110%; letter-spacing: -.01em; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 32px 0 10px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r); }
svg { fill: currentColor; }
svg .s { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .s.w { stroke-width: 2.1; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--text); color: #0D0D0C; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .15s, opacity .15s; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; }
.btn.google { width: 100%; background: #fff; color: #1F1F1F; }
.btn.google svg { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); position: relative; transition: background .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .11); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.on { background: var(--text); color: var(--bg); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); display: none; }
.icon-btn .dot.on { display: block; }
.link { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pill { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: rgba(108, 196, 138, .14); color: var(--good); }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface2); border-radius: 10px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: var(--text); color: var(--bg); }
.seg.sm button { height: 30px; padding: 0 10px; font-size: 13px; }
.seg.tabs { margin: 18px 0 20px; }

input:not([type=file]) { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); outline: none; transition: border-color .15s; }
input:focus { border-color: var(--text); }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.stack { display: grid; gap: 14px; }

.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--text); animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 125%; letter-spacing: .02em; font-size: 17px; }
.logo .mark { width: 24px; height: 24px; }
.logo b { font-weight: 800; color: var(--muted); margin-left: .18em; }
.logo.big { font-size: 30px; gap: 14px; }
.logo.big .mark { width: 38px; height: 38px; }
.mark path { fill: #E4572E; } .mark circle { fill: #2D7DD2; } .mark rect { fill: #A07A3B; }

/* ---------- cartes ---------- */
.card { --w: var(--cw, 120px); width: var(--w); aspect-ratio: 5 / 7; border-radius: calc(var(--w) * .09); position: relative; overflow: hidden; flex: none; user-select: none; }
.card.sm { --w: var(--cws, 62px); }
.card.face { background: var(--c); color: var(--ink); display: flex; flex-direction: column; padding: calc(var(--w) * .08);
  background-image: radial-gradient(120% 70% at 25% 0%, rgba(255, 255, 255, .24), transparent 60%), linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 calc(var(--w) * .08) calc(var(--w) * .2) rgba(0, 0, 0, .35); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: calc(var(--w) * .068); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .78; }
.card-top .sigil { width: calc(var(--w) * .12); height: calc(var(--w) * .12); }
.card-art { flex: 1; display: grid; place-items: center; }
.glyph { width: 56%; height: auto; overflow: visible; }
.glyph .g-stroke { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glyph .g-thin { fill: none; stroke: var(--c); stroke-width: 1.3; stroke-linecap: round; }
.card-name { font-weight: 800; font-stretch: 115%; font-size: calc(var(--w) * .135); text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.card-beats { display: flex; align-items: center; gap: .35em; margin-top: calc(var(--w) * .04); font-size: calc(var(--w) * .07); font-weight: 600; opacity: .75; }
.card-beats .sigil { width: 1.1em; height: 1.1em; }
.card.sm .card-beats, .card.sm .card-top span { display: none; }
.card.sm .card-name { font-size: calc(var(--w) * .15); }
.card.mythic { box-shadow: inset 0 0 0 calc(var(--w) * .022) var(--gold), inset 0 0 0 calc(var(--w) * .04) rgba(0, 0, 0, .25), 0 calc(var(--w) * .08) calc(var(--w) * .2) rgba(0, 0, 0, .4); }
.card.mythic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .32) 48%, transparent 60%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.card.win { box-shadow: 0 0 0 2px #fff, 0 0 46px var(--c); z-index: 2; }

.sigil { flex: none; }
.g-rule .sigil, .hero .sigil, .muted .sigil { width: 11px; height: 11px; vertical-align: -1px; }

/* cartes illustrées */
.card.face.illus { background: #000; }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.card.illus::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, .82) 100%); }
.card.illus > *:not(.card-img):not(.card-frame):not(.medal) { position: relative; z-index: 1; }
.card.illus .card-name, .card.illus .card-beats, .card.illus .card-top { text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.card.illus .card-top { opacity: .95; }
.card.illus .card-top .sigil { color: var(--c); filter: drop-shadow(0 0 4px rgba(0, 0, 0, .8)); }
.card.illus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 calc(var(--w) * .08) calc(var(--w) * .2) rgba(0, 0, 0, .35); }
.card.illus .card-img { box-shadow: none; }

/* dos */
.card.back { background: #19191C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 calc(var(--w) * .06) calc(var(--w) * .18) rgba(0, 0, 0, .4); }
.back-inner { position: absolute; inset: 7%; border-radius: calc(var(--w) * .06); border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; }
.back-inner .mark { width: 34%; height: auto; opacity: .55; }
.back-inner .mark * { fill: rgba(237, 234, 227, .85); }
.back-carbone { background: linear-gradient(160deg, #222225, #141416) !important; }
.back-grille { background: #16181B radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px) 0 0 / 9px 9px !important; }
.back-ligne { background: #1D1A16 repeating-linear-gradient(135deg, rgba(255, 220, 170, .09) 0 1px, transparent 1px 7px) !important; }
.back-triade { background-color: #12201D !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M8 1 15 13H1z' fill='none' stroke='%2363b3a1' stroke-opacity='.28'/%3E%3C/svg%3E") !important; }
.back-onde { background: #17141F repeating-radial-gradient(circle at 50% 50%, rgba(190, 175, 255, .12) 0 1px, transparent 1px 8px) !important; }
.back-sceau { background: #0F0D09 repeating-linear-gradient(45deg, rgba(217, 179, 106, .07) 0 1px, transparent 1px 10px) !important; box-shadow: inset 0 0 0 calc(var(--w) * .02) var(--gold), 0 calc(var(--w) * .06) calc(var(--w) * .18) rgba(0, 0, 0, .4) !important; }
.back-sceau .back-inner { border-color: rgba(217, 179, 106, .5); }
.back-sceau .mark * { fill: var(--gold); }
.back-sceau .mark { opacity: .9; }
.card.back.back-carbone { background: #0D0D0C url('../assets/backs/carbone.webp') center / cover no-repeat !important; }
.card.back.back-grille { background: #0D0D0C url('../assets/backs/grille.webp') center / cover no-repeat !important; }
.card.back.back-ligne { background: #0D0D0C url('../assets/backs/ligne.webp') center / cover no-repeat !important; }
.card.back.back-triade { background: #0D0D0C url('../assets/backs/triade.webp') center / cover no-repeat !important; }
.card.back.back-onde { background: #0D0D0C url('../assets/backs/onde.webp') center / cover no-repeat !important; }
.card.back.back-sceau { background: #0D0D0C url('../assets/backs/sceau.webp') center / cover no-repeat !important; }
.card.back .back-inner { border-color: rgba(255, 255, 255, .1); }
.card.back .back-inner .mark { width: 30%; opacity: .8; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8)); }


/* ---------- arènes (illustrations) ---------- */
.stage-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #050505 center bottom / cover no-repeat; }
.arena-atelier .stage-bg { background-image: url('../assets/arenas/atelier.webp'); }
.arena-caldeira .stage-bg { background-image: url('../assets/arenas/caldeira.webp'); }
.arena-lagon .stage-bg { background-image: url('../assets/arenas/lagon.webp'); }
.arena-toundra .stage-bg { background-image: url('../assets/arenas/toundra.webp'); }
.arena-nebuleuse .stage-bg { background-image: url('../assets/arenas/nebuleuse.webp'); }
.arena-dunes .stage-bg { background-image: url('../assets/arenas/dunes.webp'); }
.stage-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 50% at 50% 50%, rgba(0, 0, 0, .45), transparent 75%), linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .55)); }
.hero .stage-bg::after { background: linear-gradient(90deg, rgba(13, 13, 12, .92) 0%, rgba(13, 13, 12, .6) 45%, rgba(13, 13, 12, .15) 100%); }
.pv-arena .stage-bg::after { background: none; }

/* ---------- coquille ---------- */
.top { position: sticky; top: 0; z-index: 20; height: calc(64px + var(--safe-t)); padding: var(--safe-t) 24px 0; display: flex; align-items: center; gap: 24px;
  background: rgba(13, 13, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .15s, background .15s; }
.nav a svg { width: 18px; height: 18px; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--surface2); }
.top-right { display: flex; align-items: center; gap: 10px; }
.coins { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface2); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.coin { width: 16px; height: 16px; flex: none; }
.coin circle { fill: var(--gold); } .coin .coin-mark { fill: #7D5E25; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 3px; border-radius: 99px; background: var(--surface2); }
.me-chip span { display: grid; line-height: 1.15; }
.me-chip strong { font-size: 13px; } .me-chip small { font-size: 11px; color: var(--muted); }
main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 120px; }

.av { width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface3); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.mono { background: var(--h); color: #fff; font-weight: 800; font-size: calc(var(--s) * .42); font-stretch: 110%; }
.online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(108, 196, 138, .18); vertical-align: 1px; margin-left: 4px; }

/* accueil */
.hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding: 48px; min-height: 340px; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.02; font-weight: 800; font-stretch: 112%; margin-bottom: 16px; }
.hero p.muted { max-width: 420px; }
.hero-cards { position: relative; height: 240px; --cw: 132px; }
.fan { position: absolute; left: 50%; top: 50%; transition: transform .4s cubic-bezier(.2, .8, .3, 1); }
.fan.f0 { transform: translate(-50%, -50%) translateX(-92px) rotate(-10deg) translateY(10px); }
.fan.f1 { transform: translate(-50%, -50%) translateY(-8px); z-index: 1; }
.fan.f2 { transform: translate(-50%, -50%) translateX(92px) rotate(10deg) translateY(10px); }
.hero:hover .fan.f0 { transform: translate(-50%, -50%) translateX(-112px) rotate(-14deg) translateY(14px); }
.hero:hover .fan.f2 { transform: translate(-50%, -50%) translateX(112px) rotate(14deg) translateY(14px); }

.modes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.mode { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.mode h3 { font-size: 19px; margin-bottom: 4px; }
.mode p { font-size: 14px; }
.mode .btn { align-self: flex-start; }
.mode.main { background: var(--surface2); }
.mode.off { opacity: .7; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; margin-top: 14px; border: 1px solid var(--line); }
.strip > div { background: var(--surface); padding: 18px 20px; display: grid; gap: 2px; }
.strip small { color: var(--muted); font-size: 12px; }
.strip strong { font-size: 24px; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.xpbar { height: 5px; border-radius: 9px; background: var(--surface3); overflow: hidden; margin: 6px 0 2px; }
.xpbar i { display: block; height: 100%; background: var(--text); border-radius: inherit; transition: width .8s cubic-bezier(.2, .8, .3, 1); }
.xpbar.big { height: 8px; margin: 14px 0 6px; }

/* pages */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.wallet { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--surface2); font-size: 18px; }
.wallet .coin { width: 20px; height: 20px; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.item:hover { border-color: var(--line2); }
.item.eq { border-color: rgba(237, 234, 227, .4); }
.item > .pv-set, .item > .pv-back, .item > .pv-arena { height: 156px; }
.item-meta { padding: 14px 16px 4px; display: grid; gap: 4px; }
.item-meta > div { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.item-meta small { display: flex; align-items: center; gap: 5px; }
.item-meta small svg { width: 13px; height: 13px; }
.item-act { padding: 10px 16px 16px; margin-top: auto; }
.item-act .btn .coin { width: 14px; height: 14px; }
.item.locked .pv-set, .item.locked .pv-back { filter: saturate(.55) brightness(.8); }
.pv-set { display: flex; justify-content: center; align-items: center; gap: 8px; --cws: 58px; background: var(--bg2); }
.pv-back { display: grid; place-items: center; --cws: 70px; --cw: 76px; background: var(--bg2); }
.pv-arena { position: relative; overflow: hidden; background: #000; }
.modal .pv-set, .modal .pv-back, .modal .pv-arena { height: 150px; border-radius: 12px; margin: 16px 0; }
.rar { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.r-commun { color: #A9A59B; background: rgba(169, 165, 155, .12); }
.r-rare { color: #79AEE0; background: rgba(121, 174, 224, .12); }
.r-epique { color: #B79BEA; background: rgba(183, 155, 234, .12); }
.r-mythique { color: var(--gold); background: rgba(217, 179, 106, .14); }

.table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 52px 1fr 64px 96px 72px; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tr.th { border-top: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: var(--surface); }
.tr.you { background: rgba(237, 234, 227, .05); }
.tr .pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tr .pl strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk { font-weight: 800; color: var(--muted); }
.rk1 { color: var(--gold); } .rk2 { color: #C9CDD4; } .rk3 { color: #C88A5A; }
.elo-v { font-weight: 800; text-align: right; }
.tr span:last-child { text-align: right; }

.list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li-main { flex: 1; min-width: 0; display: grid; }
.li-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main small { color: var(--muted); font-size: 13px; }
.li .score { font-weight: 800; font-variant-numeric: tabular-nums; }
.code-box { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--surface2); }
.code-box small { color: var(--muted); font-size: 12px; }
.code-box strong { font-size: 18px; letter-spacing: .12em; font-stretch: 110%; }
.addf { display: flex; gap: 10px; margin-top: 20px; max-width: 460px; }
.addf input { text-transform: uppercase; letter-spacing: .1em; }

.profile { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pf-main { flex: 1; min-width: 220px; }
.pf-main h2 { font-size: 30px; font-weight: 800; }
.pf-main .xpbar { max-width: 360px; margin-top: 12px; }
.av-edit { position: relative; cursor: pointer; display: block; border-radius: 50%; }
.av-edit .av-hint { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .15s; }
.av-edit:hover .av-hint { opacity: 1; }
.loadout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.loadout > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.loadout small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.loadout .pv-set, .loadout .pv-back, .loadout .pv-arena { height: 110px; border-radius: 10px; --cws: 50px; }

/* connexion */
.center-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.auth-card { width: min(400px, 100%); display: grid; gap: 16px; position: relative; z-index: 1; background: rgba(24, 24, 22, .9); border: 1px solid var(--line); border-radius: 22px; padding: 32px; backdrop-filter: blur(10px); }
.auth-card .logo { justify-self: center; }
.auth-card h2 { text-align: center; }
.auth-card > .muted, .tag { text-align: center; color: var(--muted); }
.auth-card .seg { width: 100%; } .auth-card .seg button { flex: 1; }
.auth-card .link { justify-self: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.auth-art { position: absolute; inset: 0; --cw: 200px; opacity: .2; filter: blur(1px); pointer-events: none; }
.auth-art .fan { top: 50%; }

/* modale & toasts */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.modal-wrap.in { opacity: 1; }
.modal { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 20px; padding: 26px; transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .3, 1); }
.modal-wrap.in .modal { transform: none; }
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.wait { text-align: center; display: grid; gap: 8px; justify-items: center; }
.wait .btn { margin-top: 10px; }
#toasts { position: fixed; z-index: 90; left: 50%; top: calc(76px + var(--safe-t)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast, .invite { pointer-events: auto; background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); animation: tin .25s cubic-bezier(.2, .8, .3, 1); }
.toast.bad { border-color: rgba(224, 99, 79, .5); }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .3s; }
.invite { display: flex; align-items: center; gap: 10px; }
.invite > div { flex: 1; display: grid; line-height: 1.2; } .invite small { color: var(--muted); font-weight: 500; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- partie ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.pt, .ring, .frag { position: absolute; will-change: transform, opacity; }
.ring { border: 2px solid; border-radius: 50%; }
.frag > .card { box-shadow: none !important; }

.stage { --cw: min(25vw, 15.5vh, 148px); --bw: min(34vw, 21vh, 176px); --cws: min(11vw, 7vh, 58px);
  position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto auto auto 1fr auto auto auto;
  justify-items: center; padding: calc(var(--safe-t) + 8px) 12px calc(var(--safe-b) + 8px); overflow: hidden; background: #000; }
.stage > *:not(.stage-bg) { position: relative; z-index: 1; }
.g-top { width: 100%; max-width: 760px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g-mode { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.g-player { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.g-pinfo { display: grid; line-height: 1.2; min-width: 0; }
.g-pinfo strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-pinfo small { color: var(--muted); font-size: 12px; }
.pips { display: flex; gap: 6px; margin-left: auto; }
.pips i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(237, 234, 227, .4); transition: background .3s, box-shadow .3s, transform .3s; }
.pips i.on { background: var(--text); box-shadow: 0 0 12px rgba(255, 255, 255, .5); transform: scale(1.1); }
.grave { position: relative; width: 26px; height: 32px; margin-left: 8px; opacity: .35; transition: opacity .3s; }
.grave.has { opacity: 1; }
.grave i { position: absolute; width: 18px; height: 25px; border-radius: 3px; background: #2A2A2E; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); left: 2px; top: 4px; }
.grave i:nth-child(2) { transform: rotate(-8deg) translate(-2px, -1px); } .grave i:nth-child(3) { transform: rotate(7deg) translate(3px, -2px); }
.grave span { position: absolute; right: -4px; bottom: -2px; font-size: 11px; font-weight: 800; background: var(--text); color: var(--bg); border-radius: 99px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.bubble { position: absolute; left: 52px; max-width: 240px; padding: 8px 12px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; opacity: 0; transform: scale(.9); transition: .2s; pointer-events: none; z-index: 5; }
.g-player.opp .bubble { top: 100%; border-top-left-radius: 3px; }
.g-player.me .bubble { bottom: 100%; border-bottom-left-radius: 3px; }
.bubble.on { opacity: 1; transform: none; }

.g-hand { display: flex; gap: clamp(8px, 2.4vw, 16px); justify-content: center; }
.opp-hand { gap: 6px; margin-bottom: 4px; }
.opp-hand .hs { transform: rotate(180deg); }
.me-hand .hs { position: relative; border-radius: calc(var(--cw) * .09); transition: transform .2s cubic-bezier(.2, .8, .3, 1); }
.me-hand .hs:hover { transform: translateY(-10px); }
.me-hand .hs:focus-visible { transform: translateY(-10px); }
.me-hand.locked .hs { pointer-events: none; transform: none; }
.me-hand kbd { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font: 600 11px var(--font); color: var(--dim); }
@media (hover: none) { .me-hand kbd { display: none; } .me-hand .hs:hover { transform: none; } }

.g-board { width: 100%; display: grid; align-content: center; justify-items: center; gap: 10px; min-height: 0; padding: 4px 0; }
.g-duel { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); }
.bwrap { display: grid; justify-items: center; gap: 6px; }
.bwrap small { font-size: 11px; color: var(--muted); font-weight: 600; max-width: var(--bw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs { font-size: 12px; font-weight: 800; font-stretch: 120%; color: var(--dim); letter-spacing: .1em; }
.bslot { width: var(--bw); aspect-ratio: 5 / 7; border-radius: calc(var(--bw) * .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .015); position: relative; }
.bslot .card { --w: var(--bw); }
.bcard { position: absolute; inset: 0; }
.flip { perspective: 900px; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.flip-in > .card { backface-visibility: hidden; }
.flip-face { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; }
.flip.show .flip-in { transform: rotateY(180deg); }
.g-mid { display: grid; justify-items: center; gap: 4px; min-height: 52px; }
.g-round { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.g-round b { color: var(--text); }
.g-msg { font-weight: 800; font-stretch: 112%; font-size: clamp(16px, 2.6vh, 22px); min-height: 1.3em; text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.g-msg.pop { animation: pop .35s cubic-bezier(.2, .8, .3, 1.4); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.g-timer { width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.g-timer i { display: block; height: 100%; background: var(--text); transform-origin: left; }
.g-timer i.low { background: var(--bad); }
.g-rule { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.g-rule b { color: var(--dim); }
.me-hand { margin-top: 4px; margin-bottom: 12px; }

.g-chat { position: absolute !important; z-index: 6 !important; bottom: calc(var(--safe-b) + 12px); left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 24px));
  background: rgba(24, 24, 22, .96); border: 1px solid var(--line2); border-radius: 16px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.g-chat[hidden] { display: none; }
.chat-log { max-height: 140px; overflow-y: auto; display: grid; gap: 4px; font-size: 14px; }
.chat-log:empty { display: none; }
.cl { padding: 5px 10px; border-radius: 10px; background: var(--surface3); justify-self: start; max-width: 85%; overflow-wrap: anywhere; }
.cl.me { justify-self: end; background: var(--text); color: var(--bg); }
.cl.sys { background: none; color: var(--muted); font-size: 12px; justify-self: center; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick button { height: 30px; padding: 0 11px; border-radius: 99px; background: var(--surface3); font-size: 13px; font-weight: 600; }
.chat-quick button:hover { background: #34342F; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { height: 38px; }

.g-result { position: absolute !important; inset: 0; z-index: 8 !important; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.g-result.in { opacity: 1; }
.g-result[hidden] { display: none; }
.res-card { width: min(380px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 22px; padding: 28px 24px; transform: translateY(12px); transition: transform .4s cubic-bezier(.2, .8, .3, 1); }
.g-result.in .res-card { transform: none; }
.res-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.res-card h2 { font-size: 40px; font-weight: 900; font-stretch: 120%; margin: 6px 0 2px; }
.res-card h2.w { color: var(--text); } .res-card h2.l { color: var(--muted); }
.res-score { font-size: 18px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.res-body { margin-top: 18px; }
.rewards .rw { display: flex; justify-content: center; gap: 18px; font-weight: 800; font-size: 18px; }
.rewards .rw span { display: inline-flex; align-items: center; gap: 6px; }
.lvlup { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(217, 179, 106, .12); color: var(--gold); font-weight: 700; font-size: 14px; }
.elo { font-size: 28px; font-weight: 900; font-stretch: 115%; margin-bottom: 8px; }
.elo.up { color: var(--good); } .elo.down { color: var(--bad); }

/* brûlure */
@property --b { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.fx-burn { animation: burn .95s ease-in forwards; -webkit-mask-image: linear-gradient(to top, transparent var(--b), #000 calc(var(--b) + 14%)); mask-image: linear-gradient(to top, transparent var(--b), #000 calc(var(--b) + 14%)); }
@keyframes burn { 0% { --b: -14%; filter: brightness(1); } 30% { filter: brightness(1.4) saturate(1.3); } 100% { --b: 100%; filter: brightness(.6) sepia(.5); } }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .top { padding: var(--safe-t) 14px 0; height: calc(56px + var(--safe-t)); backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 30; justify-content: space-around; padding: 6px 6px calc(var(--safe-b) + 6px);
    background: rgba(13, 13, 12, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .nav a { flex-direction: column; gap: 3px; height: auto; padding: 6px 4px; font-size: 11px; flex: 1; justify-content: center; }
  .nav a.on { background: none; }
  .nav a svg { width: 22px; height: 22px; }
  .top-right { margin-left: auto; }
  .me-chip > span:not(.av) { display: none; } .me-chip { padding: 3px; }
  main { padding: 18px 14px calc(100px + var(--safe-b)); }
  .hero-in { grid-template-columns: 1fr; padding: 28px 22px; gap: 8px; }
  .hero-cards { order: -1; height: 190px; --cw: 104px; }
  .fan.f0 { transform: translate(-50%, -50%) translateX(-74px) rotate(-10deg) translateY(8px); }
  .fan.f2 { transform: translate(-50%, -50%) translateX(74px) rotate(10deg) translateY(8px); }
  .hero:hover .fan.f0 { transform: translate(-50%, -50%) translateX(-74px) rotate(-10deg) translateY(8px); }
  .hero:hover .fan.f2 { transform: translate(-50%, -50%) translateX(74px) rotate(10deg) translateY(8px); }
  .modes { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .loadout { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 34px 1fr 72px 56px; padding: 10px 12px; }
  .tr > span:nth-child(3) { display: none; }
  .page-head h2 { font-size: 26px; }
  .items { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .item > .pv-set { --cws: 44px; gap: 5px; height: 120px; }
  .item > .pv-back, .item > .pv-arena { height: 120px; }
  .pv-back { --cw: 60px; }
  .item-meta > div { flex-wrap: wrap; justify-content: flex-start; }
}
@media (min-width: 861px) and (min-height: 700px) {
  .stage { --cw: min(15vh, 150px); --bw: min(21vh, 186px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.nowrap { white-space: nowrap; }

/* ---------- cadres par set ---------- */
.card .card-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.card.framed { padding: calc(var(--w) * .1) calc(var(--w) * .11) calc(var(--w) * .1); }
.card.framed.mythic { box-shadow: 0 calc(var(--w) * .08) calc(var(--w) * .2) rgba(0, 0, 0, .4); }
.card.framed.illus { box-shadow: 0 calc(var(--w) * .08) calc(var(--w) * .2) rgba(0, 0, 0, .35); }
.card.framed.card > .card-name, .card.framed.card > .card-beats { position: relative; z-index: 3; }
.card.framed .card-top { justify-content: center; min-height: calc(var(--w) * .1); }
.card.framed .card-top span { display: none; }
.card.framed .card-top .sigil { display: none; }
.card .medal { position: absolute; z-index: 4; left: 50%; top: 6.43%; width: 8.5%; aspect-ratio: 1; transform: translate(-50%, -50%); color: color-mix(in srgb, var(--c) 55%, #fff); display: grid; place-items: center; pointer-events: none; filter: drop-shadow(0 0 3px var(--c)) brightness(1.15); }
.card .medal svg { width: 100%; height: 100%; }
.card.sm .medal { width: 10%; }
.card.framed .card-name, .card.framed .card-beats { text-align: center; justify-content: center; }
.card.framed .card-beats { margin-bottom: calc(var(--w) * .03); }
.card.champ .card-name { font-size: calc(var(--w) * .15); letter-spacing: .04em; }
.card.framed.mythic::after { z-index: 4; }
.card.sm.framed { padding: calc(var(--w) * .1); }
.card.sm.framed .card-name { font-size: calc(var(--w) * .13); }

/* ---------- logo ---------- */
.logo-img { display: block; height: 38px; width: auto; object-fit: contain; }
.logo-img.big { height: auto; width: min(300px, 80%); margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.top-logo .logo-img { height: 46px; }
@media (max-width: 860px) { .top-logo .logo-img { height: 34px; } }

/* ---------- icônes de profil ---------- */
.av.icon { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .2); }
.av.icon.r-legendaire { box-shadow: 0 0 0 2px #E8894A; }
.av.icon.r-mythique { box-shadow: 0 0 0 2px var(--gold); }
.av.icon.r-epique { box-shadow: 0 0 0 1.5px #B79BEA; }
.av.icon.r-rare { box-shadow: 0 0 0 1.5px #79AEE0; }
.r-legendaire { color: #F0A060; background: rgba(232, 137, 74, .14); }
.pv-avatar { display: grid; place-items: center; background: var(--bg2); }
.pv-avatar img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 10px 30px rgba(0, 0, 0, .5); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px; margin-top: 16px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.icon-grid button { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.icon-grid button .av { transition: transform .15s; }
.icon-grid button:hover .av { transform: scale(1.06); }
.icon-grid button.on .av { box-shadow: 0 0 0 3px var(--text); }
.icon-grid button.locked { opacity: .35; pointer-events: none; }
.modal.wide { width: min(640px, 100%); }

/* ---------- codex ---------- */
.codex { display: grid; gap: 14px; margin-top: 14px; max-height: 62vh; overflow-y: auto; }
.codex-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.codex-row .card { --cws: 76px; }
.codex-row h4 { margin: 0 0 4px; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 16px; }
.codex-row p { font-size: 14px; color: var(--muted); }
.item-meta .link { font-size: 12px; }

/* ---------- passe de saison ---------- */
.pass-head { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 32px; min-height: 280px; }
.pass-head > *:not(.stage-bg) { position: relative; z-index: 1; }
.pass-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; font-stretch: 112%; line-height: 1.05; margin: 6px 0 10px; }
.pass-head .lore { color: #BDB8AD; font-size: 14px; max-width: 520px; }
.pass-prog { margin-top: 20px; display: grid; gap: 6px; max-width: 460px; }
.pass-prog .row1 { display: flex; justify-content: space-between; align-items: baseline; }
.pass-prog strong { font-size: 30px; font-weight: 900; font-stretch: 115%; }
.pass-prog .xpbar { height: 8px; }
.pass-final { display: grid; justify-items: center; align-content: center; gap: 10px; --cws: 92px; }
.pass-final .trio { display: flex; gap: 8px; }
.pass-final .trio .card:nth-child(2) { transform: translateY(-12px); }
.pass-final small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.xp-chips span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: var(--surface2); color: var(--muted); }
.xp-chips b { color: var(--text); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding: 14px 2px 18px; scroll-snap-type: x proximity; }
.tier { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: grid; gap: 8px; justify-items: center; position: relative; }
.tier .tn { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; justify-self: start; }
.tier .rw-pv { width: 100%; height: 118px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; overflow: hidden; position: relative; --cws: 34px; --cw: 62px; }
.tier .rw-pv .pv-set { gap: 3px; background: none; height: 100%; }
.tier .rw-pv .pv-arena { position: absolute; inset: 0; }
.tier .rw-pv img.ico { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; }
.tier .rw-pv .coins-big { display: grid; justify-items: center; gap: 4px; font-weight: 900; font-size: 20px; }
.tier .rw-pv .coins-big .coin { width: 34px; height: 34px; }
.tier .rw-name { font-size: 12px; font-weight: 700; text-align: center; min-height: 2.4em; line-height: 1.2; }
.tier .btn { width: 100%; }
.tier.done { opacity: .55; }
.tier.ready { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(217, 179, 106, .25); }
.tier.locked .rw-pv { filter: saturate(.4) brightness(.6); }
.tier.final { grid-column: span 2; }
.tier.final .rw-pv { height: 118px; --cws: 46px; }
.pass-strip { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(90deg, rgba(217, 179, 106, .12), var(--surface) 60%); border: 1px solid rgba(217, 179, 106, .3); }
.pass-strip > div { flex: 1; display: grid; gap: 4px; }
.pass-strip strong { font-size: 15px; }
.pass-strip .xpbar { max-width: 360px; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--gold); color: #1a1408; font-size: 10px; font-weight: 900; display: grid; place-items: center; padding: 0 4px; }
.nav a { position: relative; }
.res-pass { margin-top: 10px; font-size: 13px; color: var(--gold); font-weight: 700; }
@media (max-width: 860px) {
  .pass-head { grid-template-columns: 1fr; padding: 22px; }
  .pass-final { order: -1; --cws: 76px; }
  .nav a { font-size: 10px; padding: 6px 2px; }
  .nav a svg { width: 21px; height: 21px; }
  .pass-strip { flex-wrap: wrap; }
}

/* ---------- passe intégré à l'accueil ---------- */
.pass-home { margin-top: 14px; }
.pass-home .pass-head { transition: border-radius .3s; }
.pass-home .lore { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: all .3s; }
.pass-home.open .lore { -webkit-line-clamp: unset; }
.pass-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .3, 1); }
.pass-body > div { overflow: hidden; min-height: 0; }
.pass-home.open .pass-body { grid-template-rows: 1fr; }
.pass-home.open .pass-body > div { animation: passIn .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes passIn { from { opacity: 0; transform: translateY(-8px); } }
.pass-home .tier { opacity: 1; }
.pass-home .tier.done { opacity: .55; }
.nav [data-nav=jouer] .badge, .nav a .badge { pointer-events: none; }

/* ---------- titres ---------- */
.ttl { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.ttl.r-commun { color: #C9C4B8; background: rgba(201, 196, 184, .1); }
.ttl.r-unique { color: #1a1206; background: linear-gradient(100deg, #F6E3A8, #E9B04F 30%, #FFF2C8 50%, #D9973A 70%, #F6E3A8); background-size: 200% 100%; animation: ttlShine 3.5s linear infinite; box-shadow: 0 0 14px rgba(233, 176, 79, .45); }
@keyframes ttlShine { to { background-position: -200% 0; } }
.r-unique { color: #F0C060; background: rgba(240, 192, 96, .16); }
.pv-title { display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 50%, rgba(217, 179, 106, .1), transparent), var(--bg2); }
.pv-title .ttl { font-size: 13px; padding: 7px 12px; }
.tier .rw-pv .pv-title { position: absolute; inset: 0; }
.tier .rw-pv .pv-title .ttl { font-size: 10px; padding: 5px 8px; white-space: normal; text-align: center; }
.pl-n { display: grid; gap: 2px; min-width: 0; }
.pl-n .ttl { justify-self: start; font-size: 9.5px; padding: 2px 6px; }
.pf-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; }
.ttl-inline { color: var(--gold); font-weight: 700; }
.pill.excl { color: #F0C060; background: rgba(240, 192, 96, .14); }

/* ---------- Distorsion du Prisme ---------- */
.g-event { position: absolute !important; inset: 0; z-index: 7 !important; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(60% 45% at 50% 50%, rgba(91, 70, 201, .35), rgba(0, 0, 0, .55)); }
.g-event[hidden] { display: none; }
.g-event.in { opacity: 1; }
.ev-card { text-align: center; padding: 26px 30px; border-radius: 22px; background: rgba(16, 13, 26, .9); border: 1px solid rgba(198, 162, 255, .45);
  box-shadow: 0 0 60px rgba(140, 100, 255, .35); transform: scale(.9); transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); max-width: min(360px, 88vw); }
.g-event.in .ev-card { transform: scale(1); }
.ev-prism { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.ev-prism .sigil { width: 22px; height: 22px; color: #C6A2FF; filter: drop-shadow(0 0 8px #8f6bff); animation: evSpin 1.8s ease-in-out infinite; }
.ev-prism .sigil:nth-child(2) { animation-delay: .15s; color: #8FE9F4; } .ev-prism .sigil:nth-child(3) { animation-delay: .3s; color: #F5D48A; }
@keyframes evSpin { 50% { transform: translateY(-6px) rotate(180deg); } }
.ev-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #C6A2FF; font-weight: 800; }
.ev-card h3 { font-size: 30px; font-weight: 900; font-stretch: 118%; margin: 6px 0; }
.ev-card p { color: #BDB6D6; font-size: 14px; }
.me-hand.blind .card { box-shadow: 0 0 0 1.5px rgba(198, 162, 255, .7), 0 0 24px rgba(140, 100, 255, .45); }
.me-hand.blind .hs:hover .card { box-shadow: 0 0 0 2px #C6A2FF, 0 0 30px rgba(140, 100, 255, .7); }
.item > .pv-title { height: 120px; }
.nav a .badge { top: -2px; right: -6px; }
@media (max-width: 860px) { .nav a .badge { top: 0; right: calc(50% - 22px); } }
.g-acts { display: flex; gap: 8px; }
.icon-btn.off { color: var(--muted); }
.music-btn { width: 34px; height: 34px; border-radius: 99px; background: var(--surface2); }
.music-btn svg { width: 17px; height: 17px; }

/* ---------- réplique de champion ---------- */
.g-quote { position: absolute !important; z-index: 9 !important; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.85); display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 14px; border-radius: 99px; background: rgba(10, 9, 8, .82); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 0 50px color-mix(in srgb, var(--c) 45%, transparent); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1.4); pointer-events: none; max-width: 92vw; }
.g-quote.in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.g-quote.out { opacity: 0; transform: translate(-50%, -60%) scale(1.04); }
.g-quote img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--c), 0 0 20px var(--c); }
.g-quote small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #fff); font-weight: 800; }
.g-quote strong { display: block; font-size: clamp(18px, 3vh, 26px); font-weight: 900; font-stretch: 112%; font-style: italic; white-space: nowrap; text-shadow: 0 0 18px var(--c); }

.auth-legal { justify-self: center; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.auth-legal a { color: var(--muted); }
.auth-legal a:hover { color: var(--text); }
