/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
#escale .cn-commandes.gr-commandes { z-index: 4; opacity: 0; pointer-events: none; transition: opacity .25s;
  font-family: Alegreya, Georgia, serif; color: #f3e6c8; user-select: none; -webkit-user-select: none; }
#escale .cn-commandes.gr-commandes.vu, #escale.cc-suite .cn-commandes.gr-commandes.vu { opacity: 1; pointer-events: auto; }
#escale.gr-geste .cn-commandes:not(.gr-commandes), #escale.gr-geste .cn-centre { visibility: hidden; }
#escale.gr-geste .escale-scene .escale-nom { opacity: 0; transition: opacity .2s; }
#escale .gr-plaque .cn-ico .illu { height: 5cqw; image-rendering: pixelated; }
#escale .gr-plaque.recharge { filter: brightness(.82) drop-shadow(0 .4cqw .5cqw rgba(0, 0, 0, .6)); }
#escale .gr-plaque.recharge b { color: #b8a27c; }
#escale .cn-commandes.gr-commandes { left: 1.2cqw; transform: none; }
#escale.gr-secousse .escale-scene canvas { animation: gr-secousse var(--gr-d, .25s) steps(1) 1; }
@keyframes gr-secousse { 0% { translate: var(--gr-a, 2px) 0; } 20% { translate: calc(-1 * var(--gr-a, 2px)) var(--gr-b, 1px); } 40% { translate: var(--gr-b, 1px) calc(-1 * var(--gr-b, 1px)); }
  60% { translate: calc(-1 * var(--gr-b, 1px)) var(--gr-b, 1px); } 80% { translate: 1px 0; } 100% { translate: 0 0; } }
#escale.gr-arrime .cn-commandes:not(.gr-commandes), #escale.gr-arrime .cn-centre { visibility: hidden; }
#escale.gr-eclair .escale-scene::after { content: ''; position: absolute; inset: 0; z-index: 5; background: #fff; opacity: .7; pointer-events: none; }
#escale .cc-jeton.gr-or { --anneau: #e2b23a; background: radial-gradient(circle at 45% 40%, #fff3c6, #e6c061);
  box-shadow: inset 0 0 0 .17cqw var(--anneau), 0 0 .5cqw rgba(255, 200, 80, .7), 0 .1cqw .25cqw rgba(0, 0, 0, .45); }
#escale .gr-page { position: absolute; inset: 0; z-index: 6; opacity: 0; transition: opacity .25s; background: #120a06; pointer-events: none; }
#escale .gr-page.vu { opacity: 1; }
#escale .gr-page .illu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; margin: 0; border: 0; border-radius: 0; box-shadow: none; animation: none; }
#escale .gr-cri { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); z-index: 5; font-family: Alegreya, Georgia, serif; font-style: italic;
  font-size: 2.6cqw; font-weight: 700; color: #ffe7a8; text-shadow: 0 .2cqw 0 #1a0e05, 0 0 .6cqw rgba(0, 0, 0, .7); white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
#escale .gr-cri.vu { opacity: 1; }
.ilo-bon.gr-bon .ilo-bon-scene { transition: transform .25s ease-out; }
.ilo-bon.gr-bon.gr-brasse .ilo-bon-scene { transform: translate(-50%, -50%) scale(1.03); }
.ilo-bon.gr-bon .ilo-coq.arc { transition: transform 0s, filter .18s; transform: translate(-50%, -50%) scale(var(--sc, 1)); }
.ilo-bon.gr-bon .ilo-coq.tac { transform: translate(-50%, -50%) translateY(.2cqh); transition: transform .05s; }
.ilo-bon.gr-leve .ilo-coq.levee { transition: transform .5s ease-out, filter .18s; }
.ilo-bon.gr-bon .ilo-feve.gr-scintille { animation: gr-scintille .2s steps(1) 2; }
@keyframes gr-scintille { 50% { filter: brightness(1.9) drop-shadow(0 0 .6cqh rgba(255, 240, 170, .95)); } }
.ilo-bon.gr-bon .gr-mains { display: none; position: absolute; left: 50%; top: 30%; width: 30%; aspect-ratio: 584 / 355; transform: translateX(-50%); z-index: 4; pointer-events: none; }
.ilo-bon.gr-bon.gr-mains-vu .ilo-fil img { clip-path: inset(0 0 40% 0); }
html #modal-box .ilo-bon .gr-mains .illu { position: absolute; left: 50%; bottom: 0; top: auto; height: auto; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none;
  transform: translateX(-50%); image-rendering: pixelated; opacity: 0; animation: none; filter: drop-shadow(0 .5cqh .5cqh rgba(0, 0, 0, .45)); }
