/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.regle-dite { position: fixed; inset: 0; z-index: 9200; user-select: none; -webkit-user-select: none; cursor: pointer; animation: rd-voile .3s ease-out both; }
@keyframes rd-voile { from { opacity: 0; } to { opacity: 1; } }
.regle-dite.part { opacity: 0; transition: opacity .25s; }
.regle-dite .rd-ombre { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.regle-dite .rd-nuit { fill: rgba(8, 6, 4, .68); }
.regle-dite.sans-cible .rd-nuit { fill: rgba(8, 6, 4, .72); }
.regle-dite .rd-halos { position: absolute; inset: 0; pointer-events: none; }
.regle-dite .rd-halo { position: absolute; box-sizing: border-box; border: 2px solid rgba(240, 201, 90, .95); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(46, 22, 6, .85), 0 0 16px 3px rgba(240, 201, 90, .55), inset 0 0 14px rgba(255, 214, 120, .35);
  animation: rd-halo 1.5s ease-in-out infinite alternate, rd-halo-entre .35s ease-out both; }
.regle-dite .rd-halo.rond { border-radius: 50%; }
.regle-dite .rd-halo:not(.premier) { border-color: rgba(240, 201, 90, .7); }
@keyframes rd-halo { from { box-shadow: 0 0 0 1px rgba(46, 22, 6, .85), 0 0 10px 2px rgba(240, 201, 90, .4), inset 0 0 10px rgba(255, 214, 120, .25); }
  to { box-shadow: 0 0 0 1px rgba(46, 22, 6, .85), 0 0 22px 6px rgba(240, 201, 90, .7), inset 0 0 18px rgba(255, 214, 120, .45); } }
@keyframes rd-halo-entre { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
.regle-dite .rd-fleche { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.regle-dite .rd-f-fond { fill: none; stroke: #2a1606; stroke-width: 9; stroke-linecap: round; opacity: .9; animation: rd-f-paraitre .2s ease-out both; }
.regle-dite .rd-f-or { fill: none; stroke: #f0c95a; stroke-width: 5; stroke-linecap: round; animation: rd-f-trace .45s .05s ease-out forwards; }
.regle-dite .rd-f-reflet { fill: none; stroke: #fff3c4; stroke-width: 1.3; stroke-linecap: round; opacity: 0; animation: rd-f-paraitre .2s .45s ease-out forwards; }
.regle-dite .rd-f-pointe { fill: #f0c95a; stroke: #2a1606; stroke-width: 2.6; stroke-linejoin: round; opacity: 0; animation: rd-f-paraitre .15s .42s ease-out forwards; }
.regle-dite .rd-f-g { animation: rd-f-montre 1.3s .7s ease-in-out infinite alternate; }
@keyframes rd-f-trace { to { stroke-dashoffset: 0; } }
@keyframes rd-f-paraitre { from { opacity: 0; } to { opacity: 1; } }
@keyframes rd-f-montre { from { translate: 0 0; } to { translate: var(--fx, 0) var(--fy, 0); } }
.regle-dite .rd-carte { position: absolute; left: 0; top: 0; box-sizing: border-box; width: min(500px, calc(100vw - 28px)); display: flex; flex-direction: column; gap: 8px;
  padding: 8px 18px 10px; border-style: solid; border-width: 16px; border-image: url(interface/kit_bande.png?v=b51fcec8) 110 fill / 16px stretch;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .65)); visibility: hidden; transition: left .32s cubic-bezier(.3, .8, .3, 1), top .32s cubic-bezier(.3, .8, .3, 1); }
.regle-dite .rd-carte.neuve { visibility: visible; animation: rd-carte .3s ease-out both; }
@keyframes rd-carte { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.regle-dite .rd-tete { display: flex; align-items: center; gap: 10px; }
.regle-dite .rd-med { flex: none; width: 58px; height: 58px; margin: -14px 0 -6px -10px; display: flex; align-items: center; justify-content: center;
  background: url(interface/ui_medaillon.png?v=157f5cb8) center / 100% 100% no-repeat; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.regle-dite .rd-med img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: #1a2340; display: block; }
.regle-dite .rd-med .emoji-seul { font-size: 24px; }
.regle-dite .rd-buste { position: absolute; left: 0; bottom: 0; width: 300px; height: 300px; pointer-events: none; animation: rd-buste .35s cubic-bezier(.2, .8, .2, 1) both; }
.regle-dite .rd-buste.d { left: auto; right: 0; animation-name: rd-buste-d; }
@keyframes rd-buste { from { opacity: 0; translate: -30px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes rd-buste-d { from { opacity: 0; translate: 30px 0; } to { opacity: 1; translate: 0 0; } }
.regle-dite .rd-buste :is(img, canvas) { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; image-rendering: pixelated;
  -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 6px 10px rgba(0, 0, 0, .6)); transform-origin: 50% 100%; animation: bu-souffle 4.4s ease-in-out infinite alternate; }
.regle-dite .rd-buste.d :is(img, canvas) { scale: -1 1; }
.regle-dite.rd-a-buste .rd-med { display: none; }
.regle-dite .rd-buste:not(:has(img, canvas)), .regle-dite .rd-buste.emoji { display: none; }   
.regle-dite.rd-a-buste .rd-tete { padding-top: 2px; }
.regle-dite.part .rd-buste { opacity: 0; transition: opacity .25s; }
@media (prefers-reduced-motion: reduce) { .regle-dite .rd-buste, .regle-dite .rd-buste :is(img, canvas) { animation: none; } }
html.sans-ambiance .regle-dite .rd-buste, html.sans-ambiance .regle-dite .rd-buste :is(img, canvas) { animation: none; }
.regle-dite .rd-qui { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.regle-dite .rd-nom { font: 17px/1.05 var(--titre, 'IM Fell English SC', serif); color: #f8e9c2; text-shadow: 0 2px 0 #1a0e05; }
.regle-dite .rd-titre { font: italic 600 14px/1.1 Alegreya, Georgia, serif; color: #f0c95a; letter-spacing: .02em; }
.regle-dite .rd-points { display: flex; gap: 6px; align-self: flex-start; margin-top: 2px; }
.regle-dite .rd-points i { width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; border: 1px solid #7a5418; background: rgba(240, 201, 90, .18); }
.regle-dite .rd-points i.fait { background: #b8902e; }
.regle-dite .rd-points i.ici { background: #f0c95a; box-shadow: 0 0 5px rgba(240, 201, 90, .9); }
.regle-dite .rd-txt { margin: 0; font: italic 600 21px/1.36 Alegreya, 'Palatino Linotype', Georgia, serif; color: #fff4d6; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.regle-dite .rd-touches:empty { display: none; }
.regle-dite .rd-plaque { --s: calc(44px / 407); display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: 44px; padding: 0 2px;
  border-style: solid; border-color: transparent; border-width: calc(100 * var(--s)) calc(170 * var(--s)) calc(66 * var(--s));
  border-image: url(interface/canon_plaque_tir.png?v=abd4ab83) 100 170 66 fill / calc(100 * var(--s)) calc(170 * var(--s)) calc(66 * var(--s)) stretch;
  rotate: -1deg; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
.regle-dite .rd-plaque kbd { font: 700 16px/1 Alegreya, Georgia, serif; padding: 3px 8px 4px; border-radius: 5px; color: #3a2412; background: #f1e2bf; box-shadow: 0 2px 0 #6b4a22; white-space: nowrap; }
.regle-dite .rd-plaque i { font: italic 600 15px/1 Alegreya, Georgia, serif; color: #e8d2a0; }
.regle-dite .rd-pied { display: flex; justify-content: flex-end; align-items: center; min-height: 34px; margin-top: -2px; }
.regle-dite .rd-suite { position: relative; padding: 4px 18px 4px 11px; font: italic 700 15px/1.1 Alegreya, Georgia, serif; color: #7a1a10; rotate: -2deg; opacity: .55;
  background: linear-gradient(225deg, transparent 0 8px, rgba(122, 84, 24, .55) 8px 9.5px, #f4e6c4 9.5px);
  box-shadow: 1px 2px 2px rgba(40, 20, 6, .45), inset 0 0 0 1px rgba(122, 84, 24, .35); transition: opacity .25s; }
.regle-dite .rd-suite::after { content: ''; position: absolute; right: 0; top: 0; width: 9px; height: 9px; background: linear-gradient(225deg, transparent 50%, #d9bf8a 50%); box-shadow: -1px 1px 1px rgba(40, 20, 6, .35); }
.regle-dite.dite .rd-suite { opacity: 1; animation: rd-appel 1.4s .4s ease-in-out infinite; }
.regle-dite .rd-passe { position: relative; margin-right: auto; padding: 3px 16px 3px 10px; font: italic 700 13px/1.1 Alegreya, Georgia, serif; color: #5a3a1a; rotate: 1.5deg; opacity: .75; cursor: pointer;
  background: linear-gradient(225deg, transparent 0 7px, rgba(122, 84, 24, .55) 7px 8.5px, #ecdcb4 8.5px);
  box-shadow: 1px 2px 2px rgba(40, 20, 6, .4), inset 0 0 0 1px rgba(122, 84, 24, .3); transition: opacity .2s, translate .2s; }
.regle-dite .rd-passe::after { content: ''; position: absolute; right: 0; top: 0; width: 8px; height: 8px; background: linear-gradient(225deg, transparent 50%, #d2b680 50%); box-shadow: -1px 1px 1px rgba(40, 20, 6, .3); }
.regle-dite .rd-passe:hover { opacity: 1; color: #7a1a10; }
.regle-dite .rd-passe:active { translate: 0 1px; }
.regle-dite.derniere .rd-suite { display: none; }
.regle-dite:not(.derniere) .rd-sceau { display: none; }
.regle-dite.derniere .rd-pied { min-height: 84px; }
.regle-dite .rd-sceau { position: relative; width: 80px; height: 80px; margin: -6px 4px 6px 0; cursor: pointer; opacity: 0; scale: 1.6; pointer-events: none; rotate: -8deg;
  transition: opacity .18s ease-in, scale .22s cubic-bezier(.3, 1.6, .5, 1); }
.regle-dite.pret .rd-sceau { opacity: 1; scale: 1; pointer-events: auto; animation: rd-appel 1.4s 1.2s ease-in-out infinite; }
.regle-dite.pret .rd-sceau.appel { animation: rd-tape .4s ease-in-out; }
.regle-dite .rd-cire { position: absolute; inset: 0; background: url(interface/comptoir_sceau_repos.png?v=746d2234) center / contain no-repeat; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
.regle-dite .rd-sceau:hover .rd-cire { background-image: url(interface/comptoir_sceau_survol.png?v=72550c88); }
.regle-dite .rd-sceau.presse .rd-cire { background-image: url(interface/comptoir_sceau_presse.png?v=ef9b655a); transform: translateY(2px) scale(.97); }
.regle-dite .rd-mot { position: absolute; left: 50%; bottom: -13px; translate: -50% 0; rotate: 6deg; padding: 2px 12px 3px; white-space: nowrap;
  font: italic 800 18px/1.1 Alegreya, Georgia, serif; color: #7a1a10; background: linear-gradient(225deg, transparent 0 7px, rgba(122, 84, 24, .55) 7px 8.5px, #f4e6c4 8.5px);
  box-shadow: 1px 2px 2px rgba(40, 20, 6, .5), inset 0 0 0 1px rgba(122, 84, 24, .35); }
@keyframes rd-appel { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes rd-tape { 0%, 100% { rotate: -8deg; } 30% { rotate: -14deg; } 65% { rotate: -3deg; } }
.regle-dite.calme *, .regle-dite.calme { animation: none !important; transition: none !important; }
.regle-dite.calme .rd-f-or { stroke-dashoffset: 0 !important; }
.regle-dite.calme .rd-f-reflet, .regle-dite.calme .rd-f-pointe { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .regle-dite, .regle-dite * { animation: none !important; transition: none !important; }
  .regle-dite .rd-f-or { stroke-dashoffset: 0 !important; }
  .regle-dite .rd-f-reflet, .regle-dite .rd-f-pointe { opacity: 1; }
}
@media (max-width: 1100px), (max-height: 640px) {
  .regle-dite .rd-carte { width: min(440px, calc(100vw - 28px)); padding: 6px 14px 8px; gap: 6px; }
  .regle-dite .rd-txt { font-size: 19px; line-height: 1.32; }
  .regle-dite.derniere .rd-pied { min-height: 76px; }
}
.regle-dite.rd-volante { z-index: 9150; pointer-events: none; cursor: auto; }
.regle-dite.rd-volante * { pointer-events: none !important; }
.regle-dite.rd-volante .rd-carte { width: min(460px, calc(100vw - 28px)); }
.regle-dite.rd-volante .rd-txt { font-size: 20px; }
.regle-dite.rd-volante .rd-halo { animation: rd-halo 1.1s ease-in-out infinite alternate, rd-halo-entre .35s ease-out both; }
.rd-icone { position: absolute; z-index: 5; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; pointer-events: auto;
  background: radial-gradient(circle at 50% 45%, rgba(60, 36, 14, .75), rgba(30, 16, 6, .55) 70%, transparent 72%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); transition: transform .15s, filter .15s; }
.rd-icone img { position: absolute; inset: 7px; width: 30px; height: 30px; object-fit: contain; pointer-events: none; }
.rd-icone:hover { transform: rotate(-8deg) scale(1.1); filter: drop-shadow(0 0 6px rgba(255, 210, 90, .9)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.rd-icone.presse { transform: scale(.94) translateY(1px); filter: brightness(.85) drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
#escale .rd-icone.cn-regle-ico { left: 1.2cqw; top: 13cqw; width: 3.2cqw; height: 3.2cqw; }
#escale .rd-icone.cn-regle-ico img { inset: 12%; width: 76%; height: 76%; }
#bf-ng .rd-icone.bf-regle-ico { right: 1.4%; top: 2.6%; width: max(3.4cqw, 34px); height: max(3.4cqw, 34px); }
#bf-ng .rd-icone.bf-regle-ico img { inset: 12%; width: 76%; height: 76%; }
