/* ===== Le carnet de règles =====
   Une feuille de carton crème qui s'ouvre par-dessus tous les écrans (accueil, salon, partie). Même identité que la
   plateforme (feutre, laiton, carton) : les « tables » interactives (nombre de joueurs, portée, votes) sont des
   morceaux de feutre posés sur la page. Tout est préfixé « rb- ». */

/* Chaque ton : --tone (décor) et --tone-d (texte et fonds qui portent du blanc, ≥ 4.5:1). */
.rb [data-tone] { --tone: #2e8b57; --tone-d: #1f6b43; --tone-l: #dff0e6; }
.rb [data-tone="good"] { --tone: #2e8b57; --tone-d: #1f6b43; --tone-l: #dff0e6; }
.rb [data-tone="bad"] { --tone: #c0392f; --tone-d: #a32c24; --tone-l: #f8dfdb; }
.rb [data-tone="law"] { --tone: #3a6fc0; --tone-d: #254a8a; --tone-l: #dde8f7; }
.rb [data-tone="president"] { --tone: #dfaa3f; --tone-d: #8c6012; --tone-l: #f8ebc6; }
.rb [data-tone="rebel"] { --tone: #d4522f; --tone-d: #a8341f; --tone-l: #fadfd5; }
.rb [data-tone="wild"] { --tone: #8a5cc6; --tone-d: #62399c; --tone-l: #eadff7; }
.rb [data-tone="story"] { --tone: #dfaa3f; --tone-d: #8c6012; --tone-l: #f8ebc6; }
.rb [data-tone="townsfolk"] { --tone: #4a84c7; --tone-d: #2d5a8a; --tone-l: #dce9f6; }
.rb [data-tone="outsider"] { --tone: #38a3b2; --tone-d: #1f6f7a; --tone-l: #d6eef1; }
.rb [data-tone="minion"] { --tone: #c9594b; --tone-d: #9c3a30; --tone-l: #f6dcd8; }
.rb [data-tone="demon"] { --tone: #a8242c; --tone-d: #7a1a21; --tone-l: #f1d3d4; }
.rb [data-tone="plus"] { --tone: #2e9a5b; --tone-d: #1f7a45; --tone-l: #dff3e4; }
.rb [data-tone="zero"] { --tone: #d8961c; --tone-d: #8c6012; --tone-l: #fdf0cc; }
.rb [data-tone="minus"] { --tone: #c9363c; --tone-d: #a82a31; --tone-l: #fde0d9; }
.rb [data-tone="power"] { --tone: #6b46a8; --tone-d: #4c2f7a; --tone-l: #e8def5; }
.rb [data-tone="shred"] { --tone: #a02a3a; --tone-d: #7a1f2c; --tone-l: #f4d9dd; }
.rb [data-tone="target"] { --tone: #637068; --tone-d: #46534c; --tone-l: #e6e9e3; }
.rb [data-tone="brun"] { --tone: #9a6a45; --tone-d: #70452a; --tone-l: #f0e2d3; }
.rb [data-tone="bleu"] { --tone: #3a6fc0; --tone-d: #254a8a; --tone-l: #dde8f7; }
.rb [data-tone="char"] { --tone: #8a7762; --tone-d: #594a3a; --tone-l: #eee6da; }

html.rb-open, html.rb-open body { overflow: hidden; }

.rb {
  position: fixed; inset: 0; z-index: 5000; display: flex; justify-content: center; align-items: stretch;
  font-family: var(--pl-sans); color: var(--pl-ink); line-height: 1.45; -webkit-text-size-adjust: 100%;
}
.rb *, .rb *::before, .rb *::after { box-sizing: border-box; }
.rb h2, .rb h3 { font-family: var(--pl-serif); margin: 0; letter-spacing: 0; }
.rb p { margin: 0; }
.rb button { font-family: inherit; }
.rb :focus-visible { outline: 3px solid var(--pl-brass-deep); outline-offset: 2px; }
.rb-top :focus-visible, .rb-setup :focus-visible, .rb-ringbox :focus-visible, .rb-votes :focus-visible { outline-color: var(--pl-brass-hi); }

.rb-scrim { position: absolute; inset: 0; background: rgb(6 20 16 / .74); backdrop-filter: blur(3px); animation: rb-fade .2s ease both; }
.rb-sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow: hidden;
  background: var(--pl-card); animation: rb-up .28s cubic-bezier(.2, .8, .2, 1) both;
}
.rb.shown .rb-sheet, .rb.shown .rb-scrim { animation: none; }
@media (min-width: 900px) {
  .rb { align-items: center; }
  .rb-sheet { width: min(1040px, 94vw); height: min(880px, 92dvh); border-radius: 22px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .12); }
}
@keyframes rb-fade { from { opacity: 0; } }
@keyframes rb-up { from { transform: translateY(24px); opacity: 0; } }

/* ---- en-tête ---- */
.rb-top {
  flex: none; display: flex; align-items: center; gap: .8rem; color: var(--pl-on);
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px;
  background: radial-gradient(ellipse 120% 160% at 30% 0%, var(--pl-felt-1), var(--pl-felt-2) 60%, var(--pl-felt-3));
  border-bottom: 3px solid var(--pl-brass);
}
.rb-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #2b1d04; background: linear-gradient(#f7da86, var(--pl-brass)); box-shadow: 0 2px 0 var(--pl-brass-deep); }
.rb-ico .icon { width: 22px; height: 22px; }
.rb-titles { flex: 1; min-width: 0; }
.rb-titles small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-brass-hi); }
.rb-titles h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-x {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--pl-on);
  background: rgb(255 255 255 / .08); border: 1.5px solid rgb(246 239 219 / .3); touch-action: manipulation;
}
.rb-x:hover { background: rgb(255 255 255 / .16); }
.rb-x .icon { width: 22px; height: 22px; }

/* ---- index des chapitres : bandeau défilant (téléphone), liste (PC) ---- */
.rb-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rb-index {
  flex: none; display: flex; gap: .45rem; overflow-x: auto; padding: 10px 12px; scrollbar-width: none;
  background: var(--pl-card-2); border-bottom: 1px solid var(--pl-edge); scroll-snap-type: x proximity;
}
.rb-index::-webkit-scrollbar { display: none; }
.rb-tab {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .25rem .85rem .25rem .3rem; cursor: pointer; scroll-snap-align: center;
  font-size: .9rem; font-weight: 800; color: var(--pl-ink-2); background: #fff; border: 1.5px solid var(--pl-edge); border-radius: 999px; touch-action: manipulation; white-space: nowrap;
}
.rb-tab b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem var(--pl-serif); background: var(--pl-card-2); color: var(--pl-ink-2); }
.rb-tab[aria-current="true"] { color: #2b1d04; background: linear-gradient(#f7da86, var(--pl-brass)); border-color: #b98524; box-shadow: 0 2px 0 var(--pl-brass-deep); }
.rb-tab[aria-current="true"] b { background: rgb(255 255 255 / .55); color: #2b1d04; }
.rb-tab:hover:not([aria-current="true"]) { border-color: var(--pl-edge-2); }

.rb-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
.rb-body:focus { outline: none; }
@media (min-width: 900px) {
  .rb-main { flex-direction: row; }
  .rb-index { flex-direction: column; overflow-x: visible; overflow-y: auto; width: 250px; padding: 18px 14px; border-bottom: 0; border-right: 1px solid var(--pl-edge); }
  .rb-tab { width: 100%; border-radius: 14px; padding-right: .8rem; white-space: normal; }
  .rb-body { padding: 30px 40px 36px; }
}

/* ---- chapitre ---- */
.rb-chapter { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.35rem; animation: rb-in .3s ease both; }
@keyframes rb-in { from { opacity: 0; transform: translateY(8px); } }
.rb-ch-title { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--pl-ink); }
.rb-ch-title small { display: block; margin-bottom: .35rem; font: 800 .72rem var(--pl-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pl-brass-deep); }
.rb-lead { font: 700 1.12rem/1.5 var(--pl-sans); color: var(--pl-ink); }

/* ---- la vidéo des règles ---- */
.rb-video { max-width: 880px; }
.rb-video-lead { margin: 0; font: 700 1.02rem/1.5 var(--pl-sans); color: var(--pl-ink-2); }
.rb-video-player {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #06375d;
  box-shadow: 0 0 0 3px var(--pl-brass), 0 18px 40px -18px rgb(0 0 0 / .6);
}
.rb-tab-video b { color: var(--pl-brass-deep); font-size: .8rem; }
.rb-h { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.rb-h::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--pl-edge), transparent); }
.rb-sub { margin: -.3rem 0 .7rem; color: var(--pl-ink-2); font-size: .92rem; }
.rb-after { margin-top: .6rem; color: var(--pl-ink-2); font-size: .9rem; }
.rb-block { display: block; }

.rb-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-facts li { display: flex; flex-direction: column; padding: .45rem .9rem; border-radius: 12px; background: var(--pl-card-2); border: 1px solid var(--pl-edge); }
.rb-facts b { font: 800 1.15rem var(--pl-serif); color: var(--pl-ink); }
.rb-facts span { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pl-ink-3); }

/* ---- dessins ---- */
.rb-art { flex: none; display: block; }
.rb-art svg { display: block; width: 100%; height: auto; }
.rb-art.rb-round { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--tone-l, var(--pl-card-2)); box-shadow: 0 0 0 2px var(--tone, var(--pl-edge)); }
.rb-art.rb-round .rb-token { width: 100%; height: 100%; box-shadow: none; }
.rb-art.rb-mini { width: 44px; }
.rb-art.rb-mini.rb-is-card { width: 42px; }
.rb-art.rb-mid.rb-is-card { width: 74px; }
.rb-art.rb-is-card svg { border-radius: 6px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3)); }
.rb-emoji { display: grid; place-items: center; width: 100%; height: 100%; font-size: 1.9rem; line-height: 1; }
.rb-art.rb-mid .rb-emoji, .rb-art.rb-mini .rb-emoji { font-size: 1.7rem; width: 44px; height: 44px; }
.rb-token { display: grid; place-items: center; border-radius: 50%; width: 100%; aspect-ratio: 1; background: var(--tone-l); box-shadow: inset 0 0 0 3px var(--tone), 0 2px 3px rgb(0 0 0 / .25); }
.rb-token img { width: 78%; height: 78%; object-fit: contain; }
.rb-art.rb-mini .rb-token, .rb-art.rb-mid .rb-token { width: 44px; height: 44px; }
.rb-art.rb-card-art { width: 74px; }
.rb-groups.tokens .rb-art.rb-card-art, .rb-groups.chars .rb-art.rb-card-art { width: 60px; }
.rb-groups.chars .rb-art.rb-card-art svg { border-radius: 50%; filter: none; box-shadow: 0 0 0 2px var(--tone); }
.rb-token.t-townsfolk { --tone: #4a84c7; --tone-l: #dce9f6; }
.rb-token.t-outsider { --tone: #38a3b2; --tone-l: #d6eef1; }
.rb-token.t-minion { --tone: #c9594b; --tone-l: #f6dcd8; }
.rb-token.t-demon { --tone: #a8242c; --tone-l: #f1d3d4; }

/* ---- camps ---- */
.rb-camps { display: grid; gap: .7rem; }
.rb-camp {
  display: grid; grid-template-columns: 62px 1fr; gap: .9rem; align-items: start; padding: 14px; background: #fff;
  border: 1.5px solid var(--pl-edge); border-left: 6px solid var(--tone); border-radius: 16px;
}
.rb-camp h3 { font-size: 1.15rem; font-weight: 800; color: var(--tone-d); }
.rb-aim { margin-top: .15rem; font-weight: 700; }
.rb-camp ul { margin: .45rem 0 0; padding-left: 1.1rem; color: var(--pl-ink-2); font-size: .9rem; }
.rb-camp li + li { margin-top: .15rem; }
@media (min-width: 700px) { .rb-camps:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; } }

/* ---- étapes ---- */
.rb-steps, .rb-order { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rb-steps li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: 12px 14px; background: #fff; border: 1.5px solid var(--pl-edge); border-radius: 14px; }
.rb-n {
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--pl-serif);
  color: #2b1d04; background: linear-gradient(#f7da86, var(--pl-brass)); box-shadow: 0 2px 0 var(--pl-brass-deep);
}
.rb-steps strong, .rb-order strong { display: block; font-weight: 800; }
.rb-steps p, .rb-order p { margin-top: .1rem; color: var(--pl-ink-2); font-size: .92rem; }
.rb-steps li > .rb-art { margin-block: -2px; }

/* ---- « laquelle ? » ---- */
.rb-choice { display: grid; gap: .6rem; }
.rb-pick { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 14px; text-align: center; background: #fff; border: 1.5px solid var(--pl-edge); border-radius: 16px; }
.rb-pick strong { font: 700 1.05rem var(--pl-serif); }
.rb-pick-sub { padding: .1rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--pl-card-2); color: var(--pl-ink-2); border: 1px solid var(--pl-edge); }
.rb-pick p { color: var(--pl-ink-2); font-size: .92rem; }
@media (min-width: 700px) { .rb-choice { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

/* ---- les « tables » de feutre : nombre de joueurs, portée, votes ---- */
.rb-setup, .rb-ringbox, .rb-votes {
  color: var(--pl-on); padding: 16px; border-radius: 18px; border: 1px solid rgb(255 255 255 / .12);
  background: radial-gradient(ellipse 130% 100% at 50% 0%, var(--pl-felt-1), var(--pl-felt-2) 60%, var(--pl-felt-3));
  box-shadow: 0 2px 0 rgb(0 0 0 / .25), 0 14px 26px -16px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .14);
}
.rb-setup .rb-h, .rb-ringbox .rb-h, .rb-votes .rb-h { color: var(--pl-on); }
.rb-setup .rb-h, .rb-ringbox .rb-h, .rb-votes .rb-h { display: block; text-wrap: balance; }
.rb-setup .rb-h::after, .rb-ringbox .rb-h::after, .rb-votes .rb-h::after { content: none; }
.rb-pills { display: flex; gap: .4rem; overflow-x: auto; padding: 3px 2px 5px; scrollbar-width: none; align-items: center; }
.rb-pills::-webkit-scrollbar { display: none; }
.rb-pills.small { margin-top: .6rem; flex-wrap: wrap; justify-content: center; }
.rb-pills-label { flex: 1 0 100%; text-align: center; margin: 0 0 .1rem; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-on-2); }
.rb-pill {
  flex: none; min-width: 46px; height: 46px; padding: 0 .5rem; cursor: pointer; font: 800 1.05rem var(--pl-serif); color: var(--pl-on);
  background: rgb(255 255 255 / .08); border: 1.5px solid rgb(246 239 219 / .3); border-radius: 12px; touch-action: manipulation;
  transition: background .12s, transform .1s;
}
.rb-pill:hover { background: rgb(255 255 255 / .16); }
.rb-pill[aria-pressed="true"] { color: #2b1d04; background: linear-gradient(#f7da86, var(--pl-brass)); border-color: #b98524; box-shadow: 0 2px 0 var(--pl-brass-deep); }
.rb-unit { margin: .5rem 0 .2rem; text-align: center; color: var(--pl-on-2); font-size: .9rem; font-weight: 700; }
.rb-toggle { display: flex; align-items: flex-start; gap: .7rem; margin: .5rem 0; padding: .6rem .8rem; border-radius: 12px; background: rgb(0 0 0 / .2); cursor: pointer; min-height: 48px; }
.rb-toggle input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--pl-brass); }
.rb-toggle b { display: block; font-size: .95rem; }
.rb-toggle small { display: block; color: var(--pl-on-2); font-size: .8rem; }
.rb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: .55rem; margin-top: .6rem; }
.rb-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .65rem .4rem .55rem; text-align: center; color: var(--pl-ink); background: var(--pl-card); border-radius: 14px; border-bottom: 4px solid var(--tone); box-shadow: 0 2px 0 rgb(0 0 0 / .25); }
.rb-stat b { font: 800 2.3rem/1 var(--pl-serif); color: var(--tone-d); font-variant-numeric: tabular-nums; }
.rb-stat span { margin-top: .25rem; font-size: .82rem; font-weight: 800; line-height: 1.15; }
.rb-stat small { font-size: .72rem; color: var(--pl-ink-3); }
.rb-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: .9rem; }
.rb-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--tone); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .22), 0 0 0 1.5px rgb(255 255 255 / .85); }
.rb-bar { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed rgb(246 239 219 / .3); }
.rb-bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.rb-bar-head span { color: var(--pl-on-2); font-size: .85rem; font-weight: 700; }
.rb-bar-track { display: flex; height: 30px; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .8); }
.rb-bar-track i { display: grid; place-items: center; min-width: 0; font: 800 .8rem var(--pl-sans); font-style: normal; color: #fff; background: var(--tone-d); }
.rb-bar-track i[data-tone="zero"] { color: #fff; }
.rb-bar ul { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; color: var(--pl-on); }
.rb-bar li { display: inline-flex; align-items: center; gap: .4rem; }
.rb-bar li i { width: 12px; height: 12px; border-radius: 3px; background: var(--tone-d); box-shadow: 0 0 0 1px rgb(255 255 255 / .7); }

/* ---- la table vue de dessus ---- */
.rb-ring { display: block; width: 100%; max-width: 360px; margin: .3rem auto 0; height: auto; overflow: visible; }
.rb-table-top { fill: rgb(0 0 0 / .22); stroke: var(--pl-brass); stroke-width: 3; }
.rb-ring .rb-seat { stroke-width: 3; transition: fill .15s; }
.rb-ring .rb-seat.me { fill: var(--pl-brass); stroke: var(--pl-brass-hi); }
.rb-ring .rb-seat.in { fill: #2f9e63; stroke: #8fe0b2; }
.rb-ring .rb-seat.out { fill: rgb(255 255 255 / .08); stroke: rgb(246 239 219 / .35); }
.rb-ring .rb-seat-t { text-anchor: middle; font: 800 17px var(--pl-serif); fill: #fff; }
.rb-ring .rb-seat-t.me { fill: #2b1d04; font-size: 15px; }
.rb-ring .rb-seat-t.out { fill: var(--pl-on-2); }
.rb-ringbox .rb-after, .rb-votes .rb-after { color: var(--pl-on-2); text-align: center; }

/* ---- votes ---- */
.rb-stepper { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.rb-stepper > div { text-align: center; min-width: 110px; }
.rb-stepper b { display: block; font: 800 3rem/1 var(--pl-serif); color: var(--pl-brass-hi); font-variant-numeric: tabular-nums; }
.rb-stepper span { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pl-on-2); }
.rb-step { width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font: 800 1.6rem var(--pl-sans); color: var(--pl-on); background: rgb(255 255 255 / .08); border: 1.5px solid rgb(246 239 219 / .35); touch-action: manipulation; }
.rb-step:hover:not(:disabled) { background: rgb(255 255 255 / .16); }
.rb-step:disabled { opacity: .35; cursor: not-allowed; }
.rb-need { margin-top: .8rem; text-align: center; font-size: 1.05rem; }
.rb-need b { color: var(--pl-brass-hi); }
.rb-dots.votes i { background: rgb(255 255 255 / .1); box-shadow: 0 0 0 1.5px rgb(246 239 219 / .4); }
.rb-dots.votes i.on { background: var(--pl-brass); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .22), 0 0 0 1.5px var(--pl-brass-hi); }

/* ---- cartes, jetons, personnages ---- */
.rb-groups { display: flex; flex-direction: column; gap: 1.6rem; }
.rb-cards { display: grid; gap: .6rem; }
@media (min-width: 640px) { .rb-cards { grid-template-columns: 1fr 1fr; } }
.rb-card { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: 12px; background: #fff; border: 1.5px solid var(--pl-edge); border-top: 4px solid var(--tone); border-radius: 14px; }
.rb-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; margin-bottom: .2rem; }
.rb-card-head strong { font: 700 1.02rem/1.2 var(--pl-serif); }
.rb-count, .rb-badge { padding: .05rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.rb-count { color: var(--tone-d); background: var(--tone-l); }
.rb-badge { color: var(--pl-ink-2); background: var(--pl-card-2); border: 1px solid var(--pl-edge); }
.rb-card p { color: var(--pl-ink-2); font-size: .9rem; }

/* ---- victoires ---- */
.rb-wins { display: grid; gap: .8rem; }
.rb-win { overflow: hidden; background: #fff; border: 1.5px solid var(--tone); border-radius: 16px; }
.rb-win header { display: flex; align-items: center; gap: .8rem; padding: 10px 14px; color: #fff; background: var(--tone-d); }
.rb-win header h3 { font-size: 1.15rem; font-weight: 700; }
.rb-win header .rb-art.rb-round { width: 46px; height: 46px; box-shadow: 0 0 0 2px rgb(255 255 255 / .8); }
.rb-win ul { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: .55rem; }
.rb-win li { display: grid; grid-template-columns: 24px 1fr; gap: .55rem; align-items: start; }
.rb-tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--tone-d); }
.rb-tick .icon { width: 15px; height: 15px; stroke-width: 3; }

/* ---- encadrés ---- */
.rb-note { padding: 12px 14px 12px 16px; border-radius: 14px; border-left: 6px solid var(--pl-brass); background: #fbefcf; }
.rb-note.warn { border-left-color: var(--pl-bad); background: #fbe3df; }
.rb-note strong { display: block; font: 700 1rem var(--pl-serif); margin-bottom: .1rem; }
.rb-note p { font-size: .94rem; color: var(--pl-ink); }

/* ---- questions ---- */
.rb-qa { display: grid; gap: .45rem; }
.rb-qa details { background: #fff; border: 1.5px solid var(--pl-edge); border-radius: 14px; overflow: hidden; }
.rb-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 52px; padding: .6rem 14px; font-weight: 800; }
.rb-qa summary::-webkit-details-marker { display: none; }
.rb-qa summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 1.2rem/1 var(--pl-sans); color: #2b1d04; background: var(--pl-brass-hi); transition: transform .15s; }
.rb-qa details[open] summary::after { transform: rotate(45deg); }
.rb-qa details[open] { border-color: var(--pl-brass-deep); }
.rb-qa details p { padding: 0 14px 14px; color: var(--pl-ink-2); }

/* ---- tableaux ---- */
.rb-tablewrap { overflow-x: auto; border-radius: 14px; border: 1.5px solid var(--pl-edge); background: #fff; }
.rb-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rb-table th, .rb-table td { padding: .6rem .8rem; text-align: left; vertical-align: top; }
.rb-table thead th { color: var(--pl-on); background: var(--pl-felt-2); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.rb-table tbody tr:nth-child(even) { background: var(--pl-card); }
.rb-table tbody th { font-weight: 800; }

/* ---- une partie : nuit, jour ---- */
.rb-cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; counter-reset: c; }
.rb-cycle li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 14px 10px; text-align: center; background: #fff; border: 1.5px solid var(--pl-edge); border-radius: 16px; }
.rb-cycle-ico { font-size: 2rem; line-height: 1.1; }
.rb-cycle strong { font: 700 1.1rem var(--pl-serif); }
.rb-cycle p { font-size: .85rem; color: var(--pl-ink-2); }
.rb-loop { margin-top: .2rem; font-size: .78rem; font-weight: 800; color: var(--pl-brass-deep); }
@media (min-width: 700px) {
  .rb-cycle { grid-template-columns: repeat(4, 1fr); }
  .rb-cycle li:not(:last-child)::after { content: '→'; position: absolute; right: -.75rem; top: 50%; translate: 0 -50%; z-index: 1; font: 800 1.1rem var(--pl-sans); color: var(--pl-brass-deep); }
}

.rb-order li { display: grid; grid-template-columns: auto auto 1fr; gap: .7rem; align-items: center; padding: 8px 12px; background: #fff; border: 1.5px solid var(--pl-edge); border-radius: 14px; }
.rb-order li.special { background: var(--pl-card-2); border-style: dashed; }
.rb-order li.special .rb-n { background: var(--pl-felt-2); color: var(--pl-on); box-shadow: none; }
.rb-order li:not(:has(.rb-art)) { grid-template-columns: auto 1fr; }
.rb-order .rb-art.rb-mini { width: 44px; }

/* ---- bas de feuille ---- */
.rb-pager { max-width: 720px; margin: 2rem auto 0; padding-top: 1.1rem; border-top: 2px dashed var(--pl-edge); display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rb-pg {
  display: flex; align-items: center; gap: .6rem; min-height: 60px; padding: .5rem .9rem; cursor: pointer; text-align: left; font: 800 1rem var(--pl-serif); color: var(--pl-ink);
  background: #fff; border: 1.5px solid var(--pl-edge); border-radius: 14px; box-shadow: 0 3px 0 var(--pl-edge-2); touch-action: manipulation;
}
.rb-pg small { display: block; font: 800 .68rem var(--pl-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pl-ink-3); }
.rb-pg .icon { flex: none; width: 22px; height: 22px; color: var(--pl-brass-deep); }
.rb-pg.next { justify-content: space-between; text-align: right; background: linear-gradient(#f7da86, var(--pl-brass)); border-color: #b98524; box-shadow: 0 3px 0 var(--pl-brass-deep); }
.rb-pg.next small { color: #5d4310; }
.rb-pg.next .icon { color: #2b1d04; transform: scaleX(-1); }
.rb-pg:active { transform: translateY(2px); }
.rb-load { padding: 3rem 1.5rem; text-align: center; color: var(--pl-ink-2); font-weight: 700; }
.rb-retry { margin-left: .4rem; min-height: 44px; padding: .4rem 1rem; cursor: pointer; font-weight: 800; color: #2b1d04; background: var(--pl-brass); border: 0; border-radius: 10px; }

@media (max-width: 380px) {
  .rb-ch-title { font-size: 1.7rem; }
  .rb-camp { grid-template-columns: 52px 1fr; }
  .rb-art.rb-round { width: 52px; height: 52px; }
  .rb-titles h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rb *, .rb *::before, .rb *::after { animation: none !important; transition: none !important; }
}
