/* Les Ramasses : jetons et composants de la DA Ramasse Royale.
   Deux thèmes : Arène (nuit, par défaut, téléphones et écran live) et Jour (back office).
   Préfixe rr- pour les composants, bo- pour la mise en page du back office. */

/* ---------- Polices (auto-hébergées, licence OFL, voir static/fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/bungee-latin-400-normal.cfe480982eeb.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.2bc763014449.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.8074c760fbdd.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-700-normal.c3609c36a150.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 900; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-900-italic.716160d87ffe.woff2") format("woff2"); }
@font-face { font-family: "Jersey 10"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jersey-10-latin-400-normal.abd0534c0c6b.woff2") format("woff2"); }

/* ---------- Jetons ---------- */
:root {
  --rr-royal: #6C2BD9;
  --rr-royal-neon: #A97CFF;
  --rr-crown: #FFC629;
  --rr-ink: #F5F2FF;
  --rr-ink-muted: #B4A9E3;
  --rr-surface: #0F0826;
  --rr-surface-alt: #1B1142;
  --rr-line: #3A2C74;
  --rr-on-royal: #FFFFFF;
  --rr-on-crown: #140B36;
  --rr-shadow: #140B36;
  --rr-live: #FF3B4E;

  --rr-team-turbos: #FF7A1A;
  --rr-team-aimants: #C6F432;
  --rr-team-lynx: #22C8F0;
  --rr-team-titans: #FF4FA3;
  --rr-team-fantomes: #DCD3FF;

  --rr-font-wordmark: "Bungee", Impact, sans-serif;
  --rr-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --rr-font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --rr-font-hud: "Jersey 10", ui-monospace, monospace;

  --rr-gutter: 16px;
  --rr-focus: var(--rr-crown);
}

[data-theme="jour"] {
  --rr-royal-neon: #5A1FC4;
  --rr-ink: #140B36;
  --rr-ink-muted: #574D85;
  --rr-surface: #F5F2FF;
  --rr-surface-alt: #FFFFFF;
  --rr-line: #D9D2F2;
  --rr-live: #D7263D;
  --rr-focus: var(--rr-royal);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--rr-surface);
  color: var(--rr-ink);
  font-family: var(--rr-font-body);
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--rr-royal-neon); }
[data-theme="arene"] a, :root:not([data-theme]) a { color: var(--rr-crown); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--rr-focus); outline-offset: 2px; }
.rr-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo ---------- */
.rr-wordmark { font-family: var(--rr-font-wordmark); font-weight: 400; line-height: 1; letter-spacing: 0; }
.rr-wordmark em { font-style: normal; color: var(--rr-crown); }
[data-theme="jour"] .rr-wordmark em { color: var(--rr-royal); }
.rr-title {
  margin: 0;
  font-family: var(--rr-font-display);
  font-style: italic; font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
}
.rr-title em { font-style: italic; color: var(--rr-crown); }
[data-theme="jour"] .rr-title em { color: var(--rr-royal); }
.rr-hud { font-family: var(--rr-font-hud); letter-spacing: 1px; text-transform: uppercase; }
.rr-muted { color: var(--rr-ink-muted); }

/* Bandeau penché */
.rr-band {
  display: inline-block;
  font-family: var(--rr-font-hud); font-size: 18px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--rr-crown); color: var(--rr-on-crown);
  padding: 1px 10px; transform: skewX(-12deg);
}
.rr-band--royal { background: var(--rr-royal); color: var(--rr-on-royal); }
.rr-live { background: var(--rr-live); color: #FFFFFF; }

/* Panneau HUD */
.rr-panel {
  background: var(--rr-surface-alt);
  border: 2px solid var(--rr-line);
  padding: 16px 18px;
}
.rr-panel--top { border-top: 6px solid var(--rr-crown); }
[data-theme="jour"] .rr-panel--top { border-top-color: var(--rr-royal); }

/* Pixel art : toujours net */
.rr-pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.rr-picto { width: 48px; height: 48px; }
[data-theme="jour"] .rr-picto { background: #0F0826; padding: 4px; width: 56px; height: 56px; }

/* ---------- Boutons et champs ---------- */
.rr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  font-family: var(--rr-font-wordmark); font-size: 15px; text-decoration: none; text-transform: uppercase;
  color: var(--rr-on-royal); background: var(--rr-royal);
  border: 3px solid var(--rr-shadow); box-shadow: 4px 4px 0 var(--rr-shadow);
  cursor: pointer;
}
.rr-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rr-shadow); }
.rr-btn--gold { color: var(--rr-on-crown); background: var(--rr-crown); box-shadow: 4px 4px 0 var(--rr-royal); }
.rr-btn--ghost { color: var(--rr-ink); background: transparent; border-color: var(--rr-ink); box-shadow: none; }
.rr-btn--block { width: 100%; }
a.rr-btn { color: var(--rr-on-royal); }
a.rr-btn.rr-btn--gold { color: var(--rr-on-crown); }

