/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
#tuto-bosco { position: fixed; inset: 0; z-index: 9100; cursor: pointer; user-select: none; --tb-bu: min(50vh, 470px); }
#tuto-bosco .tb-trou { position: fixed; box-sizing: border-box; border-radius: 6px; pointer-events: none;
  box-shadow: inset 0 0 0 2px #f0c95a, 0 0 0 1px rgba(46, 22, 6, .9), 0 0 16px 3px rgba(240, 201, 90, .55);
 }
#tuto-bosco .tb-trou.sans { display: none; }
#tuto-bosco .tb-voile { position: fixed; inset: 0; background: rgba(8, 6, 4, .6); pointer-events: none; }
@keyframes tb-trou { from { opacity: 0; } to { opacity: 1; } }
#tuto-bosco .tb-buste { position: fixed; bottom: 0; width: var(--tb-bu); height: var(--tb-bu); pointer-events: none; animation: tb-entre-g .5s cubic-bezier(.2, .8, .2, 1) both; }
#tuto-bosco.tb-g .tb-buste { left: 0; }
#tuto-bosco.tb-d .tb-buste { right: 0; animation-name: tb-entre-d; }
#tuto-bosco.tb-d .tb-buste img { transform: scaleX(-1); }
#tuto-bosco .tb-buste img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; image-rendering: auto;
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 52% 60% at 50% 46%, #000 62%, transparent 100%);
  transform-origin: 50% 100%; animation: tb-souffle 4.4s ease-in-out infinite alternate; }
#tuto-bosco.tb-d .tb-buste img { animation-name: tb-souffle-d; }
@keyframes tb-entre-g { from { transform: translateX(-26%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tb-entre-d { from { transform: translateX(26%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tb-souffle { from { transform: scale(1); } to { transform: scale(1.016); } }
@keyframes tb-souffle-d { from { transform: scaleX(-1) scale(1); } to { transform: scaleX(-1) scale(1.016); } }
#tuto-bosco .tb-nom { position: absolute; z-index: 2; bottom: max(14px, 2vh); left: 9%; padding: .12em .5em .2em; border-style: solid; border-width: .32em .9em;
  border-image: url(interface/ui_plaque_chene.png?v=1771689d) 22 44 fill / .32em .9em stretch; font: 17px/1.02 var(--titre, 'IM Fell English SC', serif); color: #f8e9c2;
  text-shadow: 0 2px 0 #3a1d08, 0 0 3px rgba(0, 0, 0, .6); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
#tuto-bosco.tb-d .tb-nom { left: auto; right: 9%; }
#tuto-bosco .tb-cartouche { position: fixed; bottom: calc(var(--tb-bu) * .16); box-sizing: border-box; width: max-content; max-width: min(560px, 46vw);
  display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 8px; border-style: solid; border-width: 14px;
  border-image: url(interface/kit_bande.png?v=b51fcec8) 110 fill / 14px stretch; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55)); animation: tb-cart .35s .18s ease-out both; }
#tuto-bosco.tb-g .tb-cartouche { left: calc(var(--tb-bu) * .74); }
#tuto-bosco.tb-d .tb-cartouche { right: calc(var(--tb-bu) * .74); }
@keyframes tb-cart { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
#tuto-bosco .tb-cartouche q { quotes: none; font: italic 600 19px/1.32 Alegreya, 'Palatino Linotype', Georgia, serif; color: #f3e6c8; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#tuto-bosco .tb-pied { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
#tuto-bosco .tb-mer { font: italic 13px/1 Alegreya, Georgia, serif; color: rgba(232, 214, 176, .72); border-bottom: 1px dotted rgba(232, 214, 176, .45); padding: 4px 0 2px; }
#tuto-bosco .tb-mer:hover { color: #f0c95a; border-bottom-color: #f0c95a; }
#tuto-bosco .tb-bien { position: relative; padding: 3px 16px 3px 9px; font: italic 700 14px/1.1 Alegreya, Georgia, serif; color: #7a1a10; rotate: -2deg;
  background: linear-gradient(225deg, transparent 0 7px, rgba(122, 84, 24, .55) 7px 8.5px, #f4e6c4 8.5px);
  box-shadow: 1px 2px 2px rgba(40, 20, 6, .45), inset 0 0 0 1px rgba(122, 84, 24, .35); }
#tuto-bosco .tb-bien::after { content: ''; position: absolute; right: 0; top: 0; width: 8px; height: 8px; background: linear-gradient(225deg, transparent 50%, #d9bf8a 50%); box-shadow: -1px 1px 1px rgba(40, 20, 6, .35); }
#tuto-bosco:hover .tb-bien { color: #a3271a; }
#tuto-bosco.part { opacity: 0; transition: opacity .25s; }
html.tuto-bosco #panneau :is(.cab > .v3-bulle, .v3-cri) { display: none; }
#rendu-cite { position: fixed; z-index: 60; width: min(460px, 34vw); box-sizing: border-box; padding: 8px 8px 7px; cursor: pointer;
  background: url(interface/menu_parchemin.png?v=7555d478) center / 100% 100% no-repeat; filter: drop-shadow(0 6px 10px rgba(10, 5, 1, .6));
  rotate: -1.2deg; animation: rc-entre .5s cubic-bezier(.2, .8, .2, 1) both; }
#rendu-cite.part { opacity: 0; translate: 0 14px; transition: opacity .3s, translate .3s; }
@keyframes rc-entre { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
#rendu-cite .rc-plaque { position: relative; z-index: 2; margin: 2px auto 6px; width: max-content; max-width: 96%; padding: .1em .55em .18em; border-style: solid; border-width: .3em .9em;
  border-image: url(interface/ui_plaque_chene.png?v=1771689d) 22 44 fill / .3em .9em stretch; font: 16px/1.05 var(--titre, 'IM Fell English SC', serif); color: #f8e9c2;
  text-shadow: 0 2px 0 #3a1d08; text-align: center; }
#rendu-cite .rc-plaque small { display: block; font: italic 12px/1.1 Alegreya, Georgia, serif; color: #e8d6a8; }
#rendu-cite .rc-ile { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(80, 50, 20, .5), 0 0 0 2px rgba(240, 201, 90, .55); background: #2b6f9a; }
#rendu-cite .rc-quoi { margin: 6px 4px 0; font: italic 700 16px/1.2 Alegreya, Georgia, serif; color: #2b1a0e; text-align: center; }
#rendu-cite .rc-pied { margin: 2px 4px 0; font: italic 12px/1.1 Alegreya, Georgia, serif; color: rgba(60, 38, 18, .7); text-align: center; }
.ile-terrain.cd-quai { pointer-events: none; z-index: 2; }
#tuto-bosco.calme *, #rendu-cite.calme { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #tuto-bosco *, #rendu-cite { animation: none !important; } }
