/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
#cadeaux { 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; }
#cadeaux.vu { opacity: 1; }
#cadeaux .cx-boite { position: relative; container-type: inline-size; flex: none; outline: 6px solid #3a2414; box-shadow: 0 0 0 9px #1c1008; overflow: hidden; }
#cadeaux .cx-toile, #cadeaux .cx-hud { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
#cadeaux .cx-hud { pointer-events: none; }
#cadeaux.couteau .cx-toile { cursor: none; }
#cadeaux .cx-cartes { position: absolute; left: 4%; right: 4%; top: 16%; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1cqw .7cqw;
  opacity: 0; visibility: hidden; transform: translateY(2cqw); transition: opacity .25s, transform .3s, visibility .25s; }
#cadeaux .cx-cartes.vu { opacity: 1; visibility: visible; transform: none; }
#cadeaux .cx-carte { position: relative; box-sizing: border-box; width: 6cqw; height: 6.6cqw; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: #efe2c2; border: .25cqw solid #7a5530; box-shadow: inset 0 0 0 .2cqw #efe2c2, inset 0 0 0 .32cqw #b89a66, .25cqw .35cqw 0 rgba(0, 0, 0, .45);
  transform: rotate(var(--a, 0deg)) translateY(var(--dy, 0px)); transition: transform .12s, filter .12s; }
