/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html #modal-box > .scene-d.en-scene .sc-replique { font-size: max(26px, calc(2.05 * var(--k))); line-height: 1.22; }
html #modal-box > .scene-d.en-scene .sc-texte > .texte { max-width: calc(34 * var(--k)); }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte { animation: en-entre .25s ease-out backwards; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte:nth-child(2) { animation-delay: .04s; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte:nth-child(3) { animation-delay: .08s; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte:nth-child(4) { animation-delay: .12s; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte:nth-child(5) { animation-delay: .16s; }
@keyframes en-entre { from { opacity: 0; transform: translateY(calc(var(--dy) + 2.4 * var(--k))) rotate(var(--a)); } }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-renoncer { --a: 3.5deg; --dy: calc(.5 * var(--k)); margin-left: calc(1.4 * var(--k));
  transform: translateY(var(--dy)) rotate(var(--a)) scale(.78); opacity: .9; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-renoncer:not([disabled]):hover,
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-renoncer:not([disabled]):focus-visible { transform: translateY(calc(-.6 * var(--k))) rotate(0deg) scale(.84); opacity: 1; }
@keyframes en-retourne {
  0% { transform: translateY(var(--dy)) rotate(var(--a)) rotateY(0deg); filter: drop-shadow(2px 7px 5px rgba(0, 0, 0, .55)); }
  50% { transform: translateY(calc(var(--dy) - 1.2 * var(--k))) rotate(var(--a)) rotateY(90deg); }
  100% { transform: translateY(var(--dy)) rotate(var(--a)) rotateY(180deg); filter: brightness(.3) saturate(.3) drop-shadow(2px 7px 5px rgba(0, 0, 0, .55)); }
}
@keyframes en-cache { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-retourne { cursor: default; animation: en-retourne .3s ease-in-out forwards; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-retourne > * { animation: en-cache .3s linear forwards; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-eteinte { cursor: default; animation: none;
  transform: translateY(var(--dy)) rotate(var(--a)) rotateY(180deg); filter: brightness(.3) saturate(.3) drop-shadow(2px 7px 5px rgba(0, 0, 0, .55)); }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-eteinte > * { opacity: 0; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-part { cursor: default; animation: none; opacity: 0; visibility: hidden;
  transform: translateY(calc(var(--dy) + 3 * var(--k))) rotate(calc(var(--a) * 3)) scale(.9);
  transition: opacity .25s ease-in, transform .25s ease-in, visibility 0s .25s; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-retiree { animation: none; visibility: hidden; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-juste { z-index: 7; animation: none; opacity: 1;
  transform: translateY(calc(-3.2 * var(--k))) rotate(0deg) scale(1.12);
  filter: drop-shadow(0 0 9px rgba(255, 214, 110, 1)) drop-shadow(0 0 22px rgba(233, 196, 106, .8)) drop-shadow(2px 9px 6px rgba(0, 0, 0, .5));
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), filter .3s; }
html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-efface:not(.en-retourne):not(.en-eteinte):not(.en-part):not(.en-retiree) { opacity: .35; transition: opacity .25s; }
html #modal-box > .scene-d.en-scene .sc-annexes.en-objets { right: calc(1.2 * var(--k)); bottom: calc(100% + .2 * var(--k)); gap: calc(2.2 * var(--k)); align-items: center; flex-wrap: nowrap; }
html #modal-box > .scene-d.en-scene .en-essais { display: inline-flex; align-items: flex-end; gap: calc(.15 * var(--k)); pointer-events: auto; cursor: help; transform: rotate(-2deg); }
html #modal-box > .scene-d.en-scene .en-chandelle { width: calc(3.4 * var(--k)); height: auto; filter: drop-shadow(0 0 6px rgba(255, 196, 90, .75)) drop-shadow(0 3px 3px rgba(0, 0, 0, .7));
  transition: filter .25s ease-out, opacity .25s ease-out; }
html #modal-box > .scene-d.en-scene .en-chandelle:nth-child(2) { transform: translateY(calc(-.3 * var(--k))); }
html #modal-box > .scene-d.en-scene .en-chandelle.eteinte { filter: grayscale(1) brightness(.5) drop-shadow(0 3px 3px rgba(0, 0, 0, .7)); opacity: .75; }
html #modal-box > .scene-d.en-scene .sc-annexe.en-indice { gap: 0; }
html #modal-box > .scene-d.en-scene .sc-annexe.en-indice .sc-annexe-etiq { padding-right: calc(3.4 * var(--k)); }
html #modal-box > .scene-d.en-scene .sc-annexe.en-indice > .sc-jeton { position: relative; z-index: 3; margin-left: calc(-2.6 * var(--k)); display: inline-flex; align-items: center;
  gap: calc(.2 * var(--k)); padding: calc(.1 * var(--k)) calc(.45 * var(--k)) calc(.1 * var(--k)) calc(.12 * var(--k)); border-radius: 999px; transform: rotate(-5deg);
  background: #f6e7c1; box-shadow: inset 0 0 0 1.5px #a8823f, 0 1px 3px rgba(58, 34, 16, .55); font-size: max(14px, calc(1.08 * var(--k))); font-weight: 700; line-height: 1;
  color: #3a2210; text-shadow: none; white-space: nowrap; }
html #modal-box > .scene-d.en-scene .sc-annexe.en-indice > .sc-jeton img { width: max(18px, calc(1.4 * var(--k))); height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
html #modal-box > .scene-d.en-scene .sc-annexe.en-indice > .sc-jeton.manque { color: #a3191a; background: #f8dcd0; box-shadow: inset 0 0 0 1.5px #a3191a, 0 1px 3px rgba(58, 34, 16, .45); }
html #modal-box > .scene-d.en-scene .sc-annexe.en-indice.grisee { opacity: .6; filter: grayscale(.75); cursor: default; }
.part-trouvaille .part-papier { all: unset; display: inline; cursor: text; }
.part-trouvaille .part-jeton { display: none; }
html #modal-box > .scene-d .part-trouvaille { display: inline; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
html #modal-box > .scene-d .part-trouvaille > :is(.part-vignette, .part-ligne, .part-nombre) { display: none; }
html #modal-box > .scene-d:has(.part-trouvaille) :is(.sc-texte, .sc-texte > .texte, .sc-narration, .sc-replique, .sc-bloc) { position: static; }
html #modal-box > .scene-d .part-papier { all: unset; box-sizing: border-box; position: absolute; z-index: 4; left: calc(48 * var(--k)); bottom: calc(.4 * var(--k));
  --pw: 290px; --zoom: 2; width: var(--pw); height: calc(var(--pw) * 487 / 483); padding: calc(var(--pw) * .15) calc(var(--pw) * .14) calc(var(--pw) * .13) calc(var(--pw) * .14); display: flex; align-items: center; justify-content: center;
  background: url(interface/livre_note_quete_2.png?v=0efff060) center / 100% 100% no-repeat; image-rendering: pixelated; cursor: zoom-in;
  transform: translate(0, 0) rotate(-3deg); transform-origin: 50% 50%;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .7)) drop-shadow(0 2px 2px rgba(0, 0, 0, .55));
  transition: transform .25s ease-out, filter .25s ease-out; }
html #modal-box > .scene-d .part-trouvaille.part-long .part-papier { --pw: 386px; --zoom: 1.5; }
@media (min-width: 1700px) {
  html #modal-box > .scene-d .part-papier { --pw: 386px; }
  html #modal-box > .scene-d .part-trouvaille.part-long .part-papier { --pw: 483px; --zoom: 1.6; }
}
html #modal-box > .scene-d .part-papier:hover, html #modal-box > .scene-d .part-papier:focus-visible { transform: translate(0, calc(-.5 * var(--k))) rotate(-1.5deg);
  filter: drop-shadow(0 0 8px rgba(255, 214, 110, .7)) drop-shadow(0 12px 14px rgba(0, 0, 0, .7)); outline: 0; }
html #modal-box > .scene-d .part-papier > .part-ecrit { display: block; font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: calc(var(--pw) * .068); line-height: 1.22; color: #4a2610; text-align: left; text-shadow: 0 0 1px rgba(74, 38, 16, .35); hyphens: manual; overflow-wrap: break-word; }
html #modal-box > .scene-d .part-trouvaille.part-long .part-papier > .part-ecrit { font-size: calc(var(--pw) * .056); }
html #modal-box > .scene-d .part-papier > .part-jeton { position: absolute; right: -6%; top: 2%; display: grid; place-items: center; min-width: 2.6em; padding: .35em .45em; border-radius: 999px;
  background: #f6e7c1; box-shadow: inset 0 0 0 2px #a8823f, inset 0 0 0 4px #f6e7c1, inset 0 0 0 5px #7a5631, 0 2px 4px rgba(0, 0, 0, .6);
  font: 700 max(14px, calc(1.05 * var(--k))) / 1 Alegreya, Georgia, serif; color: #3a2210; transform: rotate(8deg); cursor: help; }
html #modal-box > .scene-d .part-papier.lu { z-index: 12; cursor: zoom-out; transform: translate(var(--lx, 0px), var(--ly, 0px)) rotate(0deg) scale(var(--zoom));
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .75)); }
html #modal-box > .scene-d.part-lue .sc-bande { z-index: 20; }
html #modal-box > .scene-d.part-lue .sc-bande::before { content: ''; position: absolute; top: -100vh; left: calc(-1 * var(--marge)); right: calc(-1 * var(--marge)); bottom: calc(-1 * var(--marge));
  z-index: 11; background: rgba(6, 7, 12, .66); pointer-events: none; animation: part-voile .25s ease-out; }
