/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.rb-voile { position: fixed; inset: 0; z-index: 90; --k: min(1vw, 1.778vh); display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(20, 10, 4, .55), rgba(6, 3, 1, .86)); color: #2b1a0e;
  font-family: 'IM Fell English', Georgia, serif; font-weight: 400; line-height: 1.25; opacity: 0; transition: opacity .25s ease-out; }
.rb-voile.ouvert { opacity: 1; }
.rb-voile.sortie { opacity: 0; transition: opacity .2s ease-in; pointer-events: none; }
.rb-voile button { font-family: inherit; }
.rb-scene { position: relative; width: calc(100 * var(--k)); height: calc(56.25 * var(--k)); display: grid; place-items: center; }
.rb-feuille { position: relative; width: calc(50 * var(--k)); min-height: calc(36 * var(--k)); box-sizing: border-box;
  padding: calc(6.2 * var(--k)) calc(5 * var(--k)) calc(3.6 * var(--k)); display: flex; flex-direction: column; align-items: center; text-align: center;
  background: url(interface/gazette_lettre_page.png?v=3afd9cb5) center / 100% 100% no-repeat;
  filter: drop-shadow(0 calc(1 * var(--k)) calc(1.4 * var(--k)) rgba(0, 0, 0, .7));
  transform: rotate(-.8deg) translateY(calc(-1.6 * var(--k))) scale(.97); transition: transform .25s cubic-bezier(.2, .8, .3, 1); }
.rb-voile.ouvert .rb-feuille { transform: rotate(-.8deg); }
.rb-feuille.rb-abimee { transform: rotate(.7deg) translateY(calc(-1.6 * var(--k))) scale(.97); }
.rb-voile.ouvert .rb-feuille.rb-abimee { transform: rotate(.7deg); }
.rb-sceau { position: absolute; top: calc(-3.2 * var(--k)); left: 50%; width: calc(8 * var(--k)); height: calc(8 * var(--k)); margin-left: calc(-4 * var(--k));
  background: url(interface/bilan_sceau_nation_brise.png?v=90b25b90) center / contain no-repeat; transform: rotate(-9deg);
  filter: drop-shadow(0 calc(.3 * var(--k)) calc(.35 * var(--k)) rgba(0, 0, 0, .6)); }
.rb-abimee .rb-sceau { background-image: url(interface/gazette_sceau_brise_bord.png?v=9201c97b); transform: rotate(7deg); }
.rb-titre { margin: 0 0 calc(1.3 * var(--k)); font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif; font-weight: 400; font-size: calc(2.6 * var(--k));
  line-height: 1.1; color: #1f140b; letter-spacing: .02em; }
.rb-texte, .rb-aide, .rb-le { text-wrap: balance; }   
.rb-titre { text-wrap: balance; }
.rb-texte { margin: 0 0 calc(.9 * var(--k)); font-size: calc(1.75 * var(--k)); color: #2b1a0e; max-width: 92%; }
.rb-le { margin: calc(-.4 * var(--k)) 0 calc(.9 * var(--k)); font-size: calc(1.3 * var(--k)); font-style: italic; color: #6a4a28; }
.rb-aide { margin: calc(.6 * var(--k)) 0 calc(.5 * var(--k)); font-size: calc(1.35 * var(--k)); font-style: italic; color: #5a3d22; }
.rb-code { display: flex; flex-direction: column; gap: calc(.2 * var(--k)); width: 92%; box-sizing: border-box; padding: calc(.8 * var(--k)) calc(1.2 * var(--k));
  border: 1px solid rgba(90, 60, 30, .45); border-radius: calc(.3 * var(--k)); background: rgba(120, 80, 40, .08); box-shadow: inset 0 0 calc(.8 * var(--k)) rgba(90, 60, 30, .18);
  font-family: 'Courier New', Courier, monospace; font-size: calc(1.2 * var(--k)); color: #3a2414; text-align: left; user-select: text; -webkit-user-select: text; cursor: text; }
.rb-code span { overflow-wrap: anywhere; }
.rb-code span:first-child { font-weight: 700; letter-spacing: .02em; }
.rb-code:focus-visible { outline: 2px solid rgba(125, 26, 16, .6); outline-offset: 2px; }
.rb-sceaux { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: calc(.6 * var(--k)) calc(3 * var(--k)); margin-top: calc(1.8 * var(--k)); }
.rb-bouton { all: unset; display: inline-flex; align-items: center; gap: calc(.6 * var(--k)); cursor: pointer; font-family: 'IM Fell English', Georgia, serif;
  font-size: calc(1.6 * var(--k)); color: #3a2414; white-space: nowrap; }
.rb-cire { flex: none; width: calc(2.8 * var(--k)); height: calc(2.8 * var(--k)); background: url(interface/bilan_sceau_nation.png?v=91f54340) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); transition: transform .12s, filter .12s; }
.rb-bouton.principal { font-size: calc(2 * var(--k)); color: #2b1a0e; }
.rb-bouton.principal .rb-cire { width: calc(3.8 * var(--k)); height: calc(3.8 * var(--k)); }
.rb-bouton:not(.principal) .rb-cire { filter: grayscale(.6) sepia(.4) brightness(.95) drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.rb-bouton:hover .rb-cire, .rb-bouton:focus-visible .rb-cire { transform: scale(1.12) translateY(-1px); filter: brightness(1.2) drop-shadow(0 0 calc(.45 * var(--k)) rgba(255, 196, 110, .75)); }
.rb-bouton:hover span, .rb-bouton:focus-visible span { color: #7d1a10; }
.rb-bouton:active .rb-cire { transform: scale(.9); filter: brightness(.8) drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }
.rb-voile.calme, .rb-voile.calme .rb-feuille, .rb-voile.calme .rb-cire { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rb-voile, .rb-voile .rb-feuille, .rb-voile .rb-cire { transition: none; }
}
html.sans-livre-fond #modal:not(.accueil) > #modal-box > .livre { background: linear-gradient(#ecdcb2, #ecdcb2) 15.5% 6% / 33.6% 85% no-repeat,
  linear-gradient(#ecdcb2, #ecdcb2) 84.5% 6% / 33.6% 85% no-repeat, #3a2414 !important; }
html.sans-livre-fond .livre .lv-fond { visibility: hidden; }
html.sans-menu-livre #menu-bureau .mn-livre-fond { visibility: hidden; }
html.sans-menu-livre #menu-bureau .mn-page { background: #ecdcb2; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
html.sans-comptoir-page .jour.cpt .cpt-livre::before { background: #ecdcb2; border-radius: 4px; }
html.sans-comptoir-jeton .jour.cpt .cpt-jeton { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f1d68a, #b88a2c 70%, #7a5614); }
html.sans-comptoir-jeton .jour.cpt .cpt-jeton.cuivre { background: radial-gradient(circle at 35% 35%, #e9a77a, #a35a2c 70%, #6a3414); }
html.sans-parch-grande:not(.mobile) #panneau.colonne-v699 .pan-corps::before { background: #e9d9b0; border-radius: 6px; }
html.sans-parch-grande:not(.mobile) #panneau.colonne-v699 .pan-corps:not(:has(> .cp-fiche)) { background: #e9d9b0 !important; border-radius: 6px !important; }
html.sans-parch-large:not(.mobile) #panneau.colonne-v699 :is(.pan-tete, .pan-dock)::before { background: #e9d9b0; border-radius: 6px; }
html.sans-gazette-etiquette .gazette-scene .gz-etiquette { background: linear-gradient(to right, transparent 44%, #efe0b8 44%); border-radius: 3px; }
