/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html #modal-box > .mb-scene > .illu { object-position: 30% 50% !important; filter: brightness(.96); }
.mb-scene::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent 38%, rgba(20, 10, 4, .5) 62%, rgba(20, 10, 4, .72)); }
.mb-scene .mb-buste { position: absolute; left: 0; bottom: 0; z-index: 3; width: 38cqh; height: 44cqh; pointer-events: none; }
.mb-scene .mb-portrait { position: absolute; left: 0; bottom: 0; width: 38cqh; height: 38cqh; object-fit: cover; image-rendering: auto;
  -webkit-mask-image: radial-gradient(ellipse 62% 68% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 68% at 50% 46%, #000 62%, transparent 100%);
  animation: mb-souffle 4.4s ease-in-out infinite alternate, mb-entre .35s cubic-bezier(.2, .8, .3, 1) both; transform-origin: 50% 100%; }
@keyframes mb-souffle { to { transform: scale(1.016); } }
@keyframes mb-entre { from { opacity: 0; translate: -6cqh 0; } }
.mb-scene .mb-nom { position: absolute; left: 3cqh; bottom: 1.6cqh; padding: .6cqh 2.2cqh; box-sizing: border-box; max-width: 36cqh;
  border: 1.4cqh solid transparent; border-image: url(interface/ui_plaque.png?v=302fbcf1) 24 / 1.4cqh stretch;
  font: 400 2.2cqh/1.1 'IM Fell English SC', 'IM Fell English', Georgia, serif; color: #f2ddb0; text-shadow: 0 .2cqh 0 #000; filter: drop-shadow(0 .6cqh .8cqh rgba(0, 0, 0, .6)); }
.mb-scene .mb-nom small { display: block; font: italic 400 1.7cqh/1.1 'IM Fell English', Georgia, serif; color: #e0c898; }
.mb-scene .mb-bulle { position: absolute; left: 34cqh; bottom: 6cqh; z-index: 4; max-width: calc(100cqw - 4.4cqw - min(52cqw, 110cqh) - 34cqh); padding: 1.6cqh 2.4cqh; box-sizing: border-box;
  border-radius: 1.2cqh; background: rgba(16, 22, 40, .92); color: #f3e6c4; font: italic 400 2.5cqh/1.32 'IM Fell English', Georgia, serif;
  box-shadow: 0 0 0 .3cqh #b08a4a, 0 .8cqh 1.4cqh rgba(0, 0, 0, .55); animation: aa-donne .25s ease-out both; }
.mb-scene .mb-bulle small { display: block; margin-top: .8cqh; font-size: 2cqh; font-style: normal; color: #d8b878; }
.mb-scene .mb-apres { display: flex; flex-wrap: wrap; gap: .8cqh; margin-top: 1cqh; font-style: normal; }
.mb-scene .mb-apres .aa-jeton { height: 5.2cqh; font-size: 2.4cqh; animation: mb-jeton .5s cubic-bezier(.2, .8, .3, 1.4) both; }
.mb-scene .mb-apres .aa-jeton:nth-child(2) { animation-delay: .12s; } .mb-scene .mb-apres .aa-jeton:nth-child(3) { animation-delay: .24s; }
.mb-scene .mb-apres .aa-jeton img { width: 4.2cqh; height: 4.2cqh; }
@keyframes mb-jeton { from { opacity: 0; transform: translateY(1.6cqh) scale(.6); } }
.mb-scene .mb-cartes { position: absolute; right: 2.4cqw; top: 13.5cqh; bottom: 13cqh; z-index: 3; width: min(52cqw, 110cqh);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 1.4cqh 1.6cqh; }
.mb-scene .mb-cartes > .aa-donne { min-height: 0; }
.mb-scene .mb-carte { position: relative; height: 100%; box-sizing: border-box; display: grid; grid-template-columns: 9.5cqh 1fr auto; grid-template-rows: auto auto 1fr;
  column-gap: 1.4cqh; padding: 1.1cqh 1.6cqh 1cqh 1.2cqh; color: #f1e0b8; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .5)), url(interface/ui_bois_fond.png?v=5dc66c82) center / 20cqh repeat;
  box-shadow: 0 0 0 .4cqh #2a1608, 0 0 0 .7cqh #8a6a3a, 0 1cqh 1.6cqh rgba(0, 0, 0, .6); }
.mb-scene .mb-carte.a-vous { box-shadow: 0 0 0 .4cqh #2a1608, 0 0 0 .7cqh #d9b15a, 0 1cqh 1.6cqh rgba(0, 0, 0, .6); }
.mb-scene .mb-obj { grid-row: 1 / 4; align-self: center; width: 9.5cqh; height: 9.5cqh; display: flex; align-items: center; justify-content: center; }
.mb-scene .mb-obj img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 .4cqh .4cqh rgba(0, 0, 0, .6)); }
.mb-scene .mb-carte.off .mb-obj img { filter: grayscale(.65) brightness(.72) drop-shadow(0 .4cqh .4cqh rgba(0, 0, 0, .6)); }
.mb-scene .mb-quoi { grid-column: 2 / 4; display: flex; flex-direction: column; gap: .2cqh; min-width: 0; }
.mb-scene .mb-quoi b { font: 400 2.3cqh/1.08 'IM Fell English', Georgia, serif; color: #ffe9b8; }
.mb-scene .mb-quoi small { font: italic 400 1.75cqh/1.15 'IM Fell English', Georgia, serif; color: #e0c898; }
.mb-scene .mb-jetons { grid-column: 2 / 4; grid-row: 2; align-self: start; display: flex; flex-wrap: wrap; gap: .6cqh; margin-top: .4cqh; min-width: 0; }
.mb-scene .mb-carte .aa-jeton { height: 4cqh; font-size: 1.85cqh; padding: 0 1cqh 0 .3cqh; }
.mb-scene .mb-carte .aa-jeton img { width: 3.2cqh; height: 3.2cqh; }
.mb-scene .mb-carte .aa-jeton.risque { background: rgba(110, 24, 14, .8); color: #ffd9c4; }
.mb-scene .mb-carte.off .aa-jeton { filter: grayscale(.6) brightness(.8); }
.mb-scene .mb-chasse { grid-column: 2; grid-row: 3; align-self: end; font: italic 400 1.6cqh/1.15 'IM Fell English', Georgia, serif; color: #f0b880; margin-top: .3cqh; }
.mb-scene .mb-raison { grid-column: 2 / 4; grid-row: 3; align-self: end; justify-self: start; margin-top: .4cqh; font: italic 400 1.85cqh/1.15 'IM Fell English', Georgia, serif; color: #ffb08a; text-shadow: 0 .2cqh 0 #000; }
.mb-scene .mb-carte .ilo-sceau { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; margin: .2cqh -.4cqh -.2cqh .6cqh; }
html #modal-box .mb-scene .ilo-etiq { color: #2b1a0e; text-shadow: none; filter: none; justify-content: center; }
.mb-scene .mb-carte .ilo-cire { width: 4.8cqh; height: 4.8cqh; }
.mb-scene .mb-carte .ilo-etiq { width: 14.5cqh; padding: 0 .5cqh 0 5.9cqh; margin-left: -1.8cqh; font-size: 1.7cqh; line-height: 1.05; }
.mb-scene .ilo-choix { position: absolute; right: 3cqw; bottom: 2.6cqh; z-index: 4; }
.mb-scene .ilo-choix .ilo-cire { width: 7.4cqh; height: 7.4cqh; }
.mb-scene .ilo-choix .ilo-etiq { width: 34cqh; padding-left: 15cqh; font-size: 1.9cqh; }
.mb-scene .rc-vide { grid-column: 1 / 3; }
@media (prefers-reduced-motion: reduce) { .mb-scene .mb-portrait, .mb-scene .mb-bulle, .mb-scene .mb-apres .aa-jeton { animation: none; } }
html.sans-ambiance .mb-scene .mb-portrait, html.sans-ambiance .mb-scene .mb-apres .aa-jeton { animation: none; }
.mb-ligne .visage-port { border-color: #b08a4a; }
