/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html #modal > #modal-box > .scene-d > .cr-remise { --kk: var(--k, 1vw); --w: calc(14 * var(--kk)); position: absolute; z-index: 4; inset: 12% 5.5% auto auto;
  width: var(--w); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
html #modal > #modal-box > .scene-d > .cr-remise.cr-n2 { --w: calc(15.5 * var(--kk)); }
html #modal > #modal-box > .scene-d > .cr-remise.cr-n3 { --w: calc(17 * var(--kk)); }
html #modal > #modal-box > .scene-d > .cr-remise.cr-n4 { --w: calc(18.5 * var(--kk)); }
html #modal > #modal-box > .scene-d > .cr-remise.cr-n5 { --w: calc(20 * var(--kk)); top: 13%; }
html #modal > #modal-box > .scene-d > .cr-remise.cr-pos-gauche { inset: 7% auto auto 13%; }
html #modal-box > .scene-d .cr-lueur { position: absolute; inset: -18% -22% -10%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 120, .5), rgba(255, 214, 120, 0) 72%);
  -webkit-mask: conic-gradient(#000 25%, transparent 0 50%, #000 0 75%, transparent 0) 0 0 / 4px 4px;
          mask: conic-gradient(#000 25%, transparent 0 50%, #000 0 75%, transparent 0) 0 0 / 4px 4px; }
html #modal-box > .scene-d .cr-n4 .cr-lueur, html #modal-box > .scene-d .cr-n5 .cr-lueur { animation: cr-lueur 1.6s ease-out .9s forwards; }
html #modal-box > .scene-d .cr-ombre .cr-lueur { background: radial-gradient(closest-side, rgba(255, 140, 60, .45), rgba(255, 140, 60, 0) 72%); }
@keyframes cr-lueur { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
html #modal-box > .scene-d .cr-objets { position: relative; width: 100%; aspect-ratio: 1 / .82; }
html #modal-box > .scene-d .cr-o { position: absolute; display: block; opacity: 0; animation: cr-tombe .62s cubic-bezier(.2, .9, .3, 1.15) forwards;
  filter: drop-shadow(0 calc(.5 * var(--kk)) calc(.6 * var(--kk)) rgba(0, 0, 0, .6)); }
html #modal-box > .scene-d .cr-o img, html #modal-box > .scene-d .cr-o .cr-obj { display: block; width: 100%; height: auto; image-rendering: pixelated; }
html #modal-box > .scene-d .cr-o1 { left: 8%; top: 0; width: 84%; --r: -4deg; animation-delay: .15s; z-index: 1; }
html #modal-box > .scene-d .cr-o2 { right: -4%; bottom: 2%; width: 30%; --r: 7deg; animation-delay: .42s; z-index: 3; }
html #modal-box > .scene-d .cr-o3 { left: -6%; bottom: 0; width: 28%; --r: -9deg; animation-delay: .6s; z-index: 2; }
html #modal-box > .scene-d .cr-o4 { left: 34%; top: -8%; width: 30%; --r: 3deg; animation-delay: .76s; z-index: 4; }
@keyframes cr-tombe { 0% { opacity: 0; transform: translateY(-38vh) rotate(calc(var(--r) - 16deg)); } 70% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) rotate(var(--r)); } }
html #modal-box > .scene-d .cr-o1 .cr-bete_jeton_chope, html #modal-box > .scene-d .cr-o1 .cr-icone_lettre_marque { width: 76%; margin: 0 auto; }
html #modal-box > .scene-d .cr-o1 .cr-pavillon_pirates, html #modal-box > .scene-d .cr-o1 .cr-pavillon { width: 62%; margin: 4% auto 0; }
html #modal-box > .scene-d .cr-o1 .cr-chope, html #modal-box > .scene-d .cr-o1 .cr-dague, html #modal-box > .scene-d .cr-o1 .cr-couronne { width: 58%; margin: 6% auto 0; }
html #modal-box > .scene-d .cr-o1 .cr-rouleau_ferme, html #modal-box > .scene-d .cr-o1 .cr-accueil_rouleau_ferme { width: 92%; margin: 8% auto 0; }
html #modal-box > .scene-d .cr-o1 .cr-gazette_lettre_roi { width: 88%; margin: 6% auto 0; }
html #modal-box > .scene-d .cr-o .cr-pavillon, html #modal-box > .scene-d .cr-o .cr-pavillon_pirates { transform-origin: 8% 100%; animation: cr-flamme 2.4s ease-in-out 1.2s infinite alternate; }
@keyframes cr-flamme { from { transform: skewY(0deg) scaleX(1); } to { transform: skewY(-2.5deg) scaleX(.97); } }
html #modal-box > .scene-d .cr-feuille { position: relative; }
html #modal-box > .scene-d .cr-feuille > img:first-child { width: 100%; }
html #modal-box > .scene-d .cr-ecrit { position: absolute; left: 33%; right: 33%; top: 16%; bottom: 30%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; color: #3b2412; font-family: 'IM Fell English', Georgia, serif; line-height: 1.05; transform: rotate(-1deg); }
html #modal-box > .scene-d .cr-ecrit small { font-family: 'IM Fell English SC', 'IM Fell English', serif; font-size: calc(1.05 * var(--kk)); letter-spacing: .06em; opacity: .85; }
html #modal-box > .scene-d .cr-ecrit b { font-weight: normal; font-style: italic; font-size: calc(1.55 * var(--kk)); margin-top: calc(.4 * var(--kk)); }
html #modal-box > .scene-d .cr-n4 .cr-ecrit b, html #modal-box > .scene-d .cr-n5 .cr-ecrit b { font-size: calc(1.8 * var(--kk)); }
html #modal-box > .scene-d .cr-ecrit.cr-ecrit-long b { font-size: calc(1.3 * var(--kk)); }
html #modal-box > .scene-d .cr-ecrit b::after { content: ''; display: block; height: calc(.25 * var(--kk)); margin: calc(.5 * var(--kk)) auto 0; width: 70%;
  background: repeating-linear-gradient(90deg, #5a3a1e 0 3px, transparent 3px 5px); opacity: .55; }
html #modal-box > .scene-d .cr-feuille > .cr-cire { position: absolute; width: 22%; left: 39%; bottom: 6%; animation: cr-cire .3s ease-out 1.05s both; }
@keyframes cr-cire { from { opacity: 0; transform: scale(1.8) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
html #modal-box > .scene-d .cr-plaque { position: relative; z-index: 5; margin-top: calc(-1.2 * var(--kk)); min-width: 64%; max-width: 120%; box-sizing: border-box;
  padding: calc(.9 * var(--kk)) calc(2.6 * var(--kk)) calc(1.05 * var(--kk)); text-align: center; white-space: nowrap;
  background: url(interface/ui_plaque_laiton.png?v=a4a7ece9) center / 100% 100% no-repeat; image-rendering: pixelated;
  font-family: 'Pirata One', 'IM Fell English SC', serif; font-size: calc(2.05 * var(--kk)); line-height: 1; color: #3a2408;
  text-shadow: 0 1px 0 rgba(255, 236, 170, .55); transform: rotate(-1.5deg); opacity: 0; animation: cr-plaque .34s cubic-bezier(.3, 1.6, .5, 1) 1.05s forwards;
  filter: drop-shadow(0 calc(.4 * var(--kk)) calc(.5 * var(--kk)) rgba(0, 0, 0, .65)); }
html #modal-box > .scene-d .cr-plaque-chene { background-image: url(interface/ui_plaque_chene.png?v=1771689d); color: #f3dfb2; text-shadow: 0 2px 0 rgba(30, 14, 4, .9); }
html #modal-box > .scene-d .cr-plaque-or { background-image: url(interface/onglet_plaque_laiton.png?v=e3261fab); padding: calc(1.5 * var(--kk)) calc(3.2 * var(--kk)) calc(1.7 * var(--kk));
  font-size: calc(2.35 * var(--kk)); }
html #modal-box > .scene-d .cr-n4 .cr-plaque, html #modal-box > .scene-d .cr-n5 .cr-plaque { font-size: calc(2.35 * var(--kk)); }
@keyframes cr-plaque { 0% { opacity: 0; transform: translateY(-2vh) scale(1.35) rotate(-1.5deg); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(-1.5deg); } }
html #modal > #modal-box > .scene-d > .cr-remise .cr-plaque.cr-long { white-space: normal; max-width: 104%; min-width: 92%; font-size: calc(1.75 * var(--kk)); line-height: 1.05; }
html #modal-box > .scene-d .cr-plaque::after { content: ''; position: absolute; inset: 12% 6%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 220, .65) 48%, transparent 60%) -120% 0 / 220% 100% no-repeat; animation: cr-eclat .9s ease-out 1.5s forwards; }
html #modal-box > .scene-d .cr-plaque-chene::after { display: none; }
@keyframes cr-eclat { 0% { opacity: 1; background-position: -120% 0; } 100% { opacity: 0; background-position: 140% 0; } }
html #modal-box > .scene-d .cr-ouvre { position: relative; z-index: 5; margin-top: calc(.7 * var(--kk)); width: 108%; box-sizing: border-box;
  padding: calc(.75 * var(--kk)) calc(1.3 * var(--kk)) calc(.85 * var(--kk)); background: url(interface/ui_papier.png?v=66fa38b6) center / 100% 100% no-repeat;
  font-family: Alegreya, Georgia, serif; font-style: italic; font-size: max(13px, calc(.98 * var(--kk))); line-height: 1.22; text-align: center; color: #3a2412;
  transform: rotate(.8deg); filter: drop-shadow(0 calc(.3 * var(--kk)) calc(.4 * var(--kk)) rgba(0, 0, 0, .6)); opacity: 0; animation: cr-ouvre .4s ease-out 1.6s forwards; }
@keyframes cr-ouvre { from { opacity: 0; transform: translateY(-1vh) rotate(.8deg); } to { opacity: 1; transform: translateY(0) rotate(.8deg); } }
.cr-ouvre-dit { display: inline-block; margin-top: .4em; font-style: italic; opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  html #modal-box > .scene-d .cr-o, html #modal-box > .scene-d .cr-plaque, html #modal-box > .scene-d .cr-feuille > .cr-cire, html #modal-box > .scene-d .cr-ouvre { animation: none; opacity: 1; }
  html #modal-box > .scene-d .cr-o { transform: rotate(var(--r)); }
}
