/* Crazy Inhouse : le violet et le fantôme du logo, des crocs en zigzag, des ombres franches. */
:root {
  --ink: #0e0a1c;
  --ink-2: #171129;
  --ink-3: #221a3b;
  --line: #2f2650;
  --violet: #6b58ff;
  --violet-2: #8e80ff;
  --paper: #f5f3ff;
  --muted: #a49fc4;
  --lime: #c8ff2e;
  --pink: #ff5470;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --shadow: 5px 5px 0 #000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 40px 16px; }
.muted { color: var(--muted); }
.win { color: var(--lime); }
.loss { color: var(--pink); }
.sticker {
  display: inline-block; font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 10px; background: var(--paper); color: var(--ink); border: 2px solid #000;
  box-shadow: 3px 3px 0 #000; transform: rotate(-2deg);
}
.sticker.lime { background: var(--lime); }
.sticker.violet { background: var(--violet); color: #fff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Boutons : ça s'enfonce quand on clique */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  padding: 16px 22px; background: var(--violet); color: #fff;
  border: 2px solid #000; border-radius: 12px; box-shadow: var(--shadow);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.btn:hover { background: var(--violet-2); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 #000; }
.btn.paper { background: var(--paper); color: var(--ink); }
.btn.paper:hover { background: #fff; }
.btn.ghost { background: transparent; color: inherit; box-shadow: none; border-color: currentColor; }
.btn.small { padding: 10px 14px; font-size: 12px; box-shadow: 3px 3px 0 #000; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  padding: 12px 16px; background: rgba(14, 10, 28, 0.88); backdrop-filter: blur(12px);
  border-bottom: 2px solid #000;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 15px/1 var(--display); letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid #000; }
.brand span b { color: var(--violet-2); }
.top nav { display: flex; gap: 6px; }
.top nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { color: var(--paper); background: var(--ink-3); }
.search { margin-left: auto; position: relative; }
.search input {
  width: 230px; padding: 10px 14px; font: inherit; color: var(--paper);
  background: var(--ink-2); border: 2px solid var(--line); border-radius: 12px;
}
.search input:focus { outline: none; border-color: var(--violet); }
/* Suggestions pendant la frappe */
.suggest {
  position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 300px); z-index: 30; margin: 0; padding: 6px;
  list-style: none; background: var(--ink-2); border: 2px solid #000; border-radius: 14px; box-shadow: var(--shadow);
}
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--ink-3); }
.suggest .av { width: 30px; height: 30px; font-size: 12px; }
.suggest .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest small { display: block; color: var(--muted); font-size: 12px; }
.suggest b { font: 800 14px/1 var(--display); }
.suggest .muted { padding: 8px 10px; }

/* Hero violet, bord en crocs */
.hero {
  position: relative; background: var(--violet); color: #fff; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 92% 100%, 84% calc(100% - 30px), 76% 100%, 68% calc(100% - 34px),
    60% 100%, 52% calc(100% - 28px), 44% 100%, 36% calc(100% - 34px), 28% 100%, 20% calc(100% - 30px), 12% 100%, 4% calc(100% - 34px), 0 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(40px, 8vw, 88px); margin: 18px 0 18px; text-shadow: 4px 4px 0 #000; }
.hero .lead { max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, 0.88); margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ghost-art { position: relative; justify-self: center; width: min(360px, 80%); }
.ghost-art img { width: 100%; filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.35)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .ghost-art img, .dot { animation: none; } }

/* La file en crocs : un croc par joueur */
.queue-card {
  margin-top: 36px; max-width: 520px; padding: 18px 20px 20px; color: var(--ink);
  background: var(--paper); border: 2px solid #000; border-radius: 18px; box-shadow: var(--shadow);
}
.queue-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.queue-card strong { font: 800 22px/1 var(--display); }
.teeth { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 5px; }
.teeth i {
  height: 34px; background: var(--ink-3); opacity: 0.18; border-radius: 3px 3px 10px 10px;
  transform: skewX(-8deg); transition: opacity 0.3s, background 0.3s;
}
.teeth i.on { background: var(--violet); opacity: 1; }
.queue-card small { display: block; margin-top: 10px; font-weight: 600; color: #4b4570; }

.queue-card .hours { margin-top: 4px; font-weight: 500; }
.queue-card.closed .teeth i { opacity: 0.1; }
.queue-card.closed strong { opacity: 0.5; }

/* Pastille de file dans l'en-tête : la file en mini-crocs, ou Crazy qui dort */
.qpill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; white-space: nowrap;
  background: var(--ink-2); border: 2px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 13px;
}
a.qpill:hover { border-color: var(--violet); color: var(--paper); }
.qpill.sleep { color: var(--muted); }
.mini-teeth { display: inline-flex; gap: 2px; }
.mini-teeth i { width: 5px; height: 12px; border-radius: 1px 1px 3px 3px; background: var(--line); transform: skewX(-8deg); }
.mini-teeth i.on { background: var(--lime); }

/* Le bulletin : bandeau qui défile sous le hero */
.ticker { overflow: hidden; background: var(--lime); color: var(--ink); border-top: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-1deg); margin: -18px -8px 12px; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-run { display: flex; align-items: center; gap: 36px; padding: 12px 18px; white-space: nowrap; font-weight: 600; }
.ticker-run b { font-family: var(--display); text-transform: uppercase; font-size: 13px; }
.ticker-label { background: var(--ink); color: var(--lime); padding: 4px 8px; border-radius: 6px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; }
  .ticker-run { flex-wrap: wrap; white-space: normal; }
  .ticker-run[aria-hidden] { display: none; }
}

