/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.tdm-scene .ob-cartes { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: calc(.5 * var(--u)); }
.tdm-scene .ob-bosco { margin: 0; max-width: 86%; text-align: center; font-style: italic; font-size: calc(1.75 * var(--u)); line-height: 1.2; color: #f6e7c4; }
.tdm-scene .ob-rang { display: flex; justify-content: center; gap: calc(1.6 * var(--u)); flex-wrap: nowrap; }
.tdm-scene .ob-carte { all: unset; box-sizing: border-box; position: relative; cursor: pointer; width: calc(25 * var(--u)); min-height: calc(10.5 * var(--u));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(.35 * var(--u)); text-align: center;
  padding: calc(.8 * var(--u)) calc(1.2 * var(--u)) calc(.9 * var(--u)); border-radius: calc(.5 * var(--u)); color: #2b2118; font-family: 'IM Fell English', Georgia, serif;
  background: radial-gradient(ellipse at 50% 35%, #f3e4c0, #dcc38f 88%);
  box-shadow: 0 calc(.4 * var(--u)) calc(.9 * var(--u)) rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(80, 50, 20, .45), inset 0 calc(.35 * var(--u)) 0 var(--pc, #8a6418);
  transform: rotate(var(--r, -1deg)); transition: transform .15s ease, box-shadow .15s ease; }
.tdm-scene .ob-carte:nth-child(2) { --r: .8deg; } .tdm-scene .ob-carte:nth-child(3) { --r: -.6deg; } .tdm-scene .ob-carte:nth-child(4) { --r: 1.2deg; }
.tdm-scene .ob-carte:hover, .tdm-scene .ob-carte:focus-visible { transform: rotate(0deg) translateY(calc(-.5 * var(--u))) scale(1.03); }
.tdm-scene .ob-p-gloire { --pc: #6f8f2a; } .tdm-scene .ob-p-fortune { --pc: #b07f12; } .tdm-scene .ob-p-terres { --pc: #2d7a6a; }
.tdm-scene .ob-p-sang { --pc: #9b2f3c; } .tdm-scene .ob-p-couronne { --pc: #3b5fa8; }
.tdm-scene.p-ob_carte .ob-carte { background: url(interface/ob_carte.png?v=48076cb2) center / 100% 100% no-repeat; box-shadow: 0 calc(.4 * var(--u)) calc(.9 * var(--u)) rgba(0, 0, 0, .6), inset 0 calc(.35 * var(--u)) 0 var(--pc, #8a6418); }
.tdm-scene .ob-ico { font-size: calc(2.4 * var(--u)); line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.tdm-scene .ob-t { font-size: calc(1.75 * var(--u)); line-height: 1.15; font-weight: 700; }
.tdm-scene .ob-note { font-size: calc(1.35 * var(--u)); font-style: italic; opacity: .8; }
.tdm-scene .ob-d { font-size: calc(1.4 * var(--u)); color: #4a3218; }
.tdm-scene .ob-carte.encours { filter: saturate(.7); background: radial-gradient(ellipse at 50% 35%, #e9dcc0, #cdb99a 88%); }
.tdm-scene .ob-cachet { position: absolute; right: calc(-1 * var(--u)); top: calc(-1.2 * var(--u)); display: none; place-items: center; width: calc(5.4 * var(--u)); height: calc(5.4 * var(--u));
  border-radius: 50%; font-size: calc(1.3 * var(--u)); font-weight: 700; letter-spacing: .04em; color: #f6e7c4; text-transform: uppercase; transform: rotate(-14deg);
  background: radial-gradient(circle at 35% 30%, #e0605a, #8f1c16 60%, #5c0f0b); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.tdm-scene .ob-carte.pris .ob-cachet { display: grid; }
.tdm-scene .ob-carte.pris { transform: rotate(0deg) translateY(calc(-.6 * var(--u))); box-shadow: 0 0 0 calc(.3 * var(--u)) #e2b13c, 0 calc(.6 * var(--u)) calc(1.2 * var(--u)) rgba(0, 0, 0, .7), inset 0 calc(.35 * var(--u)) 0 var(--pc, #8a6418); }
.tdm-scene.p-ob_cachet .ob-cachet { background: url(interface/ob_cachet.png) center / contain no-repeat; box-shadow: none; }
.tdm-scene .ob-titre { margin: 0; font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif; font-size: calc(2.3 * var(--u)); line-height: 1.1; color: #f3cf74;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6); letter-spacing: .02em; }
.tdm-scene .ob-carte.neuve:not(.pris):hover, .tdm-scene .ob-carte.neuve:not(.pris):focus-visible { transform: rotate(0deg) translateY(calc(-1.3 * var(--u))) scale(1.06);
  box-shadow: 0 calc(1.2 * var(--u)) calc(1.8 * var(--u)) rgba(0, 0, 0, .7), 0 0 0 calc(.25 * var(--u)) rgba(243, 207, 116, .8), inset 0 calc(.35 * var(--u)) 0 var(--pc, #8a6418); }
.tdm-scene .ob-pied { display: flex; align-items: center; justify-content: center; gap: calc(1.4 * var(--u)); font-size: calc(1.45 * var(--u)); color: #f6e7c4; }
.tdm-scene .ob-etat { font-style: italic; opacity: .85; }
.tdm-scene .ob-passer { all: unset; cursor: pointer; padding: calc(.25 * var(--u)) calc(1 * var(--u)); border-radius: calc(.4 * var(--u)); font-size: calc(1.45 * var(--u));
  color: #f6e7c4; box-shadow: inset 0 0 0 1px rgba(246, 231, 196, .55); background: rgba(30, 18, 8, .35); }
.tdm-scene .ob-passer:hover, .tdm-scene .ob-passer:focus-visible { background: rgba(60, 36, 14, .6); box-shadow: inset 0 0 0 1px #f3cf74; }
.tdm-scene .ob-passer.fait { color: #f3cf74; }
.tdm-scene .gz-continuer.ob-bloque { cursor: not-allowed; filter: grayscale(.7) brightness(.8); }
@keyframes ob-insiste { 0%, 100% { transform: none; } 20% { transform: translateY(calc(-.8 * var(--u))); } 45% { transform: translateY(0); } 65% { transform: translateY(calc(-.4 * var(--u))); } }
.tdm-scene .ob-cartes.ob-insiste .ob-rang { animation: ob-insiste .8s ease; }
.tdm-scene.ob-avec .tdm-bas { flex-basis: calc(10 * var(--u)); }
.ob-compteur { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; box-sizing: border-box; margin-top: 3px; padding: 1px 7px; border-radius: 9px; font-size: 11px; line-height: 1.3;
  cursor: pointer; opacity: .92; white-space: nowrap; overflow: hidden; background: rgba(40, 24, 10, .14); box-shadow: inset 0 0 0 1px rgba(90, 60, 25, .3); }
.ob-compteur .ob-c-txt { overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.ob-compteur:hover { opacity: 1; text-decoration: underline dotted; }
html.mobile .ob-compteur { display: none; }
.tdm-scene.p-tdm_carte_objectif .tdm-o-objectif { background: url(interface/tdm_carte_objectif.png?v=7e4e272b) center / contain no-repeat; box-shadow: none; border-radius: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }
.tdm-scene.p-tdm_carte_objectif .tdm-o-objectif > i { visibility: hidden; }
.tdm-scene .ob-gestes { display: block; font-size: calc(1.45 * var(--u)); line-height: 1.2; font-style: italic; color: #4a3a28; }
.tdm-scene .ob-gestes i { font-style: inherit; white-space: nowrap; }
.tdm-scene .ob-gestes i.fait { color: #2d6a3a; font-weight: 700; }
