/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.cm-bouton { all: unset; position: absolute; z-index: 2; box-sizing: border-box; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 9px; background: radial-gradient(circle at 38% 30%, #f3d58a, #b98b3c 55%, #6e4a18); box-shadow: 0 0 0 2px #3b2410, 0 3px 6px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 240, 200, .7);
  transition: filter .12s ease, transform .12s ease; }
.cm-bouton.cache { display: none; }
.cm-bouton > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cm-bouton:has(> img) { background: none; box-shadow: none; }
.cm-bouton:has(> img) .cm-glyphe { display: none; }
.cm-bouton:hover, .cm-bouton:focus-visible { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255, 210, 120, .7)); }
.cm-bouton:active { transform: translateY(1px) scale(.96); }
.cm-bouton.allume { filter: drop-shadow(0 0 7px rgba(255, 214, 110, .95)); }
.cm-bouton.allume:not(:has(> img)) { background: radial-gradient(circle at 38% 30%, #fff1c0, #e2b04e 55%, #8a5d1c); }
.cm-glyphe { position: relative; width: 44%; height: 30%; margin-top: 22%; background: #3b2410; border-radius: 1px; }
.cm-glyphe::before { content: ''; position: absolute; left: -22%; right: -22%; bottom: 100%; height: 95%; background: #3b2410; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cm-glyphe::after { content: ''; position: absolute; left: 38%; width: 24%; bottom: 0; height: 55%; background: #f3d58a; border-radius: 2px 2px 0 0; }
#b-guerres.cm-guerres .guerre { cursor: pointer; transition: transform .12s ease, filter .12s ease; }
#b-guerres.cm-guerres .guerre:hover { transform: translateY(-1px); filter: drop-shadow(0 0 4px rgba(255, 120, 90, .8)); }
html.mobile #b-guerres.cm-guerres { cursor: pointer; }
#b-guerres.cm-guerres .guerre.cm-montree { transform: translateY(-1px); filter: drop-shadow(0 0 5px rgba(255, 214, 110, .95)); }
.cm-guerre-mot { position: fixed; z-index: 70; box-sizing: border-box; width: min(380px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 5px;
  padding: 13px 22px 15px 20px; background: url(interface/menu_parchemin.png?v=7555d478) center / 100% 100% no-repeat, #ead7ad; border-radius: 3px; color: #2b1a0e;
  font: 600 14px/1.3 Alegreya, 'Palatino Linotype', Georgia, serif; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); cursor: pointer;
  animation: cmg-entre .22s ease-out both; }
.cm-guerre-mot::before { content: ''; position: absolute; top: -7px; left: calc(var(--fleche, 40px) - 7px); width: 14px; height: 14px; rotate: 45deg; background: #ead7ad;
  box-shadow: -1px -1px 0 rgba(90, 58, 20, .55); }
.cm-guerre-mot .cmg-titre { font: 800 16.5px/1.15 Alegreya, Georgia, serif; color: #6e1a10; }
.cm-guerre-mot .cmg-ligne { font-style: italic; }
.cm-guerre-mot .cmg-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(90, 58, 20, .35);
  font: 700 13px/1.2 Alegreya, Georgia, serif; }
.cm-guerre-mot .cmg-qui { display: inline-flex; align-items: center; gap: 6px; }
.cm-guerre-mot .cmg-qui::before { content: ''; flex: none; box-sizing: border-box; width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--c);
  box-shadow: 0 0 0 1px rgba(30, 16, 4, .8), inset 0 0 0 1px rgba(30, 16, 4, .6), 0 0 7px var(--c); }
.cm-guerre-mot .cmg-pav { width: 22px; height: 21px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
@keyframes cmg-entre { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cm-guerre-mot { animation: none; } }
.cm-carton .cm-carte { height: 64cqh; top: 13cqh; aspect-ratio: .74; }
.cm-carte > .cm-carte-peinte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cm-carte:has(> .cm-carte-peinte) > .cm-carte-dessin { visibility: hidden; }
.cm-carte-dessin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4cqh; border-radius: 1.2cqh;
  background: radial-gradient(ellipse at 50% 40%, #f7ebcc, #e6d3a4 70%, #cfb57e); box-shadow: inset 0 0 0 .5cqh #f9f1da, inset 0 0 0 .8cqh #8a6a3a, inset 0 0 3cqh rgba(120, 80, 30, .35); }
.cm-pav { position: relative; width: 10cqh; height: 7cqh; background: var(--c, #888); box-shadow: 0 0 0 .3cqh #3b2410, 0 .5cqh .8cqh rgba(0, 0, 0, .35); }
.cm-pav > img { position: absolute; inset: -1cqh; width: calc(100% + 2cqh); height: calc(100% + 2cqh); object-fit: contain; }
.cm-pav:has(> img) { background: none; box-shadow: none; }
.cm-cire { position: relative; width: 12cqh; height: 12cqh; }
.cm-cire > i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e0584a, #9b1c14 60%, #5e0d08); box-shadow: 0 .5cqh .8cqh rgba(0, 0, 0, .45); }
.cm-cire > i::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; box-shadow: inset 0 0 0 .4cqh rgba(60, 6, 4, .55); }
.cm-guerre .cm-cire > i:first-child { clip-path: polygon(0 0, 55% 0, 42% 38%, 58% 62%, 45% 100%, 0 100%); transform: translate(-1.4cqh, .6cqh) rotate(-14deg); }
.cm-guerre .cm-cire > i:last-child { clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%, 58% 62%, 42% 38%); transform: translate(1.4cqh, -.4cqh) rotate(11deg); }
.cm-paix .cm-cire::before { content: ''; position: absolute; left: -9cqh; right: -9cqh; top: 44%; height: 12%; background: #f4f1ea; box-shadow: 0 0 0 .2cqh #b8ad98; }
.cm-paix .cm-cire > i:last-child { display: none; }
.cm-carton .ilo-texte small + small { margin-top: 1.2cqh; }
#modal-box.boite-cite-loin .cm-loin-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-style: italic; }
#modal-box.boite-cite-loin .onglet-corps button[disabled] { cursor: not-allowed; }
p.cite-objectif { margin: 0 0 .5em; padding: .3em .6em; border-left: 3px solid #c9a45a; background: rgba(201, 164, 90, .14); font-weight: 700; }
.jour.sc .ct-etiq.ct-objectif { font-size: max(13px, 1.12cqw); font-weight: 700; box-shadow: 0 0 0 2px rgba(201, 164, 90, .85), 0 2px 4px rgba(0, 0, 0, .35); }
