/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
#enfance { position: fixed; inset: 0; z-index: 9800; display: flex; align-items: center; justify-content: center; background: #120a05;
  opacity: 0; transition: opacity .25s; font-family: Alegreya, Georgia, serif; color: #2e1d0e; user-select: none; -webkit-user-select: none; touch-action: none; cursor: default; }
#enfance.vu { opacity: 1; }
#enfance .ef-boite { position: relative; container-type: inline-size; flex: none; outline: 6px solid #3a2414; box-shadow: 0 0 0 9px #1c1008; }
#enfance .ef-toile { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
#enfance .ef-fond { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#enfance.ef-nage .ef-fond { display: none; }
#enfance .ef-hud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
#enfance .ef-titre { position: absolute; left: 50%; top: 5%; transform: translateX(-50%) rotate(-.6deg); pointer-events: none; transition: opacity .6s; }
#enfance .ef-titre b { font-size: 3.6cqw; font-weight: 800; color: #fbecc8; white-space: nowrap; text-shadow: 0 .25cqw 0 #3a2210, .2cqw 0 0 #3a2210, -.2cqw 0 0 #3a2210, 0 -.2cqw 0 #3a2210; }
#enfance .ef-titre.part { opacity: 0; }
#enfance .ef-commandes { position: absolute; left: 2.2%; bottom: 2.5%; opacity: 0; transition: opacity .25s; }
#enfance .ef-commandes.vu { opacity: 1; }
#enfance .ef-plaque { --s: calc(6.6cqw / 407); position: relative; box-sizing: border-box; min-width: 18.6cqw; height: 6.6cqw; padding: 0 1.2cqw; cursor: pointer;
  border-style: solid; border-color: transparent; border-width: calc(100 * var(--s)) calc(170 * var(--s)) calc(66 * var(--s));
  border-image: url(interface/canon_plaque_tir.png?v=abd4ab83) 100 170 66 fill / calc(100 * var(--s)) calc(170 * var(--s)) calc(66 * var(--s)) stretch;
  display: flex; align-items: center; justify-content: center; transform: rotate(-.8deg); filter: drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); transition: filter .12s, transform .08s; }
#enfance .ef-feu { display: flex; align-items: center; gap: .5cqw; white-space: nowrap; transform: translateY(-.1cqw); }
#enfance .ef-feu kbd { font-family: inherit; font-size: 1.15cqw; font-weight: 700; line-height: 1; padding: .25cqw .55cqw .3cqw; border-radius: .35cqw; color: #3a2412; background: #d9c8a2; box-shadow: 0 .2cqw 0 #6b4a22; transition: background .1s, transform .1s; }
#enfance .ef-feu kbd.actif { background: #ffd23f; color: #2a1608; transform: translateY(-.15cqw); }
#enfance .ef-feu i { font-style: normal; font-size: 1.7cqw; color: #e8d2a0; }
#enfance .ef-feu b { font-size: 2.15cqw; font-weight: 800; line-height: 1; color: #b8a27c; text-shadow: 0 .15cqw 0 #1a0e05; }
#enfance .ef-plaque.eteinte { filter: grayscale(.45) brightness(.72) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); }
#enfance .ef-plaque.prete b { color: #fff1d0; }
#enfance .ef-plaque.prete { filter: brightness(1.06) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); }
#enfance .ef-plaque.vise b { color: #ffd23f; }
#enfance .ef-plaque.vise { filter: brightness(1.18) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); outline: .25cqw solid #ffc847; outline-offset: -.9cqw; }
#enfance .ef-plaque:hover { filter: brightness(1.12) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); }
#enfance .ef-plaque.presse { transform: rotate(-.8deg) translateY(.25cqw); }
#enfance .ef-parole { position: absolute; right: 1.6%; top: 4%; display: flex; align-items: center; gap: 1cqw; pointer-events: none; }
#enfance .ef-bulle { max-width: 31cqw; min-width: 15cqw; box-sizing: border-box; padding: .9cqw 1.4cqw 1cqw; background: #efe2c2; border: .3cqw solid #7a5530;
  box-shadow: inset 0 0 0 .25cqw #efe2c2, inset 0 0 0 .38cqw #b89a66, .3cqw .4cqw 0 rgba(0, 0, 0, .45); transform: rotate(.7deg) scale(.9); opacity: 0; transition: opacity .2s, transform .2s; }
#enfance .ef-parole.vu .ef-bulle { opacity: 1; transform: rotate(.7deg); }
#enfance .ef-bulle b { display: block; font-size: 1.2cqw; font-weight: 700; color: #8a1f12; margin-bottom: .25cqw; }
#enfance .ef-dit { display: block; font-size: 1.75cqw; font-style: italic; line-height: 1.25; color: #2e1d0e; }
#enfance .ef-medaillon { flex: none; width: 8cqw; height: 8cqw; border-radius: 50%; overflow: hidden; background: #1c2440; opacity: 0; transition: opacity .2s;
  border: .55cqw solid #c99a3e; box-shadow: 0 0 0 .25cqw #5a3a14, inset 0 0 0 .25cqw #7a5a20, .3cqw .4cqw 0 rgba(0, 0, 0, .5); transform: rotate(-2deg); }
#enfance .ef-parole.vu .ef-medaillon { opacity: 1; }
#enfance .ef-medaillon .illu, #enfance .ef-medaillon img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; margin: 0; border: 0; border-radius: 0; box-shadow: none; animation: none; image-rendering: pixelated; }
#enfance .ef-fin { position: absolute; right: 2.5%; bottom: 4%; opacity: 0; pointer-events: none; transition: opacity .25s; }
#enfance .ef-fin.vu { opacity: 1; pointer-events: auto; }
#enfance .ef-sceau { display: flex; align-items: center; gap: .8cqw; cursor: pointer; padding: .6cqw 1.8cqw .6cqw .8cqw; background: #efe2c2; border: .3cqw solid #7a5530;
  box-shadow: .3cqw .4cqw 0 rgba(0, 0, 0, .45); transform: rotate(-1.5deg); transition: transform .12s, filter .12s; }
#enfance .ef-sceau:hover { filter: brightness(1.07); transform: rotate(0) translateY(-.4cqw); }
#enfance .ef-sceau:active { filter: brightness(.94); transform: rotate(0) translateY(.25cqw); }
#enfance .ef-sceau-cire { width: 3.6cqw; height: 3.6cqw; background: url(interface/kit_sceau_tendre.png?v=27180016) center / contain no-repeat; image-rendering: pixelated; }
#enfance .ef-sceau b { font-size: 2.2cqw; font-weight: 800; color: #2e1d0e; }
@media (prefers-reduced-motion: reduce) {
  #enfance, #enfance .ef-commandes, #enfance .ef-bulle, #enfance .ef-medaillon, #enfance .ef-fin, #enfance .ef-titre, #enfance .ef-feu kbd { transition: none; }
}
html.sans-ambiance #enfance, html.sans-ambiance #enfance .ef-bulle, html.sans-ambiance #enfance .ef-medaillon { transition: none; }