.rr-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rr-label { font-weight: 700; font-size: 15px; }
.rr-input {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--rr-ink); background: var(--rr-surface-alt);
  border: 2px solid var(--rr-ink); border-radius: 0;
}
.rr-alert { padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.rr-alert--error { background: #FBE3E7; color: #7A0F1F; border: 2px solid #D7263D; }
.rr-alert--ok { background: #E9F9C9; color: #2C3D05; border: 2px solid #8DB51F; }

/* ---------- Pages publiques (Arène) ---------- */
.rr-page { max-width: 560px; margin: 0 auto; padding: 24px var(--rr-gutter) 32px; display: flex; flex-direction: column; gap: 20px; min-height: 100vh; }
.rr-brand { display: flex; align-items: center; gap: 12px; }
.rr-brand img { width: 72px; height: auto; }
.rr-sprites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rr-sprites figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13px; color: var(--rr-ink-muted); }
.rr-sprites img { width: 56px; height: 56px; }
.rr-footer { margin-top: auto; font-size: 13px; color: var(--rr-ink-muted); text-align: center; }

/* ---------- Back office (Jour) ---------- */
.bo-layout { display: flex; flex-wrap: wrap; min-height: 100vh; }
.bo-nav {
  flex: 1 1 240px; background: #140B36; color: #F5F2FF;
  padding: 24px 14px; display: flex; flex-direction: column; gap: 4px;
}
.bo-nav__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.bo-nav__brand img { width: 44px; height: auto; }
.bo-nav a {
  font-family: var(--rr-font-hud); font-size: 21px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; padding: 10px 12px; color: #F5F2FF;
}
.bo-nav a[aria-current="page"] { color: #FFC629; background: #2A1A66; }
.bo-nav a[aria-disabled="true"] { color: #7D72AE; pointer-events: none; }
.bo-nav__foot { margin-top: auto; padding: 18px 12px 0; font-size: 14px; color: #B4A9E3; display: flex; flex-direction: column; gap: 8px; }
.bo-nav__foot button { align-self: flex-start; font: inherit; color: #F5F2FF; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.bo-main { flex: 999 1 560px; min-width: 0; padding: 28px 40px 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .bo-main { padding: 20px var(--rr-gutter) 32px; } }

/* ---------- Connexion (Jour) ---------- */
.rr-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px var(--rr-gutter); }
.rr-auth__box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.rr-auth__card { background: #FFFFFF; border: 2px solid var(--rr-line); border-top: 6px solid var(--rr-royal); padding: 24px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Sprint 1 : listes, onglets, formulaires, équipes, QR ---------- */
.rr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rr-stack { display: flex; flex-direction: column; gap: 16px; }
.rr-grow { flex-grow: 1; }
.rr-small { font-size: 14px; }
.rr-btn--small { min-height: 40px; padding: 0 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--rr-shadow); }
.rr-btn--light { color: var(--rr-ink); background: var(--rr-surface-alt); }
a.rr-btn.rr-btn--light, a.rr-btn.rr-btn--ghost { color: var(--rr-ink); }
.rr-btn[disabled] { opacity: .5; cursor: not-allowed; }

.rr-chip {
  display: inline-block; font-family: var(--rr-font-hud); font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; padding: 1px 8px; background: #ECE7FB; color: #140B36;
}
.rr-chip--open { background: #E9F9C9; }
.rr-chip--live { background: var(--rr-live); color: #FFFFFF; }
.rr-chip--finished { background: #D9D2F2; }
.rr-code { font-family: var(--rr-font-hud); font-size: 28px; letter-spacing: 3px; }

.rr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rr-table th { text-align: left; font-family: var(--rr-font-hud); font-size: 18px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--rr-ink-muted); font-weight: 400; padding: 6px 8px; border-bottom: 2px solid var(--rr-line); }
.rr-table td { padding: 10px 8px; border-bottom: 1px solid var(--rr-line); vertical-align: middle; }
.rr-table a { font-weight: 700; }
.rr-table .rr-input { min-height: 40px; padding: 6px 8px; }
.rr-scroll { overflow-x: auto; }

.bo-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--rr-line); }
.bo-tabs a { padding: 10px 14px; font-weight: 700; text-decoration: none; color: var(--rr-ink-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.bo-tabs a[aria-current="page"] { color: var(--rr-ink); border-bottom-color: var(--rr-royal); }

.rr-messages { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rr-alert--info { background: #ECE7FB; color: #140B36; border: 2px solid var(--rr-line); }
.rr-help { font-size: 13px; color: var(--rr-ink-muted); }
.rr-errorlist { margin: 0; padding: 0; list-style: none; color: #B0192E; font-weight: 600; font-size: 14px; }
.rr-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
select.rr-input { appearance: auto; }

.rr-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rr-choice { position: relative; }
.rr-choice input { position: absolute; opacity: 0; }
.rr-choice label { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; cursor: pointer;
  background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.rr-choice input:checked + label { border: 3px solid var(--rr-royal); padding: 11px 13px; }
.rr-choice input:focus-visible + label { outline: 3px solid var(--rr-focus); outline-offset: 2px; }

.rr-swatch { display: inline-block; width: 16px; height: 16px; border: 2px solid #140B36; vertical-align: middle; }
.rr-team-logo { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--rr-font-wordmark); font-size: 18px; color: #140B36; border: 3px solid #140B36; object-fit: contain; background: #FFFFFF; }

/* Équipes côté Collector (Arène) */
.rr-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rr-team-pick input { position: absolute; opacity: 0; }
.rr-team-pick label { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 120px; justify-content: center;
  text-align: center; cursor: pointer; padding: 12px 8px; background: var(--rr-surface-alt); border: 3px solid var(--rr-line); font-weight: 700; }
.rr-team-pick input:checked + label { border-color: var(--rr-crown); box-shadow: 4px 4px 0 var(--rr-royal); }
.rr-team-pick input:focus-visible + label { outline: 3px solid var(--rr-focus); outline-offset: 2px; }
.rr-team-pick .rr-team-logo { width: 56px; height: 56px; font-size: 22px; }
.rr-team-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }

/* QR codes à imprimer */
.rr-qr { display: block; width: 100%; height: auto; background: #FFFFFF; }
.rr-qr path { fill: #140B36; }
.qr-sheet { max-width: 900px; margin: 0 auto; padding: 24px var(--rr-gutter); display: flex; flex-direction: column; gap: 24px; }
.qr-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; background: #FFFFFF; border: 2px solid var(--rr-line); border-top: 8px solid var(--rr-royal); padding: 24px; }
.qr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qr-card { background: #FFFFFF; border: 2px solid var(--rr-line); padding: 16px; display: flex; flex-direction: column; gap: 10px; break-inside: avoid; }
.qr-card__band { height: 14px; border: 2px solid #140B36; }
.qr-card .rr-qr { max-width: 240px; margin: 0 auto; }
@media (max-width: 640px) { .qr-main, .qr-cards { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #FFFFFF; }
  .no-print { display: none !important; }
  .qr-sheet { padding: 0; max-width: none; }
  .qr-main { break-after: page; }
  .qr-cards { gap: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Sprint 2 : dépôts et points (Arène) ---------- */
.rr-back { font-weight: 700; text-decoration: none; }
.rr-btn--big { min-height: 60px; font-size: 18px; }
.rr-bigpts { font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 44px; line-height: 1; color: var(--rr-crown); }
.rr-bigpts.is-struck { text-decoration: line-through; color: var(--rr-ink-muted); }
[data-theme="jour"] .rr-bigpts { color: var(--rr-royal); }

.rr-rank { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); border-top: 6px solid var(--rr-royal); }
.rr-rank__pos { font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 36px; line-height: 1; color: var(--rr-crown); min-width: 48px; }

.rr-dchip { display: inline-block; font-family: var(--rr-font-hud); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; padding: 1px 8px; color: #140B36; white-space: nowrap; }
.rr-dchip--wait { background: var(--rr-crown); }
.rr-dchip--ok { background: #C6F432; }
.rr-dchip--no { background: var(--rr-live); color: #FFFFFF; }

.rr-deposits, .rr-board { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.rr-deposits a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rr-line); text-decoration: none; color: var(--rr-ink); }
.rr-deposits li:last-child a, .rr-board li:last-child { border-bottom: 0; }
.rr-board li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rr-line); }
.rr-board li.is-mine { font-weight: 700; }
.rr-board li.is-mine .rr-grow::after { content: " · toi"; color: var(--rr-ink-muted); font-weight: 400; }

.rr-steppers { display: flex; flex-direction: column; gap: 8px; }
.rr-stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.rr-stepper__img { width: 40px; height: 40px; }
.rr-stepper__name { display: flex; flex-direction: column; min-width: 0; }
.rr-stepper__ctrl { display: flex; align-items: center; gap: 4px; }
.rr-stepper__btn { width: 44px; height: 44px; font: 700 24px/1 var(--rr-font-body); color: var(--rr-on-crown); background: var(--rr-crown); border: 3px solid var(--rr-shadow); cursor: pointer; }
.rr-stepper__btn:active { transform: translate(1px, 1px); }
.rr-stepper__input { width: 64px; height: 44px; text-align: center; font: 400 22px var(--rr-font-hud); color: var(--rr-ink); background: var(--rr-surface); border: 2px solid var(--rr-line); -moz-appearance: textfield; appearance: textfield; }
.rr-stepper__input::-webkit-outer-spin-button, .rr-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 360px) { .rr-stepper { grid-template-columns: 32px minmax(0, 1fr); } .rr-stepper__ctrl { grid-column: 1 / -1; justify-content: flex-end; } }

.rr-photo { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px; cursor: pointer; background: var(--rr-surface-alt); border: 3px dashed var(--rr-royal-neon); }
.rr-photo.is-done { background: #173A2A; border-color: #C6F432; }
.rr-photo.is-missing { border-color: var(--rr-live); }
.rr-photo:focus-within { outline: 3px solid var(--rr-focus); outline-offset: 2px; }
.rr-photo__icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: 400 34px var(--rr-font-hud); color: var(--rr-on-crown); background: var(--rr-crown); }
.rr-photo__thumb { width: 48px; height: 48px; object-fit: cover; flex-shrink: 0; }
.rr-photo__thumb:not([hidden]) + .rr-photo__icon { display: none; }

.rr-total { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border: 2px solid var(--rr-line); }
.rr-total b { margin-left: auto; font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 34px; color: var(--rr-crown); }

.rr-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rr-timeline li { display: flex; gap: 12px; align-items: flex-start; }
.rr-timeline__dot { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--rr-ink-muted); border: 2px solid var(--rr-line); }
.rr-timeline .is-ok .rr-timeline__dot { background: #C6F432; color: #140B36; border-color: #C6F432; }
.rr-timeline .is-wait .rr-timeline__dot { background: var(--rr-crown); color: #140B36; border-color: var(--rr-crown); }
.rr-timeline .is-no .rr-timeline__dot { background: var(--rr-live); color: #FFFFFF; border-color: var(--rr-live); }

/* ---------- Sprint 2 : back office des dépôts (Jour) ---------- */
.bo-count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; font: 400 16px var(--rr-font-hud); text-align: center; color: #140B36; background: #FFC629; }
.rr-chip--review { background: #FFE9A8; }
.rr-btn--danger { color: #FFFFFF; background: #B0192E; }
.bo-queue { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .bo-queue { grid-template-columns: 1fr; } }
.bo-queue__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bo-queue__list a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-decoration: none; color: var(--rr-ink); background: #FFFFFF; border: 2px solid var(--rr-line); }
.bo-queue__list a[aria-current="true"] { border: 3px solid var(--rr-royal); padding: 11px 13px; }
.bo-deposit { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.bo-deposit__photo { flex: 1 1 240px; max-width: 360px; }
.bo-deposit > .rr-stack { flex: 999 1 420px; }
@media (max-width: 760px) { .bo-deposit__photo { max-width: none; } }
.bo-deposit__photo img { display: block; width: 100%; height: auto; border: 2px solid var(--rr-line); background: #0F0826; }
.bo-deposit__nophoto { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 16px; text-align: center; color: var(--rr-ink-muted); border: 2px dashed var(--rr-line); }
.bo-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bo-flags li { padding: 6px 10px; font-size: 14px; font-weight: 600; background: #ECE7FB; border-left: 4px solid var(--rr-line); }
.bo-flags li.is-blocking { background: #FFF1C9; border-left-color: #C98A00; }
.bo-reject { padding-top: 12px; border-top: 2px solid var(--rr-line); }
.bo-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-reasons label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 14px; background: #FFFFFF; border: 2px solid var(--rr-line); cursor: pointer; }
.bo-reasons label:has(input:checked) { border-color: #B0192E; }
.bo-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.bo-filters a { padding: 6px 10px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--rr-ink-muted); border: 2px solid var(--rr-line); }
.bo-filters a[aria-current="true"] { color: var(--rr-ink); border-color: var(--rr-royal); }

/* Arbitre (Arène) */
.rr-players { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-player input { position: absolute; opacity: 0; }
.rr-player label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; cursor: pointer; color: var(--rr-ink); background: var(--rr-surface-alt); border: 2px solid var(--team); }
.rr-player input:checked + label { color: #140B36; background: var(--team); border-color: #140B36; }
.rr-player input:focus-visible + label { outline: 3px solid var(--rr-focus); outline-offset: 2px; }

/* ---------- Sprint 3 : Battles, régie, écran live ---------- */
.bo-battle { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rr-line); }
.bo-battle img, .bo-kind img { background: #0F0826; flex-shrink: 0; }
.bo-kind { flex-direction: row !important; align-items: center; gap: 10px !important; }
.rr-impact { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.rr-impact span { display: inline-flex; align-items: center; gap: 6px; }

.rr-regie { max-width: 1280px; margin: 0 auto; padding: 20px var(--rr-gutter) 40px; display: flex; flex-direction: column; gap: 16px; }
.rr-regie__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .rr-regie__grid { grid-template-columns: 1fr; } }
.rr-regie .rr-table th { color: var(--rr-ink-muted); }
.rr-bcard { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.rr-bcard.is-live { border: 3px solid var(--rr-crown); }
.rr-bpill { background: var(--rr-line); color: var(--rr-ink); }
.rr-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rr-podium label { display: flex; flex-direction: column; gap: 4px; }
.rr-podium .rr-input { min-height: 40px; padding: 6px 8px; }

.rr-lv { min-height: 100vh; padding: 28px 40px; display: flex; flex-direction: column; gap: 22px; }
.rr-lv__head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rr-lv__title { font-size: 22px; color: var(--rr-ink-muted); }
.rr-lv__title b { color: var(--rr-crown); font-family: var(--rr-font-hud); font-size: 28px; letter-spacing: 2px; font-weight: 400; }
.rr-lv__clock { font-family: var(--rr-font-hud); font-size: 64px; line-height: .9; color: var(--rr-crown); }
.rr-lv__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 28px; flex-grow: 1; }
@media (max-width: 900px) { .rr-lv { padding: 20px var(--rr-gutter); } .rr-lv__grid { grid-template-columns: 1fr; } .rr-lv__clock { font-size: 44px; } }
.rr-lv__board { display: flex; flex-direction: column; gap: 12px; }
.rr-lv__team { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.rr-lv__rank { display: flex; align-items: center; justify-content: center; height: 64px; font-family: var(--rr-font-wordmark); font-size: 34px; color: var(--rr-ink-muted); }
.rr-lv__rank.is-first { color: #140B36; background: var(--rr-crown); border: 3px solid #140B36; }
.rr-lv__bar { position: relative; display: flex; align-items: center; height: 64px; padding: 0 18px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); overflow: hidden; }
.rr-lv__bar > span { position: absolute; left: 0; top: 0; bottom: 0; opacity: .9; transition: width .8s ease; }
.rr-lv__bar b { position: relative; font-size: 26px; color: #FFFFFF; text-shadow: 2px 2px 0 #140B36; }
.rr-lv__pts { min-width: 150px; text-align: right; font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 46px; color: var(--rr-crown); }
.rr-lv__impact { margin-top: 10px; font-size: 20px; }
.rr-lv__battle { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--rr-royal); border: 3px solid #140B36; box-shadow: 6px 6px 0 #140B36; font-size: 18px; }
.rr-lv__battle .rr-muted { color: #E4DBFF; }
.rr-lv__next { padding: 10px 14px; border: 2px dashed var(--rr-line); font-size: 18px; }
.rr-lv__feed { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }

/* ---------- Sprint 4 : Quiz et Fresque Knet ---------- */
.bo-details { margin: 0 0 16px; padding: 10px 14px; background: #FFFFFF; border: 2px solid var(--rr-line); }
.bo-details summary { cursor: pointer; font-weight: 700; }
.rr-king { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--rr-royal); border: 3px solid #140B36; }
.rr-king b { font-family: var(--rr-font-hud); font-size: 18px; letter-spacing: 1px; color: var(--rr-crown); }
.rr-timer { position: relative; height: 12px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); overflow: hidden; }
.rr-timer span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rr-crown); transition: width 1s linear; }
.rr-question { font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 28px; line-height: 1.1; margin: 0; }
.rr-answers { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rr-answer { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 12px; cursor: pointer; font: 600 17px var(--rr-font-body); text-align: left; color: var(--rr-ink); background: var(--rr-surface-alt); border: 3px solid var(--rr-line); }
.rr-answer:disabled { cursor: default; }
.rr-answer__l { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: 400 14px var(--rr-font-wordmark); color: #140B36; background: var(--rr-crown); }
.rr-answer.is-picked { border-color: var(--rr-crown); }
.rr-answer.is-ok { background: #173A2A; border-color: #C6F432; }
.rr-answer.is-ko { background: #3A1220; border-color: var(--rr-live); }
.rr-result { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; color: #140B36; }
.rr-result.is-ok { background: #C6F432; }
.rr-result.is-ko { background: var(--rr-crown); }
.rr-alive { display: flex; flex-direction: column; gap: 6px; }
.rr-alive__row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 48px; align-items: center; gap: 8px; font-size: 14px; }
.rr-alive__bar { position: relative; height: 18px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); overflow: hidden; }
.rr-alive__bar span { position: absolute; left: 0; top: 0; bottom: 0; }
.rr-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rr-pick { min-height: 44px; padding: 0 10px; cursor: pointer; font: 700 15px var(--rr-font-body); color: var(--rr-ink); background: var(--rr-surface-alt); border: 3px solid var(--team, var(--rr-line)); }
.rr-pick.is-on { color: #140B36; background: var(--team, var(--rr-crown)); border-color: #140B36; }
.rr-fresques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rr-fresque { display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--rr-surface-alt); border: 3px solid var(--rr-line); }
.rr-fresque img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #0F0826; }
.rr-fresque.is-on { background: var(--rr-crown); color: #140B36; border-color: #140B36; }
.rr-notes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rr-notes input { position: absolute; opacity: 0; }
.rr-notes label { display: flex; align-items: center; justify-content: center; min-height: 46px; cursor: pointer; font: 400 16px var(--rr-font-wordmark); color: var(--rr-ink); background: var(--rr-surface-alt); border: 3px solid var(--rr-line); }
.rr-notes input:checked + label { color: #140B36; background: var(--rr-crown); border-color: #140B36; }
.rr-notes input:focus-visible + label { outline: 3px solid var(--rr-focus); outline-offset: 2px; }
.rr-lv__question { font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 34px; line-height: 1.1; }
.rr-lv__fresques { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rr-lv__fresques img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid #140B36; }

/* ---------- Programme des Battles (timeline) ---------- */
.rr-tl { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.rr-tl > li { display: grid; grid-template-columns: 52px 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.rr-tl__time { font-family: var(--rr-font-hud); font-size: 19px; line-height: 1.1; text-align: right; padding-top: 6px; }
.rr-tl__time small { display: block; font-size: 15px; color: var(--rr-ink-muted); }
.rr-tl__dot { position: relative; align-self: stretch; }
.rr-tl__dot::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 3px; background: var(--rr-line); }
.rr-tl__dot::after { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 10px; border: 2px solid var(--rr-royal-neon); background: var(--rr-surface); }
.rr-tl__mark, .rr-tl__gap { font-size: 14px; color: var(--rr-ink-muted); min-height: 32px; }
.rr-tl__mark > span:last-child, .rr-tl__gap > span:last-child { padding-top: 6px; }
.rr-tl__gap .rr-tl__dot::after { display: none; }
.rr-tl__body { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; padding: 10px 12px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.rr-tl__picto { background: #0F0826; flex-shrink: 0; }
.rr-tl__item.is-next .rr-tl__body { border: 3px solid var(--rr-royal); }
.rr-tl__item.is-next .rr-tl__dot::after { background: var(--rr-royal); border-color: var(--rr-royal); }
.rr-tl__item.is-live .rr-tl__body { border: 3px solid var(--rr-live); }
.rr-tl__item.is-live .rr-tl__dot::after { background: var(--rr-live); border-color: var(--rr-live); }
.rr-tl__item.is-done .rr-tl__body, .rr-tl__item.is-paid .rr-tl__body { opacity: .7; }
.rr-tl__badge { font-family: var(--rr-font-hud); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; padding: 1px 8px; color: var(--rr-on-royal); background: var(--rr-royal); }
.rr-tl__badge.is-live { background: var(--rr-live); color: #FFFFFF; }
.rr-tl__badge.is-paid, .rr-tl__badge.is-done { background: var(--rr-line); color: var(--rr-ink); }
.rr-tl__warn { font-size: 13px; font-weight: 700; color: #B0192E; }
[data-theme="arene"] .rr-tl__warn { color: #FF8A96; }
.rr-tl__edit { gap: 6px; }
.rr-tl__edit .rr-input { width: auto; min-height: 38px; padding: 4px 8px; }
[data-theme="arene"] .rr-tl__item.is-next .rr-tl__body { border-color: var(--rr-crown); }
[data-theme="arene"] .rr-tl__item.is-next .rr-tl__dot::after { background: var(--rr-crown); border-color: var(--rr-crown); }
[data-theme="arene"] .rr-tl__badge { color: #140B36; background: var(--rr-crown); }

/* ---------- Bandeau des écrans joueurs ---------- */
.rr-hudbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -8px calc(-1 * var(--rr-gutter)) 0; padding: 8px var(--rr-gutter); background: rgba(15, 8, 38, .94); border-bottom: 2px solid var(--rr-line); backdrop-filter: blur(4px); }
.rr-hudbar b { font-family: var(--rr-font-hud); font-weight: 400; font-size: 22px; color: var(--rr-crown); }
.rr-hudbar .rr-hud { font-size: 16px; }
.rr-hudbar__main { display: inline-flex; align-items: baseline; gap: 6px; }
.rr-hudbar__battle { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; text-decoration: none; color: #140B36 !important; background: var(--rr-crown); }
.rr-hudbar__battle b { color: #140B36; font-size: 20px; }
.rr-hudbar__next { margin-left: auto; font-size: 14px; }
.rr-hudbar__next b { font-size: 18px; }
.rr-teampts { display: flex; flex-direction: column; gap: 10px; }
.rr-teampts__split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rr-teampts__split > span { display: flex; flex-direction: column; padding: 6px 10px; background: var(--rr-surface); border: 2px solid var(--rr-line); }
.rr-teampts__split b { font-family: var(--rr-font-hud); font-weight: 400; font-size: 22px; color: var(--rr-crown); }

/* Bilan */
.bo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.bo-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.bo-kpi .rr-hud { font-size: 20px; letter-spacing: 1px; color: var(--rr-ink-muted); }
.bo-kpi b { font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 40px; line-height: 1; }
.bo-kpi--main { background: var(--rr-royal); color: #FFFFFF; border: 3px solid #140B36; }
.bo-kpi--main .rr-hud { color: #FFC629; }
.bo-bilan { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .bo-bilan { grid-template-columns: 1fr; } }
.bo-note { margin: 0; padding: 10px 12px; font-size: 14px; color: var(--rr-ink-muted); background: var(--rr-line); }
[data-theme="jour"] .bo-note { background: #EAE4FB; }
.bo-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bo-rank li { display: flex; align-items: center; gap: 10px; }
.bo-rank__pos { width: 28px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--rr-font-hud); font-size: 18px; color: var(--rr-ink-muted); }
.bo-rank__pos.is-first { background: var(--rr-crown); color: #140B36; border: 2px solid #140B36; }
.bo-solid { border-top: 6px solid #C6F432; }
.bo-solid__row { display: flex; align-items: center; gap: 12px; }
.bo-solid__logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.bo-solid__logo--empty { display: inline-flex; align-items: center; justify-content: center; font-family: var(--rr-font-hud); font-size: 20px; color: var(--rr-ink-muted); border: 2px dashed var(--rr-line); }
.bo-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.bo-photos--big { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.bo-photo { margin: 0; position: relative; }
.bo-photo button { display: block; width: 100%; padding: 0; border: 3px solid transparent; background: none; cursor: pointer; position: relative; }
.bo-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #140B36; }
.bo-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 12px; font-weight: 700; color: #FFFFFF; background: rgba(20, 11, 54, .75); }
.bo-photo.is-picked button { border-color: var(--rr-royal); }
.bo-photo.is-picked span { background: var(--rr-royal); }
.bo-report { max-width: 1180px; margin: 0 auto; padding: 28px var(--rr-gutter) 48px; display: flex; flex-direction: column; gap: 18px; }
@media print {
  .rr-noprint { display: none !important; }
  .bo-report { padding: 0; max-width: none; }
  .bo-bilan { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .rr-panel, .bo-kpi { break-inside: avoid; }
  body { background: #FFFFFF; }
}

/* Fin de partie, côté Collector */
.rr-end { display: flex; flex-direction: column; gap: 16px; }
.rr-end__title { margin: 0; font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 40px; line-height: .95; text-transform: uppercase; text-align: center; }
.rr-end__title em { color: var(--rr-crown); font-style: inherit; }
.rr-end__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; }
.rr-end__step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rr-end__step > span { font-family: var(--rr-font-hud); font-size: 20px; letter-spacing: 1px; }
.rr-end__block { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #140B36; border: 3px solid #140B36; }
.rr-end__block b { font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; }
.rr-end__block small { font-weight: 700; font-size: 13px; }
.rr-end__mine { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; color: #FFFFFF; background: var(--rr-royal); border: 3px solid #140B36; }
.rr-end__mine .rr-hud { font-size: 22px; letter-spacing: 2px; color: var(--rr-crown); }
.rr-end__together { margin: 0; text-align: center; font-size: 17px; }
.rr-end__together b { color: var(--rr-crown); }
.rr-end__cta { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 3px solid #C6F432; background: var(--rr-surface-alt); }

/* Encadrement */
.bo-org { display: inline-block; padding: 2px 8px; font-size: 13px; font-weight: 700; color: #140B36; background: #ECE7FB; }
.bo-signature { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: #F5F2FF; background: #140B36; }
.bo-signature .rr-hud { font-size: 16px; letter-spacing: 1px; color: #B4A9E3; }
.bo-signature b { font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 24px; line-height: 1.05; }

/* Programme */
.bo-prog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bo-prog__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--rr-surface-alt); border: 2px solid #ECE7FB; }
.bo-prog__row.is-selected { border: 3px solid var(--rr-royal); background: var(--rr-surface); }
.bo-prog__row.is-now { border: 3px solid var(--rr-royal); }
.bo-prog__row.is-done { opacity: .65; }
.bo-prog__time { width: 48px; font-family: var(--rr-font-hud); font-size: 22px; }
.bo-prog__type { width: 92px; flex-shrink: 0; text-align: center; padding: 2px 6px; font-family: var(--rr-font-hud); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: #140B36; background: #ECE7FB; }
.bo-prog__type--ramasse { background: #C6F432; }
.bo-prog__type--battle { background: #FFC629; }
.bo-prog__type--fin { background: #A97CFF; }

/* Programme et guide, côté joueur */
.rr-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rr-step { border-bottom: 1px solid var(--rr-line); }
.rr-step summary { display: flex; align-items: flex-start; gap: 10px; padding: 10px; cursor: pointer; list-style: none; }
.rr-step summary::-webkit-details-marker { display: none; }
.rr-step__time { width: 46px; flex-shrink: 0; font-family: var(--rr-font-hud); font-size: 20px; }
.rr-step__dot { width: 12px; height: 12px; margin: 5px 10px 0; flex-shrink: 0; border: 2px solid var(--rr-royal-neon); }
.rr-step__tag { display: block; font-family: var(--rr-font-hud); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--rr-ink-muted); }
.rr-step__detail { margin: 0; padding: 0 10px 12px 68px; font-size: 15px; color: var(--rr-ink-muted); }
.rr-step.is-done { color: var(--rr-ink-muted); }
.rr-step.is-done .rr-step__dot { background: var(--rr-royal-neon); }
.rr-step.is-done img { opacity: .6; }
.rr-step.is-now { background: var(--rr-royal); border: 3px solid #140B36; color: #F5F2FF; }
.rr-step.is-now .rr-step__dot { border-color: var(--rr-crown); background: var(--rr-crown); }
.rr-step.is-now .rr-step__tag { color: var(--rr-crown); }
.rr-step.is-now .rr-step__detail { color: #F5F2FF; }
.rr-step.is-next .rr-step__tag { color: #C6F432; }
.rr-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.rr-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px; text-align: center; font-weight: 700; text-decoration: none; color: var(--rr-ink); background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.rr-guide { display: flex; flex-direction: column; gap: 8px; }
.rr-guide details { background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.rr-guide summary { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; list-style: none; font-weight: 700; }
.rr-guide summary::-webkit-details-marker { display: none; }
.rr-guide summary::after { content: "+"; margin-left: auto; font-weight: 700; }
.rr-guide details[open] summary::after { content: "−"; }
.rr-guide__num { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--rr-font-wordmark); font-size: 13px; color: #F5F2FF; background: var(--rr-royal); }
.rr-guide ul { margin: 0; padding: 0 16px 14px 48px; display: flex; flex-direction: column; gap: 6px; }
.rr-guide .is-danger { color: #140B36; background: var(--rr-crown); border: 3px solid #140B36; }
.rr-guide .is-danger .rr-guide__num { color: var(--rr-crown); background: #140B36; }
.rr-alertbtn { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; color: #F5F2FF; background: var(--rr-live); border: 3px solid #140B36; box-shadow: 4px 4px 0 var(--rr-royal); }
.rr-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rr-rules li { padding: 10px 12px; background: var(--rr-surface-alt); border-left: 4px solid var(--rr-crown); }
.bo-hazard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: #FFFFFF; background: var(--rr-live); border: 3px solid #140B36; }
.bo-hazard img { width: 72px; height: 72px; object-fit: cover; }
.bo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }

/* Tri express, Bingo */
.rr-bins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rr-bin { min-height: 84px; display: flex; align-items: center; justify-content: center; padding: 6px; cursor: pointer; font: 700 16px var(--rr-font-body); color: #140B36; border: 3px solid #140B36; }
.rr-bin:disabled { opacity: .5; }
/* Les couleurs des poubelles sont celles de la rue : le tri s'apprend avec elles. */
.rr-bin--jaune { background: #FFD43B; }
.rr-bin--verre { background: #5CC98A; }
.rr-bin--om { background: #C9CEDB; }
.rr-bin--bio { background: #D9A273; }
.rr-trifb { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; color: #140B36; }
.rr-trifb.is-ok { background: #C6F432; }
.rr-trifb.is-ko { background: var(--rr-crown); }
.rr-bingo { display: grid; grid-template-columns: repeat(var(--size, 3), minmax(0, 1fr)); gap: 6px; }
.rr-bingo__cell { margin: 0; }
.rr-bingo__cell label, div.rr-bingo__cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; font-size: 13px; line-height: 1.15; cursor: pointer; color: var(--rr-ink); background: var(--rr-surface-alt); border: 2px dashed var(--rr-line); }
div.rr-bingo__cell { cursor: default; }
.rr-bingo__cell img { width: 100%; height: 44px; object-fit: cover; border: 2px solid #140B36; }
.rr-bingo__state { font-family: var(--rr-font-hud); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--rr-royal-neon); }
.rr-bingo__cell.is-ok { color: #140B36; background: #C6F432; border: 3px solid #140B36; }
.rr-bingo__cell.is-ok .rr-bingo__state { color: #140B36; }
.rr-bingo__cell.is-wait { border: 3px solid var(--rr-crown); }
.rr-bingo__cell.is-wait .rr-bingo__state { color: var(--rr-crown); }
.rr-bingo__cell.has-photo { position: relative; justify-content: flex-end; padding: 0; overflow: hidden; background: #140B36; }
.rr-bingo__cell .rr-bingo__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.rr-bingo__cap { position: relative; width: 100%; display: flex; flex-direction: column; gap: 1px; padding: 4px 4px 5px; font-size: 12px; background: rgba(20, 11, 54, .86); color: #fff; }
.rr-bingo__cap .rr-bingo__state { font-size: 12px; }
.rr-bingo__cell.has-photo.is-ok { border: 3px solid #C6F432; }
.rr-bingo__cell.has-photo.is-ok .rr-bingo__cap { background: #C6F432; color: #140B36; }
.rr-bingo__cell.has-photo.is-wait .rr-bingo__shot { opacity: .7; }
.rr-bingo__pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 13px; }
.rr-bingo__pts span { padding: 8px 4px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); }
.rr-bingo__pts b { display: block; font-family: var(--rr-font-display); font-style: italic; font-weight: 900; font-size: 24px; color: var(--rr-crown); }
.bo-bingo-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bo-bingo-check img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--rr-line); }
.qr-poster { break-after: page; }
.bo-grid { display: grid; grid-template-columns: repeat(var(--size, 3), minmax(0, 1fr)); gap: 8px; }
.bo-grid__cell { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #FFFFFF; border: 2px solid var(--rr-line); }
.bo-grid__cell img, .bo-grid__nophoto { width: 100%; height: 70px; object-fit: cover; }
.bo-grid__nophoto { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--rr-ink-muted); background: repeating-linear-gradient(45deg, #ECE7FB 0 6px, #F5F2FF 6px 12px); }
.bo-grid__cell .rr-input { min-height: 38px; padding: 4px 6px; font-size: 14px; }
.bo-pts span { background: #F5F2FF; }
.bo-pts b { color: var(--rr-royal); }
.bo-lib { display: flex; align-items: center; gap: 12px; padding: 8px; border: 2px solid #ECE7FB; }
.bo-lib.is-in { border-color: #C6F432; }
.bo-lib img { width: 56px; height: 56px; object-fit: cover; }
.bo-level { margin-left: 6px; padding: 0 6px; font-family: var(--rr-font-hud); font-size: 15px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: #140B36; background: #FFC629; }
.bo-level--facile { background: #C6F432; }
.bo-level--rare { background: #A97CFF; }
.bo-btn-ok { background: #C6F432; color: #140B36; }

/* Boss et Zone */
.rr-boss { display: flex; flex-direction: column; gap: 6px; }
.rr-boss__bar { height: 18px; background: var(--rr-surface); border: 3px solid #140B36; }
.rr-boss__bar span { display: block; height: 100%; background: var(--rr-live); transition: width .6s; }
.rr-zone { display: block; padding: 8px 10px; font-weight: 700; font-size: 15px; color: #140B36; background: var(--rr-crown); }
.rr-zone.is-in { background: #C6F432; }

/* Badge d'équipe : logo, ou initiale sur la couleur de l'équipe */
.rr-badge { width: var(--size, 24px); height: var(--size, 24px); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  object-fit: contain; background: #FFFFFF; border: 2px solid #140B36; font-family: var(--rr-font-wordmark); font-size: calc(var(--size, 24px) * .5); color: #140B36; }
.rr-lv__team { grid-template-columns: 64px 64px minmax(0, 1fr) auto; }
.rr-lv__team .rr-badge { border-width: 3px; }
.rr-stepper__hint { grid-column: 1 / -1; margin-top: -2px; padding-top: 8px; font-size: 13px; line-height: 1.35; color: var(--rr-ink-muted); border-top: 1px dashed var(--rr-line); }

/* Guide des Battles */
.bo-picto-link { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; text-align: center; font-size: 13px; color: inherit; text-decoration: none; padding: 6px 4px; border: 2px solid transparent; }
.bo-picto-link:hover, .bo-picto-link:focus-visible { border-color: var(--rr-royal); }
.bo-fam { display: inline-block; padding: 2px 10px; font-size: 13px; color: #140B36; background: #ECE7FB; }
.bo-fam--mesuree { background: #C6F432; }
.bo-fam--app { background: #FFC629; }
.bo-guide-index { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-guide-index a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: 14px; color: var(--rr-ink); text-decoration: none; background: #FFFFFF; border: 2px solid var(--rr-line); }
.bo-guide-index img { background: #0F0826; }
.bo-guide { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.bo-guide__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.bo-guide__cols ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.bo-guide-inline { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; margin: 0 0 16px; background: #FFFFFF; border: 2px solid var(--rr-line); border-left: 6px solid var(--rr-royal); }
/* Mode d'emploi côté joueur */
.rr-howto { background: var(--rr-surface-alt); border: 2px solid var(--rr-line); border-left: 6px solid var(--rr-crown); }
.rr-howto summary { padding: 10px 14px; cursor: pointer; }
.rr-howto summary .rr-hud { font-size: 18px; letter-spacing: 1px; color: var(--rr-crown); }
.rr-howto ol { margin: 0; padding: 0 16px 0 34px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.rr-howto p { margin: 10px 14px 12px; font-size: 14px; color: var(--rr-ink-muted); }
.rr-fams { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rr-fams li { display: flex; flex-direction: column; padding: 8px 12px; background: var(--rr-surface-alt); border-left: 4px solid var(--rr-royal-neon); }
.rr-bguide { gap: 10px; scroll-margin-top: 80px; }
.rr-bguide.is-live { border-color: var(--rr-crown); }
.rr-how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rr-how li { counter-increment: how; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--rr-surface-alt); border: 2px solid var(--rr-line); font-size: 14px; }
.rr-how li::before { content: counter(how); font-family: var(--rr-font-wordmark); font-size: 15px; color: var(--rr-crown); }
.rr-how b { font-size: 16px; }
.bo-guide-inline[hidden] { display: none; }