#cadeaux .cx-carte canvas { width: 4.2cqw; height: 4.2cqw; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
#cadeaux .cx-carte img { width: 4.2cqw; height: 4.2cqw; object-fit: contain; image-rendering: pixelated; pointer-events: none; margin: 0; border: 0; box-shadow: none; animation: none; border-radius: 0; }
#cadeaux .cx-carte:hover { z-index: 2; transform: rotate(0deg) translateY(-.6cqw) scale(1.08); filter: brightness(1.07); box-shadow: inset 0 0 0 .2cqw #efe2c2, inset 0 0 0 .32cqw #ffc847, 0 0 0 .2cqw #ffc847, .25cqw .45cqw 0 rgba(0, 0, 0, .45); }
#cadeaux .cx-carte.presse { transform: rotate(var(--a, 0deg)) translateY(.3cqw) scale(.96); filter: brightness(.93); }
#cadeaux .cx-carte.demande { border-color: #c99a3e; box-shadow: inset 0 0 0 .2cqw #efe2c2, inset 0 0 0 .32cqw #ffc847, 0 0 0 .25cqw #ffc847, .25cqw .35cqw 0 rgba(0, 0, 0, .45); animation: cx-demande 1.4s steps(2, jump-none) infinite; }
#cadeaux .cx-carte.demande::after { content: ''; position: absolute; right: -1.2cqw; top: -1.3cqw; width: 2.4cqw; height: 2.4cqw; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpolygon points='8,0.5 10,5.6 15.5,5.8 11.2,9.2 12.8,15 8,11.7 3.2,15 4.8,9.2 0.5,5.8 6,5.6' fill='%23c4301e' stroke='%23f3e3c0' stroke-width='0.8'/%3E%3C/svg%3E") center / 100% no-repeat; }
@keyframes cx-demande { 0% { filter: brightness(1); } 100% { filter: brightness(1.14); } }
#cadeaux .cx-carte.cx-libre { width: 9cqw; flex-direction: column; gap: .2cqw; background: #f3e8cc; }
#cadeaux .cx-libre b { font-size: 1.7cqw; font-weight: 800; color: #8a1f12; line-height: 1; }
#cadeaux .cx-libre i { font-size: 1.05cqw; color: #5a3e22; }
#cadeaux .cx-commandes { position: absolute; left: 2.2%; bottom: 2.5%; }
#cadeaux .cx-plaque { --s: calc(6.6cqw / 407); position: relative; box-sizing: border-box; min-width: 22cqw; height: 6.6cqw; 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, opacity .2s; }
#cadeaux .cx-feu { display: flex; align-items: center; gap: .6cqw; white-space: nowrap; transform: translateY(-.1cqw); }
#cadeaux .cx-feu kbd { font-family: inherit; font-size: 1.05cqw; font-weight: 700; line-height: 1; padding: .25cqw .6cqw .3cqw; border-radius: .35cqw; color: #3a2412; background: #f1e2bf; box-shadow: 0 .2cqw 0 #6b4a22; }
#cadeaux .cx-feu i { font-style: normal; font-size: 1.7cqw; color: #e8d2a0; }
#cadeaux .cx-feu b { font-size: 2cqw; font-weight: 800; line-height: 1; color: #b8a27c; text-shadow: 0 .15cqw 0 #1a0e05; }
#cadeaux .cx-plaque.eteinte { filter: grayscale(.45) brightness(.72) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); }
#cadeaux .cx-plaque.cache { opacity: 0; pointer-events: none; }
#cadeaux .cx-plaque.prete b { color: #fff1d0; }
#cadeaux .cx-plaque.prete { filter: brightness(1.06) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); }
#cadeaux .cx-plaque.vise b { color: #ffd23f; }
#cadeaux .cx-plaque.vise { filter: brightness(1.18) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); outline: .25cqw solid #ffc847; outline-offset: -.9cqw; }
#cadeaux .cx-plaque:hover { filter: brightness(1.12) drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); }
#cadeaux .cx-plaque.presse { transform: rotate(-.8deg) translateY(.25cqw); }
#cadeaux .cx-parole { position: absolute; right: 1.6%; top: 4%; display: flex; align-items: center; gap: 1cqw; pointer-events: none; }
#cadeaux .cx-bulle { max-width: 34cqw; min-width: 14cqw; 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; }
#cadeaux .cx-parole.vu .cx-bulle { opacity: 1; transform: rotate(.7deg); }
#cadeaux .cx-bulle b.cx-qui { display: block; font-size: 1.2cqw; font-weight: 700; color: #8a1f12; margin-bottom: .25cqw; }
#cadeaux .cx-dit { display: block; font-size: 1.75cqw; font-style: italic; line-height: 1.25; color: #2e1d0e; }
#cadeaux .cx-dit small { display: block; margin-top: .5cqw; font-size: 1.3cqw; font-style: normal; color: #5a3e22; }
#cadeaux .cx-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); }
#cadeaux .cx-parole.vu .cx-medaillon { opacity: 1; }
#cadeaux .cx-medaillon:empty { display: none; }
#cadeaux .cx-medaillon .illu, #cadeaux .cx-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; }
#cadeaux .cx-fin { position: absolute; right: 2.5%; bottom: 4%; display: flex; flex-direction: column; align-items: flex-end; gap: 1.2cqw; opacity: 0; pointer-events: none; transition: opacity .25s; }
#cadeaux .cx-fin.vu { opacity: 1; pointer-events: auto; }
#cadeaux .cx-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; }
#cadeaux .cx-sceau-2 { transform: rotate(1.2deg) translateX(-1cqw); }
#cadeaux .cx-sceau:hover { filter: brightness(1.07); transform: rotate(0) translateY(-.4cqw); box-shadow: 0 0 0 .2cqw #ffc847, .3cqw .4cqw 0 rgba(0, 0, 0, .45); }
#cadeaux .cx-sceau.presse, #cadeaux .cx-sceau:active { filter: brightness(.94); transform: rotate(0) translateY(.25cqw); }
#cadeaux .cx-sceau-cire { width: 3.6cqw; height: 3.6cqw; background: url(interface/kit_sceau_neutre.png?v=9fb70335) center / contain no-repeat; image-rendering: pixelated; }
#cadeaux .cx-sceau-cire.cx-tendre { background-image: url(interface/kit_sceau_tendre.png?v=27180016); }
#cadeaux .cx-sceau b { font-size: 2.1cqw; font-weight: 800; color: #2e1d0e; white-space: nowrap; }
#cadeaux .cx-dons { position: absolute; left: 3%; bottom: 4%; display: flex; gap: 1.6cqw; align-items: flex-end; opacity: 0; visibility: hidden; transform: translateY(3cqw);
  transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .3, 1.2), visibility .25s; }