html #modal-box .ilo-bon .gr-mains .gr-m-repos { width: 100%; }
html #modal-box .ilo-bon .gr-mains .gr-m-echange { width: 101%; }
html #modal-box .ilo-bon .gr-mains .gr-m-faites_vos_jeux { width: 95.2%; }
html #modal-box .ilo-bon .gr-mains .gr-m-triche { width: 92.1%; }
html #modal-box .ilo-bon .gr-mains.repos .gr-m-repos, html #modal-box .ilo-bon .gr-mains.echange .gr-m-echange,
html #modal-box .ilo-bon .gr-mains.faites_vos_jeux .gr-m-faites_vos_jeux, html #modal-box .ilo-bon .gr-mains.triche .gr-m-triche { opacity: 1; }
.ilo-bon.gr-bon.gr-mains-vu .gr-mains { display: block; }
.ilo-bon.gr-bon .gr-feve-file { position: absolute; z-index: 5; width: 2.5%; transform: translate(-50%, -50%); pointer-events: none; image-rendering: pixelated;
  transition-property: left, top, opacity, transform; transition-timing-function: cubic-bezier(.3, 0, .9, .6); filter: drop-shadow(0 0 .5cqh rgba(255, 255, 255, .9)); }
.ilo-bon.gr-bon .gr-feve-file.part { opacity: .2; transform: translate(-50%, -50%) scale(.6); }
.ilo-bon.gr-bon .gr-file { position: absolute; z-index: 5; height: .35cqh; transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95)); animation: gr-file 180ms linear forwards; }
@keyframes gr-file { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 60% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 70%); opacity: 0; } }
.ilo-bon.gr-bon .ilo-coq.levee { z-index: 5; }
html #modal-box .ilo-bon .gr-manche { all: unset; position: absolute; left: 58.2%; top: 52.5%; width: 5.5%; height: 9%; transform: translate(-50%, -50%); z-index: 6; border-radius: 50%; cursor: default; }
html #modal-box .ilo-bon .gr-manche:not([disabled]) { cursor: pointer; }
html #modal-box .ilo-bon .gr-manche:not([disabled]):hover, html #modal-box .ilo-bon .gr-manche:not([disabled]):focus-visible { background: radial-gradient(closest-side, rgba(255, 214, 110, .28), rgba(255, 214, 110, 0)); }
.table-peinte .tb-scene > .gr-des { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.table-peinte .tb-scene > .gr-tapis { position: absolute; z-index: 0; pointer-events: none; image-rendering: pixelated; opacity: 0; }
.table-peinte .tb-scene > .gr-tapis.vu { opacity: 1; }
html #modal-box .table-peinte .gr-des .illu { position: absolute; height: auto; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none;
  object-fit: contain; image-rendering: pixelated; animation: none; filter: drop-shadow(0 .4cqh .4cqh rgba(0, 0, 0, .5)); }
html #modal-box .table-peinte .gr-des .gr-de { transform: translate(-50%, -50%); }
html #modal-box .table-peinte .gr-des .gr-gob { transform-origin: 50% 90%; transition: top .6s ease-out, opacity .6s ease-out, transform .25s; }
.table-peinte .tb-scene:has(.gr-gob.plaque:not(.leve)) .tb-des.lui { visibility: hidden; }
html #modal-box .table-peinte .gr-des .gr-gob.leve { transform: translateY(-55%); opacity: 0; transition: transform .6s ease-out, opacity .6s ease-in .15s; }
html #modal-box .table-peinte .gr-des .gr-gob.range { opacity: 0; }
.table-peinte .tb-scene.gr-roule .tb-des.moi { visibility: hidden; }
.ilo-bourse .gr-main { position: absolute; left: -20%; top: 70%; width: 8%; aspect-ratio: 436 / 269; z-index: 4; pointer-events: none;
  transform: translate(-84%, -60%); transition: left .3s ease-out, top .3s ease-out; }
html #modal-box .ilo-bourse .gr-main .illu { position: absolute; left: 0; top: 50%; width: 100%; height: auto; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  box-shadow: none; background: none; transform: translateY(-50%); image-rendering: pixelated; opacity: 0; animation: none; filter: drop-shadow(0 .5cqh .5cqh rgba(0, 0, 0, .5)); }
html #modal-box .ilo-bourse .gr-main .gr-m-pince { width: 96.6%; }
html #modal-box .ilo-bourse .gr-main .gr-m-retrait { width: 88%; }
html #modal-box .ilo-bourse .gr-main.approche .gr-m-approche, html #modal-box .ilo-bourse .gr-main.pince .gr-m-pince,
html #modal-box .ilo-bourse .gr-main.retrait .gr-m-retrait { opacity: 1; }
.ilo-infil .gr-garde { position: absolute; left: 0; bottom: 0; height: 15cqh; aspect-ratio: 139 / 238; transform: translateX(-50%); pointer-events: none; }
html #modal-box .ilo-infil .gr-garde .illu { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  box-shadow: none; background: none; transform: translateX(-50%); image-rendering: pixelated; opacity: 0; animation: none; filter: drop-shadow(0 .6cqh .5cqh rgba(0, 0, 0, .6)); }
html #modal-box .ilo-infil .gr-garde.face.p1 .gr-g-face_1, html #modal-box .ilo-infil .gr-garde.face.p2 .gr-g-face_2,
html #modal-box .ilo-infil .gr-garde.dos.p1 .gr-g-dos_1, html #modal-box .ilo-infil .gr-garde.dos.p2 .gr-g-dos_2,
html #modal-box .ilo-infil .gr-garde.droite.p1 .gr-g-droite_1, html #modal-box .ilo-infil .gr-garde.droite.p2 .gr-g-droite_2,
html #modal-box .ilo-infil .gr-garde.gauche.p1 .gr-g-droite_1, html #modal-box .ilo-infil .gr-garde.gauche.p2 .gr-g-droite_2 { opacity: 1; }
html #modal-box .ilo-infil .gr-garde.gauche .illu { transform: translateX(-50%) scaleX(-1); }
html #modal-box .ilo-infil .gr-garde.surpris .illu { opacity: 0 !important; }
html #modal-box .ilo-infil .gr-garde.surpris .gr-g-surpris { opacity: 1 !important; transform: translateX(-50%); }
.ilo-infil .gr-cone { position: absolute; left: 0; top: -7cqh; width: 26cqh; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(var(--a, 90deg)); pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from -18deg, rgba(255, 214, 130, .34) 0deg 36deg, transparent 36deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%); mask: radial-gradient(closest-side, #000 20%, transparent 100%);
  animation: gr-balaie 2s ease-in-out infinite alternate; }
