/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.bo-scene .cg-lignes { gap: .35em; }
.bo-scene .bo-ligne .cg-mots { flex: 1; min-width: 0; display: block; }
.bo-scene .bo-ligne:has(.bo-pieces, .bo-terme) .cg-mots > b { display: inline; }
.bo-scene .bo-ligne:has(.bo-pieces, .bo-terme) .cg-mots > .cg-phrase { display: inline; margin-left: .5em; font-size: .85em; }
.bo-scene .bo-ligne:has(.bo-pieces, .bo-terme) .cg-mots > .cg-phrase::after { content: '\A'; white-space: pre; }
.bo-scene .bo-fleche { font-size: .8em; }
.bo-scene .bo-fleche.monte { color: #2f6a1e; }
.bo-scene .bo-fleche.baisse { color: #a01a10; }
.bo-scene .bo-fleche.egal { color: #8a6a3a; }
.bo-scene .bo-gain { font-style: normal; font-weight: 700; }
.bo-scene .bo-gain.monte { color: #2f6a1e; }
.bo-scene .bo-gain.baisse { color: #a01a10; }
.bo-scene .bo-prix { font-variant-numeric: tabular-nums; }
.bo-scene .bo-pieces { display: inline-flex; gap: .25em; margin: .2em .5em 0 0; vertical-align: middle; }
.bo-scene .bo-piece { all: unset; position: relative; width: 1.75em; height: 1.75em; cursor: var(--c-main, pointer); transition: transform .08s, filter .12s; }
.bo-scene .bo-piece img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 .08em 0 rgba(0, 0, 0, .45)); }
.bo-scene .bo-piece i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: .7em; color: #2a1608; text-shadow: 0 0 .2em #f6e7bf; }
.bo-scene .bo-piece:hover { transform: translateY(-.1em) rotate(-4deg); filter: brightness(1.12); }
.bo-scene .bo-piece:active { transform: translateY(.08em) scale(.94); }
.bo-scene .bo-piece[disabled] { filter: grayscale(.9) brightness(.7); cursor: default; transform: none; }
.bo-scene .bo-terme { display: inline-flex; gap: .4em; vertical-align: middle; }
.bo-scene .bo-t { display: inline-block; margin-top: .2em; font-size: .8em; }
.bo-scene .bo-court { color: #8a1e14; font-weight: 700; }
.bo-scene .bo-ordre { display: inline-block; margin-left: .5em; padding: .05em .4em; font-size: .78em; color: #8a1e14; border: .08em solid #8a1e14; border-radius: .9em; transform: rotate(-2deg); }
.bo-scene .bo-corde { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; margin-top: .5em; font-size: .82em; color: #4a2a12; }
.bo-scene .bo-corde-rail { position: relative; flex: 1; min-width: 6em; height: .5em; border-radius: .3em; background: repeating-linear-gradient(115deg, #d8bf8a 0 .3em, #9c7a44 .3em .45em); box-shadow: inset 0 0 0 .08em #5a3a14; overflow: hidden; }
.bo-scene .bo-corde-rail i { position: absolute; inset: 0 auto 0 0; width: calc(100% * var(--f, 0)); background: repeating-linear-gradient(115deg, #b8862e 0 .3em, #6e4a18 .3em .45em); }
.bo-scene .bo-corde.appel .bo-corde-rail i { background: repeating-linear-gradient(115deg, #c0392b 0 .3em, #7a1a10 .3em .45em); }
.bo-scene .bo-corde-chiffre { font-variant-numeric: tabular-nums; }
.bo-scene .bo-appel { color: #a01a10; font-weight: 700; }
.bo-criteres { list-style: none; margin: .6em 0; padding: 0; }
.bo-criteres li { margin: .15em 0; }
.bo-criteres .bo-ok { color: #2f6a1e; }
.bo-criteres .bo-non { color: #a01a10; }
.bo-passage { position: fixed; left: 0; bottom: 0; width: 100vw; height: auto; aspect-ratio: 768 / 120; z-index: 9800; pointer-events: none; image-rendering: pixelated; }
#rp-ng.bo-bu .rp-parole { left: 0; top: auto; bottom: 12%; display: block; width: 52cqw; height: 22cqw; gap: 0; opacity: 0; transform: translateX(-4cqw);
  transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; z-index: 6; }
#rp-ng.bo-bu .rp-parole.vu { opacity: 1; transform: none; }
#rp-ng.bo-bu .rp-med { position: absolute; left: -.6cqw; bottom: 0; width: 19cqw; height: 19cqw; border-radius: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
#rp-ng.bo-bu .rp-med img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 0; image-rendering: auto;
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 52% 60% at 50% 46%, #000 62%, transparent 100%);
  filter: drop-shadow(0 .4cqw .6cqw rgba(0, 0, 0, .55)); transform-origin: 50% 100%; animation: bo-bu-souffle 4.4s ease-in-out infinite alternate; }
@keyframes bo-bu-souffle { from { transform: scale(1); } to { transform: scale(1.016); } }
#rp-ng.bo-bu .rp-med.surpris { transform: none; box-shadow: none; }
#rp-ng.bo-bu .rp-med.surpris img { animation: bo-bu-sursaut .3s ease-out; }
@keyframes bo-bu-sursaut { 30% { transform: scale(1.05) translateY(-.4cqw); } }
#rp-ng.bo-bu .rp-med .emoji-seul { font-size: 9cqw; }
#rp-ng.bo-bu .rp-bulle { position: absolute; left: 15cqw; bottom: 12.5cqw; width: max-content; max-width: 34cqw; margin: 0; box-sizing: border-box; padding: .3cqw 1cqw .5cqw;
  background: none; border-style: solid; border-width: 1.2cqw; border-image: url(interface/kit_bande.png?v=b51fcec8) 110 fill / 1.2cqw stretch; box-shadow: none; border-radius: 0;
  filter: drop-shadow(0 .4cqw .7cqw rgba(0, 0, 0, .6)); }
#rp-ng.bo-bu .rp-parole.vu .rp-bulle { animation: bo-bu-cartouche .3s ease-out both; }
@keyframes bo-bu-cartouche { from { opacity: 0; translate: 0 .6cqw; } to { opacity: 1; translate: 0 0; } }
#rp-ng.bo-bu .rp-bulle b { position: absolute; left: -.4cqw; top: -1.35em; z-index: 2; padding: .1em .5em .18em; border-style: solid; border-width: .32em .9em;
  border-image: url(interface/ui_plaque_chene.png?v=1771689d) 22 44 fill / .32em .9em stretch; font: normal clamp(13px, 1.25cqw, 22px)/1.02 'IM Fell English SC', serif;
  color: #f8e9c2; text-shadow: 0 2px 0 #3a1d08, 0 0 3px rgba(0, 0, 0, .6); white-space: nowrap; }
#rp-ng.bo-bu .rp-bulle q { font: italic 600 clamp(16px, 1.7cqw, 30px)/1.28 Alegreya, 'Palatino Linotype', Georgia, serif; color: #f3e6c8; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { #rp-ng.bo-bu .rp-med img, #rp-ng.bo-bu .rp-parole.vu .rp-bulle { animation: none; } #rp-ng.bo-bu .rp-parole { transition: none; } }
html.sans-ambiance #rp-ng.bo-bu .rp-med img { animation: none; }
.bo-scene .bo-parle { display: none; }
html.buste:not(.mobile) .bo-scene.bu-e-bourse .bo-parle { opacity: 0; transition: opacity .3s ease-out; }
html.buste:not(.mobile) .bo-scene.bu-e-bourse .bo-parle.vu { opacity: 1; }
html.buste:not(.mobile) .bo-scene.bu-e-bourse .bo-parle.tu { opacity: 0; }
html.buste:not(.mobile) .bo-scene.bu-e-bourse :is(.gp-med, .cg-med-nom, .gp-agrafe) { display: none !important; }
html.buste:not(.mobile) .bo-scene.bu-e-bourse .bo-parle, html.buste:not(.mobile) .bo-scene.bu-e-bourse .bo-parle * { pointer-events: none !important; }
@media (prefers-reduced-motion: reduce) { html.buste .bo-scene.bu-e-bourse .bo-parle { transition: none; } }
