/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html:not(.mobile) #modal-box > .rg-accueil { display: flex; flex-direction: column; gap: 10px; }
html:not(.mobile) #modal-box > .rg-accueil > h2 { margin-bottom: 2px; }
.rg-accueil .rg-tableau { position: relative; width: 100%; aspect-ratio: 2000 / 661; max-height: 46vh; margin: 0 auto; border: 3px solid #8a6a3a; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); overflow: hidden; }
html #modal-box .rg-accueil .rg-tableau .illu.rg-toile { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; margin: 0 !important; object-fit: cover; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.rg-accueil .rg-champ { position: absolute; left: 2.2%; top: 7%; max-width: 46%; padding: 7px 16px 8px; color: #3b2612; rotate: -1deg;
  background: url(interface/ui_papier.png?v=66fa38b6) center / 256px 256px, #ead9b0; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .55));
  box-shadow: inset 0 2px 0 rgba(255, 248, 225, .7), inset 0 -2px 0 rgba(120, 85, 40, .45); font-size: 14.5px; line-height: 1.25; display: flex; flex-direction: column; gap: 1px; }
.rg-accueil .rg-champ b { font-weight: 800; }
.rg-accueil .rg-champ i { color: #6b2a10; }
.rg-accueil .rg-notes { position: absolute; right: 2%; bottom: 6%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rg-accueil .rg-note { padding: 4px 12px 5px; color: #3b2612; font-size: 13.5px; font-style: italic; background: url(interface/ui_papier.png?v=66fa38b6) center / 256px 256px, #ead9b0;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); rotate: .8deg; }
.rg-accueil .rg-note:nth-child(2) { rotate: -.6deg; }
.rg-accueil .rg-plaque { --h: 150px; --s: calc(var(--h) / 407); position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: 6px; min-height: var(--h); box-sizing: border-box;
  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;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .55)); margin: 0 -4px; padding: 0 4px; }
.rg-accueil .rg-case { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; position: relative; }
.rg-accueil .rg-case + .rg-case::before { content: ''; position: absolute; left: -4px; top: 10%; bottom: 10%; width: 2px; background: linear-gradient(transparent, rgba(222, 180, 90, .55), transparent); }
.rg-accueil .rg-grave { font-family: 'IM Fell English SC', Alegreya, Georgia, serif; font-size: 14px; letter-spacing: .04em; color: #e2bf72; text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 230, 160, .18); }
.rg-accueil .rg-rang { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rg-accueil .rg-sceau { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; color: #f3e6c8;
  font: 800 13.5px/1.1 Alegreya, Georgia, serif; text-shadow: 0 2px 0 #1a0e05, 0 0 4px rgba(0, 0, 0, .7); transition: translate .25s, filter .25s; filter: brightness(.7) saturate(.6); }
.rg-accueil .rg-sceau img { width: 50px; height: 50px; }
.rg-accueil .rg-sceau:first-child { rotate: -4deg; } .rg-accueil .rg-sceau:nth-child(2) { rotate: 3deg; }
.rg-accueil .rg-sceau.choisi { filter: drop-shadow(0 0 7px rgba(255, 196, 70, .75)); }
.rg-accueil .rg-sceau:hover, .rg-accueil .rg-sceau:focus-visible { translate: 0 -2px; filter: brightness(1.05) drop-shadow(0 0 7px rgba(255, 196, 70, .75)); outline: 0; }
.rg-accueil .rg-sceau:active { translate: 0 1px; }
.rg-accueil .rg-jeton { position: relative; width: 62px; height: 62px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; rotate: var(--a, 0deg);
  background: url(interface/comptoir_jeton_laiton.png?v=8db10f3b) center / 100% 100% no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #3b2410; font-family: Alegreya, Georgia, serif; text-shadow: 0 1px 0 rgba(255, 240, 190, .55); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); transition: translate .25s, filter .25s; }
.rg-accueil .rg-jeton-prix { font-size: 15px; font-weight: 800; line-height: 1; }
.rg-accueil .rg-jeton small { font-size: 11px; line-height: 1; }
.rg-accueil .rg-jeton:hover:not([disabled]), .rg-accueil .rg-jeton:focus-visible:not([disabled]) { translate: 0 -3px; outline: 0;
  filter: drop-shadow(0 0 7px rgba(255, 210, 90, .85)) drop-shadow(0 3px 3px rgba(0, 0, 0, .55)) brightness(1.08); }
.rg-accueil .rg-jeton:active:not([disabled]) { translate: 0 1px; filter: brightness(.95) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.rg-accueil .rg-jeton[disabled] { cursor: default; filter: grayscale(.7) brightness(.6) drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
.rg-accueil .rg-touches .rg-rang { gap: 12px; }
.rg-accueil .rg-touche { display: inline-flex; align-items: center; gap: 3px; cursor: help; }
.rg-accueil .rg-touche img { width: 30px; height: 30px; object-fit: contain; filter: sepia(.7) saturate(.8) brightness(.95) drop-shadow(0 1px 0 rgba(0, 0, 0, .8)); }
html:not(.mobile) #modal-box .rg-accueil .rg-touche kbd { font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; padding: 3px 5px 4px; margin: 0; border: 0; border-radius: 4px;
  color: #3a2412 !important; background: #e9d29a; text-shadow: none; box-shadow: 0 2px 0 #6b4a22, 0 3px 3px rgba(0, 0, 0, .45); }
.rg-accueil .rg-sans .rg-rang { align-items: flex-start; }
.rg-accueil .rg-etiq { position: relative; margin-top: 14px; padding: 6px 12px 7px 14px; border: 0; cursor: pointer; rotate: var(--a, 0deg); transform-origin: 50% -14px;
  background: url(interface/ui_papier.png?v=66fa38b6) center / 256px 256px, #ead9b0; color: #3b2612; font: 700 13.5px/1.15 Alegreya, Georgia, serif; max-width: 150px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); transition: rotate .25s, translate .25s, filter .25s; }
.rg-accueil .rg-etiq .rg-ficelle { position: absolute; left: 50%; top: -14px; width: 1.5px; height: 14px; background: #b99a62; }
.rg-accueil .rg-etiq { overflow: visible; }
.rg-accueil .rg-etiq:hover, .rg-accueil .rg-etiq:focus-visible { rotate: 0deg; translate: 0 -1px; outline: 0; filter: drop-shadow(0 0 6px rgba(255, 196, 70, .8)) drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
.rg-accueil .rg-etiq.luit { animation: rg-luit 1.8s ease-in-out infinite; }
@keyframes rg-luit { 0%, 100% { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); } 50% { filter: drop-shadow(0 0 8px rgba(255, 196, 70, .85)) drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); } }
.rg-accueil .rg-sans .rg-rang > .rg-etiq { clip-path: none; border-radius: 2px; }
.rg-sortie { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; color: #e8cfa6;
  font: 700 13px/1.1 Alegreya, Georgia, serif; text-shadow: 0 2px 0 #120a04, 0 0 4px rgba(0, 0, 0, .7); }
.rg-sortie .rg-sortie-cire { width: 46px; height: 46px; background: url(interface/sceau_fermer_repos.png?v=f7075058) center / contain no-repeat; transition: translate .25s; }
.rg-sortie:hover .rg-sortie-cire, .rg-sortie:focus-visible .rg-sortie-cire { background-image: url(interface/sceau_fermer_survol.png?v=19783679); translate: 0 -2px; }
.rg-sortie:active .rg-sortie-cire { background-image: url(interface/sceau_fermer_presse.png?v=f86183d8); translate: 0 1px; }
.rg-sortie:focus-visible { outline: 0; }
.rg-accueil .rg-fin { padding-right: 2px; }
html:not(.mobile) #modal-box > .rg-arcade { text-align: center; }
.rg-arcade .rg-chapeau { margin: 0 0 12px; color: #d8c49c; font-style: italic; }
.rg-arcade .rg-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 4px 6px 10px; }
.rg-arcade .rg-course { --h: 104px; --s: calc(var(--h) / 407); position: relative; min-height: var(--h); box-sizing: border-box; cursor: pointer; rotate: var(--a, 0deg); translate: var(--dx, 0px) var(--dy, 0px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 6px; background: none;
  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;
  color: #f3e6c8; font-family: Alegreya, Georgia, serif; text-shadow: 0 2px 0 #1a0e05, 1px 0 0 #1a0e05, -1px 0 0 #1a0e05; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); transition: rotate .25s, translate .25s, filter .25s; }
.rg-arcade .rg-course b { font-family: 'IM Fell English SC', Alegreya, Georgia, serif; font-weight: 400; font-size: 21px; color: #f2d58a; line-height: 1.05; }
.rg-arcade .rg-course small { font-size: 13.5px; line-height: 1.2; }
.rg-arcade .rg-course span { font-size: 12.5px; color: #d8c49c; }
.rg-arcade .rg-course:hover, .rg-arcade .rg-course:focus-visible { rotate: 0deg; translate: var(--dx, 0px) calc(var(--dy, 0px) - 2px); outline: 0;
  filter: drop-shadow(0 0 8px rgba(255, 196, 70, .75)) drop-shadow(0 4px 4px rgba(0, 0, 0, .5)) brightness(1.08); }
.rg-arcade .rg-course:active { translate: var(--dx, 0px) calc(var(--dy, 0px) + 1px); filter: brightness(.95) drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.rg-arcade .rg-course-champ { grid-column: 1 / -1; width: 70%; justify-self: center; }
.rg-arcade .rg-pied { display: flex; justify-content: center; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .rg-accueil *, .rg-arcade *, .rg-sortie * { transition: none !important; animation: none !important; }
}
html.sans-ambiance .rg-accueil .rg-etiq.luit { animation: none; }
@media (max-height: 800px) {
  .rg-accueil .rg-plaque { --h: 128px; }
  .rg-accueil .rg-tableau { max-height: 40vh; }
  .rg-arcade .rg-course { --h: 88px; }
  .rg-arcade .rg-course b { font-size: 18px; }
}
html:not(.mobile) #modal-box .regate .rg-pupitre { --h: 118px; --s: calc(var(--h) / 407); position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) 130px; align-items: stretch; gap: 6px;
  min-height: var(--h); box-sizing: border-box; margin: 2px -4px 0; padding: 0 6px;
  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;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .55)); }
html:not(.mobile) #modal-box .regate .rg-pp-case { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 14px; }
html:not(.mobile) #modal-box .regate .rg-pp-case + .rg-pp-case::before { content: ''; position: absolute; left: -4px; top: 8%; bottom: 8%; width: 2px; background: linear-gradient(transparent, rgba(222, 180, 90, .55), transparent); }
html:not(.mobile) #modal-box .regate .rg-pupitre .rg-grave { font-family: 'IM Fell English SC', Alegreya, Georgia, serif; font-size: 14px; line-height: 1; letter-spacing: .04em; color: #e2bf72;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 230, 160, .18); }
html:not(.mobile) #modal-box .regate .rg-pp-rang { display: flex; align-items: center; justify-content: center; gap: 22px; }
html:not(.mobile) #modal-box .regate .rg-pp-pilote .rg-pp-poignee.rg-pp-g { margin-right: 10px; }
html:not(.mobile) #modal-box .regate .rg-pp-pilote .rg-pp-poignee.rg-pp-d { margin-left: 10px; }
html:not(.mobile) #modal-box .regate .rg-pupitre kbd { font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1; padding: 4px 8px 5px; margin: 0; border: 0; border-radius: 4px;
  color: #3a2412 !important; background: #e9d29a; text-shadow: none; box-shadow: 0 3px 0 #6b4a22, 0 4px 4px rgba(0, 0, 0, .45); transition: transform .08s, box-shadow .08s, background .12s; }
html:not(.mobile) #modal-box .regate .rg-pupitre kbd.fl { min-width: 28px; box-sizing: border-box; text-align: center; font-family: 'Segoe UI Symbol', 'Segoe UI', sans-serif; font-size: 17px; font-weight: 900; padding: 3px 6px 4px; }
html:not(.mobile) #modal-box .regate .rg-pp-poignee { position: relative; width: 58px; height: 58px; background: center / contain no-repeat; cursor: pointer; touch-action: none; user-select: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6)); transition: transform .12s, filter .15s; }
html:not(.mobile) #modal-box .regate .rg-pp-g { background-image: url(interface/canon_poignee_g.png?v=720786cf); transform: rotate(-1.5deg); }
html:not(.mobile) #modal-box .regate .rg-pp-d { background-image: url(interface/canon_poignee_d.png?v=7be9b1f8); transform: rotate(2deg); }
html:not(.mobile) #modal-box .regate .rg-pp-poignee kbd.fl { position: absolute; left: 50%; bottom: -9px; translate: -50% 0; min-width: 24px; font-size: 14px; padding: 1px 5px 2px; }
html:not(.mobile) #modal-box .regate .rg-pp-poignee:hover { filter: drop-shadow(0 0 7px rgba(255, 196, 70, .75)) drop-shadow(0 3px 3px rgba(0, 0, 0, .6)) brightness(1.1); }
html:not(.mobile) #modal-box .regate .rg-pp-g.tenu { transform: scale(.94) rotate(-16deg); }
html:not(.mobile) #modal-box .regate .rg-pp-d.tenu { transform: scale(.94) rotate(16deg); }
html:not(.mobile) #modal-box .regate .rg-pp-g.tenu kbd { transform: rotate(16deg); }
html:not(.mobile) #modal-box .regate .rg-pp-d.tenu kbd { transform: rotate(-16deg); }
html:not(.mobile) #modal-box .regate .rg-pp-touche { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; touch-action: none; user-select: none; }
html:not(.mobile) #modal-box .regate .rg-pp-touche span { font: 800 14px/1 Alegreya, Georgia, serif; color: #f3e6c8; text-shadow: 0 2px 0 #1a0e05, 0 0 4px rgba(0, 0, 0, .7); }
html:not(.mobile) #modal-box .regate .rg-pp-touche:first-child { rotate: -1.5deg; }
html:not(.mobile) #modal-box .regate .rg-pp-touche:last-child { rotate: 1.2deg; }
html:not(.mobile) #modal-box .regate .rg-pp-touche:hover kbd { background: #f4e2b2; box-shadow: 0 3px 0 #6b4a22, 0 0 8px rgba(255, 196, 70, .75); }
html:not(.mobile) #modal-box .regate .rg-pp-touche.tenu kbd { transform: translateY(2px); background: #ffe9a8; box-shadow: 0 1px 0 #6b4a22, 0 0 10px rgba(255, 196, 70, .9); }
html:not(.mobile) #modal-box .regate .rg-pp-touche.tenu span { color: #ffe9a8; }
html:not(.mobile) #modal-box .regate .rg-pupitre .regate-ecoute { display: block; }
html:not(.mobile) #modal-box .regate .rg-pupitre .jauge.jauge-pousse { position: relative; display: block; width: 252px; height: auto; aspect-ratio: 780 / 110; border: 0; border-radius: 0; box-shadow: none;
  background: url(interface/canon_barre_jauge.png?v=4c33a047) center / 100% 100% no-repeat; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
html:not(.mobile) #modal-box .regate .rg-pp-rainure { position: absolute; left: 14.5%; right: 14.5%; top: 29%; bottom: 29%; border-radius: 6px; overflow: hidden; background: #2a140c;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .7); }
html:not(.mobile) #modal-box .regate .rg-pp-corde, html:not(.mobile) #modal-box .regate .rg-pp-toile { position: absolute; top: 0; bottom: 0; transition: width .08s linear; }
html:not(.mobile) #modal-box .regate .rg-pp-corde { left: 50%; width: calc(50% * var(--pp, 0)); border-radius: 0 6px 6px 0;
  background: repeating-linear-gradient(118deg, #d8443a 0 5px, #a02420 5px 7px, #6e1412 7px 8px); box-shadow: inset 0 2px 1px rgba(255, 190, 170, .45), inset 0 -2px 2px rgba(60, 0, 0, .55); }
html:not(.mobile) #modal-box .regate .rg-pp-toile { right: 50%; width: calc(50% * var(--pm, 0)); border-radius: 6px 0 0 6px; background: url(interface/canon_jauge_toile.png?v=79b6c2a1) right center / auto 100% repeat-x; }
html:not(.mobile) #modal-box .regate .rg-pupitre #regate-ideal { top: 0; bottom: 0; height: auto; width: 2px; margin-left: -1px; border-radius: 0; background: rgba(226, 191, 114, .55); box-shadow: none; opacity: 1; }
html:not(.mobile) #modal-box .regate .rg-pupitre #regate-ecoute { top: -1px; bottom: -1px; height: auto; width: 6px; margin-left: -3px; border-radius: 2px;
  background: linear-gradient(90deg, #8a6420, #f4d77a 45%, #b48c2c); box-shadow: 0 0 0 1px #2a140c, 0 0 4px rgba(0, 0, 0, .6); }
html:not(.mobile) #modal-box .regate .rg-pupitre .regate-objet { position: relative; display: grid; place-items: center; width: 56px; height: 56px; min-width: 0; padding: 0; margin: 0 0 4px; border: 0; border-radius: 50%;
  cursor: pointer; background: url(interface/comptoir_jeton_laiton.png?v=8db10f3b) center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
html:not(.mobile) #modal-box .regate .rg-pupitre .regate-objet .objet-ic { width: 30px; height: 30px; font-size: 22px; }
html:not(.mobile) #modal-box .regate .rg-pupitre .regate-objet .objet-ic img { width: 30px; height: 30px; }
html:not(.mobile) #modal-box .regate .rg-pupitre .regate-objet kbd { position: absolute; left: 50%; bottom: -8px; translate: -50% 0; font-size: 11px; padding: 2px 5px 3px; }
html:not(.mobile) #modal-box .regate .rg-pupitre .regate-objet[disabled] { cursor: default; filter: grayscale(.6) brightness(.6) drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
html:not(.mobile) #modal-box .regate .rg-pupitre .regate-objet.plein { animation: rg-objet 0.9s ease-in-out infinite; }
@keyframes rg-objet { 50% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 210, 63, .95)); } }
html:not(.mobile) #modal-box .regate .rg-pp-fin { padding-right: 4px; }
html:not(.mobile) #modal-box .regate .rg-pupitre .rg-sortie .rg-sortie-cire { width: 50px; height: 50px; }
html:not(.mobile) #modal-box .regate .rg-pupitre .tuto-cible { animation: rg-luit-cible .5s ease-in-out infinite alternate; }
@keyframes rg-luit-cible { to { filter: brightness(1.3) drop-shadow(0 0 9px #ffd23f); } }
@media (prefers-reduced-motion: reduce) {
  html:not(.mobile) #modal-box .regate .rg-pupitre *, html:not(.mobile) #modal-box .regate .rg-pupitre .tuto-cible { transition: none !important; animation: none !important; }
}
@media (max-height: 800px) {
  html:not(.mobile) #modal-box .regate .rg-pupitre { --h: 104px; }
  html:not(.mobile) #modal-box .regate .rg-pp-poignee { width: 50px; height: 50px; }
}
