/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.vab-scene > .cb-carte { position: absolute; z-index: 0; pointer-events: none; aspect-ratio: 612 / 608; filter: drop-shadow(.25cqh .5cqh .4cqh rgba(20, 10, 4, .6)); transform-origin: 50% 2%; }
.vab-scene > .cb-carte { transition: left .2s steps(3, end), top .2s steps(3, end), width .2s steps(3, end), filter .2s steps(3, end), rotate .2s steps(3, end); }
.vab-scene > .cb-carte.levee { z-index: 2; pointer-events: none; rotate: -1deg; filter: drop-shadow(1cqh 2cqh 1.6cqh rgba(15, 8, 3, .7)); }
.vab-scene > .cb-clou { position: absolute; z-index: 0; aspect-ratio: 612 / 608; cursor: zoom-in; }
.cb-carte .cb-parchemin { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.cb-carte .cb-encre { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.cb-carte.deroule { animation: cb-deroule .4s steps(6, end) both, cb-balance .7s .4s ease-out both; }
@keyframes cb-deroule { from { clip-path: inset(0 0 100% 0); translate: 0 -3%; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }
@keyframes cb-balance { 0% { rotate: 0deg; } 30% { rotate: 1.6deg; } 62% { rotate: -.8deg; } 100% { rotate: 0deg; } }
.cb-carte.secoue { animation: cb-secoue .32s steps(4, end); }
@keyframes cb-secoue { 0% { translate: 0 0; } 25% { translate: .4cqh 0; } 50% { translate: -.4cqh .2cqh; } 75% { translate: .2cqh 0; } 100% { translate: 0 0; } }
.vab-scene > .cb-couche { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.cb-couche .cb-bulle { position: absolute; right: 35.5%; bottom: 70%; max-width: 30%; box-sizing: border-box; padding: 1.2cqh 2cqh; border-radius: 1.6cqh; background: #fbf1d8; color: #2b1a0e;
  font: italic 400 2.25cqh/1.25 'IM Fell English', Alegreya, Georgia, serif; box-shadow: 0 .4cqh 0 rgba(43, 26, 14, .55), 0 .6cqh 1.4cqh rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s; }
.cb-couche .cb-bulle::after { content: ''; position: absolute; right: -1cqh; top: calc(50% - 1.1cqh); width: 2.2cqh; height: 2.2cqh; background: #fbf1d8; rotate: 45deg; box-shadow: .3cqh .3cqh 0 rgba(43, 26, 14, .4); z-index: -1; }
.cb-couche .cb-bulle.vue { opacity: 1; animation: cb-bulle .24s steps(3, end); }
.cb-couche .cb-bulle.part { opacity: 0; }
@keyframes cb-bulle { from { scale: .6; translate: 0 1cqh; } to { scale: 1; translate: 0 0; } }
.cb-couche .cb-homme { position: absolute; bottom: 0; height: 30%; translate: -50% 0; filter: drop-shadow(0 .4cqh .5cqh rgba(0, 0, 0, .55)); }
.cb-couche .cb-homme.pas { translate: -50% -1.2%; }
.cb-couche .cb-homme-img { display: block; height: 100%; width: auto; max-width: none; pointer-events: none; user-select: none; }
.cb-couche .cb-eclat { position: absolute; left: 87.6%; top: 47.7%; translate: -50% -100%; image-rendering: pixelated; }
.cb-couche .cb-or { position: absolute; image-rendering: pixelated; filter: drop-shadow(0 .5cqh 0 rgba(40, 20, 0, .55)); }
.vab-peint #vab-objets .cb-coq { transition: none; }
.vab-peint #vab-objets .cb-coq.cb-sursaut { animation: cb-sursaut .26s linear 1; }
@keyframes cb-sursaut { 0%, 45% { translate: 0 -1.1cqh; } 46%, 100% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .vab-peint #vab-objets .cb-coq.cb-sursaut { animation: none; } }
html.sans-ambiance .vab-peint #vab-objets .cb-coq.cb-sursaut { animation: none; }
.vab-scene > .cbv-toile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vab-peint .vab-scene > .cbv-toile { translate: calc(var(--mx) * -3px) calc(var(--my) * -3px); scale: 1.01; transition: translate .25s ease-out; }
.vab-scene.t3d-vit .vab-vapeur { display: none; }
@media (prefers-reduced-motion: reduce) { .vab-peint .vab-scene > .cbv-toile { translate: none; transition: none; } }
.vab-peint[data-jeu="cambuse"]:has(.cb-carte) .vab-qui { left: 23%; width: 7%; }
html #modal-box .vab-peint #vab-corps > .vab-carnet.cb-haut { position: absolute; right: 1.6cqh; bottom: calc(100% + .8cqh); margin: 0; }
.vab-peint #vab-corps > .vab-carnet.cb-haut .vab-vide { display: none; }
.vab-peint[data-jeu="cambuse"]:has(.cb-carte) #vab-message { left: calc(50cqw - var(--sw) / 2 + var(--sw) * .31); max-width: calc(var(--sw) * .34); }
.vab-peint #vab-objets .vab-pose { isolation: isolate; }
.vab-peint #vab-objets .vab-pose::before { content: ''; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: 0; aspect-ratio: 6 / 1; translate: 0 42%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(26, 13, 5, .62) 0 64%, rgba(26, 13, 5, .3) 65% 86%, transparent 87%); }
.vab-peint #vab-objets .vab-plat.vab-pose::before { left: 10%; right: 10%; }
.vab-peint #vab-objets .vab-pose.vab-appui::before { content: none; }
.vab-peint #vab-objets .vab-appui > .vab-appui-ombre { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; user-select: none; }
.vab-peint #vab-objets .vab-appui > .vab-sprite { transition: filter .2s, transform .2s; }
.vab-peint #vab-objets .vab-appui.cliquable:hover { filter: none; transform: none; }
.vab-peint #vab-objets .vab-appui.cliquable:hover > .vab-sprite { filter: drop-shadow(0 0 6px #ffd76a); transform: translateY(-2px); }
.vab-vol .vab-appui-ombre { display: none; }
.vab-scene > .cbv-devant { position: absolute; inset: 0; pointer-events: none; }
.vab-peint .vab-scene > .cbv-devant { translate: calc(var(--mx) * -3px) calc(var(--my) * -3px); scale: 1.01; transition: translate .25s ease-out; }
.vab-scene > .cbv-devant > canvas { position: absolute; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .vab-peint .vab-scene > .cbv-devant { translate: none; transition: none; } }
.vab-peint .vab-scene > .sc-retombees { --k: 1.15cqh; position: absolute; left: 0; right: 0; top: 46%; z-index: 9; display: flex; justify-content: center; gap: calc(5 * var(--k)); pointer-events: none; transition: opacity .5s; }
.vab-peint .vab-scene > .sc-retombees.part { opacity: 0; }
.vab-peint .vab-scene > .sc-retombees .sc-retombe { display: flex; flex-direction: column; align-items: center; gap: calc(.4 * var(--k)); opacity: 0; transform: translateY(calc(-6 * var(--k))) scale(1.15); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.vab-peint .vab-scene > .sc-retombees .sc-retombe.pose { opacity: 1; transform: none; }
.vab-peint .vab-scene > .sc-retombees .sc-retombe-ico { position: relative; width: calc(6.5 * var(--k)); height: calc(6.5 * var(--k)); }
.vab-peint .vab-scene > .sc-retombees .sc-retombe-ico > img:first-child { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .6)); }
.vab-peint .vab-scene > .sc-retombees .sc-retombe b { font-size: max(20px, calc(1.9 * var(--k))); font-weight: 700; color: #f3e6c8; text-shadow: 0 2px 3px #000, 0 0 8px #000; white-space: nowrap; }
.vab-peint .vab-scene > .sc-retombees .sc-retombe.plus b .sc-n { color: #b8e0a0; }
.vab-peint .vab-scene > .sc-retombees .sc-retombe.moins b .sc-n { color: #f0a69a; }
.vab-peint .vab-scene > .sc-retombees .cb-jeton-citron { pointer-events: auto; cursor: help; }
.vab-peint .vab-scene > .sc-retombees .cb-jeton-citron .cb-citron { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .6)); }
.vab-peint .vab-scene > .sc-retombees .cb-jeton-citron b { color: #e8f0a0; }
@media (prefers-reduced-motion: reduce) {
  .vab-scene > .cb-carte { transition: none; }
  .cb-carte.deroule, .cb-carte.secoue, .cb-couche .cb-bulle.vue { animation: none; }
  .vab-peint .vab-scene > .sc-retombees .sc-retombe { transition: none; }
}
html.sans-ambiance .cb-carte.deroule, html.sans-ambiance .cb-carte.secoue { animation: none; }
.lvt .lvt-carte { position: relative; width: 96%; margin: .4cqw auto 0; aspect-ratio: 612 / 608; rotate: 1.2deg; filter: drop-shadow(0 .3cqw .4cqw rgba(60, 30, 10, .35)); }
.lvt .lvt-carte .lvt-portulan { display: block; width: 100%; height: 100%; object-fit: contain; }
.lvt .lvt-tache, .lvt .lvt-pate { --e: rgba(48, 28, 12, .9);
  background: radial-gradient(ellipse 34% 40% at 40% 48%, var(--e) 0 96%, transparent 100%), radial-gradient(ellipse 30% 30% at 64% 56%, var(--e) 0 96%, transparent 100%),
    radial-gradient(ellipse 22% 26% at 52% 34%, var(--e) 0 96%, transparent 100%), radial-gradient(circle at 90% 26%, var(--e) 0 5%, transparent 6%),
    radial-gradient(circle at 10% 78%, var(--e) 0 4%, transparent 5%), radial-gradient(circle at 80% 86%, var(--e) 0 3%, transparent 4%); }
.lvt .lvt-tache { position: absolute; rotate: var(--a, 0deg); }
.lvt .lvt-plat.secret { position: relative; }
.lvt .lvt-efface { min-height: 2.6cqw; }
.lvt .lvt-pate { display: inline-block; width: 60%; height: 3.2cqw; rotate: var(--a, 0deg);
  background: radial-gradient(ellipse 22% 44% at 26% 54%, var(--e) 0 96%, transparent 100%), radial-gradient(ellipse 26% 40% at 50% 46%, var(--e) 0 96%, transparent 100%),
    radial-gradient(ellipse 20% 36% at 74% 56%, var(--e) 0 96%, transparent 100%), radial-gradient(circle at 40% 8%, var(--e) 0 4%, transparent 5%),
    radial-gradient(circle at 93% 30%, var(--e) 0 3%, transparent 4%), radial-gradient(circle at 12% 94%, var(--e) 0 3%, transparent 4%); }
.lvt .lvt-pate.petite { width: 9cqw; height: 2.2cqw; }
.lvt .lvt-ingr.secret .lvt-ingr-l.lisible .lvt-sprite { filter: none; }
.lvt .lvt-rose { position: relative; display: inline-block; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: radial-gradient(circle, rgba(150, 100, 40, .16) 0 60%, transparent 62%); cursor: help; }
.lvt .lvt-rose i { position: absolute; left: 50%; top: 50%; width: calc(var(--l) * .3cqw); height: .26cqw; background: #3b2412; transform-origin: 0 50%; transform: translateY(-50%) rotate(var(--a)); }
.lvt .lvt-rose i::after { content: ''; position: absolute; right: -.45cqw; top: 50%; transform: translateY(-50%); border-left: .6cqw solid #3b2412; border-top: .38cqw solid transparent; border-bottom: .38cqw solid transparent; }
.lvt .lvt-vivre .lvt-rose { width: 2.8cqw; height: 2.8cqw; }
.lvt .lvt-vivre .lvt-rose i { width: calc(var(--l) * .24cqw); }
.lvt .lvt-plats .lvt-vignette, .lvt .lvt-gout { rotate: var(--a, 0deg); translate: 0 var(--dy, 0); }
.lvt .lvt-gouts { display: flex; flex-direction: column; gap: 1.1cqw; }
.lvt .lvt-gout { display: grid; grid-template-columns: 6.4cqw 1fr; align-items: center; column-gap: 1cqw; }
.lvt .lvt-visage { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; overflow: hidden; background: #3a2414; box-shadow: 0 0 0 .2cqw #8a5a2b, 0 .3cqw .4cqw rgba(40, 20, 5, .45); }
.lvt .lvt-visage-img { width: 230%; height: auto; max-width: none; margin: -2% 0 0 -32%; }
.lvt .lvt-gout-txt { display: flex; flex-direction: column; }
.lvt .lvt-gout-txt b { font-weight: 400; font-size: 1.6cqw; color: #4a1c0c; }
.lvt .lvt-gout-txt small { font-size: 1.4cqw; font-style: italic; }
.lvt .lvt-gout.inconnu .lvt-gout-txt small { font: 400 2.2cqw/1 'IM Fell English SC', Georgia, serif; color: #8e1612; }
.lvt .lvt-gout.inconnu .lvt-visage-img { filter: sepia(.5) brightness(.85); }