/* Le rituel : cinq étapes reliées par un fil en zigzag */
.rituel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.rituel::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 12px;
  background: linear-gradient(135deg, transparent 45%, var(--violet) 45% 55%, transparent 55%) 0 0 / 16px 12px,
              linear-gradient(45deg, transparent 45%, var(--violet) 45% 55%, transparent 55%) 8px 0 / 16px 12px;
}
.rituel li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 10px; color: var(--muted); font-size: 14px; }
.rituel i {
  display: grid; place-items: center; width: 74px; height: 74px; font-size: 30px; font-style: normal;
  background: var(--ink-2); border: 2px solid #000; border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; box-shadow: var(--shadow);
}
.rituel li:nth-child(odd) i { background: var(--violet); }
.rituel b { color: var(--paper); font-family: var(--display); text-transform: uppercase; font-size: 15px; margin-top: 6px; }

/* Le tableau de chasse */
.hunt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hunt a {
  display: grid; grid-template-columns: 56px 40px minmax(0, 1fr) auto 110px 130px; align-items: center; gap: 14px;
  padding: 12px 18px; background: var(--ink-2); border: 2px solid var(--line); border-radius: 16px;
}
.hunt a:hover { border-color: var(--violet); }
.hunt-rank { font: 800 30px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--violet-2); text-align: center; }
.hunt-who { min-width: 0; }
.hunt-who strong { font-size: 16px; }
.hunt-who small, .hunt-record small, .hunt-mmr small { display: block; color: var(--muted); font: 500 12px/1.4 var(--body); }
.hunt-record { font-weight: 700; text-align: right; }
.hunt-mmr { font: 800 22px/1 var(--display); text-align: right; }
.hunt-mmr small.win { color: var(--lime); }
.hunt-mmr small.loss { color: var(--pink); }
.form { display: inline-flex; gap: 3px; vertical-align: middle; }
.form i { width: 10px; height: 22px; border-radius: 2px 2px 6px 6px; background: var(--line); transform: skewX(-8deg); }
.form i.w { background: var(--violet-2); }
.form i.l { background: var(--pink); opacity: 0.75; }
.tag-ghost { display: inline-block; margin-left: 4px; font-size: 13px; font-weight: 700; }
.placing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.warmup { display: inline-flex; gap: 3px; }
.warmup i { width: 8px; height: 16px; border-radius: 2px 2px 5px 5px; background: var(--line); transform: skewX(-8deg); }
.warmup i.on { background: var(--lime); }
.warmup i.loss { background: var(--pink); }

