/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html #modal:not(.accueil) > #modal-box:has(> .tripot-pont.tripot-pont) { width: 100vw !important; max-width: none; height: 100vh; max-height: none !important; padding: 0 !important; overflow: hidden;
  border: 0 !important; border-image: none !important; border-radius: 0 !important; background: #070912 !important; box-shadow: none !important; }
html #modal-box > .tripot-pont { --k: min(1vw, 1.778vh); position: absolute; inset: 0; overflow: hidden; background: #070912 !important; color: #f3e6c8;
  margin: 0; padding: 0 !important; border: 0 !important; border-image: none !important; box-shadow: none !important;
  font-family: Alegreya, 'Palatino Linotype', Georgia, serif; }
.tripot-pont .tp-scene { position: absolute; left: 50%; top: 50%; width: max(100vw, calc(100vh * 2752 / 1536)); aspect-ratio: 2752 / 1536; transform: translate(-50%, -50%); }
html #modal-box > .tripot-pont .tp-scene > .illu { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; margin: 0; object-fit: cover;
  object-position: 50% 50% !important; border: 0 !important; border-image: none !important; border-radius: 0 !important; box-shadow: none !important; }
.tripot-pont .tp-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(transparent 72%, rgba(7, 9, 18, .45) 86%, rgba(7, 9, 18, .7)); }
html #modal-box > .tripot-pont .tp-table { position: absolute; z-index: 1; padding: 0; margin: 0; border: 0 !important; border-image: none !important; background: none !important;
  box-shadow: none !important; cursor: pointer; font: inherit; color: inherit; min-height: 0; }
.tripot-pont .tp-table:focus-visible { outline: none; }
.tripot-pont .tp-lueur { position: absolute; width: calc(42 * var(--k)); height: calc(38 * var(--k)); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 200, 115, .78), rgba(255, 170, 75, .34) 50%, rgba(255, 150, 60, .08) 80%, rgba(255, 150, 60, 0)); mix-blend-mode: screen; opacity: 0; transition: opacity .2s; }
.tripot-pont .tp-table:hover .tp-lueur, .tripot-pont .tp-table:focus-visible .tp-lueur { opacity: 1; }
.tripot-pont .tp-joueur { position: absolute; display: block; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); transition: filter .2s; }
.tripot-pont .tp-joueur img { display: block; width: 100%; height: auto; }
.tripot-pont .tp-joueur .tp-leve { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .2s linear .04s; }
.tripot-pont .tp-joueur .tp-baisse { transition: opacity .12s linear; }
.tripot-pont .tp-table:hover .tp-leve, .tripot-pont .tp-table:focus-visible .tp-leve { opacity: 1; transition: opacity .2s linear; }
.tripot-pont .tp-table:hover .tp-baisse, .tripot-pont .tp-table:focus-visible .tp-baisse { opacity: 0; transition: opacity .12s linear .08s; }
.tripot-pont .tp-table:hover .tp-joueur, .tripot-pont .tp-table:focus-visible .tp-joueur { filter: brightness(1.1) drop-shadow(0 0 calc(1.4 * var(--k)) rgba(255, 196, 110, .85)) drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.tripot-pont .tp-etiquette { position: absolute; display: block; transform: translateX(-50%) rotate(var(--r, 0deg)); transform-origin: 50% 0; pointer-events: none;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .6)); transition: transform .2s; z-index: 1; }
.tripot-pont .tp-table:hover .tp-etiquette, .tripot-pont .tp-table:focus-visible .tp-etiquette { transform: translateX(-50%) translateY(calc(-.5 * var(--k))) rotate(0deg); }
.tripot-pont .tp-papier { display: flex; flex-direction: column; align-items: center; gap: calc(.2 * var(--k)); min-width: calc(13 * var(--k)); padding: calc(.8 * var(--k)) calc(1.8 * var(--k)) calc(.9 * var(--k));
  color: #3a2210; text-align: center; line-height: 1.05; white-space: nowrap;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 246, 220, .35), rgba(120, 80, 30, .18) 90%), url(interface/ui_papier.png?v=66fa38b6) center / cover, #e7d3a2;
  clip-path: polygon(1% 4%, 9% 0, 22% 3%, 37% 0, 52% 2%, 68% 0, 83% 3%, 97% 0, 100% 9%, 98% 28%, 100% 50%, 98% 72%, 100% 93%, 92% 100%, 76% 97%, 60% 100%, 44% 97%, 28% 100%, 12% 97%, 0 100%, 2% 76%, 0 52%, 2% 27%); }