@keyframes part-voile { from { opacity: 0; } }
html #modal-box > .scene-d:has(.part-trouvaille) .sc-image::after { background: linear-gradient(180deg, transparent 0, transparent 30%, rgba(9, 10, 18, .45) 44%, rgba(9, 10, 18, .7) 58%, rgba(9, 10, 18, .82) 74%, rgba(9, 10, 18, .88) 100%); }
html #modal-box > .scene-d:has(.part-trouvaille) .sc-texte > .texte { max-width: calc(43 * var(--k)); }
html #modal-box > .scene-d:has(.part-trouvaille) .sc-narration.grande { font-size: max(17px, calc(1.3 * var(--k))); line-height: 1.36; }
html #modal-box > .scene-d:has(.part-trouvaille.part-long) .part-papier { left: calc(45 * var(--k)); }
html #modal-box > .scene-d:has(.part-trouvaille.part-long) .sc-texte > .texte { max-width: calc(41 * var(--k)); }
html.sans-ambiance #modal-box > .scene-d :is(.en-carte, .en-renoncer, .en-chandelle, .part-papier),
html.sans-ambiance #modal-box > .scene-d .sc-carte.en-retourne > * { animation: none; transition: none; }
html.sans-ambiance #modal-box > .scene-d.part-lue .sc-bande::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html #modal-box > .scene-d :is(.en-carte, .en-renoncer, .en-chandelle, .part-papier),
  html #modal-box > .scene-d .sc-carte.en-retourne > * { animation: none; transition: none; }
  html #modal-box > .scene-d.part-lue .sc-bande::before { animation: none; }
}
html.sans-ambiance #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-retourne { transform: translateY(var(--dy)) rotate(var(--a)) rotateY(180deg); filter: brightness(.3) saturate(.3); }
html.sans-ambiance #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-retourne > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-retourne { transform: translateY(var(--dy)) rotate(var(--a)) rotateY(180deg); filter: brightness(.3) saturate(.3); }
  html #modal-box > .scene-d.en-scene .sc-choix > .sc-carte.en-retourne > * { opacity: 0; }
}
