/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
#paume { 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; }
#paume.vu { opacity: 1; }
#paume .pm-boite { position: relative; container-type: inline-size; flex: none; outline: 6px solid #3a2414; box-shadow: 0 0 0 9px #1c1008; }
#paume .pm-toile { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
#paume .pm-hud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
#paume .pm-titre { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); pointer-events: none; transition: opacity .6s; }
#paume .pm-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; }
#paume .pm-titre.part { opacity: 0; }
#paume .pm-aide { position: absolute; right: 2.2%; bottom: 3%; display: flex; flex-direction: column; gap: .7cqw; padding: 1cqw 1.5cqw 1.1cqw 1.2cqw; pointer-events: none;
  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(1.2deg) translateY(1cqw); opacity: 0; transition: opacity .3s, transform .3s; }
#paume .pm-aide.vu { opacity: 1; transform: rotate(1.2deg); }
#paume .pm-aide::before { content: ''; position: absolute; left: 50%; top: -.55cqw; width: 1.1cqw; height: 1.1cqw; margin-left: -.55cqw; border-radius: 50%;
  background: #b0452a; box-shadow: inset -.15cqw -.15cqw 0 #6e2414, 0 .15cqw 0 rgba(0, 0, 0, .4); }
#paume .pm-aide-l { display: flex; align-items: center; gap: .45cqw; white-space: nowrap; }
#paume .pm-aide i { font-size: 1.45cqw; font-style: italic; color: #2e1d0e; margin-left: .4cqw; }
#paume .pm-touche { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3cqw; height: 2.3cqw; padding: 0 .55cqw; box-sizing: border-box;
  font-size: 1.25cqw; font-weight: 800; line-height: 1; color: #3a2412; background: #f6ecd2; border: .2cqw solid #8a6430; border-radius: .3cqw;
  box-shadow: 0 .3cqw 0 #6b4a22, inset 0 -.2cqw 0 #dcc89a; transform: translateY(0); transition: transform .06s, box-shadow .06s, background .1s; }
#paume .pm-t-esp { min-width: 7cqw; }
#paume .pm-aide.g .pm-t-g, #paume .pm-aide.d .pm-t-d, #paume .pm-aide.e-tenue .pm-t-esp { transform: translateY(.25cqw); box-shadow: 0 .05cqw 0 #6b4a22, inset 0 .15cqw 0 #c9b07a; background: #ffe7a0; }
#paume .pm-aide.e-vise .pm-t-esp { background: #ffd23f; border-color: #fff1c0; color: #5a2a08; box-shadow: 0 .3cqw 0 #8a5a14, 0 0 0 .25cqw #ffc847; }
#paume .pm-carte { position: absolute; right: 2.2%; bottom: 20%; width: 11.5cqw; height: 13.2cqw; box-sizing: border-box; padding: 1.3cqw 1.2cqw; cursor: pointer;
  background: #efe2c2; border: .35cqw solid #7a5530; box-shadow: inset 0 0 0 .3cqw #efe2c2, inset 0 0 0 .45cqw #b89a66, .35cqw .45cqw 0 rgba(0, 0, 0, .45);
  transform: rotate(-4deg) translateY(8cqw); opacity: 0; visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .3, 1.2), opacity .25s, visibility .25s, filter .12s; display: flex; flex-direction: column; gap: .8cqw; }