/* La carte du joueur */
.pcard-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.pcard {
  position: relative; padding: 26px; color: #fff; text-align: center; overflow: hidden;
  background: var(--violet); border: 2px solid #000; border-radius: 24px; box-shadow: 8px 8px 0 #000;
}
.pcard::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 260px; opacity: 0.12;
  background: url("ghost.png") center/contain no-repeat; transform: rotate(-12deg); pointer-events: none;
}
.pcard-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pcard h1 { margin: 14px 0 2px; text-shadow: 3px 3px 0 #000; word-break: break-word; }
.pcard .muted { color: rgba(255, 255, 255, 0.75); margin: 0; }
.pcard-mmr { font: 800 64px/1 var(--display); margin: 18px 0 0; text-shadow: 4px 4px 0 #000; }
.pcard-mmr small { display: block; font-size: 12px; letter-spacing: 0.2em; text-shadow: none; opacity: 0.8; margin-top: 6px; }
.pcard-rank { font-weight: 700; margin: 14px 0; }
.pcard-form { display: flex; justify-content: center; align-items: center; gap: 10px; }
.pcard-form .form i { background: rgba(0, 0, 0, 0.25); }
.pcard-form .form i.w { background: var(--lime); }
.pcard-form .form i.l { background: var(--pink); opacity: 1; }
.pcard-form .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.pcard-tags { margin-top: 12px; font-size: 18px; }
.pcard-roles { margin: 10px 0 0; font-weight: 700; }
.pside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; padding: 6px 20px; }
.fiche div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.fiche dt { color: var(--muted); font-size: 13px; }
.fiche dd { margin: 2px 0 0; font: 700 18px/1.3 var(--display); }

/* Sections */
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title a { color: var(--muted); font-weight: 600; font-size: 14px; }
.section-title a:hover { color: var(--paper); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.card { background: var(--ink-2); border: 2px solid var(--line); border-radius: 18px; padding: 20px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.steps li { background: var(--ink-2); border: 2px solid var(--line); border-radius: 18px; padding: 22px; color: var(--muted); }
.steps li b { display: block; color: var(--paper); font-family: var(--display); text-transform: uppercase; font-size: 15px; margin: 14px 0 6px; }
.steps li span { font: 800 38px/1 var(--display); color: var(--violet-2); -webkit-text-stroke: 0; }

/* Matchs en direct */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.live-card {
  position: relative; display: block; min-height: 150px; padding: 18px; border-radius: 18px; overflow: hidden;
  border: 2px solid #000; box-shadow: var(--shadow); background: var(--ink-3) center/cover;
}
.live-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 10, 28, 0.95), rgba(14, 10, 28, 0.55)); }
.live-card > * { position: relative; }
.live-card h3 { font-size: 22px; margin: 12px 0 10px; }

/* Avatars */
.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #000; background: var(--violet); flex: none;
  display: inline-grid; place-items: center; font: 800 13px/1 var(--display); color: #fff; }
.av.lg { width: 112px; height: 112px; font-size: 40px; border-width: 3px; box-shadow: var(--shadow); }
.av.md { width: 64px; height: 64px; font-size: 22px; }
.stack { display: flex; }
.stack .av { width: 30px; height: 30px; margin-right: -8px; font-size: 11px; }

