/* ============================================================================
   #57 — SoloQ en STYLE 1 « salle de briefing » (maquette m-soloq-full, validée par l'utilisateur) :
   les éléments restent à leur place (colonnes rond + splash, bans, titre, grille, conseils), seul l'habillage change.
   Chargé seulement par soloq.html (body.sq1) : la compétition et le drafter de préparation gardent l'or.
============================================================================ */
body.sq1 {
  --s1-ink: #0a0b0e; --s1-deck: #121419; --s1-deck-2: #1a1d24; --s1-deck-3: #22262f; --s1-line: #2a2e38;
  --s1-white: #f4f2ee; --s1-mute: #9aa0ab; --s1-blue: #2a7dff; --s1-red: #f0304a; --s1-hot: #ffd23f;
  --s1-cast: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --s1-bevel: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  --s1-bevel-s: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  /* les anciens jetons « or » suivent le style 1 */
  --void: var(--s1-ink); --panel: var(--s1-deck); --panel-solid: var(--s1-deck); --panel-2: var(--s1-deck-2);
  --gold-1: var(--s1-white); --gold-2: var(--s1-hot); --gold-3: #c9ccd2; --gold-4: var(--s1-line); --gold-5: var(--s1-deck-2);
  --accent-rgb: 244, 242, 238; --accent-2-rgb: 255, 210, 63; --line-rgb: 120, 128, 145;
  --grey-1: var(--s1-mute); --grey-2: #7c828d;
  --blue-2: var(--s1-blue); --blue-3: var(--s1-blue);
  --title: var(--s1-cast); --cast: var(--s1-cast);
  background:
    radial-gradient(ellipse 40% 60% at 0% 40%, rgba(42, 125, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 40%, rgba(240, 48, 74, 0.12), transparent 70%), var(--s1-ink);
}
body.sq1 .backdrop.hextech { display: none; }
body.sq1 :focus-visible { outline-color: var(--s1-hot); }

/* ---------- barre du haut ---------- */
body.sq1 .phasebar { background: rgba(8, 9, 11, 0.8); border-bottom: 1px solid var(--s1-line); padding: 0.7rem 1.25rem 0.75rem; margin-bottom: 0.6rem; }
body.sq1 .brand-name { font-weight: 800; font-style: italic; font-size: 1.35rem; letter-spacing: 0.01em; }
body.sq1 .brand-sub { font-family: var(--s1-cast); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
body.sq1 .phase h1 { font-weight: 800; font-style: italic; letter-spacing: 0.01em; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 0.95; color: var(--s1-white); }
body.sq1 .phase-meter { max-width: 420px; background: var(--s1-deck-2); margin: 0.5rem auto 0.45rem; }
body.sq1 .phase-meter::before, body.sq1 .phase-meter::after { display: none; }
body.sq1 .phase-meter span { margin: 0; background: var(--s1-white); }
body.sq1 .phase-sub { font-family: var(--s1-cast); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s1-mute); }
body.sq1 .icon-btn { border-radius: 0; background: var(--s1-deck); border: 1px solid var(--s1-line); color: var(--s1-white); box-shadow: none; }
body.sq1 .icon-btn:hover { border-color: #4a5060; background: var(--s1-deck-2); }
body.sq1 .icon-btn[aria-pressed="true"] { color: var(--s1-ink); background: var(--s1-white); border-color: var(--s1-white); }
body.sq1 #homeBtn { background: transparent; border-color: transparent; }
body.sq1 .set-btn { border-radius: 0; font-family: var(--s1-cast); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--s1-ink); background: var(--s1-white); border: 0; clip-path: var(--s1-bevel); padding: 0 1.2rem; }
body.sq1 .set-btn:hover, body.sq1 .set-btn:focus-visible { background: var(--s1-hot); color: var(--s1-ink); }

/* ---------- colonnes des équipes ---------- */
body.sq1 .side-head { border-bottom: 0; padding-bottom: 0.2rem; font-weight: 800; color: var(--s1-white); letter-spacing: 0.1em; }
body.sq1 .side-tag { font-family: var(--s1-cast); font-size: 0.8rem; padding: 0.4rem 1rem 0.4rem 0.6rem; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
body.sq1 .side-right .side-tag { padding: 0.4rem 0.6rem 0.4rem 1rem; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
body.sq1 .side-tag.blue { background: var(--s1-blue); }
body.sq1 .side-tag.red { background: var(--s1-red); }
body.sq1 .team { gap: 6px; }
body.sq1 .seat { background: var(--s1-deck); border-bottom: 0; min-height: 84px; overflow: hidden; }
body.sq1 .seat::after { left: 0; top: 0; bottom: 0; width: 4px; height: auto; transform: none; border: 0; background: var(--s1-line); }
body.sq1 .side-right .seat::after { left: auto; right: 0; }
body.sq1 .team-ally .seat::after { background: var(--my-side); }
body.sq1 .team-enemy .seat::after { background: var(--enemy-side); }
body.sq1 .seat.has-art { background: linear-gradient(90deg, var(--s1-deck) 28%, rgba(18, 20, 25, 0.55) 78%, rgba(18, 20, 25, 0.75)), var(--seat-art) var(--sp-pos, 70% 22%) / 210% no-repeat, var(--s1-deck); }
body.sq1 .side-right .seat.has-art { background: linear-gradient(270deg, var(--s1-deck) 28%, rgba(18, 20, 25, 0.55) 78%, rgba(18, 20, 25, 0.75)), var(--seat-art) var(--sp-pos, 30% 22%) / 210% no-repeat, var(--s1-deck); }
body.sq1 .seat-portrait { border: 2px solid var(--s1-line); background: var(--s1-ink); box-shadow: none; }
body.sq1 .seat-portrait .role-ico { color: #4a4f5a; }
body.sq1 .seat-role { font-family: var(--s1-cast); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--s1-mute); }
body.sq1 .seat-name { font-weight: 800; font-style: italic; font-size: 1.4rem; line-height: 1; letter-spacing: 0; color: var(--s1-white); }
body.sq1 .seat:not(.filled) .seat-name { font-family: var(--s1-cast); font-weight: 800; font-style: italic; font-size: 1.15rem; text-transform: uppercase; color: #4a4f5a; }
body.sq1 .seat-sub { font-family: var(--s1-cast); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--s1-mute); }
body.sq1 .seat-tool { border-radius: 0; background: rgba(10, 11, 14, 0.9); border-color: var(--s1-line); }
/* toi : liseré jaune en bas, mention TOI en jaune */
body.sq1 .seat.you { box-shadow: inset 0 -3px 0 var(--s1-hot); }
body.sq1 .seat.you::before { display: none; }
body.sq1 .seat.you:not(.has-art) { background: var(--s1-deck); }
body.sq1 .seat.you .seat-role { color: var(--s1-hot); }
body.sq1 .seat.you .seat-sub b { color: var(--s1-hot); }
body.sq1 .seat.you .seat-portrait { border-color: var(--s1-hot); }
body.sq1 .seat.you:not(.filled) .seat-name { color: var(--s1-white); }
/* en train de choisir : cadre blanc (plus de pulsation colorée) */
body.sq1 .seat.picking { animation: none; outline: 2px solid var(--s1-white); outline-offset: -2px; }
body.sq1 .seat.picking .seat-portrait { border-color: var(--s1-white); }
body.sq1 .team-ally .seat.filled .seat-portrait { border-color: var(--my-side); }
body.sq1 .team-enemy .seat.filled .seat-portrait { border-color: var(--enemy-side); }
body.sq1 .team-enemy .seat.lane .seat-sub { font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s1-red); }
body.sq1 .team-ally .seat.drop-target { outline: 1px dashed var(--s1-white); }

/* bans : gris, trait rouge */
body.sq1 .ban-label { font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.12em; border-radius: 0; color: var(--s1-mute); }
body.sq1 .ban-label.active { color: var(--s1-ink); background: var(--s1-white); border-color: var(--s1-white); }
body.sq1 .ban-slot { border: 0; background: var(--s1-deck); }
body.sq1 .ban-slot.empty { background: var(--s1-deck); }
body.sq1 .ban-slot img, body.sq1 .ban-slot .av-fallback { filter: grayscale(1) brightness(0.5); }
body.sq1 .ban-slot:not(.empty)::after { background: linear-gradient(-40deg, transparent 47%, var(--s1-red) 47% 53%, transparent 53%); }
/* runes et sorts, capacité spéciale */
body.sq1 .sx { background: var(--s1-deck); border: 0; padding: 0.75rem 0.85rem; }
body.sq1 .sx.soon { border: 1px dashed var(--s1-line); background: transparent; }
body.sq1 .sx-h { font-weight: 700; letter-spacing: 0.12em; color: var(--s1-mute); }
body.sq1 .sx-why { color: #cfd2d8; }
body.sq1 .sx-why b { color: var(--s1-white); }
body.sq1 .sx-row img.spell { border-color: var(--s1-line); }

/* ---------- grille ---------- */
body.sq1 .ptab-group { border: 0; padding: 4px; background: var(--s1-ink); gap: 4px; }
body.sq1 .ptab-group.open { border: 0; }
body.sq1 .pg-lbl { font-family: var(--s1-cast); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; border: 0; background: none; color: var(--s1-mute); }
body.sq1 .ptab-group.open .pg-lbl { color: var(--s1-white); border: 0; }
body.sq1 .ptab { font-family: var(--s1-cast); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 0; border-radius: 0; background: none; color: var(--s1-mute); }
body.sq1 .ptab:hover { color: var(--s1-white); }
body.sq1 .ptab.active { color: var(--s1-ink); background: var(--s1-white); clip-path: var(--s1-bevel-s); box-shadow: inset 0 -3px 0 var(--chip, var(--s1-white)); }
body.sq1 .ptab[data-target="ally"].active, body.sq1 .ptab[data-ban="mine"].active { --chip: var(--my-side); }
body.sq1 .ptab[data-target="enemy"].active, body.sq1 .ptab[data-ban="theirs"].active { --chip: var(--enemy-side); }
body.sq1 .seg { border-radius: 0; background: var(--s1-ink); border: 0; padding: 4px; gap: 4px; }
body.sq1 .seg button { border-radius: 0; font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s1-mute); background: none; border: 0; }
body.sq1 .seg button[aria-pressed="true"] { color: var(--s1-ink); background: var(--s1-white); clip-path: var(--s1-bevel-s); }
body.sq1 .role-filters { background: var(--s1-ink); padding: 4px; gap: 4px; }
body.sq1 .rf { border-radius: 0; border: 0; background: none; color: var(--s1-mute); height: 32px; }
body.sq1 .rf.all { font-family: var(--s1-cast); font-weight: 800; text-transform: uppercase; }
body.sq1 .rf.active { color: var(--s1-ink); background: var(--s1-white); }
body.sq1 .search input { border-radius: 0; background: var(--s1-ink); border: 1px solid var(--s1-line); color: var(--s1-white); }
body.sq1 .search input:focus { border-color: var(--s1-white); box-shadow: none; }
body.sq1 .search .target-chip { border-radius: 0; font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.08em; clip-path: var(--s1-bevel-s); padding-inline: 0.8rem; }
body.sq1 .search .target-chip.manual { box-shadow: inset 0 -2px 0 var(--s1-hot); }
body.sq1 .grid-wrap { border: 0; background: #0f1115; }
body.sq1 .grid-wrap::before { display: none; }
body.sq1 .tile-img { border: 1px solid transparent; background: var(--s1-ink); }
body.sq1 .tile:hover .tile-img { border-color: var(--s1-white); }
body.sq1 .tile-name { font-family: var(--s1-cast); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--s1-mute); }
body.sq1 .tile:hover .tile-name { color: var(--s1-white); }
body.sq1 .tile.used .tile-img img { filter: grayscale(1) brightness(0.4); }
body.sq1 .tile-flag { font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.08em; border: 0; color: #fff !important; background: var(--s1-deck-3); }
body.sq1 .tile.used-enemy .tile-flag { background: var(--s1-red); }
body.sq1 .tile.used-ally .tile-flag { background: var(--s1-blue); }
body.sq1 .tile.used-pick .tile-flag { background: var(--s1-hot); color: var(--s1-ink) !important; }
body.sq1 .tile.used-enemy .tile-img, body.sq1 .tile.used-ally .tile-img { border-color: transparent; }
body.sq1 .tile.used-ban .tile-img::after { background: linear-gradient(-35deg, transparent 46%, var(--s1-red) 46% 54%, transparent 54%); }
body.sq1 .tile.used-pick .tile-img { border-color: var(--s1-hot); box-shadow: none; }
body.sq1 .tile.in-pool:not(.used) .tile-img { border-color: transparent; box-shadow: inset 0 -3px 0 var(--s1-hot); }
body.sq1 .tile.none .tile-img { background: var(--s1-deck-2); }
body.sq1 .sg { border-radius: 0; background: var(--s1-deck); border-color: var(--s1-line); }

/* ---------- conseiller : 3 onglets (Ton pick · Bans · Plan de jeu) ---------- */
body.sq1 .analysis { background: #0f1115; border: 0; border-top: 3px solid var(--s1-blue); border-radius: 0; box-shadow: none; padding: 0; }
body.sq1 .adv-tabs { display: flex; position: sticky; top: 0; z-index: 2; background: var(--s1-ink); }
body.sq1 .adv-tab { flex: 1; padding: 0.85rem 0.3rem; font-family: var(--s1-cast); font-weight: 800; font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--s1-mute); background: var(--s1-ink); border: 0; cursor: pointer; }
body.sq1 .adv-tab:hover { color: var(--s1-white); }
body.sq1 .adv-tab.on { color: var(--s1-white); background: #0f1115; box-shadow: inset 0 3px 0 var(--s1-hot); }
body.sq1 .adv-body { padding: 0.9rem 1rem 1.1rem; }
body.sq1 .a-section + .a-section { border-top-color: rgba(255, 255, 255, 0.06); }
body.sq1 .a-title { display: flex; align-items: center; font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.12em; color: var(--s1-white); }
body.sq1 .a-title::before { content: ""; flex: none; width: 12px; height: 12px; margin-right: 9px; background: var(--s1-white); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
body.sq1 .a-title .hint { margin-left: auto; padding-left: 0.6rem; text-align: right; }
/* le conseillé : grand splash, nom en italique, note en jaune */
body.sq1 .hero { border: 0; border-radius: 0; background: linear-gradient(0deg, #0f1115 10%, rgba(15, 17, 21, 0.45) 60%, rgba(15, 17, 21, 0.15)), var(--hero) var(--sp-pos, 60% 20%) / cover no-repeat, var(--s1-deck); }
body.sq1 .hero-portrait { border-color: var(--s1-white); box-shadow: none; }
body.sq1 .hero-kicker { font-family: var(--s1-cast); letter-spacing: 0.12em; color: var(--s1-hot); }
body.sq1 .hero-name { font-weight: 800; font-style: italic; font-size: 2.3rem; line-height: 0.9; letter-spacing: 0; color: var(--s1-white); }
body.sq1 .score-num { font-family: var(--s1-cast); font-weight: 800; color: var(--s1-hot); }
body.sq1 .score-lbl { font-family: var(--s1-cast); letter-spacing: 0.12em; }
body.sq1 .meter { background: var(--s1-deck-3); border-radius: 0; }
body.sq1 .meter span { background: var(--s1-white); }
body.sq1 .pl-item.closed { border: 0; border-radius: 0; background: linear-gradient(90deg, var(--s1-deck) 45%, rgba(18, 20, 25, 0.6)), var(--hero) var(--sp-pos, 70% 20%) / cover no-repeat, var(--s1-deck); }
body.sq1 .pl-item.closed:hover, body.sq1 .pl-item.closed:focus-visible { box-shadow: inset 3px 0 0 var(--s1-white); }
body.sq1 .pl-item.closed .hero-name { font-size: 1.35rem; }
body.sq1 .pl-item.closed .score-num { color: var(--s1-white); }
body.sq1 .tag { border-radius: 0; font-family: var(--s1-cast); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s1-white); background: var(--s1-deck-3); border: 0; }
body.sq1 .pill { border-radius: 0; background: var(--s1-deck-2); border: 0; }
body.sq1 .pill.lane { box-shadow: inset 3px 0 0 var(--s1-red); }
body.sq1 .tip { border-radius: 0; background: var(--s1-deck-2); border: 0; box-shadow: inset 3px 0 0 var(--s1-line); }
body.sq1 .tip.danger { box-shadow: inset 3px 0 0 var(--s1-red); }
body.sq1 .ban-card { border-radius: 0; background: var(--s1-deck-2); border: 0; }
body.sq1 .plan-col { border-radius: 0; background: var(--s1-deck-2); border: 0; }
body.sq1 .plan-col h4 { font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
body.sq1 .hx-btn { border-radius: 0; font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
body.sq1 .hx-btn.primary { color: var(--s1-ink); background: var(--s1-white); border-color: var(--s1-white); clip-path: var(--s1-bevel); padding-inline: 1.4rem; box-shadow: none; }
body.sq1 .hx-btn.primary:hover { background: var(--s1-hot); border-color: var(--s1-hot); color: var(--s1-ink); }
body.sq1 .flash, body.sq1 .undo-toast { border-radius: 0; }

/* ---------- écran de départ (maquette m-soloq-depart) ---------- */
body.sq1 .setup { background: rgba(5, 6, 8, 0.72); backdrop-filter: blur(7px); }
body.sq1 .setup-card { width: min(720px, calc(100vw - 32px)); background: #0f1115; border: 0; border-top: 3px solid var(--s1-hot); border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); padding: 22px 26px 26px; gap: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
body.sq1 .setup-card h2 { text-align: left; font-family: var(--s1-cast); font-weight: 800; font-style: italic; font-size: 2.5rem; line-height: 0.9; letter-spacing: 0; color: var(--s1-white); }
body.sq1 .setup-label { font-family: var(--s1-cast); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--s1-mute); }
body.sq1 .role-choice button { border-radius: 0; border: 0; background: var(--s1-deck-2); font-family: var(--s1-cast); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s1-mute); }
body.sq1 .role-choice button:hover { color: var(--s1-white); background: var(--s1-deck-3); }
body.sq1 .role-choice button[aria-pressed="true"] { color: var(--s1-ink); background: var(--s1-white); box-shadow: inset 0 -4px 0 var(--s1-hot); }
body.sq1 .side-choice button { position: relative; overflow: hidden; justify-content: flex-start; text-align: left; padding: 16px 18px 16px 24px; border-radius: 0; border: 0; background: var(--s1-deck-2); }
body.sq1 .side-choice button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--sc); }
body.sq1 .side-choice button[data-side="blue"] { --sc: var(--s1-blue); }
body.sq1 .side-choice button[data-side="red"] { --sc: var(--s1-red); }
body.sq1 .side-choice button::after { position: absolute; right: 14px; bottom: 4px; font: 800 italic 3.2rem/1 var(--s1-cast); color: rgba(255, 255, 255, 0.14); }
body.sq1 .side-choice button[data-side="blue"]::after { content: "B1"; }
body.sq1 .side-choice button[data-side="red"]::after { content: "R5"; }
body.sq1 .side-choice .dot { display: none; }
body.sq1 .side-choice button > span { display: grid; gap: 6px; font-family: var(--s1-cast); font-weight: 800; font-style: italic; font-size: 1.7rem; line-height: 0.9; text-transform: uppercase; color: var(--s1-white); }
body.sq1 .side-choice small { font-style: normal; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--s1-mute); }
body.sq1 .side-choice button[aria-pressed="true"] { background: var(--sc); box-shadow: none; }
body.sq1 .side-choice button[aria-pressed="true"]::before { background: var(--s1-white); }
body.sq1 .side-choice button[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.88); }
body.sq1 .sp-chip, body.sq1 .sp-add { border-radius: 0; background: var(--s1-deck-2); border-color: var(--s1-line); }
body.sq1 .setup-go { justify-self: end; font-size: 1.15rem; min-height: 54px; padding-inline: 2.4rem !important; }
body.sq1 .controls { flex-wrap: nowrap; }
@media (max-width: 1200px) { body.sq1 .set-btn { padding: 0 0.8rem; font-size: 0.8rem; } }

/* ---------- vue compacte (overlay, fenêtre flottante, téléphone) : mêmes couleurs, tailles réduites ---------- */
body.sq1.overlay .app { background: var(--s1-ink); border-left-color: var(--s1-line); }
body.sq1.overlay .phasebar { margin-bottom: 0.3rem; padding: 0.55rem 0.8rem 0.5rem; }
body.sq1.overlay .phase h1 { font-size: 1.35rem; }
body.sq1.overlay .phase-meter { max-width: none; }
body.sq1.overlay .phase-sub { font-size: 0.72rem; }
body.sq1.overlay .controls { flex-wrap: wrap; }
body.sq1.overlay .set-btn { height: 32px; padding: 0 0.8rem; font-size: 0.76rem; }
body.sq1.overlay .team { gap: 0.3rem; }
body.sq1.overlay .seat, body.sq1.overlay .side-right .seat, body.sq1.overlay .seat.has-art, body.sq1.overlay .side-right .seat.has-art { background: none; box-shadow: none; outline: 0; }
body.sq1.overlay .seat-name { font-size: 0.86rem; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body.sq1.overlay .seat:not(.filled) .seat-name { font-size: 0.78rem; }
body.sq1.overlay .seat-text { align-items: center; max-width: 100%; }
body.sq1.overlay .seat-role { font-size: 0.68rem; letter-spacing: 0.06em; }
body.sq1.overlay .seat.you .seat-portrait { border-color: var(--s1-hot); }
body.sq1.overlay .seat.picking .seat-portrait { border-color: var(--s1-white); box-shadow: 0 0 0 2px var(--s1-white); }
body.sq1.overlay .team::before { font-family: var(--s1-cast); color: var(--s1-white); }
body.sq1.overlay .hero-name { font-size: 1.7rem; }
body.sq1.overlay .adv-tab { padding: 0.7rem 0.2rem; font-size: 0.78rem; }
body.sq1.overlay .adv-body { padding: 0.7rem 0.75rem 0.9rem; }
body.sq1.overlay .analysis { padding: 0; }

/* ---------- #57 : runes et sorts = un grand bouton + une fenêtre ---------- */
body.sq1 .sx-btn { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; border: 1px solid transparent; }
body.sq1 .side-right .sx-btn { text-align: right; }
body.sq1 .sx-btn:hover, body.sq1 .sx-btn:focus-visible { border-color: var(--s1-white); background: var(--s1-deck-2); }
body.sq1 .sx-btn .sx-row { display: flex; align-items: center; gap: 0.45rem; }
body.sq1 .sx-btn .sx-row img.key, body.sq1 .sx-btn .rn-fallback.key { width: 46px; height: 46px; }
body.sq1 .sx-btn .sx-row img.tree, body.sq1 .sx-btn .rn-fallback.tree { width: 22px; height: 22px; align-self: flex-end; margin-left: -10px; opacity: 0.9; }
body.sq1 .sx-btn .sx-row img.spell, body.sq1 .sx-btn .rn-fallback.spell { width: 32px; height: 32px; }
body.sq1 .sx-more { margin-left: auto; font: 800 1.6rem/1 var(--s1-cast); color: var(--s1-mute); }
body.sq1 .sx-btn:hover .sx-more { color: var(--s1-white); }
.rn-fallback { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #22262f; color: #f4f2ee; font: 800 0.8rem/1 "Barlow Semi Condensed", sans-serif; flex: none; }

body.sq1 .rune-pop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 8, 0.7); backdrop-filter: blur(5px); animation: rp-fade 0.18s ease both; }
@keyframes rp-fade { from { opacity: 0; } }
body.sq1 .rp-box { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: grid; gap: 14px; padding: 20px 24px 24px;
  background: #0f1115; border-top: 3px solid var(--s1-hot); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); scrollbar-color: var(--s1-line) transparent; }
body.sq1 .rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body.sq1 .rp-kicker { font: 700 0.78rem/1 var(--s1-cast); letter-spacing: 0.12em; text-transform: uppercase; color: var(--s1-mute); }
body.sq1 .rp-head h2 { margin: 6px 0 0; font: 800 italic 2.4rem/0.9 var(--s1-cast); text-transform: uppercase; color: var(--s1-white); }
body.sq1 .rp-x { width: 40px; height: 40px; font-size: 1.4rem; color: var(--s1-white); background: var(--s1-ink); border: 1px solid var(--s1-line); cursor: pointer; }
body.sq1 .rp-x:hover { border-color: var(--s1-white); }
body.sq1 .rp-src { margin: 0; font-size: 0.82rem; color: var(--s1-mute); }
body.sq1 .rp-sec { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--s1-line); overflow: hidden; }
body.sq1 .rp-sec h3 { display: flex; align-items: center; margin: 0; font: 800 0.95rem/1 var(--s1-cast); letter-spacing: 0.12em; text-transform: uppercase; color: var(--s1-white); }
body.sq1 .rp-sec h3::before { content: ""; width: 12px; height: 12px; margin-right: 9px; background: var(--s1-white); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
body.sq1 .rp-page { display: grid; gap: 12px; }
body.sq1 .rp-page.slide { animation: rp-slide 0.45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rp-slide { from { transform: translateX(60px); opacity: 0; } }
body.sq1 .rp-nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; }
body.sq1 .rp-arrow { height: 40px; font: 800 1.5rem/1 var(--s1-cast); color: var(--s1-white); background: var(--s1-ink); border: 1px solid var(--s1-line); cursor: pointer; }
body.sq1 .rp-arrow:hover:not(:disabled) { border-color: var(--s1-white); }
body.sq1 .rp-arrow:disabled { opacity: 0.3; cursor: default; }
body.sq1 .rp-title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; text-align: center; }
body.sq1 .rp-title b { font: 800 italic 1.5rem/1 var(--s1-cast); text-transform: uppercase; color: var(--s1-white); }
body.sq1 .rp-title small { font: 700 0.78rem/1 var(--s1-cast); letter-spacing: 0.1em; color: var(--s1-mute); }
body.sq1 .rp-rec { padding: 4px 8px; font: 800 0.74rem/1 var(--s1-cast); letter-spacing: 0.1em; text-transform: uppercase; color: var(--s1-ink); background: var(--s1-hot); clip-path: var(--s1-bevel-s); }
body.sq1 .rp-trees { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
body.sq1 .rp-tree { display: grid; gap: 10px; align-content: start; padding: 12px 14px; background: var(--s1-deck); }
body.sq1 .rp-tree.second { background: var(--s1-deck); opacity: 0.92; }
body.sq1 .rp-tn { display: flex; align-items: center; gap: 8px; font: 800 0.8rem/1 var(--s1-cast); letter-spacing: 0.1em; text-transform: uppercase; color: var(--s1-mute); }
body.sq1 .rp-tn img, body.sq1 .rp-tn .rn-fallback { width: 22px; height: 22px; }
body.sq1 .rp-key { display: flex; align-items: center; gap: 10px; }
body.sq1 .rp-key img, body.sq1 .rp-key .rn-fallback { width: 58px; height: 58px; }
body.sq1 .rp-key b { font: 800 1.15rem/1.1 var(--s1-cast); text-transform: uppercase; color: var(--s1-white); }
body.sq1 .rp-minors { display: grid; gap: 6px; }
body.sq1 .rp-minors > span { display: flex; align-items: center; gap: 8px; }
body.sq1 .rp-minors img, body.sq1 .rp-minors .rn-fallback { width: 30px; height: 30px; }
body.sq1 .rp-tree.second .rp-minors img, body.sq1 .rp-tree.second .rp-minors .rn-fallback { width: 26px; height: 26px; }
body.sq1 .rp-minors em { font-style: normal; font-size: 0.86rem; color: #d6d8dd; }
body.sq1 .rp-spells { display: flex; gap: 18px; justify-content: center; }
body.sq1 .rp-spells > span { display: grid; justify-items: center; gap: 6px; }
body.sq1 .rp-spells img, body.sq1 .rp-spells .rn-fallback { width: 52px; height: 52px; }
body.sq1 .rp-spells em { font: 700 0.86rem/1 var(--s1-cast); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s1-white); }
body.sq1 .rp-when, body.sq1 .rp-why { margin: 0; display: grid; gap: 4px; font-size: 0.9rem; line-height: 1.45; color: #d6d8dd; }
body.sq1 .rp-when b, body.sq1 .rp-why b { font: 800 0.76rem/1 var(--s1-cast); letter-spacing: 0.12em; text-transform: uppercase; color: var(--s1-mute); }
body.sq1 .rp-why { padding: 10px 12px; background: var(--s1-deck); box-shadow: inset 3px 0 0 var(--s1-hot); }
@media (max-width: 560px) { body.sq1 .rp-trees { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { body.sq1 .rp-page.slide, body.sq1 .rune-pop { animation: none; } }

/* ---------- #57 : Prélock ---------- */
body.sq1 .pick-sub { display: flex; gap: 4px; padding: 4px; margin-bottom: 0.8rem; background: var(--s1-ink); }
body.sq1 .ps-tab { flex: 1; padding: 0.6rem 0.4rem; font: 800 0.84rem/1 var(--s1-cast); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--s1-mute); background: none; border: 0; cursor: pointer; }
body.sq1 .ps-tab:hover { color: var(--s1-white); }
body.sq1 .ps-tab.on { color: var(--s1-ink); background: var(--s1-white); clip-path: var(--s1-bevel-s); }
body.sq1 .search .target-chip.pre { --chip-c: var(--s1-white); color: var(--s1-ink); background: var(--s1-white); }
body.sq1 .tile.used-pre .tile-img { border-color: var(--s1-white); box-shadow: 0 0 0 2px var(--s1-white); }
body.sq1 .tile.used-pre .tile-img img { filter: none; }
body.sq1 .tile.used-pre .tile-flag { background: var(--s1-white); color: var(--s1-ink) !important; }
/* après le 1er prélock, la catégorie à faire (Bans) s'illumine pour ne pas rester coincé */
body.sq1 .ptab-group.nudge { animation: nudge 1.4s ease-in-out infinite; }
body.sq1 .ptab-group.nudge .pg-lbl { color: var(--s1-hot); }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.75), 0 0 18px rgba(255, 210, 63, 0.35); } }
@media (prefers-reduced-motion: reduce) { body.sq1 .ptab-group.nudge { animation: none; box-shadow: 0 0 0 2px var(--s1-hot); } }

/* #57 (4e retour) : fenêtre des runes en deux colonnes (runes | sorts puis build), textes aérés ; bouton plus compact */
body.sq1 .rp-box { width: min(1040px, 100%); gap: 12px; }
body.sq1 .rp-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 22px; align-items: start; }
body.sq1 .rp-side { display: grid; gap: 14px; align-content: start; }
body.sq1 .rp-sec { gap: 12px; }
body.sq1 .rp-trees { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
body.sq1 .rp-minors { gap: 9px; }
body.sq1 .rp-minors em { line-height: 1.25; }
body.sq1 .rp-when, body.sq1 .rp-why { gap: 6px; line-height: 1.55; }
body.sq1 .rp-build { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
body.sq1 .rp-build li { display: grid; gap: 4px; padding: 10px 12px; background: var(--s1-deck); box-shadow: inset 3px 0 0 var(--s1-blue); }
body.sq1 .rp-build b { font: 800 0.76rem/1.2 var(--s1-cast); letter-spacing: 0.1em; text-transform: uppercase; color: var(--s1-mute); }
body.sq1 .rp-build span { font-size: 0.9rem; line-height: 1.45; color: #e3e5e9; }
body.sq1 .rp-none { margin: 0; font-size: 0.86rem; color: var(--s1-mute); }
@media (max-width: 820px) { body.sq1 .rp-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
/* bouton des runes dans le drafter : plus bas (pas de défilement) */
body.sq1 .sx-btn { padding: 0.45rem 0.6rem; gap: 0.25rem; }
body.sq1 .sx-btn .sx-row img.key, body.sq1 .sx-btn .rn-fallback.key { width: 34px; height: 34px; }
body.sq1 .sx-btn .sx-row img.tree, body.sq1 .sx-btn .rn-fallback.tree { width: 18px; height: 18px; margin-left: -8px; }
body.sq1 .sx-btn .sx-row img.spell, body.sq1 .sx-btn .rn-fallback.spell { width: 26px; height: 26px; }
body.sq1 .sx-more { font-size: 1.25rem; }

/* #57 (19/11) : objets conseillés (items.js) dans « Build recommandé » */
body.sq1 .rp-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
body.sq1 .rp-items li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px 7px 7px; background: var(--s1-deck); box-shadow: inset 3px 0 0 var(--s1-blue); }
body.sq1 .rp-items img, body.sq1 .rp-items i { width: 40px; height: 40px; display: block; background: var(--s1-ink); outline: 1px solid rgba(255, 255, 255, 0.12); }
body.sq1 .rp-items span { display: grid; gap: 2px; }
body.sq1 .rp-items b { font: 800 0.9rem/1.15 var(--s1-cast); letter-spacing: 0.04em; text-transform: uppercase; color: var(--s1-white); }
body.sq1 .rp-items small { font-size: 0.82rem; line-height: 1.35; color: #c9ccd2; }

/* 25/11 (audit) : contrastes et textes de 12 px au moins */
body.sq1 .side-tag.blue { background: #1f6be6; } body.sq1 .side-tag.red { background: #d3243f; }
body.sq1 .seat:not(.filled) .seat-name { color: #8d939e; }
body.sq1 .sx-h small, body.sq1 #setupPoolNote { font-size: 0.75rem; }
