@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #0b0d12;
  --bg2: #12151d;
  --panel: #171b25;
  --line: #262c3a;
  --text: #eef1f7;
  --mute: #8b93a7;
  --accent: #e3b34c;
  --C: #aeb6c4;  --C2: #6f7888;
  --R: #3d8bfd;  --R2: #1c4fa8;
  --SR: #a45cff; --SR2: #5b23b8;
  --UR: #ff4d3d; --UR2: #b3170c;
  --L: #ffcc3d;  --L2: #c27a00;
  --S: #c99bff;
  --display: "Anton", "Bahnschrift", "Arial Narrow", sans-serif;
  --cond: "Bahnschrift", "DIN Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -200px, #1d2333 0%, transparent 70%), var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------ barre du haut */
#topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 10px 18px; background: rgba(11,13,18,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--cond); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; font-size: 19px; white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent); }
.ball { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); }
.ball::before, .ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid #1a0d05; clip-path: inset(0 45% 0 45%); }
.ball::after { clip-path: inset(45% 0 45% 0); }
#nav { display: flex; gap: 4px; flex: 1; }
#nav a { white-space: nowrap; text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--mute);
  font-weight: 600; font-size: 14px; }
#nav a:hover { color: var(--text); background: var(--panel); }
#nav a.active { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent); }
.wallet { display: flex; align-items: center; gap: 10px; }
.frag { display: inline-flex; align-items: center; gap: 6px; background: var(--panel);
  border: 1px solid var(--line); padding: 5px 11px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.gem { width: 12px; height: 12px; display: inline-block; transform: rotate(45deg);
  background: linear-gradient(135deg, #7ef0ff, #3b7dff); border-radius: 2px; box-shadow: 0 0 8px #3bb5ff88; }
.user-btn { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px;
  color: var(--mute); }
.user-btn:hover { color: var(--text); }

@media (max-width: 760px) {
  #topbar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .brand { font-size: 16px; }
  #nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  #nav a { padding: 6px 9px; font-size: 13px; }
  .wallet { margin-left: auto; }
}

main#view { max-width: 1240px; margin: 0 auto; padding: 22px 18px 80px; }
h1, h2, h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 12px; }
h1 { font-size: 30px; }
h2 { font-size: 21px; color: #dfe4ee; }
.mute { color: var(--mute); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.btn { border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; background: var(--accent);
  color: #170a02; transition: transform .1s, filter .1s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
input, select { background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ------------------------------------------------ connexion */
.auth { max-width: 380px; margin: 8vh auto 0; text-align: center; }
.auth .logo { font-family: var(--cond); font-size: 42px; font-weight: 800; text-transform: uppercase;
  line-height: 1; margin-bottom: 6px; }
.auth .logo em { color: var(--accent); font-style: normal; display: block; }
.auth form { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.tabs { display: flex; background: var(--bg2); border-radius: 10px; padding: 4px; }
.tabs button { flex: 1; background: none; border: 0; padding: 8px; border-radius: 7px; color: var(--mute); font-weight: 600; }
.tabs button.on { background: var(--panel); color: var(--text); }
.err { color: #ff7a6b; min-height: 1.4em; font-size: 14px; }

/* ------------------------------------------------ page boosters */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pack { position: relative; border-radius: 16px; padding: 18px; min-height: 250px; display: flex;
  flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); }
.pack .art { position: absolute; inset: 0; opacity: .9; }
.pack > *:not(.art) { position: relative; }
.pack h3 { font-size: 22px; margin: 0; }
.pack .sub { color: rgba(255,255,255,.75); font-size: 13px; margin: 2px 0 12px; }
.pack.classic .art { background: radial-gradient(circle at 70% 20%, #e8742a 0%, transparent 55%),
  linear-gradient(160deg, #2a1b12, #0e0f14 70%); }
.pack.premium .art { background: radial-gradient(circle at 70% 20%, #a45cff 0%, transparent 55%),
  linear-gradient(160deg, #1f1433, #0e0f14 70%); }
.pack.elite .art { background: radial-gradient(circle at 70% 20%, #ffcc3d 0%, transparent 55%),
  conic-gradient(from 200deg at 70% 20%, #ff6ad522, #7af0ff22, #ffcc3d33, #ff6ad522),
  linear-gradient(160deg, #2b2208, #0e0f14 70%); }
.pack .count { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.55); padding: 3px 10px;
  border-radius: 99px; font-weight: 800; font-size: 13px; }
.pack .ball-big { position: absolute; top: 22px; left: 18px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffa25e, #c85512); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.reset { font-size: 13px; color: var(--mute); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 26px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.feed { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
.feed .it { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 10px;
  background: var(--bg2); border-radius: 10px; cursor: pointer; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.L { background: var(--L); box-shadow: 0 0 8px var(--L); }
.dot.UR { background: var(--UR); } .dot.SR { background: var(--SR); } .dot.R { background: var(--R); } .dot.C { background: var(--C); }
.feed time { margin-left: auto; color: var(--mute); font-size: 12px; white-space: nowrap; }

.tierbars { display: grid; gap: 9px; }
.tierbar { display: grid; grid-template-columns: 92px 1fr 86px; align-items: center; gap: 10px; font-size: 13px; }
.tierbar .bar { height: 9px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.tierbar .bar i { display: block; height: 100%; border-radius: 99px; }
.tierbar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--mute); }
.tname.L { color: var(--L); } .tname.UR { color: var(--UR); } .tname.SR { color: var(--SR); }
.tname.R { color: var(--R); } .tname.C { color: var(--C); }

/* ------------------------------------------------ ouverture */
#overlay { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 40%, #1b2030, #05060a 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.reveal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2em;
  font-size: clamp(7.5px, 1.25vw, 13px); max-width: 100%; }
.flip { width: 16em; height: 22.4em; perspective: 1200px; cursor: pointer; opacity: 0;
  animation: deal .45s cubic-bezier(.2,.9,.3,1.2) forwards; }
.flip .fi { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,.9,.3,1);
  transform-style: preserve-3d; }
.flip.on .fi { transform: rotateY(180deg); }
.flip .face, .flip .back { position: absolute; inset: 0; backface-visibility: hidden; }
.flip .face { transform: rotateY(180deg); }
.flip .back { border-radius: .95em; overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 2.9em, #e3b34c 2.95em 3.1em, transparent 3.15em),
    radial-gradient(circle at 50% 44%, #e3b34c33 0 2.9em, transparent 2.95em),
    repeating-linear-gradient(45deg, #e3b34c0d 0 .5em, transparent .5em 1em),
    repeating-linear-gradient(-45deg, #e3b34c0d 0 .5em, transparent .5em 1em),
    linear-gradient(160deg, #1b1710, #0a0908);
  border: .36em solid transparent; background-clip: padding-box;
  outline: .1em solid #e3b34c; outline-offset: -.5em;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 2.4em;
  font-family: var(--cond); font-weight: 800; letter-spacing: .25em; color: #e3b34c; font-size: .85em;
  box-shadow: 0 0 0 .36em #2a2214, 0 .5em 1.5em rgba(0,0,0,.6); }
.flip .back::before { content: "LP"; position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%);
  font-size: 2.6em; letter-spacing: .02em; color: #e3b34c; text-shadow: 0 0 .4em #e3b34c66; }
.flip:not(.on):hover .fi { transform: translateY(-.4em) rotateZ(-1deg); }
.flip.aura-SR:not(.on) .back { box-shadow: 0 0 1.5em #a45cff99; }
.flip.aura-UR:not(.on) .back { box-shadow: 0 0 2em #ff4d3daa; animation: pulse 1s infinite alternate; }
.flip.aura-L:not(.on) .back { box-shadow: 0 0 2.6em #ffcc3dcc; animation: pulse .6s infinite alternate; }
@keyframes pulse { to { filter: brightness(1.35); } }
@keyframes deal { from { opacity: 0; transform: translateY(40px) scale(.8); } to { opacity: 1; transform: none; } }
.tag-new { position: absolute; top: -.7em; left: 50%; transform: translateX(-50%) rotateY(180deg); z-index: 5;
  background: #33d17a; color: #03220f; font-size: .72em; font-weight: 900; padding: .2em .7em; border-radius: 99px;
  backface-visibility: hidden; }
.tag-dup { position: absolute; bottom: -1.9em; left: 0; right: 0; text-align: center; font-size: .8em;
  color: #9fd8ff; transform: rotateY(180deg); backface-visibility: hidden; }
.reveal-title { font-family: var(--cond); text-transform: uppercase; font-size: 26px; letter-spacing: .08em;
  margin-bottom: 22px; text-align: center; }
.reveal-actions { margin-top: 44px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 44px; }
.reveal-sum { margin-top: 26px; color: var(--mute); text-align: center; min-height: 1.4em; }
#flash { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0; }
#flash.go { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ------------------------------------------------ collection */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filters input[type=search] { flex: 1; min-width: 160px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 14px;
  font-size: 9.5px; justify-items: center; }
@media (max-width: 520px) { .cgrid { grid-template-columns: repeat(2, 1fr); font-size: 9.2px; gap: 10px; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.coll-head { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
@media (max-width: 800px) { .coll-head { grid-template-columns: 1fr; } }
.bigpct { font-family: var(--cond); font-size: 44px; font-weight: 800; line-height: 1; }

/* ------------------------------------------------ boutique */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.shop .pack { min-height: 340px; }
.odds { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 14px; }
.odds td { padding: 3px 0; }
.odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.price { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 18px; }

/* ------------------------------------------------ tableaux */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.list th { color: var(--mute); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
table.list tr.me td { background: #e3b34c14; }
.mini { display: inline-flex; gap: 6px; font-size: 12px; color: var(--mute); flex-wrap: wrap; }
.mini b { font-weight: 700; }
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------ modale / toast */
#modal { position: fixed; inset: 0; z-index: 70; background: rgba(3,4,8,.82); display: flex;
  align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.mbox { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  max-width: 820px; width: 100%; position: relative; }
.mclose { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; color: var(--mute); }
.detail { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
.detail .card { font-size: 17px; }
@media (max-width: 700px) { .detail { grid-template-columns: 1fr; justify-items: center; } .detail .card { font-size: 14px; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-weight: 600; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80;
  background: #1f2533; border: 1px solid var(--line); padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 90vw; }
.loading { text-align: center; padding: 50px; color: var(--mute); }
.progress { height: 12px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin: 16px 0 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffcc3d); transition: width .5s; }
.banner { background: #3a2a0d; border: 1px solid #6b4d12; color: #ffd98a; padding: 10px 14px; border-radius: 10px;
  margin-bottom: 16px; font-size: 14px; }
.legend-banner { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 61; pointer-events: none;
  font-family: var(--cond); font-weight: 900; text-transform: uppercase; font-size: clamp(42px, 9vw, 110px);
  letter-spacing: .06em; background: linear-gradient(180deg, #fff8d6, #f3c64e 50%, #a8700f); -webkit-background-clip: text;
  background-clip: text; color: transparent; filter: drop-shadow(0 0 24px #ffcc3d99);
  animation: banner 2.2s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }

/* ------------------------------------------------ badges, cadenas, détail */
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: #ff4d3d; color: #fff;
  font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; margin-left: 3px; }
.card .lock { position: absolute; left: .9em; bottom: .75em; z-index: 6; font-size: .8em; color: #ffdd7a;
  background: rgba(0,0,0,.7); border-radius: .4em; padding: .15em .3em; line-height: 0; }
.dactions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dactions .rec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.small { font-size: 13px; }

/* ------------------------------------------------ classeurs */
.binders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.binder { display: block; text-decoration: none; border-radius: 14px; padding: 16px; border: 1px solid var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 55%, #11141b), #11141b 75%); position: relative;
  overflow: hidden; transition: transform .15s; }
.binder:hover { transform: translateY(-2px); }
.binder::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%;
  background: var(--c2); opacity: .18; }
.bh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bname { font-family: var(--cond); font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }
.gift { font-size: 11px; font-weight: 800; background: var(--accent); color: #1d1300; padding: 2px 8px; border-radius: 99px; }
.bnum { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 8px; }
.bnum b { font-family: var(--cond); font-size: 28px; }
.bnum span { color: var(--mute); font-size: 13px; }
.bbar { position: relative; height: 8px; background: #0008; border-radius: 99px; }
.bbar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #fff0b0); }
.bbar .tick { position: absolute; top: -3px; width: 2px; height: 14px; background: #ffffff55; z-index: 1; }
.bbar .tick.done { background: var(--accent); }
.miles { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.mile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex;
  flex-direction: column; gap: 2px; font-size: 13px; min-width: 120px; }
.mile b { font-family: var(--cond); font-size: 18px; }
.mile span { color: var(--mute); }
.mile em { font-style: normal; color: #33d17a; font-weight: 700; }
.mile.ready { border-color: var(--accent); box-shadow: 0 0 12px #e3b34c44; }
.mile.done { opacity: .7; }

/* ------------------------------------------------ échanges */
.trade { margin-bottom: 14px; }
.thead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.st { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg2); }
.st-pending { color: var(--accent); } .st-accepted { color: #33d17a; } .st-refused, .st-failed { color: #ff7a6b; }
.tnote { color: var(--mute); font-style: italic; margin-bottom: 10px; }
.tgrid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
@media (max-width: 700px) { .tgrid { grid-template-columns: 1fr; } .tgrid .arrow { transform: rotate(90deg); justify-self: center; } }
.tl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-bottom: 6px; }
.arrow { font-size: 26px; color: var(--accent); align-self: center; }
.tside { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 6.2px; }
.tcard { position: relative; cursor: pointer; }
.tq { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #1d1300; font-weight: 900; font-size: 12px;
  border-radius: 99px; padding: 1px 7px; z-index: 7; }
.tfrag { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.tact { display: flex; gap: 8px; margin-top: 12px; }
.compose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 860px) { .compose { grid-template-columns: 1fr; } }
.picked { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 99px; padding: 4px 6px 4px 10px; font-size: 13px; }
.chip button { background: var(--panel); border: 1px solid var(--line); border-radius: 50%; width: 22px; height: 22px;
  line-height: 1; padding: 0; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; font-size: 6.3px;
  max-height: 460px; overflow: auto; margin-top: 10px; padding: 4px; justify-items: center; }
.pc { cursor: pointer; }
.pc.lk { opacity: .45; }

/* ------------------------------------------------ appli / notifications */
.install { display: flex; align-items: center; gap: 14px; background: linear-gradient(90deg, #2a2110, #171b25);
  border: 1px solid #6b5520; border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; flex-wrap: wrap; }
.install img { width: 46px; height: 46px; border-radius: 11px; }
.install > div:nth-child(2) { flex: 1; min-width: 200px; }
.install .small { color: #d9cba8; margin-top: 2px; }
.ibtns { display: flex; gap: 8px; }
.ios-share { display: inline-block; border: 1px solid #d9cba8; border-radius: 4px; padding: 0 4px; font-size: 11px; }
.notif { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; }
.notif .mute { flex: 1; min-width: 180px; }

/* ------------------------------------------------ mini-jeux */
.gamecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gamecard { display: flex; flex-direction: column; gap: 6px; }
.gicon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #e3b34c, #8a5c0c); color: #1d1300;
  font-family: var(--cond); font-weight: 900; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.rewards { color: #d9cba8; }
.gfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.btn.disabled { opacity: .4; pointer-events: none; }
.ghead { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; }
.gsearch { position: relative; max-width: 520px; margin-bottom: 16px; }
.gsearch input { width: 100%; font-size: 16px; padding: 12px 14px; }
.sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: #1a1f2b; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.sugg:empty { display: none; }
.sugg button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px;
  border-bottom: 1px solid var(--line); }
.sugg button:hover { background: #ffffff0d; }
.clues { display: grid; gap: 8px; max-width: 620px; }
.clue { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.clue .cn { width: 24px; height: 24px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center;
  justify-content: center; font-size: 12px; color: var(--mute); }
.clue .cl { color: var(--mute); }
.clue b { font-family: var(--cond); font-size: 17px; text-align: right; }
.clue.new { border-color: var(--accent); box-shadow: 0 0 14px #e3b34c33; animation: deal .4s ease-out; }
.wrong { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-width: 620px; }
.wrong span { background: #ff4d3d1f; color: #ff9b8f; border: 1px solid #ff4d3d44; padding: 3px 10px; border-radius: 99px;
  font-size: 13px; text-decoration: line-through; }
table.mm { border-collapse: separate; border-spacing: 4px; min-width: 860px; }
table.mm th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-weight: 600; padding: 4px; }
table.mm td { background: #2a2f3c; border-radius: 8px; text-align: center; padding: 10px 6px; font-weight: 700; font-size: 13px;
  animation: deal .35s ease-out; }
table.mm td.pn { background: var(--panel); text-align: left; padding-left: 12px; white-space: nowrap; }
.c-green { background: #1f8f4e !important; color: #fff; }
.c-orange { background: #c7811c !important; color: #fff; }
.legend { margin-top: 10px; line-height: 1.8; }
.legend .c-green, .legend .c-orange { padding: 1px 6px; border-radius: 5px; }
.gend { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }
.gans { font-size: 13px; }
.gres { font-size: 18px; text-align: center; }
.gres.win b { color: #33d17a; }
.gres.lose b { color: #ff7a6b; }

/* ------------------------------------------------ connexions */
.lives { display: inline-flex; gap: 6px; }
.life { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffa25e, #c85512);
  box-shadow: inset 0 0 0 1px #00000055; }
.life.lost { background: #2a2f3c; box-shadow: none; }
.cgrid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 640px; margin: 10px auto 0; }
.ctile { position: relative; aspect-ratio: 1 / 1.08; border-radius: 12px; overflow: hidden; border: 2px solid var(--line);
  padding: 0; background: #11141b; display: flex; flex-direction: column; transition: transform .12s, border-color .12s; }
.ctile:active { transform: scale(.96); }
.ctile.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 18px #e3b34c55; transform: translateY(-2px); }
.ctile .cpic { position: relative; flex: 1; overflow: hidden; font-size: 6px;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 70%),
              linear-gradient(170deg, color-mix(in srgb, var(--c1) 45%, #0b0d12), #0b0d12); }
.ctile .cpic svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 96%; }
.ctile .cname { background: #000c; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 4px; line-height: 1.15;
  min-height: 2.6em; display: flex; align-items: center; justify-content: center; text-align: center; }
.ctile.sel .cname { background: var(--accent); color: #1d1300; }
@media (max-width: 520px) { .ctile .cname { font-size: 10px; } .cgrid4 { gap: 6px; } }
.cbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.cmsg { text-align: center; min-height: 22px; margin-top: 10px; color: var(--accent); font-weight: 700; opacity: 0; transition: opacity .2s; }
.cmsg.show { opacity: 1; }
.cgroups { display: grid; gap: 8px; max-width: 640px; margin: 10px auto 12px; }
.cgroup { border-radius: 12px; padding: 12px 14px; text-align: center; color: #15110a; animation: deal .4s ease-out; }
.cgroup.d1 { background: #f2d56b; } .cgroup.d2 { background: #8fd17a; } .cgroup.d3 { background: #8ab8f0; } .cgroup.d4 { background: #c49af0; }
.cgroup.missed { opacity: .75; outline: 2px dashed #ffffff55; outline-offset: -4px; }
.glabel { font-family: var(--cond); font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }
.glabel span { font-family: system-ui; text-transform: none; font-weight: 600; font-size: 11px; opacity: .7; margin-left: 6px; }
.gnames { font-size: 14px; margin-top: 2px; }
.chints { display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 6px auto 0; }
.chints span { background: #2a2110; border: 1px solid #6b5520; color: #ffd98a; padding: 7px 12px; border-radius: 10px; font-size: 14px; }
.hslots { display: grid; gap: 8px; margin-top: 12px; }
.hslot { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.hslot.on { border-color: #6b5520; background: #2a2110; color: #ffd98a; }
.hslot span { text-align: right; }
.hslot b { white-space: nowrap; }

.dot.S { background: linear-gradient(135deg, #ff9df0, #9ff5ff); box-shadow: 0 0 10px #c99bff; }
.tname.S { background: linear-gradient(90deg, #ffb8f2, #c9a8ff, #9ff5ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.flip.aura-S:not(.on) .back { box-shadow: 0 0 3em #c99bffee, 0 0 1em #9ff5ff; animation: pulse .4s infinite alternate; }
.legend-banner.secret { background: linear-gradient(90deg, #ffd6f5, #c9a8ff, #9ff5ff, #ffd6f5); -webkit-background-clip: text;
  background-clip: text; filter: drop-shadow(0 0 28px #b46cffcc); animation-duration: 3s; }

/* ------------------------------------------------ présentation des grosses cartes */
.present { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  overflow: hidden; animation: pin .35s ease-out; }
.present.out { animation: pout .35s ease-in forwards; }
@keyframes pin { from { opacity: 0; } } @keyframes pout { to { opacity: 0; } }
.present.p-UR { background: radial-gradient(circle at 50% 45%, #5a0f08, #0a0303 70%); }
.present.p-L { background: radial-gradient(circle at 50% 45%, #4a3207, #070502 70%); }
.present.p-S { background: #000; }
.prays { position: absolute; inset: -50%; opacity: .55; animation: spin 14s linear infinite;
  background: repeating-conic-gradient(from var(--ang, 0deg), transparent 0 10deg, #ffffff10 10deg 14deg); }
.p-L .prays { background: repeating-conic-gradient(from 0deg, transparent 0 9deg, #ffcc3d22 9deg 14deg); animation: rot 18s linear infinite; }
.p-UR .prays { background: repeating-conic-gradient(from 0deg, transparent 0 11deg, #ff4d3d1c 11deg 15deg); animation: rot 22s linear infinite; }
.p-S .prays { opacity: 0; }
.p-S.burst .prays { opacity: .9; animation: rot 9s linear infinite;
  background: repeating-conic-gradient(from 0deg, #ff6ad522 0 6deg, transparent 6deg 12deg, #7af0ff22 12deg 18deg, transparent 18deg 24deg, #c99bff26 24deg 30deg, transparent 30deg 36deg); }
@keyframes rot { to { transform: rotate(360deg); } }
.pstage { position: relative; z-index: 1; text-align: center; padding: 20px; width: min(560px, 92vw); }
.pskip { position: absolute; top: 16px; right: 16px; z-index: 2; background: #ffffff14; border: 1px solid #ffffff30; color: #fff;
  border-radius: 99px; padding: 6px 14px; font-size: 13px; }
.pdot { width: 10px; height: 10px; border-radius: 50%; background: #fff; margin: 0 auto; box-shadow: 0 0 30px #fff, 0 0 80px #c99bff;
  animation: heartbeat 1s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); opacity: .6; } 15% { transform: scale(2.2); opacity: 1; } 30% { transform: scale(1.2); } 45% { transform: scale(2.6); opacity: 1; } }
.pglitch { font-family: var(--cond); font-weight: 900; font-size: clamp(50px, 14vw, 120px); color: #fff; letter-spacing: .2em;
  text-shadow: 4px 0 #ff2fb0, -4px 0 #2ff4ff; animation: glitch .18s steps(2) infinite; }
@keyframes glitch { 0% { transform: translate(0); clip-path: inset(0 0 0 0); } 50% { transform: translate(-6px, 3px); clip-path: inset(20% 0 35% 0); } 100% { transform: translate(5px, -2px); clip-path: inset(55% 0 5% 0); } }
.present.quake { animation: quake .12s infinite; }
@keyframes quake { 25% { transform: translate(4px, -3px); } 50% { transform: translate(-5px, 2px); } 75% { transform: translate(3px, 4px); } }
.present.flashout::after { content: ""; position: absolute; inset: 0; background: #fff; pointer-events: none; animation: flash 1s ease-out forwards; }
.preveal { font-size: clamp(13px, 3.4vw, 19px); display: flex; justify-content: center; animation: revealcard 1s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes revealcard { from { transform: perspective(800px) rotateY(180deg) scale(.6); opacity: 0; } }
.pname { font-family: var(--cond); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 6vw, 40px); margin-top: 16px;
  animation: pin 1.2s ease-out; }
.ptap { color: #ffffff77; font-size: 13px; margin-top: 8px; }

/* ------------------------------------------------ révélation : un indice à la fois */
.pglow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 30% at 50% 50%, var(--pg, #ffffff22), transparent 70%); animation: breathe 2.4s ease-in-out infinite; }
.p-L { --pg: #ffcc3d40; --g1: #fff8d6; --g2: #f3c64e; --g3: #a8700f; }
.p-UR { --pg: #ff4d3d38; --g1: #ffe1d9; --g2: #ff7b5c; --g3: #9e1208; }
.p-S { --pg: #b46cff40; --g1: #ffd6f5; --g2: #c9a8ff; --g3: #6fe9ff; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.08); } }
.present.streak::before { content: ""; position: absolute; left: -40%; right: -40%; top: 50%; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--g1, #fff), transparent); animation: streak .55s ease-out forwards; }
@keyframes streak { from { transform: translateX(-60%) scaleY(1); opacity: 1; } to { transform: translateX(60%) scaleY(6); opacity: 0; } }
.beat { animation: slam .42s cubic-bezier(.15, .9, .25, 1.15) both; }
.beat.leave { animation: leave .32s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes slam { 0% { transform: scale(2.4) skewX(-8deg); filter: blur(14px); opacity: 0; letter-spacing: .3em; }
  60% { filter: blur(0); opacity: 1; } 100% { transform: scale(1) skewX(-8deg); letter-spacing: normal; } }
@keyframes leave { to { transform: translateX(90px) skewX(-20deg) scale(.92); filter: blur(10px); opacity: 0; } }
.blabel { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .5em; text-transform: uppercase; color: var(--g2); margin-bottom: 6px; padding-left: .5em; }
.blabel i { display: block; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--g2)); }
.blabel i:last-child { transform: scaleX(-1); }
.bval, .btier, .pname { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.02;
  background: linear-gradient(180deg, var(--g1) 10%, var(--g2) 55%, var(--g3)); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 0 26px var(--pg)); padding: .06em .1em; }
.bval { font-size: clamp(64px, 19vw, 150px); position: relative; }
.bval::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, #ffffffcc 50%, transparent 65%);
  mix-blend-mode: overlay; animation: sweep 1.1s .25s ease-out both; pointer-events: none; }
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.btier { font-size: clamp(54px, 15vw, 120px); letter-spacing: .02em; }
.p-S .btier { background-size: 200% 100%; animation: nameShift 2.5s linear infinite; }
.bsub { margin-top: 10px; font-size: clamp(16px, 4.4vw, 22px); color: #ffffffcc; letter-spacing: .08em; font-weight: 600; }
.p-S .bsub { font-style: italic; color: #d8c6f5; letter-spacing: .02em; }
.lt { display: inline-block; animation: drop .5s cubic-bezier(.2, 1.4, .4, 1) both; background: inherit;
  -webkit-background-clip: text; background-clip: text; }
.sp { display: inline-block; width: .25em; }
@keyframes drop { from { transform: translateY(-70px) rotate(-8deg) scale(1.4); opacity: 0; } }
.pname { font-size: clamp(30px, 8vw, 54px); margin-top: 14px; }
.pglitch { font-family: var(--display); font-size: clamp(60px, 17vw, 130px); color: #fff; letter-spacing: .15em;
  text-shadow: 4px 0 #ff2fb0, -4px 0 #2ff4ff; animation: glitch .16s steps(2) infinite; }
h1, h2, .brand, .card .name, .glabel, .bname, .bigpct { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
/* lettres animées : chaque lettre porte son propre dégradé */
.btier, .pname { background: none !important; color: inherit; }
.btier .lt, .pname .lt { background: linear-gradient(180deg, var(--g1) 10%, var(--g2) 55%, var(--g3)); -webkit-background-clip: text;
  background-clip: text; color: transparent; padding: 0 .01em; }
.p-S .btier .lt { background: linear-gradient(90deg, #ffd6f5, #c9a8ff, #9ff5ff); -webkit-background-clip: text; background-clip: text; }
.tag-dup { font-size: .7em; color: #ffffff70; letter-spacing: .08em; text-transform: uppercase; }
.lhide { float: right; background: none; border: 1px solid var(--line); color: var(--mute); border-radius: 99px; padding: 1px 9px; font-size: 12px; margin-left: 8px; }
.install .ix { background: none; border: 0; color: #d9cba8; font-size: 18px; padding: 4px 8px; }
.sw { position: relative; display: inline-block; width: 38px; height: 22px; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: #2a2f3c; border-radius: 99px; transition: .2s; cursor: pointer; }
.sw span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.sw input:checked + span { background: #8a5cd6; }
.sw input:checked + span::before { transform: translateX(16px); }