/* Listes */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--ink-2); border: 2px solid var(--line); border-radius: 14px;
  transition: border-color 0.15s, transform 0.15s;
}
a.row:hover { border-color: var(--violet); transform: translateX(3px); }
.row[hidden] { display: none; }
.row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .rank { font: 800 14px/1 var(--display); color: var(--muted); width: 26px; }
.row .mmr { font: 800 16px/1 var(--display); }
.map-thumb { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; border: 2px solid #000; flex: none; background: var(--ink-3); }
.score { font: 800 16px/1 var(--display); white-space: nowrap; }
.tag { font: 800 11px/1 var(--display); padding: 6px 8px; border-radius: 6px; border: 2px solid #000; text-transform: uppercase; }
.tag.win { background: var(--lime); color: var(--ink); }
.tag.loss { background: var(--pink); color: var(--ink); }

/* Podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin: 8px 0 32px; }
.podium a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 22px 12px 18px; background: var(--ink-2); border: 2px solid #000; border-radius: 20px; box-shadow: var(--shadow);
}
.podium a:nth-child(2) { background: var(--violet); padding-top: 32px; }
.podium a:hover { transform: translateY(-4px); }
.podium .place { font: 800 34px/1 var(--display); }
.podium .name { font: 700 15px/1.2 var(--display); text-transform: uppercase; word-break: break-word; }
.podium .mmr { font: 800 22px/1 var(--display); }

/* Le guide */
.wrap.guide { max-width: 860px; padding-top: 18px; padding-bottom: 18px; scroll-margin-top: 80px; }
.guide p { margin: 0 0 14px; }
.guide h2 { margin-top: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--paper); border-color: var(--violet); }
.howto { counter-reset: step; list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.howto li {
  counter-increment: step; position: relative; padding: 12px 14px 12px 60px;
  background: var(--ink-2); border: 2px solid var(--line); border-radius: 14px;
}
.howto li::before {
  content: counter(step); position: absolute; left: 14px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: var(--violet); color: #fff; border: 2px solid #000; font: 800 14px/1 var(--display);
}
.guide code { font-size: 0.92em; background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.guide .list, .guide .table-wrap { margin-bottom: 14px; }
.guide td { white-space: normal; }
.guide .rules { margin-bottom: 14px; }
.guide .rules li { display: block; position: relative; padding-left: 24px; }  /* texte riche : pas de flex */
.guide .rules li::before { position: absolute; left: 0; }
@media (max-width: 760px) { .wrap.guide { scroll-margin-top: 170px; } }  /* l'en-tête mobile fait deux lignes */

/* La Draft */
.draft-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.draft-head h2 { margin-bottom: 6px; }
.draft-head p { margin: 0; }
.draft-turn { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 24px; border-color: var(--violet); }
.draft-turn p { margin: 0; font-size: 18px; }
.draft-turn h2, .pots .winner h3 { margin: 0; color: var(--lime); }
.card.winner, a.row.draft-banner { border-color: var(--lime); }
.pots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.pots h3 { font-size: 13px; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-top { padding-bottom: 0; }
.pots ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pots li { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.pots li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pots li small { color: var(--muted); font-weight: 500; }
.pots li.taken a { color: var(--muted); text-decoration: line-through; }
.pots li.now a { color: var(--lime); }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; background: var(--ink-2); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 700 11px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--ink-3); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--ink-3); }
.who { display: flex; align-items: center; gap: 12px; }
.who small { display: block; color: var(--muted); }
.num { font-family: var(--display); font-weight: 700; }

/* Bannière de match et profil */
.banner { position: relative; background: var(--ink-3) center/cover; border-bottom: 2px solid #000; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(14, 10, 28, 0.6) 60%, rgba(14, 10, 28, 0.35)); }
.banner .wrap { position: relative; padding-top: 72px; }
.bigscore { font: 800 clamp(48px, 10vw, 104px)/1 var(--display); margin: 14px 0 8px; text-shadow: 4px 4px 0 #000; }
.mvp { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px; width: fit-content;
  background: var(--lime); color: var(--ink); border: 2px solid #000; border-radius: 14px; box-shadow: var(--shadow); }
.mvp b { font-family: var(--display); text-transform: uppercase; }
.curve svg { width: 100%; height: auto; display: block; }
.curve .labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Règles, FAQ */
.rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; }
.rules li::before { content: "✦"; color: var(--lime); font-weight: 800; }
.faq details { border-bottom: 2px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 800 18px/1 var(--display); color: var(--violet-2); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.empty { text-align: center; padding: 96px 16px; }
.empty img { width: 140px; margin: 0 auto 24px; opacity: 0.9; }
footer { color: var(--muted); font-size: 13px; border-top: 2px solid var(--line); }
.legal { font-size: 11px; opacity: 0.6; }

/* Joueur connecté : pastille, barre du bas, messages */
.me-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; white-space: nowrap; }
.me-pill:hover { border-color: var(--violet); }
.me-pill img { width: 30px; height: 30px; border-radius: 50%; }
body.has-dock { padding-bottom: 96px; }
.dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 12px 14px; background: var(--ink-2); border: 2px solid #000; border-radius: 16px; box-shadow: var(--shadow);
}
.dock.alert { background: var(--lime); color: var(--ink); animation: nudge 1.2s infinite; }
.dock form, .codebox form { display: flex; gap: 8px; flex: 1 1 220px; max-width: 340px; }
.dock input, .codebox input {
  flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border-radius: 10px; border: 2px solid #000;
  background: var(--paper); color: var(--ink);
}
@keyframes nudge { 50% { transform: translateX(-50%) translateY(-3px); } }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 31;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 14px; background: var(--pink); color: #fff; border: 2px solid #000; border-radius: 12px;
  box-shadow: 3px 3px 0 #000; font-weight: 700; white-space: pre-line;
}
.toast.ok { background: var(--lime); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .dock.alert { animation: none; } }

/* Pronostics, saisons passées */
.btn.pink { background: var(--pink); }
.btn.pink:hover { background: #ff7189; }
.prono { margin-bottom: 28px; }
.prono .fo-bar { margin-bottom: 8px; }
.prono-pick { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.seasons h3 { margin-bottom: 12px; }
.seasons .row { gap: 10px; }

/* Veto sur le site */
.veto-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.countdown { font: 800 24px/1 var(--display); color: var(--lime); }
.map-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.map-tile {
  position: relative; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; cursor: pointer; color: #fff;
  background: var(--violet); background-image: var(--img, none); background-size: cover; background-position: center;
  border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; font: 800 14px/1 var(--display); text-transform: uppercase;
}
.map-tile span { position: absolute; inset: auto 0 0 0; padding: 10px; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.map-tile:disabled { cursor: default; }
.map-tile:not(:disabled):hover { outline: 3px solid var(--pink); outline-offset: 2px; }
.map-tile.banned { filter: grayscale(1) brightness(0.4); box-shadow: none; }
.map-tile.banned span { text-decoration: line-through; }

/* Code de groupe (joueurs de la game) */
.codebox { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 28px; }
.codebox .code { font: 800 30px/1 var(--display); letter-spacing: 0.12em; color: var(--lime); }

/* Mes rôles, sur ma carte */
.roles-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; scroll-margin-top: 240px; }
.roles-edit label { cursor: pointer; position: relative; }
.roles-edit input { position: absolute; opacity: 0; pointer-events: none; }
.roles-edit span { display: inline-block; padding: 7px 10px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; background: var(--ink-2); }
.roles-edit input:checked + span { background: var(--lime); color: var(--ink); border-color: #000; box-shadow: 2px 2px 0 #000; }
.roles-edit input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 10px; }
  .top nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .top nav a { padding: 8px 6px; font-size: 14px; white-space: normal; text-align: center; }
  .search { order: 4; width: 100%; }
  .search input { width: 100%; }
  .top .btn { display: none; }  /* le bouton Discord du hero suffit sur mobile */
  .top .btn.login { display: inline-flex; order: 2; }
  .me-pill { order: 1; padding: 2px; }
  .has-dock .qpill .mini-teeth { display: none; }  /* connecté : la barre du bas montre déjà la file */
  .me-pill span { display: none; }
  .qpill { order: 1; margin-left: auto; }
  .rituel { grid-template-columns: 1fr; gap: 14px; }
  .rituel::before { display: none; }
  .rituel li { flex-direction: row; text-align: left; gap: 14px; }
  .rituel i { width: 56px; height: 56px; font-size: 24px; flex: none; }
  .rituel li > b { min-width: 72px; margin: 0; }
  .hunt a { grid-template-columns: 34px 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .hunt-rank { font-size: 22px; }
  .hunt-mmr { font-size: 18px; }
  .pcard-wrap { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .queue-card strong { font-size: 18px; }
  .teeth i { height: 26px; }
  .ghost-art { position: absolute; right: -30px; top: 20px; width: 150px; opacity: 0.35; }
  .hide-sm { display: none; }
  .podium { grid-template-columns: 1fr; }
  .podium a:nth-child(2) { order: -1; }
  .row { gap: 10px; padding: 10px 12px; }
  .map-thumb { width: 48px; height: 32px; }
}

/* Icônes d'agents, bannière Valorant sur la carte, bloc ranked */
.agent-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--ink-3); border: 2px solid #000; flex: none; object-fit: cover; }
.pcard.has-art {
  background: linear-gradient(180deg, rgba(107, 88, 255, 0.55) 0%, rgba(107, 88, 255, 0.88) 45%, var(--violet) 75%),
              var(--art) center top / cover, var(--violet);
}
.pcard.has-art::after { display: none; }
.ranked h2 small { font: 500 12px/1 var(--body); text-transform: none; }
.ranked-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ranked-row b { display: block; font: 800 18px/1.2 var(--display); }
.ranked-row span { color: var(--muted); font-size: 13px; }
.ranked-curve { width: 100%; height: auto; margin-top: 14px; }
.team-block + .team-block { margin-top: 32px; }

/* Page de game en direct */
.live-banner .bigscore { font-size: clamp(44px, 8vw, 88px); }
.steps-live { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; }
.steps-live li { padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); background: rgba(14, 10, 28, 0.75);
  color: var(--muted); font-weight: 700; font-size: 14px; }
.steps-live li.done { color: var(--ink); background: var(--lime); border-color: #000; }
.steps-live li.now { color: #fff; border-color: var(--violet-2); background: var(--violet); }
.chances { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 28px;
  font-weight: 700; }
.chances b { font: 800 24px/1 var(--display); }
.teeth.big { grid-template-columns: repeat(10, 1fr); }
.teeth.big i { height: 40px; opacity: 1; }
.teeth.big i.a { background: var(--violet); }
.teeth.big i.b { background: var(--pink); }
.veto-maps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.veto-maps span { padding: 8px 14px; border-radius: 10px; border: 2px solid #000; background: var(--violet); font-weight: 700; }
.veto-maps span.banned { background: var(--ink-2); color: var(--muted); text-decoration: line-through; border-color: var(--line); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.side h2 small { font: 600 13px/1 var(--body); text-transform: none; }
.side-a h2 { color: var(--violet-2); }
.side-b h2 { color: var(--pink); }
.mini-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px;
  border: 2px solid var(--line); background: linear-gradient(90deg, rgba(23, 17, 41, 0.96) 40%, rgba(23, 17, 41, 0.7)),
  var(--art, none) center / cover, var(--ink-2);
}
.mini-card:hover { border-color: var(--violet); }
.side-b .mini-card:hover { border-color: var(--pink); }
.mini-card small { display: block; color: var(--muted); font-size: 12px; }
.mini-card .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-card .voice { opacity: 0.25; filter: grayscale(1); }
.mini-card .voice.on { opacity: 1; filter: none; }
.faceoff { display: flex; flex-direction: column; gap: 14px; }
.fo-row { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; gap: 14px; }
.fo-row > b { font: 800 20px/1 var(--display); color: var(--muted); }
.fo-row > b:first-child { text-align: right; }
.fo-row > b.lead { color: var(--paper); }
.fo-row span { display: block; text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.fo-bar { display: block; height: 10px; border-radius: 999px; background: var(--pink); overflow: hidden; border: 2px solid #000; }
.fo-bar i { display: block; height: 100%; background: var(--violet); }
.small { font-size: 13px; }
@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; }
  .chances { grid-template-columns: 1fr 1fr; }
  .chances .teeth { grid-column: 1 / -1; order: 3; }
  .chances span:last-child { text-align: right; }
  .fo-row { grid-template-columns: 56px 1fr 56px; }
}

/* Crazy Manager : le mini-jeu en pixel art */
.px, .px-num { font-family: "Silkscreen", var(--display); }
.px-num { font-weight: 700; letter-spacing: 0.02em; }
#mgr > .wrap { padding-top: 18px; padding-bottom: 18px; }
#mgr > .wrap:first-child { padding-top: 40px; }
.mgr-head p { max-width: 640px; }
.mgr-head h1 { margin: 14px 0 10px; }
.coin { display: inline-block; width: 0.8em; height: 0.8em; background: #ffcc33; border: 2px solid #000; border-radius: 50%; box-shadow: inset -2px -2px 0 #b8860b; vertical-align: -0.05em; }
.mgr-scene { border: 3px solid #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #241d3a; }
.mgr-scene canvas, canvas.sprite { display: block; width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.mgr-start { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.mgr-how { padding-left: 20px; color: var(--muted); }
.mgr-how li { margin-bottom: 8px; }
.mgr-how b, .mgr-start p b { color: var(--paper); }
.mgr-create { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.mgr-create label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.mgr-create input[name=name], .mgr-match input[type=number], .filters input, .filters select {
  font: inherit; color: var(--paper); background: var(--ink); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.mgr-create fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mgr-create legend { font-weight: 600; margin-bottom: 6px; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 8px; background: var(--c); border: 2px solid #000; cursor: pointer; }
.swatch input:checked + span { outline: 3px solid var(--paper); outline-offset: 2px; }
.swatch input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.mgr-board { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.mgr-title h2 { font-size: clamp(22px, 3.2vw, 34px); color: var(--c); text-shadow: 3px 3px 0 #000; word-break: break-word; }
.mgr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.mgr-stats div { background: var(--ink-2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.mgr-stats dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.mgr-stats dd { margin: 2px 0 0; font-size: 22px; }
.mgr-stats small { font-size: 13px; color: var(--muted); }
.mgr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.mgr-grid h2 small { font-size: 14px; }
canvas.sprite { width: 40px; height: 40px; flex: none; background: var(--ink-3); border: 2px solid #000; border-radius: 8px; }
canvas.sprite.big { width: 72px; height: 72px; }
.skill { display: block; height: 6px; margin-top: 6px; max-width: 220px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.skill i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--lime)); }
.chip { width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 2px solid #000; flex: none; }
.row.mine { border-color: var(--lime); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 #000; }
.mgr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.mgr-upgrade { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mgr-upgrade strong { font: 700 16px/1.2 var(--display); text-transform: uppercase; }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 22px; height: 8px; border-radius: 2px; background: var(--line); border: 1px solid #000; }
.pips i.on { background: var(--lime); }
.mgr-upgrade small { flex: 1; }
.mgr-earn { margin: 0; padding: 8px 20px; }
.mgr-earn div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mgr-earn dt { color: var(--muted); }
.mgr-earn dd { margin: 0; font-weight: 700; }
.mgr-earn .total { border: 0; font-size: 20px; }
.mgr-earn .total dt { color: var(--paper); font-weight: 700; }
/* Le scrim en direct */
.mgr-match { width: min(640px, calc(100% - 32px)); padding: 24px; color: var(--paper); background: var(--ink-2); border: 3px solid #000; border-radius: 18px; box-shadow: var(--shadow); }
.mgr-match::backdrop { background: rgba(8, 5, 18, 0.8); }
.mm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.mm-five { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.mm-five canvas.sprite { width: 34px; height: 34px; }
.mm-side strong { font: 700 13px/1.2 var(--display); text-transform: uppercase; word-break: break-word; }
.mm-score { font-size: 44px; display: flex; gap: 6px; }
.mm-rounds { display: flex; flex-wrap: wrap; gap: 3px; margin: 18px 0 12px; min-height: 14px; }
.mm-rounds i { width: 10px; height: 14px; border-radius: 2px 2px 4px 4px; transform: skewX(-8deg); }
.mm-rounds i.h { background: var(--lime); }
.mm-rounds i.a { background: var(--pink); }
.mm-feed { list-style: none; padding: 0; margin: 0; min-height: 120px; font-size: 14px; }
.mm-feed li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mm-feed li.h { color: var(--lime); }
.mm-feed li.a { color: var(--pink); }
.mm-result { font-size: 22px; margin: 14px 0 0; text-align: center; min-height: 1.2em; }
.mm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.mm-actions .btn[hidden] { display: none; }
/* Les ligues, du Spike Tour aux Champions */
.ladder { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.ladder li { font: 700 12px/1 "Silkscreen", var(--display); padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; color: var(--muted); }
.ladder li.done { border-color: var(--violet); color: var(--violet-2); }
.ladder li.now { background: var(--lime); border-color: #000; color: var(--ink); box-shadow: 3px 3px 0 #000; }
.mgr-event { display: flex; flex-direction: column; gap: 16px; }
.mgr-event header strong { font-size: 20px; }
.mgr-event header p { margin: 4px 0 0; }
.next-match { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--ink-3); border-radius: 12px; }
.verdict { font-size: 20px; color: var(--lime); margin: 0; text-align: center; }
.mgr-event p.small { margin: 0; }
.bracket { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 14px; overflow-x: auto; }
.bcol { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bmatch { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--ink); }
.bmatch > div { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13px; color: var(--muted); }
.bmatch > div + div { border-top: 1px solid var(--line); }
.bmatch .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmatch .won { color: var(--paper); font-weight: 700; }
.bmatch .me { background: rgba(200, 255, 46, 0.12); color: var(--lime); }
.ltable td { padding: 8px 14px; }
.ltable .chip { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.ltable tr.me td { color: var(--lime); font-weight: 700; }
.ltable tr.up td:first-child { box-shadow: inset 4px 0 0 var(--lime); }
.ltable tr.down td:first-child { box-shadow: inset 4px 0 0 var(--pink); }
.tag-real { font: 700 10px/1 var(--display); text-transform: uppercase; padding: 3px 5px; border-radius: 5px; background: var(--violet); color: #fff; vertical-align: 2px; }
.mm-title { margin: 0 0 12px; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.mgr-match .verdict { margin-top: 10px; }
@media (max-width: 760px) {
  .mgr-start, .mgr-board { grid-template-columns: 1fr; }
  .verdict { font-size: 16px; }
  .mm-five canvas.sprite { width: 24px; height: 24px; border-width: 1px; }
  .mm-score { font-size: 32px; }
}
/* Quatre liens dans l'en-tête : on serre sur une ligne, puis les liens passent dessous (comme sur mobile) */
@media (min-width: 1081px) and (max-width: 1400px) {
  .top { gap: 14px; }
  .brand span, .qpill .mini-teeth { display: none; }
  .search input { width: 180px; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .top { flex-wrap: wrap; row-gap: 8px; }
  .top nav { order: 3; width: 100%; }
  .brand span, .me-pill span { display: none; }
  .search input { width: 200px; }
}

/* Crazy Manager v2 : onglets, effectif, fiches, mercato, match */
.mgr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.mgr-tabs a { font: 700 13px/1 "Silkscreen", var(--display); padding: 11px 16px; border: 2px solid var(--line); border-radius: 10px; color: var(--muted); }
.mgr-tabs a:hover { color: var(--paper); border-color: var(--violet); }
.mgr-tabs a[aria-current] { background: var(--violet); border-color: #000; color: #fff; box-shadow: 3px 3px 0 #000; }
.badge { display: inline-block; min-width: 18px; padding: 2px 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; text-align: center; }
.inbox { display: block; margin-top: 12px; padding: 10px 14px; border: 2px solid var(--pink); border-radius: 12px; font-weight: 700; }
.inbox:hover { background: rgba(255, 84, 112, 0.12); }
.scout-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.scout-note b { color: var(--paper); }
.tactic-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { font: 700 12px/1 var(--body); padding: 8px 11px; border-radius: 9px; border: 2px solid var(--line); background: var(--ink); color: var(--muted); cursor: pointer; }
.chip-btn:hover { border-color: var(--violet); color: var(--paper); }
.chip-btn.on { background: var(--lime); border-color: #000; color: var(--ink); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.link:hover strong, button.link:hover { text-decoration: underline; text-decoration-color: var(--violet-2); }
.tag-young { font-size: 13px; }
.tag-sale { display: inline-block; font: 700 10px/1 var(--display); text-transform: uppercase; padding: 3px 5px; border-radius: 5px; background: #ffb02e; color: var(--ink); }
table.squad td { padding: 8px 12px; vertical-align: middle; }
table.squad .who canvas.sprite { width: 32px; height: 32px; }
table.squad tr.bench td { opacity: 0.6; }
table.squad tr.bench td:last-child { opacity: 1; }
.market { max-height: 560px; overflow-y: auto; }
.stars { font-size: 15px; letter-spacing: 1px; white-space: nowrap; color: transparent;
  background: linear-gradient(90deg, #ffcc33 calc(var(--s) * 20%), var(--line) 0); -webkit-background-clip: text; background-clip: text; }
.form-pips { display: inline-flex; gap: 2px; vertical-align: middle; }
.form-pips i { width: 7px; height: 14px; border-radius: 2px; }
.form-pips i.top { background: var(--lime); }
.form-pips i.ok { background: var(--violet-2); }
.form-pips i.meh { background: #ffb02e; }
.form-pips i.bad { background: var(--pink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.filters input[type=search] { flex: 1; min-width: 160px; }
.filters input, .filters select { padding: 8px 10px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.row.offer { flex-wrap: wrap; }
.news .row { padding: 10px 14px; font-size: 14px; }
.fiche-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.fiche-head canvas.sprite.big { width: 88px; height: 88px; }
.fiche-head h2 { font-size: 22px; margin: 0 0 4px; }
.fiche-head p { margin: 2px 0; }
.big { font-size: 26px; }
.attrs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; }
.attrs li { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 8px; font-size: 14px; }
.attrs .bar { display: block; height: 8px; background: var(--ink-3); border-radius: 4px; overflow: hidden; }
.attrs .bar b { display: block; height: 100%; }
.attrs .px-num { text-align: right; }
.a1 { color: var(--pink); } .attrs .bar b.a1 { background: var(--pink); }
.a2 { color: #ffb02e; } .attrs .bar b.a2 { background: #ffb02e; }
.a3 { color: var(--lime); } .attrs .bar b.a3 { background: var(--lime); }
.a4 { color: #5df2ff; } .attrs .bar b.a4 { background: #5df2ff; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fiche-actions p { flex-basis: 100%; margin: 0; }
form.inline { display: inline-flex; gap: 6px; }
form.inline input { width: 110px; }
.mgr-match input[type=number] { padding: 8px 10px; }
.btn.danger { color: var(--pink); border-color: var(--pink); }
.mgr-match.wide { width: min(860px, calc(100% - 24px)); max-height: calc(100vh - 24px); }
.mm-side small { display: block; font-size: 12px; }
.mm-rounds i.half { margin-right: 8px; }
.mm-round { text-align: center; font-size: 13px; margin: 0 0 8px; min-height: 1.3em; }
.mm-banner { text-align: center; font-size: 22px; margin: 4px 0 8px; text-shadow: 2px 2px 0 #000; animation: pop 0.3s; }
@keyframes pop { from { transform: scale(1.4); opacity: 0; } }
.mm-feed { min-height: 0; }
.mm-feed li.end { font-weight: 700; }
.mm-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mm-table { font-size: 13px; }
.mm-table th, .mm-table td { padding: 5px 8px; }
.mm-changes { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
@media (max-width: 760px) {
  .mm-board { grid-template-columns: 1fr; }
  .attrs li { grid-template-columns: 100px 1fr 24px; }
  .fiche-head canvas.sprite.big { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .mm-banner { animation: none; } }
/* Calendrier d'un événement : un cran par tour, joués, disponibles, à venir */
.season { display: flex; gap: 3px; margin-top: 10px; }
.season i { flex: 1; height: 8px; border-radius: 2px; background: var(--line); }
.season i.done { background: var(--violet-2); }
.season i.open { background: var(--lime); }
.bracket { grid-template-columns: repeat(var(--cols, 3), minmax(170px, 1fr)); }
.mm-round span { margin: 0 4px; font-weight: 700; }