.tripot-pont .tp-jeu { font-family: 'Alegreya SC', Alegreya, Georgia, serif; font-size: calc(2.1 * var(--k)); font-weight: 700; color: #4a220c; }
.tripot-pont .tp-qui { font-size: calc(1.5 * var(--k)); font-weight: 500; }
.tripot-pont .tp-papier .etoiles { font-size: calc(1.6 * var(--k)); letter-spacing: .06em; color: #d9a21e; text-shadow: 0 1px 0 #7a520e, 0 0 3px rgba(255, 220, 120, .6); }
.tripot-pont .tp-papier .etoiles .vide { color: rgba(90, 60, 28, .32); text-shadow: none; }
.tripot-pont .tp-papier small { font-size: max(15px, calc(1.2 * var(--k))); color: #5a3a1a; }
.tripot-pont .tp-banniere { position: absolute; left: 50%; top: calc(2 * var(--k)); z-index: 3; transform: translateX(-50%); pointer-events: none;
  padding: calc(.8 * var(--k)) calc(6 * var(--k)) calc(1 * var(--k)); font-family: var(--titre); font-size: calc(3.8 * var(--k)); line-height: 1; white-space: nowrap;
  color: #f6dc8c; text-shadow: 2px 3px 0 #2a0b06, 0 0 12px rgba(0, 0, 0, .5); background: linear-gradient(#a8261c, #7a160f);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.tripot-pont .tp-hud { position: absolute; right: calc(1.4 * var(--k)); top: calc(1.4 * var(--k)); z-index: 3; display: flex; align-items: center; gap: .35em; pointer-events: none;
  padding: .2em .7em; font-size: max(16px, calc(1.5 * var(--k))); border-radius: 999px; background: rgba(8, 9, 16, .62); box-shadow: inset 0 0 0 1px rgba(201, 161, 74, .45); }
.tripot-pont .tp-hud img { height: 1.2em; }
.tripot-pont .tp-hote { position: absolute; left: calc(1.6 * var(--k)); bottom: calc(1.2 * var(--k)); z-index: 3; display: flex; align-items: flex-end; gap: calc(1 * var(--k));
  max-width: 46%; pointer-events: none; }
.tripot-pont .tp-medaillon { position: relative; flex: none; width: calc(14 * var(--k)); aspect-ratio: 678 / 700; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .75)); }
.tripot-pont .tp-visage { position: absolute; left: 19%; top: 9%; width: 62%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #2a1a0e; }
.tripot-pont .tp-cadre { position: absolute; inset: 0; width: 100%; height: 100%; }
.tripot-pont .tp-nom { position: absolute; left: 18%; right: 18%; bottom: 14.5%; text-align: center; font-size: max(13px, calc(1.1 * var(--k))); line-height: 1.1; color: #3a2210; white-space: nowrap; }
.tripot-pont .tp-replique { margin-bottom: calc(2.2 * var(--k)); padding: calc(.9 * var(--k)) calc(2.4 * var(--k)) calc(.9 * var(--k)) calc(1.4 * var(--k));
  background: linear-gradient(90deg, rgba(8, 9, 16, .82), rgba(8, 9, 16, .62) 78%, rgba(8, 9, 16, 0)); border-radius: 4px; }
.tripot-pont .tp-replique p { margin: 0; font-size: max(19px, calc(1.8 * var(--k))); line-height: 1.22; font-style: italic; color: #f6ead0; text-shadow: 0 2px 3px #000; }
.tripot-pont .tp-replique small { display: block; margin-top: .45em; font-size: max(16px, calc(1.22 * var(--k))); line-height: 1.3; color: rgba(240, 228, 204, .82); }
html #modal-box > .tripot-pont .tp-habitue { position: absolute; right: calc(27 * var(--k)); bottom: calc(2.2 * var(--k)); z-index: 3; display: block; margin: 0; padding: 0; min-height: 0;
  cursor: pointer; font: inherit; color: #3a2210; text-align: center; border: 0 !important; border-image: none !important; border-radius: 0; background: none !important;
  box-shadow: none !important; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .6)); transform: rotate(1.8deg); transition: transform .2s, filter .2s; }
html #modal-box > .tripot-pont .tp-habitue:hover, html #modal-box > .tripot-pont .tp-habitue:focus-visible { outline: 0; transform: rotate(0) translateY(calc(-.5 * var(--k)));
  filter: drop-shadow(0 0 calc(1 * var(--k)) rgba(255, 196, 110, .7)) drop-shadow(0 5px 6px rgba(0, 0, 0, .6)); }