@keyframes gr-balaie { from { transform: translate(-50%, -50%) rotate(calc(var(--a, 90deg) - 15deg)); } to { transform: translate(-50%, -50%) rotate(calc(var(--a, 90deg) + 15deg)); } }
#puzzle .pz-fondu { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; animation: pz-fondu .15s linear forwards; }
@keyframes pz-fondu { to { opacity: 0; } }
#puzzle .pz-grain { position: absolute; width: .45cqh; height: .45cqh; background: #cdb894; pointer-events: none; animation: pz-grain .6s ease-in forwards; opacity: 0; }
@keyframes pz-grain { 0% { opacity: .95; transform: translateY(0); } 100% { opacity: 0; transform: translateY(3.5cqh); } }
#puzzle .pz-rayon { position: absolute; inset: 0; z-index: 6; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 0%, transparent 38%, rgba(255, 236, 170, .55) 47%, rgba(255, 250, 220, .8) 50%, rgba(255, 236, 170, .55) 53%, transparent 62%, transparent 100%);
  background-size: 300% 100%; background-position: 100% 0; animation: pz-rayon .6s ease-in-out forwards; }
@keyframes pz-rayon { from { background-position: 100% 0; } to { background-position: 0% 0; } }
html #modal-box .table-peinte .gr-des .gr-pion-saute { position: absolute; width: 3.35%; height: auto; transform: translate(-50%, -50%); animation: gr-saute .7s cubic-bezier(.3, .6, .6, 1) forwards; }
@keyframes gr-saute { 0% { transform: translate(-50%, -50%); opacity: 1; } 45% { transform: translate(calc(-50% + var(--dx) * .45), calc(-50% - 9cqh)) rotate(160deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + 30cqh)) rotate(380deg); opacity: 0; } }
.carte.retourne { animation: gr-retourne .2s linear; }
.carte.retourne::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: repeating-linear-gradient(45deg, #7a1f1f 0 5px, #9e2b2b 5px 10px); border: 3px solid #f1e9d4; animation: gr-dos .2s steps(1) forwards; }
@keyframes gr-retourne { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 50.01% { transform: rotateY(-90deg); } 100% { transform: rotateY(0); } }
@keyframes gr-dos { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html #modal-box .table-peinte .gr-des .gr-pion-saute { display: none; }
  .carte.retourne, .carte.retourne::after { animation: none; }
  .carte.retourne::after { display: none; }
  .ilo-infil .gr-cone { animation: none; }
  .ilo-bourse .gr-main { transition: none; }
  #escale .cn-commandes.gr-commandes, #escale .gr-page, #escale .gr-cri, .ilo-bon.gr-bon .ilo-bon-scene, .ilo-bon.gr-bon .gr-mains, .ilo-bon.gr-leve .ilo-coq.levee { transition: none; }
  .ilo-bon.gr-bon.gr-brasse .ilo-bon-scene { transform: translate(-50%, -50%); }
  .ilo-bon.gr-bon .ilo-feve.gr-scintille { animation: none; }
}
html.sans-ambiance #escale .cn-commandes.gr-commandes, html.sans-ambiance #escale .gr-page, html.sans-ambiance #escale .gr-cri,
html.sans-ambiance .ilo-bon.gr-bon .ilo-bon-scene, html.sans-ambiance .ilo-bon.gr-bon .gr-mains, html.sans-ambiance .ilo-bon.gr-leve .ilo-coq.levee { transition: none; }
html.sans-ambiance .ilo-bon.gr-bon.gr-brasse .ilo-bon-scene { transform: translate(-50%, -50%); }
html.sans-ambiance .ilo-infil .gr-cone { animation: none; }