#paume .pm-carte.vu { transform: rotate(-4deg); opacity: 1; visibility: visible; }
#paume .pm-carte.vu:hover { transform: rotate(-2deg) translateY(-.8cqw); filter: brightness(1.06); }
#paume .pm-carte.presse { transform: rotate(-1deg) translateY(.4cqw) !important; filter: brightness(.94); }
#paume .pm-carte b { font-size: 1.8cqw; font-weight: 800; line-height: 1.05; color: #2e1d0e; }
#paume .pm-carte i { font-size: 1.15cqw; line-height: 1.25; color: #5a3e22; }
#paume .pm-cire { position: absolute; right: .7cqw; bottom: .5cqw; width: 2.8cqw; height: 2.8cqw; background: url(interface/kit_sceau_tendre.png?v=27180016) center / contain no-repeat; image-rendering: pixelated; }
#paume .pm-parole { position: absolute; right: 1.6%; top: 15%; display: flex; align-items: center; gap: 1cqw; pointer-events: none; }
#paume .pm-bulle { max-width: 36cqw; min-width: 18cqw; 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; }
#paume .pm-parole.vu .pm-bulle { opacity: 1; transform: rotate(.7deg); }
#paume.pm-chasse .pm-parole { top: auto; bottom: 27%; }
#paume .pm-bulle b { display: block; font-size: 1.55cqw; font-weight: 700; color: #8a1f12; margin-bottom: .25cqw; }
#paume .pm-dit { display: block; font-size: 2.35cqw; font-weight: 600; font-style: italic; line-height: 1.25; color: #2e1d0e; }
#paume .pm-medaillon { flex: none; width: 10.5cqw; height: 10.5cqw; border-radius: 50%; overflow: hidden; background: #1c2440;
  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); }
#paume .pm-medaillon .illu, #paume .pm-medaillon img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; margin: 0; border: 0; border-radius: 0; box-shadow: none; animation: none; image-rendering: pixelated; }
#paume .pm-choix { position: absolute; right: 2%; bottom: 3%; display: flex; flex-direction: column; align-items: flex-end; gap: 1.2cqw; opacity: 0; pointer-events: none; transition: opacity .2s; }
#paume .pm-choix.vu { opacity: 1; pointer-events: auto; }
#paume .pm-choix-c { box-sizing: border-box; padding: 1.4cqw 2cqw; font-size: 2.1cqw; font-weight: 700; font-style: italic; color: #2e1d0e; cursor: pointer; white-space: nowrap;
  background: #efe2c2; border: .35cqw solid #7a5530; box-shadow: inset 0 0 0 .3cqw #efe2c2, inset 0 0 0 .45cqw #b89a66, .35cqw .45cqw 0 rgba(0, 0, 0, .45); transition: transform .12s, filter .12s; }
#paume .pm-choix-c:nth-child(1) { transform: rotate(-3deg) translateX(-1.2cqw); }
#paume .pm-choix-c:nth-child(2) { transform: rotate(2.4deg); }
#paume .pm-choix-c:hover { filter: brightness(1.07); transform: rotate(0) translateY(-.6cqw); }
#paume .pm-choix-c:active { filter: brightness(.94); transform: rotate(0) translateY(.3cqw); }
#paume .pm-fin { position: absolute; right: 2.5%; bottom: 4%; opacity: 0; pointer-events: none; transition: opacity .25s; }
#paume .pm-fin.vu { opacity: 1; pointer-events: auto; }
#paume .pm-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; }
#paume .pm-sceau:hover { filter: brightness(1.07); transform: rotate(0) translateY(-.4cqw); }
#paume .pm-sceau:active { filter: brightness(.94); transform: rotate(0) translateY(.25cqw); }
#paume .pm-sceau-cire { width: 3.6cqw; height: 3.6cqw; background: url(interface/kit_sceau_neutre.png?v=9fb70335) center / contain no-repeat; image-rendering: pixelated; }
#paume .pm-sceau b { font-size: 2.2cqw; font-weight: 800; color: #2e1d0e; }
#paume .pm-cutin { position: absolute; inset: 0; pointer-events: none; overflow: hidden; visibility: hidden; }
#paume .pm-cutin.vu { visibility: visible; animation: pmCriVoile 1.2s linear both; }
@keyframes pmCriVoile { 0% { background: rgba(8, 5, 3, 0); } 10%, 86% { background: rgba(8, 5, 3, .5); } 100% { background: rgba(8, 5, 3, 0); } }
#paume .pm-cutin-bande { position: absolute; left: -6%; right: -6%; top: 31%; height: 33%; transform: translateX(115%) skewY(-3deg);
  background-color: #1c0f08;
  background-image: repeating-linear-gradient(180deg, transparent 0 7%, rgba(232, 197, 106, .13) 7% 7.6%, transparent 7.6% 16%, rgba(255, 246, 220, .07) 16% 16.4%, transparent 16.4% 23%);
  border-top: .6cqw solid #e8c56a; border-bottom: .6cqw solid #e8c56a; box-shadow: 0 -.45cqw 0 #1a120a, 0 .45cqw 0 #1a120a; }