#cadeaux .cx-dons.vu { opacity: 1; visibility: visible; transform: none; }
#cadeaux .cx-don { box-sizing: border-box; min-width: 15cqw; padding: 1cqw 1.2cqw .8cqw; display: flex; flex-direction: column; align-items: center; gap: .6cqw; cursor: pointer;
  background: #efe2c2; border: .3cqw solid #7a5530; box-shadow: inset 0 0 0 .25cqw #efe2c2, inset 0 0 0 .38cqw #b89a66, .35cqw .45cqw 0 rgba(0, 0, 0, .45);
  transform: rotate(var(--a, 0deg)); transition: transform .12s, filter .12s; }
#cadeaux .cx-don:hover { transform: rotate(0deg) translateY(-.8cqw); filter: brightness(1.06); box-shadow: inset 0 0 0 .25cqw #efe2c2, inset 0 0 0 .38cqw #ffc847, 0 0 0 .25cqw #ffc847, .35cqw .55cqw 0 rgba(0, 0, 0, .45); }
#cadeaux .cx-don.presse { transform: rotate(var(--a, 0deg)) translateY(.3cqw); filter: brightness(.93); }
#cadeaux .cx-don-img { display: flex; align-items: center; justify-content: center; min-height: 7cqw; }
#cadeaux .cx-don-cv { flex: none; image-rendering: pixelated; image-rendering: crisp-edges; }
#cadeaux .cx-don b { font-size: 1.5cqw; font-weight: 700; color: #2e1d0e; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  #cadeaux, #cadeaux .cx-cartes, #cadeaux .cx-carte, #cadeaux .cx-bulle, #cadeaux .cx-fin, #cadeaux .cx-dons, #cadeaux .cx-don { transition: none; }
  #cadeaux .cx-carte.demande { animation: none; }
}
html.sans-ambiance #cadeaux, html.sans-ambiance #cadeaux .cx-bulle, html.sans-ambiance #cadeaux .cx-dons { transition: none; }
#panneau .cp-coupe .cx-tailler { position: absolute; left: 3%; bottom: 9%; z-index: 7; display: flex; align-items: center; gap: .3em; padding: .05em .7em .05em .25em; cursor: pointer; outline: none;
  border: 9px solid transparent; border-image: url(interface/ui_bouton.png?v=6682903d) 15 fill stretch; font-family: var(--titre, serif); font-size: clamp(12px, 3.6cqw, 18px); color: #f6e7c4; text-shadow: 0 2px 0 #2a1608;
  white-space: nowrap; transform: rotate(-2deg); transition: transform .12s, filter .15s; }
#panneau .cp-coupe .cx-tailler:hover, #panneau .cp-coupe .cx-tailler:focus-visible { transform: rotate(0deg) translateY(-3px); filter: brightness(1.14) drop-shadow(1px 0 0 #ffd66e) drop-shadow(-1px 0 0 #ffd66e) drop-shadow(0 -1px 0 #ffd66e); }
#panneau .cp-coupe .cx-tailler:active { border-image-source: url(interface/ui_bouton_presse.png?v=8f97ce3e); transform: rotate(-2deg) translateY(2px); filter: brightness(.95); }
#panneau .cp-coupe .cx-tailler.cx-luit { animation: cx-luit 1.6s steps(2, jump-none) 3; }
@keyframes cx-luit { 0% { filter: brightness(1); } 100% { filter: brightness(1.2) drop-shadow(1px 0 0 #ffd66e) drop-shadow(-1px 0 0 #ffd66e); } }
#panneau .cp-coupe .cx-tailler-ico { display: inline-flex; width: 1.7em; height: 1.2em; align-items: center; justify-content: center; }
#panneau .cp-coupe .cx-tailler-ico img { max-width: 100%; max-height: 100%; image-rendering: pixelated; margin: 0; border: 0; box-shadow: none; animation: none; border-radius: 0; }
@media (prefers-reduced-motion: reduce) { #panneau .cp-coupe .cx-tailler { animation: none; transition: none; } }
.cx-fiche { display: flex; align-items: flex-end; justify-content: center; gap: 2px; margin-top: 4px; padding: 2px 4px 3px; border-bottom: 3px solid #6b4424; }
.cx-fiche img, .cx-fiche img.illu { width: 32px; height: 32px; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated; margin: 0; padding: 0; border: 0; box-shadow: none; animation: none; border-radius: 0; background: transparent !important; }
.cx-fiche img.cx-derriere { filter: brightness(.68); }