html #modal-box > .tripot-pont .tp-habitue .tp-papier { min-width: calc(17 * var(--k)); padding: calc(.8 * var(--k)) calc(1.8 * var(--k)) calc(.8 * var(--k)) calc(5 * var(--k)); gap: calc(.15 * var(--k)); }
.tripot-pont .tp-hab-visage { position: absolute; left: calc(-2.4 * var(--k)); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: calc(6.6 * var(--k)); height: calc(6.6 * var(--k));
  padding: calc(.4 * var(--k)); border-radius: 50%; box-sizing: border-box; font-size: calc(2.6 * var(--k));
  background: linear-gradient(135deg, #f8e19a 0%, #b9822c 24%, #ffeeb0 42%, #a06a22 62%, #ecc66c 80%, #7a4c16 100%);
  box-shadow: inset 0 0 0 1px #4a2c0a, 0 0 0 1px #3a2208, 0 3px 5px rgba(0, 0, 0, .55); }
.tripot-pont .tp-hab-visage img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1b1f30; box-shadow: inset 0 0 0 1px #4a2c0a; }
.tripot-pont .tp-habitue b { display: block; font-family: 'Alegreya SC', Alegreya, Georgia, serif; font-size: max(17px, calc(1.5 * var(--k))); font-weight: 700; line-height: 1.1; color: #4a220c; }
.tripot-pont .tp-habitue small { display: block; font-size: max(14px, calc(1.1 * var(--k))); color: #5a3a1a; line-height: 1.2; }
html #modal-box > .tripot-pont .tp-canot { position: absolute; right: calc(2 * var(--k)); bottom: calc(2.2 * var(--k)); z-index: 3; margin: 0; min-height: 0;
  padding: calc(.7 * var(--k)) calc(2.2 * var(--k)); cursor: pointer; font-family: 'Alegreya SC', Alegreya, Georgia, serif; font-size: max(16px, calc(1.4 * var(--k))); font-weight: 500;
  color: #f0dcb0; text-shadow: 0 2px 2px rgba(0, 0, 0, .8); border: 0 !important; border-image: none !important; border-radius: 3px;
  background: radial-gradient(circle at calc(1.1 * var(--k)) 50%, #d8b468 0 2px, #6a4a1c 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 1.1 * var(--k)) 50%, #d8b468 0 2px, #6a4a1c 3px, transparent 4px),
    linear-gradient(rgba(255, 220, 160, .08), rgba(0, 0, 0, .28)), linear-gradient(rgba(46, 26, 12, .62), rgba(46, 26, 12, .62)), url(interface/ui_bois_fond.png?v=5dc66c82) center / calc(22 * var(--k)) auto, #4a2e16 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 220, 160, .15), 0 6px 10px rgba(0, 0, 0, .6) !important;
  transform: rotate(-1.2deg); transition: transform .15s, box-shadow .15s, color .15s; }
html #modal-box > .tripot-pont .tp-canot:hover, html #modal-box > .tripot-pont .tp-canot:focus-visible { outline: 0; color: #ffe9b8; transform: rotate(0) translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 220, 160, .15), 0 0 16px rgba(240, 190, 90, .5), 0 6px 10px rgba(0, 0, 0, .6) !important; }
@media (prefers-reduced-motion: reduce) { .tripot-pont .tp-joueur img, .tripot-pont .tp-etiquette, .tripot-pont .tp-lueur { transition: none !important; } }
html #modal:not(.accueil) > #modal-box:has(> .jeu.table-peinte) { width: 100vw !important; max-width: none; height: 100vh; max-height: none !important; padding: 0 !important; overflow: hidden;
  border: 0 !important; border-image: none !important; border-radius: 0 !important; background: #0d0806 !important; box-shadow: none !important; }
html #modal-box > .jeu.table-peinte { --k: min(1vw, 1.778vh); position: absolute; inset: 0; overflow: hidden; margin: 0; padding: 0 !important; border: 0 !important; border-image: none !important;
  box-shadow: none !important; background: radial-gradient(ellipse at 50% 50%, #2b170b, #0d0806 72%) !important; color: #f3e6c8; font-family: Alegreya, 'Palatino Linotype', Georgia, serif; }
.table-peinte .tb-scene { position: absolute; left: 50%; top: 50%; width: min(100vw, calc(112vh * 2752 / 1536)); aspect-ratio: 2752 / 1536; transform: translate(-50%, -50%); }
html #modal-box > .table-peinte .tb-scene > .illu { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; margin: 0; object-fit: cover;
  object-position: 50% 50% !important; border: 0 !important; border-image: none !important; border-radius: 0 !important; box-shadow: none !important; }
.table-peinte .tb-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 6, 3, .62), rgba(10, 6, 3, .18) 21%, transparent 27%, transparent 73%, rgba(10, 6, 3, .18) 79%, rgba(10, 6, 3, .62)); }
.table-peinte .tb-plateau { position: absolute; inset: 0; z-index: 1; }
html #modal-box > .table-peinte .tb-point { all: unset; box-sizing: border-box; position: absolute; width: 5.4%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; cursor: var(--c-fleche); -webkit-tap-highlight-color: transparent; }
.table-peinte .tb-point::after { content: ''; position: absolute; inset: 24%; border-radius: 50%; pointer-events: none; transition: box-shadow .15s, inset .15s; }
.table-peinte .tb-point.clic { cursor: var(--c-main); }
.table-peinte .tb-point.vide.clic:hover::after, .table-peinte .tb-point.vide.clic:focus-visible::after { box-shadow: 0 0 0 3px #ffd56a, 0 0 calc(1.2 * var(--k)) calc(.3 * var(--k)) rgba(255, 196, 90, .8); }
.table-peinte .tb-point.vide.cible::after { inset: 41%; background: #e8b84a; opacity: .35; box-shadow: none; }
.table-peinte .tb-point.vide.cible:hover::after, .table-peinte .tb-point.vide.cible:focus-visible::after { inset: 36%; opacity: .8; box-shadow: 0 0 calc(.8 * var(--k)) rgba(255, 200, 90, .8); }
.table-peinte .tb-point.lui.cible::after { inset: 8%; box-shadow: 0 0 0 3px #ff8a5a, 0 0 calc(1 * var(--k)) rgba(255, 110, 60, .85); animation: tb-cible 1.1s ease-in-out infinite; }
@keyframes tb-cible { 50% { opacity: .45; } }
.table-peinte .tb-point.dernier::after, .table-peinte .tb-point.choisi::after { inset: 6%;
  box-shadow: 0 0 0 1px rgba(40, 22, 6, .75), 0 0 0 3.5px #f3dc98, 0 0 0 4.5px rgba(40, 22, 6, .6), 0 0 calc(.9 * var(--k)) rgba(255, 214, 120, .7); animation: tb-anneau 1.8s ease-in-out infinite; }
@keyframes tb-anneau { 50% { opacity: .6; } }
.table-peinte .tb-point.pris::after { inset: 14%; border: 3px dashed #f3dc98; box-shadow: 0 0 0 1px rgba(40, 22, 6, .55), inset 0 0 0 1px rgba(40, 22, 6, .55); }
.table-peinte .tb-pion { display: block; width: 62%; height: auto; pointer-events: none; filter: drop-shadow(0 calc(.25 * var(--k)) calc(.2 * var(--k)) rgba(0, 0, 0, .65)); transition: transform .14s, filter .14s; }
.table-peinte .tb-point.moi.clic:hover .tb-pion, .table-peinte .tb-point.moi.clic:focus-visible .tb-pion { filter: brightness(1.12) drop-shadow(0 0 calc(.5 * var(--k)) #ffd56a) drop-shadow(0 3px 3px rgba(0, 0, 0, .6)); }
.table-peinte .tb-point.choisi .tb-pion { transform: translateY(-14%) scale(1.1); filter: drop-shadow(0 0 calc(.5 * var(--k)) #ffd56a) drop-shadow(0 calc(.9 * var(--k)) calc(.5 * var(--k)) rgba(0, 0, 0, .55)); }
.table-peinte .tb-point.tombe .tb-pion { animation: tb-tombe .3s ease-out; }
@keyframes tb-tombe { from { transform: translateY(-45%) scale(1.3); opacity: 0; } 70% { transform: translateY(4%) scale(.96); opacity: 1; } to { transform: none; } }
.table-peinte .tb-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.table-peinte .tb-trace line { stroke: #f3dc98; stroke-width: 5; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; }
.table-peinte .tb-des { position: absolute; left: 50%; transform: translate(-50%, -50%); display: flex; gap: calc(.8 * var(--k)); }
.table-peinte .tb-des.lui { top: 29%; } .table-peinte .tb-des.moi { top: 71%; }
.table-peinte .de { width: calc(4 * var(--k)); height: calc(4 * var(--k)); padding: calc(.55 * var(--k)); gap: calc(.22 * var(--k)); margin: 0; border-radius: calc(.75 * var(--k));
  box-shadow: inset 0 0 0 1px #b1a181, 0 calc(.3 * var(--k)) calc(.4 * var(--k)) rgba(0, 0, 0, .55); }
.table-peinte .tb-des .de:nth-child(2n) { transform: rotate(4deg); } .table-peinte .tb-des .de:nth-child(3n) { transform: rotate(-5deg); }
.table-peinte .de.masque { background: linear-gradient(#6b4426, #3a2412); box-shadow: inset 0 0 0 2px #c9973a, 0 calc(.3 * var(--k)) calc(.4 * var(--k)) rgba(0, 0, 0, .55); }
.table-peinte .de.compte { box-shadow: 0 0 0 3px #ffd23f, 0 0 calc(1 * var(--k)) rgba(255, 210, 63, .8); }
.table-peinte .de.roule { animation: deRoule .55s ease-out; }
.table-peinte .de.mini { width: calc(1.7 * var(--k)); height: calc(1.7 * var(--k)); padding: calc(.25 * var(--k)); gap: 1px; border-radius: 4px; vertical-align: middle; position: relative; top: -.08em; }
.table-peinte .tb-enchere { position: absolute; left: 37.5%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); display: flex; flex-direction: column; align-items: center; gap: calc(.2 * var(--k));
  padding: calc(.5 * var(--k)) calc(1.2 * var(--k)) calc(.6 * var(--k)); color: #3a2210; line-height: 1.05; white-space: nowrap; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6));
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 246, 220, .35), rgba(120, 80, 30, .18) 90%), url(interface/ui_papier.png?v=66fa38b6) center / cover, #e7d3a2;
  clip-path: polygon(1% 4%, 12% 0, 30% 3%, 50% 0, 70% 3%, 88% 0, 99% 5%, 100% 50%, 98% 95%, 85% 100%, 65% 97%, 45% 100%, 25% 97%, 6% 100%, 0 94%, 2% 50%); }
.table-peinte .tb-enchere small { font-size: max(13px, calc(1.05 * var(--k))); font-style: italic; }
.table-peinte .tb-enchere > span { display: flex; align-items: center; gap: calc(.5 * var(--k)); }
.table-peinte .tb-enchere b { font-family: 'Alegreya SC', Alegreya, Georgia, serif; font-size: calc(2.2 * var(--k)); color: #4a220c; }
.table-peinte .tb-enchere .de { width: calc(3 * var(--k)); height: calc(3 * var(--k)); padding: calc(.4 * var(--k)); }
.table-peinte .tb-gauche, .table-peinte .tb-droite { position: absolute; top: calc(1.2 * var(--k)); bottom: calc(1.2 * var(--k)); z-index: 3; width: calc(23 * var(--k)); display: flex; flex-direction: column;
  gap: calc(.9 * var(--k)); min-height: 0; }
.table-peinte .tb-gauche { left: calc(1.2 * var(--k)); }
.table-peinte.tb-jeu-des .tb-droite { width: calc(26 * var(--k)); }
.table-peinte .tb-droite { right: calc(1.2 * var(--k)); }
.table-peinte .tb-titre { align-self: flex-start; max-width: 100%; transform: rotate(-1.5deg); }
html #modal-box > .table-peinte .tb-titre h2 { margin: 0 !important; padding: calc(.45 * var(--k)) calc(2.6 * var(--k)) calc(.6 * var(--k)) calc(1.8 * var(--k)); font-family: var(--titre); font-weight: 400;
  font-size: max(20px, calc(2.2 * var(--k))); line-height: 1.05; color: #f6dc8c; text-shadow: 2px 3px 0 #2a0b06, 0 0 12px rgba(0, 0, 0, .5); background: linear-gradient(#a8261c, #7a160f);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 3% 50%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); border: 0; }
.table-peinte .tb-bas { margin-top: auto; }
.table-peinte .tb-joueur { display: flex; align-items: center; gap: calc(.6 * var(--k)); }
.table-peinte .tb-medaillon { position: relative; flex: none; width: calc(9.4 * var(--k)); aspect-ratio: 678 / 700; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .75)); transition: filter .25s, transform .25s; }
.table-peinte .tb-visage { position: absolute; left: 19%; top: 9%; width: 62%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2a1a0e; font-size: calc(3 * var(--k)); }
.table-peinte .tb-visage img { width: 100%; height: 100%; object-fit: cover; }
.table-peinte .tb-cadre { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.table-peinte .tb-ruban { position: absolute; left: 14%; right: 14%; bottom: 14%; text-align: center; font-size: max(11px, calc(.88 * var(--k))); font-weight: 700; line-height: 1.1; color: #3a2210; white-space: nowrap; }
.table-peinte .tb-medaillon.au-trait { transform: scale(1.04); filter: drop-shadow(0 0 calc(.6 * var(--k)) rgba(255, 210, 110, .95)) drop-shadow(0 0 calc(1.6 * var(--k)) rgba(255, 170, 60, .6)) drop-shadow(0 6px 8px rgba(0, 0, 0, .7)); }
.table-peinte .tb-medaillon::before { content: ''; position: absolute; inset: -16% -16% -6%; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(closest-side, rgba(255, 222, 130, .95), rgba(255, 176, 70, .5) 55%, rgba(255, 150, 50, 0)); }
.table-peinte .tb-medaillon.au-trait::before { opacity: 1; animation: tb-halo 1.8s ease-in-out infinite; }
@keyframes tb-halo { 50% { opacity: .65; } }
.table-peinte .tb-medaillon.attend { filter: brightness(.72) saturate(.75) drop-shadow(0 6px 8px rgba(0, 0, 0, .75)); }
.table-peinte .tb-medaillon.reflechit { animation: tb-reflechit 1.1s ease-in-out infinite; }
@keyframes tb-reflechit { 50% { transform: scale(1.08); filter: drop-shadow(0 0 calc(1 * var(--k)) rgba(255, 220, 120, 1)) drop-shadow(0 0 calc(2.4 * var(--k)) rgba(255, 170, 60, .8)) drop-shadow(0 6px 8px rgba(0, 0, 0, .7)); } }
.table-peinte .tb-fiche { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: calc(.2 * var(--k)); padding: calc(.6 * var(--k)) calc(1 * var(--k)) calc(.7 * var(--k));
  color: #3a2210; line-height: 1.1; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6));
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 246, 220, .35), rgba(120, 80, 30, .18) 90%), url(interface/ui_papier.png?v=66fa38b6) center / cover, #e7d3a2;
  clip-path: polygon(1% 4%, 14% 0, 33% 3%, 52% 0, 71% 3%, 88% 0, 99% 4%, 100% 50%, 98% 96%, 82% 100%, 62% 97%, 42% 100%, 22% 97%, 4% 100%, 0 92%, 2% 50%); }
.table-peinte .tb-joueur.lui .tb-fiche { transform: rotate(-1.4deg); } .table-peinte .tb-joueur.moi .tb-fiche { transform: rotate(1.1deg); }
.table-peinte .tb-fiche b { font-family: 'Alegreya SC', Alegreya, Georgia, serif; font-size: max(15px, calc(1.3 * var(--k))); font-weight: 700; color: #4a220c; }
.table-peinte .tb-fiche .etoiles { font-size: max(14px, calc(1.2 * var(--k))); letter-spacing: .06em; color: #d9a21e; text-shadow: 0 1px 0 #7a520e; }
.table-peinte .tb-fiche .etoiles .vide { color: rgba(90, 60, 28, .32); text-shadow: none; }
.table-peinte .tb-reste { display: flex; flex-wrap: wrap; padding-right: calc(.4 * var(--k)); }
.table-peinte .tb-mini { width: calc(1.45 * var(--k)); height: auto; margin-right: calc(-.32 * var(--k)); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.table-peinte .tb-message:empty { display: none; }
html #modal-box > .table-peinte .tb-message .jeu-message { margin: 0; padding: calc(.8 * var(--k)) calc(1.2 * var(--k)); border: 0 !important; border-radius: 0; color: #3a2210; transform: rotate(.8deg);
  font-size: max(15px, calc(1.2 * var(--k))); line-height: 1.25; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6)); box-shadow: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 246, 220, .35), rgba(120, 80, 30, .18) 90%), url(interface/ui_papier.png?v=66fa38b6) center / cover, #e7d3a2 !important;
  clip-path: polygon(0 3%, 10% 0, 28% 2%, 47% 0, 66% 2%, 84% 0, 100% 3%, 99% 50%, 100% 97%, 86% 100%, 67% 98%, 48% 100%, 29% 98%, 10% 100%, 0 97%, 1% 50%); }
.table-peinte .tb-message .jeu-message .bien { color: #1f6a28; } .table-peinte .tb-message .jeu-message .mal { color: #8f1d14; }
.table-peinte .tb-histo:empty { display: none; }
html #modal-box > .table-peinte .tb-histo .historique-des { min-width: 0; margin: 0; padding: calc(.6 * var(--k)) calc(1 * var(--k)); font-size: max(14px, calc(1.1 * var(--k))); line-height: 1.5;
  color: #e9dcc0; background: rgba(12, 8, 5, .72); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(201, 161, 74, .5), 0 4px 8px rgba(0, 0, 0, .5); }
.table-peinte .tb-histo li.j { color: #ffe39a; } .table-peinte .tb-histo li.muet { color: rgba(233, 220, 192, .6); font-style: italic; }
.table-peinte .tb-chiffres { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .3em; padding: .25em .8em; font-size: max(14px, calc(1.1 * var(--k)));
  border-radius: 999px; background: rgba(8, 9, 16, .66); box-shadow: inset 0 0 0 1px rgba(201, 161, 74, .45); text-align: right; }
.table-peinte .tb-chiffres img { height: 1.25em; width: auto; vertical-align: -.25em; }
.table-peinte .tb-chiffres .bien { color: #9fe39a; } .table-peinte .tb-chiffres .mal { color: #ff9c8c; }
.table-peinte .tb-regles { align-self: flex-end; margin: 0; }
html #modal-box > .table-peinte .tb-regles > summary { display: flex; align-items: center; gap: .3em; padding: calc(.3 * var(--k)) calc(.9 * var(--k)) calc(.3 * var(--k)) calc(3.4 * var(--k)); border: 0; border-radius: 0;
  font-size: max(14px, calc(1.1 * var(--k))); font-weight: 600; font-style: italic; color: #2b1a0e; white-space: nowrap; transform: rotate(-2deg); cursor: var(--c-main);
  border-image: url(interface/gazette_etiquette.png?v=b7afc647) 0 10 0 152 fill / 0 calc(.3 * var(--k)) 0 calc(3.1 * var(--k)) stretch; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); transition: transform .15s, filter .15s; }
html #modal-box > .table-peinte .tb-regles > summary::before { content: none; }
html #modal-box > .table-peinte .tb-regles > summary img { height: 1.2em; width: auto; }
.table-peinte .tb-regles > summary:hover, .table-peinte .tb-regles[open] > summary { transform: rotate(0); filter: drop-shadow(0 0 calc(.6 * var(--k)) rgba(255, 196, 110, .75)); }
html #modal-box > .table-peinte .tb-regles .regles-corps { position: fixed; left: 50%; top: 50%; z-index: 20; width: min(48vw, 660px); max-height: 84vh; overflow: hidden; transform: translate(-50%, -50%) rotate(-.6deg);
  padding: calc(1.6 * var(--k)) calc(2.2 * var(--k)); border: 0; border-radius: 0; color: #3a2210; font-size: max(14px, calc(1.12 * var(--k))); line-height: 1.32; box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .8));
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 246, 220, .4), rgba(120, 80, 30, .2) 90%), url(interface/ui_papier.png?v=66fa38b6) center / cover, #e7d3a2;
  clip-path: polygon(0 1%, 12% 0, 30% 1%, 50% 0, 70% 1%, 88% 0, 100% 1%, 99.4% 50%, 100% 99%, 85% 100%, 65% 99%, 45% 100%, 25% 99%, 6% 100%, 0 99%, .6% 50%); }
.table-peinte .tb-regles .regles-corps .muet { color: #6a4a28; }
.table-peinte .tb-corps { display: flex; flex-direction: column; gap: calc(.8 * var(--k)); min-height: 0; }
html #modal-box > .table-peinte .mises { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: calc(.45 * var(--k)); margin: 0; font-size: max(14px, calc(1.05 * var(--k))); }
.table-peinte .mises::before { content: ''; order: 1; flex: 0 0 100%; height: 0; }
html #modal-box > .table-peinte .mise-somme { order: 0; flex: none; min-width: 0; margin-left: auto; padding: calc(.3 * var(--k)) calc(1.1 * var(--k)) calc(.3 * var(--k)) calc(3.6 * var(--k));
  font-size: max(15px, calc(1.15 * var(--k))); font-weight: 600; color: #2b1a0e; white-space: nowrap; transform: rotate(1.5deg);
  border-image: url(interface/gazette_etiquette.png?v=b7afc647) 0 10 0 152 fill / 0 calc(.3 * var(--k)) 0 calc(3.3 * var(--k)) stretch; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
html #modal-box > .table-peinte .mise-somme b { font-size: 1.3em; color: #4a220c; }
html #modal-box > .table-peinte .mises > :not(.mise-somme) { order: 2; }
html #modal-box > .table-peinte .jeton { width: calc(3.2 * var(--k)); height: calc(3.2 * var(--k)); font-size: max(10px, calc(.82 * var(--k))); margin: 0; }
.table-peinte .mises .jeton:nth-of-type(2n) { margin-top: calc(.3 * var(--k)); }
.table-peinte .mises small.muet { flex: 0 0 100%; text-align: right; color: rgba(243, 230, 200, .72); font-size: max(13px, calc(.95 * var(--k))); text-shadow: 0 1px 2px #000; }
.table-peinte .tb-phase { margin: 0; text-align: right; font-size: max(13px, calc(1 * var(--k))); font-style: italic; color: rgba(243, 230, 200, .75); text-shadow: 0 1px 2px #000; }
html #modal-box > .table-peinte .actions-jeu { display: flex; flex-direction: column; align-items: stretch; gap: calc(.6 * var(--k)); margin: 0; }
html #modal-box > .table-peinte .actions-jeu > .muet { display: block; text-align: right; font-size: max(15px, calc(1.2 * var(--k))); font-style: italic; color: #f3e6c8; text-shadow: 0 1px 3px #000; }
html #modal-box > .table-peinte .actions-jeu > .muet b { font-style: normal; color: #ffd56a; }
html #modal-box > .table-peinte .annonce { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: calc(.35 * var(--k)); font-size: max(14px, calc(1.1 * var(--k)));
  font-weight: 700; color: #f3e6c8; text-shadow: 0 1px 3px #000; }
html #modal-box > .table-peinte .annonce > b { min-width: 1.1em; text-align: center; font-size: 1.3em; color: #ffd56a; }
html #modal-box > .table-peinte .annonce > .de { width: calc(3 * var(--k)); height: calc(3 * var(--k)); padding: calc(.4 * var(--k)); }
html #modal-box > .table-peinte .annonce .tb-rond { width: calc(2.5 * var(--k)); height: calc(2.5 * var(--k)); }
html #modal-box > .table-peinte .tb-bouton { all: unset; box-sizing: border-box; position: relative; cursor: var(--c-main); font-family: 'Alegreya SC', Alegreya, Georgia, serif; -webkit-tap-highlight-color: transparent; }
html #modal-box > .table-peinte .tb-plaque { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: calc(4.6 * var(--k)); padding: calc(.4 * var(--k)) calc(1.4 * var(--k)) calc(.4 * var(--k)) calc(5.6 * var(--k));
  color: #f3e6c8; text-shadow: 1px 1px 0 #000; transition: transform .12s, filter .12s;
  border-image: url(interface/kit_plaque_repos.png?v=d5506913) 60 83 60 248 fill / calc(1.15 * var(--k)) calc(1.2 * var(--k)) calc(1.15 * var(--k)) calc(4.8 * var(--k)) stretch;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6)); }
html #modal-box > .table-peinte .tb-plaque:nth-child(odd) { transform: rotate(-.7deg); } html #modal-box > .table-peinte .tb-plaque:nth-child(even) { transform: rotate(.5deg) translateX(calc(-.5 * var(--k))); }
html #modal-box > .table-peinte .tb-plaque:not([disabled]):hover, html #modal-box > .table-peinte .tb-plaque:not([disabled]):focus-visible { border-image-source: url(interface/kit_plaque_survol.png?v=d31caf2d); transform: translateX(calc(-.4 * var(--k))); }
html #modal-box > .table-peinte .tb-plaque.primaire:not([disabled]) { filter: drop-shadow(0 0 calc(.7 * var(--k)) rgba(255, 196, 110, .55)) drop-shadow(0 4px 5px rgba(0, 0, 0, .6)); }
html #modal-box > .table-peinte .tb-plaque[disabled] { border-image-source: url(interface/kit_plaque_grisee.png?v=6ab92ca7); color: rgba(243, 230, 200, .5); cursor: var(--c-fleche); }
.table-peinte .tb-sceau { position: absolute; left: calc(.45 * var(--k)); top: 50%; width: calc(4 * var(--k)); transform: translateY(-50%); pointer-events: none; }
.table-peinte .tb-plaque[disabled] .tb-sceau { filter: grayscale(.85) brightness(.75); }
.table-peinte .tb-mot { font-size: max(16px, calc(1.35 * var(--k))); line-height: 1.1; }
.table-peinte .tb-plaque small { display: block; margin-top: .15em; font-family: Alegreya, Georgia, serif; font-size: max(13px, calc(.95 * var(--k))); color: #cdbb95; line-height: 1.15; }
.table-peinte .tb-plaque small img { height: 1.1em; vertical-align: -.2em; }
.table-peinte .tb-bouton kbd { margin-left: .5em; padding: 1px 4px; font-size: max(10px, calc(.72 * var(--k))); vertical-align: .15em; color: #e8d2a0; background: rgba(0, 0, 0, .35); border: 1px solid rgba(201, 161, 74, .55); }
html #modal-box > .table-peinte .tb-laiton { display: inline-grid; place-items: center; min-width: calc(6.6 * var(--k)); height: calc(3.2 * var(--k)); padding: 0 calc(1 * var(--k));
  font-size: max(14px, calc(1.05 * var(--k))); font-weight: 700; color: #3a2210; text-shadow: 0 1px 0 rgba(255, 240, 200, .45);
  background: url(interface/onglet_plaque_laiton.png?v=e3261fab) center / 100% 100% no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); transition: transform .12s, filter .12s; }
html #modal-box > .table-peinte .tb-rond { display: inline-grid; place-items: center; width: calc(2.8 * var(--k)); height: calc(2.8 * var(--k)); font-family: Alegreya, Georgia, serif;
  font-size: max(16px, calc(1.5 * var(--k))); font-weight: 800; line-height: 1; color: #3a2210; text-shadow: 0 1px 0 rgba(255, 240, 200, .45);
  background: url(interface/comptoir_jeton_laiton.png?v=8db10f3b) center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); transition: transform .12s, filter .12s; }
html #modal-box > .table-peinte .tb-laiton .tb-mot, html #modal-box > .table-peinte .tb-rond .tb-mot { font-size: inherit; }
html #modal-box > .table-peinte :is(.tb-laiton, .tb-rond):not([disabled]):hover, html #modal-box > .table-peinte :is(.tb-laiton, .tb-rond):not([disabled]):focus-visible {
  transform: translateY(-2px); filter: brightness(1.12) drop-shadow(0 0 calc(.5 * var(--k)) rgba(255, 210, 120, .8)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
html #modal-box > .table-peinte :is(.tb-laiton, .tb-rond)[disabled] { filter: grayscale(.7) brightness(.6); cursor: var(--c-fleche); }
html #modal-box > .table-peinte .tb-quitter { all: unset; box-sizing: border-box; margin-top: auto; align-self: flex-end; display: flex; flex-direction: column; align-items: center; cursor: var(--c-main);
  padding: calc(.6 * var(--k)) calc(2.2 * var(--k)); font-family: 'Alegreya SC', Alegreya, Georgia, serif; font-size: max(16px, calc(1.35 * var(--k))); font-weight: 500; line-height: 1.15; text-align: center;
  color: #f0dcb0; text-shadow: 0 2px 2px rgba(0, 0, 0, .8); border-radius: 3px;
  background: radial-gradient(circle at calc(1.1 * var(--k)) 50%, #d8b468 0 2px, #6a4a1c 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 1.1 * var(--k)) 50%, #d8b468 0 2px, #6a4a1c 3px, transparent 4px),
    linear-gradient(rgba(255, 220, 160, .08), rgba(0, 0, 0, .28)), linear-gradient(rgba(46, 26, 12, .62), rgba(46, 26, 12, .62)), url(interface/ui_bois_fond.png?v=5dc66c82) center / calc(22 * var(--k)) auto, #4a2e16;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 220, 160, .15), 0 6px 10px rgba(0, 0, 0, .6); transform: rotate(-1.2deg); transition: transform .15s, box-shadow .15s, color .15s; }
html #modal-box > .table-peinte .tb-quitter small { font-family: Alegreya, Georgia, serif; font-size: max(12px, calc(.9 * var(--k))); color: rgba(240, 220, 176, .75); }
html #modal-box > .table-peinte .tb-quitter:not([disabled]):hover, html #modal-box > .table-peinte .tb-quitter:focus-visible { color: #ffe9b8; transform: rotate(0) translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 220, 160, .15), 0 0 16px rgba(240, 190, 90, .5), 0 6px 10px rgba(0, 0, 0, .6); }
html #modal-box > .table-peinte .tb-quitter[disabled] { opacity: .5; cursor: var(--c-fleche); }
html #modal-box > .table-peinte .tb-quitter img { height: 1.1em; }
@media (prefers-reduced-motion: reduce) { .table-peinte .tb-point.tombe .tb-pion, .table-peinte .tb-medaillon.reflechit, .table-peinte .tb-point.cible::after, .table-peinte .tb-point.dernier::after, .table-peinte .tb-point.choisi::after { animation: none !important; } }
.table-peinte .tb-scene > .rd-icone.tb-regle-ico { left: 1.4%; bottom: 2.4%; z-index: 6; }
.jeu[data-table] > .jeu-tete > .rd-icone.tb-regle-ico { position: relative; flex: none; }