#paume .pm-cutin.vu .pm-cutin-bande { animation: pmCriBande 1.2s both; }
@keyframes pmCriBande {
  0% { transform: translateX(115%) skewY(-3deg); animation-timing-function: cubic-bezier(.15, .9, .3, 1); }
  13% { transform: translateX(0) skewY(-3deg); animation-timing-function: linear; }
  85% { transform: translateX(-3%) skewY(-3deg); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  100% { transform: translateX(-125%) skewY(-3deg); }
}
#paume .pm-cutin-visage { position: absolute; right: 9%; top: -20%; bottom: -12%; width: 29%; transform: skewY(3deg); background: #e8c56a;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%); }
#paume .pm-cutin-cadre { position: absolute; inset: .7cqw; overflow: hidden; background: #1c2440; clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%); }
#paume .pm-cutin-cadre .illu, #paume .pm-cutin-cadre img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  object-fit: cover; object-position: 50% 30% !important; transform: scale(1.6); transform-origin: 50% 34%; image-rendering: pixelated; animation: none; }
#paume .pm-cutin.f .pm-cutin-cadre img { transform-origin: 50% 38%; }
#paume .pm-cutin.vu .pm-cutin-cadre img { animation: pmCriVisage 1.2s linear both; }
@keyframes pmCriVisage { 0% { transform: scale(1.5); } 100% { transform: scale(1.66); } }
#paume .pm-cutin-mots { position: absolute; left: 9%; right: 41%; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: .6cqw; transform: skewY(3deg); }
#paume .pm-cutin-mots b { font: 400 2.3cqw/1 'Pirata One', 'IM Fell English SC', Georgia, serif; letter-spacing: .18em; color: #e8c56a;
  text-shadow: .18cqw .18cqw 0 #000, -.15cqw -.15cqw 0 #000; }
#paume .pm-cutin-dit { font: 400 4.3cqw/1.06 'Pirata One', 'IM Fell English SC', Georgia, serif; color: #ffe08a;
  text-shadow: .22cqw .22cqw 0 #000, -.2cqw -.2cqw 0 #000, .2cqw -.2cqw 0 #000, -.2cqw .2cqw 0 #000, 0 .5cqw 0 #5a1a08; }
#paume .pm-cutin.vu .pm-cutin-mots { animation: pmCriMots 1.2s both; }
@keyframes pmCriMots { 0%, 8% { opacity: 0; transform: translateX(10cqw) skewY(3deg); } 20% { opacity: 1; transform: translateX(0) skewY(3deg); } 100% { opacity: 1; transform: translateX(-1cqw) skewY(3deg); } }
@media (prefers-reduced-motion: reduce) {
  #paume, #paume .pm-aide, #paume .pm-carte, #paume .pm-bulle, #paume .pm-choix, #paume .pm-fin, #paume .pm-titre { transition: none; }
  #paume .pm-cutin.vu .pm-cutin-bande, #paume .pm-cutin.vu .pm-cutin-mots, #paume .pm-cutin.vu .pm-cutin-cadre img { animation: none; }
  #paume .pm-cutin.vu .pm-cutin-bande { transform: skewY(-3deg); }
  #paume .pm-cutin.vu .pm-cutin-mots { transform: skewY(3deg); }
}
html.sans-ambiance #paume .pm-cutin.vu .pm-cutin-bande, html.sans-ambiance #paume .pm-cutin.vu .pm-cutin-mots { animation: none; }
html.sans-ambiance #paume .pm-cutin.vu .pm-cutin-bande { transform: skewY(-3deg); }
html.sans-ambiance #paume .pm-cutin.vu .pm-cutin-mots { transform: skewY(3deg); }
html.sans-ambiance #paume, html.sans-ambiance #paume .pm-carte, html.sans-ambiance #paume .pm-bulle { transition: none; }
#paume .rd-icone.pm-regle-ico { left: 1.4%; top: 2.6%; width: max(3.4cqw, 34px); height: max(3.4cqw, 34px); }
#paume .rd-icone.pm-regle-ico img { inset: 12%; width: 76%; height: 76%; }
