/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
#tourner { display: none; }
html.mobile-debout #tourner { display: flex; position: fixed; inset: 0; z-index: 5000; background: #0d1326; color: #f3e6c4;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px;
  font: 600 22px/1.35 'Alegreya Sans', Verdana, sans-serif; }
html.mobile-debout #tourner img { width: 112px; height: 112px; object-fit: contain; }
html.mobile-debout #tourner small { display: block; margin-top: 6px; font-weight: 400; font-size: 16px; color: #c9b88f; }
html.mobile, html.mobile body { height: var(--hm, 100vh); overflow: hidden; overscroll-behavior: none; }
html.mobile body { min-height: 0; }
html.mobile #app { flex-direction: row; height: var(--hm, 100vh); min-height: 0; padding: 4px; gap: 5px; }
html.mobile #gauche { min-height: 0; gap: 3px; }
html.mobile #barre { flex: 0 0 auto; padding: 1px 6px; gap: 8px; flex-wrap: nowrap; white-space: nowrap; min-height: 0; border-width: 2px; font-size: 12px; }
html.mobile #barre .btn.petit { padding: 1px 7px; min-height: 26px; margin: 0; }
html.mobile #barre .lib, html.mobile #b-joueur { display: none; }
html.mobile #barre > #b-mois, html.mobile #barre > #b-vent { flex: 0 0 auto; overflow: visible; }
html.mobile #barre > #b-guerres { flex: 1 1 0; min-width: 0; }
html.mobile #b-guerres { overflow: hidden; text-overflow: ellipsis; max-width: 30%; }
html.mobile #b-icone { height: 22px; width: auto; }
html.mobile #carte-wrap { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
html.mobile #carte { max-width: 100%; max-height: 100%; }
html.mobile #journal { flex: 0 0 auto; height: 24px; min-height: 0; max-height: none; overflow: hidden; padding: 2px 8px; font-size: 12.5px; line-height: 18px; border-width: 2px; cursor: pointer; }
html.mobile #journal > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.mobile #journal > div:not(:first-child) { display: none; }
html.mobile #panneau { width: 270px; flex: 0 0 270px; height: calc(var(--hm, 100vh) - 8px); max-height: none; padding: 4px; overflow: hidden; border-width: 2px; border-radius: 10px; }
html.mobile .pan-tete { padding: 3px 6px; margin-bottom: 4px; gap: 7px; }
html.mobile .pan-tete .portrait { width: 40px; height: 40px; }
html.mobile .pan-tete .nom { font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.mobile .pan-tete .chiffres { font-size: 12px; gap: 6px; }
html.mobile .pan-onglets .onglet { font-size: 11.5px; padding: 3px 1px; min-height: 26px; }
html.mobile .pan-corps { min-height: 0; padding-top: 4px; font-size: 12px; }
html.mobile .pan-corps .bloc { padding: 4px 7px; margin-bottom: 4px; }
html.mobile .pan-corps .titre-bloc { font-size: 12.5px; margin-bottom: 2px; }
html.mobile .pan-corps .titre-bloc small { font-size: 11px; }
html.mobile .bloc.navire { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
html.mobile .bloc.navire > :not(label):not(.barre) { grid-column: 1 / -1; }
html.mobile .bloc.navire > label { font-size: 11.5px; margin: 0; }
html.mobile .pan-corps .barre { height: 13px; margin: 1px 0; }
html.mobile .pan-corps .barre span { font-size: 10px; line-height: 13px; }
html.mobile .pan-corps .cale, html.mobile .pan-corps .mission { font-size: 11.5px; margin-top: 2px; line-height: 1.3; }
html.mobile .pan-dock { padding: 4px 6px; margin-top: 4px; }
html.mobile .dock-lieu { font-size: 12px; margin-bottom: 3px; line-height: 1.3; }
html.mobile .dock-actions { gap: 3px; margin-bottom: 3px; }
html.mobile .dock-actions .btn { padding: 4px 6px; font-size: 13px; min-height: 30px; }
html.mobile .dock-pouvoirs { gap: 3px; margin-bottom: 3px; }
html.mobile .dock-pouvoirs .btn.pouvoir { font-size: 11.5px; padding: 2px 4px; }
html.mobile .dock-pouvoirs .btn.pouvoir small { font-size: 10px; }
html.mobile .dock-pouvoirs .btn.pouvoir.tuile, html.bois.mobile .dock-pouvoirs .btn.pouvoir.tuile { width: 42px; height: 42px; padding: 0; border-width: 7px !important; }
html.mobile .pouvoir-ico img.emo { width: 24px; height: 24px; }
html.mobile .bulle-pouvoir { display: none !important; }
html.mobile .pan-dock .fin-tour { font-size: 12px; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  white-space: nowrap; }
html.mobile .pan-dock .fin-tour > span { flex: 0 0 auto; }
html.mobile .pan-dock .fin-tour .btn { flex: 1 1 auto; }
html.mobile .pan-dock .fin-tour .btn { padding: 4px 8px; min-height: 30px; font-size: 13px; }
html.mobile #modal { align-items: stretch; justify-content: stretch; }
html.mobile #modal-box, html.mobile #modal-box.large, html.mobile #modal-box[class*="boite-"] {
  width: 100vw; max-width: none; height: var(--hm, 100vh); max-height: none; margin: 0; padding: 6px 8px;
  border: 0; border-radius: 0; box-shadow: none; overflow: hidden; font-size: 13.5px; }
html.mobile #modal-box > div:not(.bulle-tactile) { height: 100%; overflow-y: auto; overflow-x: hidden; }
html.mobile #modal-box h2 { font-size: 21px; margin: 0 0 4px; padding-right: 38px; line-height: 1.1; }
html.mobile #modal-box h3 { font-size: 15px; margin: 6px 0 3px; }
html.mobile #modal-box h4 { font-size: 13.5px; margin: 5px 0 3px; }
html.mobile #modal-box p { margin: 3px 0; }
html.mobile .fermer { top: 5px; right: 6px; width: 32px; height: 32px; line-height: 28px; }
html.mobile .btn { font-size: 13.5px; padding: 5px 10px; }
html.mobile .btn small { font-size: 11.5px; }
html.mobile .boutons { margin-top: 6px; }
html.mobile #modal-box > .m-scene { margin-left: calc(36% + 10px); }
html.mobile #modal-box > .m-scene > .illu, html.mobile #modal-box > .m-scene > .port-hero {
  position: absolute; left: 0; top: 0; bottom: 0; width: 36%; height: 100% !important; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
html.mobile #modal-box > .m-scene > .port-hero .illu {
  position: absolute; inset: 0; width: 100%; height: 100% !important; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
html.mobile .dialogue { display: flex; flex-direction: column; }
html.mobile .dialogue .replique { margin: 2px 0 6px; padding: 6px 10px; }
html.mobile .dialogue .texte, html.mobile .dialogue .qui { max-width: none; }
html.mobile .dialogue .texte { font-size: 14px; line-height: 1.45; }
html.mobile .dialogue .qui { font-size: 13px; margin-bottom: 3px; }
html.mobile .duel-postures, html.bois.mobile .duel-postures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.mobile .duel-postures .btn, html.bois.mobile .duel-postures .btn { min-height: 38px; border-width: 7px !important; }
html.mobile .duel-postures .btn small, html.bois.mobile .choix-dialogue.duel-postures .btn small { font-size: 12.5px; }
html.mobile .duel-postures .btn small, html.bois.mobile .choix-dialogue.duel-postures .btn small, html.mobile .duel-choix .btn small, html.bois.mobile .duel-choix .btn small {
  display: block; position: static; transform: none; padding: 0; background: none; border: 0; box-shadow: none;
  color: #fff3d6 !important; text-shadow: 1px 1px 0 rgba(20, 10, 2, .9) !important; font-size: 11.5px; }
html.mobile .lj-rail { width: 60px; } html.mobile .lj-bout { display: none; }
html.mobile .choc-img img { width: 56px; } html.mobile .choc-nom { font-size: 11px; } html.mobile .choc-nom b { font-size: 13px; }
html.mobile .dialogue .qui-desc, html.bois.mobile .dialogue .qui-desc { max-width: none; font-size: 11px; margin: 0 0 3px; line-height: 1.25; }
html.mobile .choix-dialogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 4px; margin-top: auto; }
html.mobile .choix-dialogue .btn { margin: 0; min-height: 38px; }
html.mobile .resultat ul, html.mobile .chronique ul { margin: 2px 0; padding-left: 18px; }
html.mobile .resultat li, html.mobile .chronique li { margin: 2px 0; line-height: 1.35; }
html.mobile .port .port-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 0 0 4px; padding: 0 40px 0 8px; border-left-width: 4px; }
html.mobile .port .port-tete h2 { margin: 0; padding-right: 0; }
html.mobile .port .port-info { display: none; }
html.mobile .port .port-moi { font-size: 12.5px; }
html.mobile .port .quetes-ici { margin-bottom: 4px; }
html.mobile .port .onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; margin-bottom: 6px; }
html.mobile .port .onglets::-webkit-scrollbar { display: none; }
html.mobile .port .onglets .onglet { flex: 1 0 auto; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 3px 6px 2px; min-height: 0; line-height: 1.1; }
html.mobile .m-onglet-icone { font-size: 19px; line-height: 1.1; }
html.mobile .m-onglet-nom { font-size: 11px; font-weight: 700; white-space: nowrap; }
html.mobile .port .onglet-corps { display: block; }
html.mobile .port .onglet-corps p { line-height: 1.35; }
html.mobile .port .en-vignettes, html.mobile .port .liste-actions.en-vignettes, html.mobile .port .deux-cols .liste-actions.en-vignettes.defile {
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 5px; }
html.mobile .port .en-vignettes .ligne-action.vignette { padding: 5px 5px 6px; gap: 3px; }
html.mobile .vignette .vig-icone { font-size: 24px; }
html.mobile .vignette .vig-nom { font-size: 13px; line-height: 1.15; }
html.mobile .vignette .vig-chiffres, html.mobile .vignette .vig-motif { font-size: 11.5px; line-height: 1.2; }
html.mobile .vignette > .btn, html.mobile .vignette .boutons-ligne .btn { font-size: 12.5px; padding: 3px 8px; min-height: 30px; }
html.mobile .port .deux-cols { display: block; }
html.mobile .port .rumeurs { columns: 1; margin: 0; padding-left: 16px; font-size: 12.5px; }
html.mobile .port .rumeurs li { margin: 1px 0; }
html.mobile .recrues-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
html.mobile .recrues-ligne p { flex: 1 1 220px; margin: 0; }
html.mobile .recrues-ligne .boutons { margin: 0; }
html.mobile .m-biens { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; margin-bottom: 5px; }
html.mobile .m-bien { background: linear-gradient(#f3e5c0, #e8d6aa); border: 1px solid #c9ae72; border-radius: 8px; padding: 4px 5px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
html.mobile .m-bien-nom { font-weight: 800; font-size: 13.5px; color: #3b2612; }
html.mobile .m-bien-nom .tag { font-size: 10px; }
html.mobile .m-bien-prix { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 7px; font-size: 12px; color: #5e3a1c; }
html.mobile .m-bien-cale { font-size: 11.5px; color: #6b4426; min-height: 14px; }
html.mobile .m-bien-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 2px; }
html.mobile .m-bien-boutons .btn { margin: 0; padding: 2px 7px; font-size: 12.5px; min-height: 28px; }
html.mobile .m-navires { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
html.mobile #modal-box.boite-accueil { padding: 0; }
html.mobile #modal-box > .titre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 43%); height: 100%; overflow: hidden; }
html.mobile .titre-hero { margin: 0; height: 100%; min-height: 0; }
html.mobile .boite-accueil .titre-hero .illu, html.mobile .titre .titre-hero .illu { height: 100% !important; aspect-ratio: auto; max-height: none; border-radius: 0; object-fit: cover; object-position: 28% center; }
html.mobile .titre-hero::before { border-radius: 0; }
html.mobile .titre-modes { top: 8px; left: 10px; gap: 8px; }
html.mobile .medaillon-img { width: 58px; font-size: 30px; }
html.mobile .medaillon-nom { font-size: 16px; }
html.mobile .titre-pose { padding: 30px 14px 10px; }
html.mobile .titre-pose h1 { font-size: 34px; }
html.mobile .titre-pose .sous { font-size: 9px; }
html.mobile .titre-bas { display: flex; flex-direction: column; gap: 7px; padding: 8px 10px 8px 12px; min-height: 0; overflow: hidden; }
html.mobile .titre-bas .colonne { padding: 0 !important; border: 0 !important; min-height: 0; }
html.mobile .fiche-titre { font-size: 25px; margin: 0 0 2px; }
html.mobile .fiche-titre small { font-size: 13px; }
html.mobile .fiche-court { font-size: 13.5px; margin: 0; line-height: 1.3; }
html.mobile .fiche-long { display: none; }
html.mobile .reglages { gap: 5px; }
html.mobile .reglage { grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 6px; }
html.mobile .reglage-nom { font-size: 10.5px; letter-spacing: .06em; }
html.mobile .reglette { font-size: 13px; padding: 5px 9px; }
html.mobile .colonne-partir { flex: 1 1 auto; display: flex; flex-flow: row wrap; align-content: stretch; gap: 6px; }
html.mobile .tuile-mer { flex: 3 1 0; min-height: 64px; }
html.mobile .tuile-reprendre { flex: 2 1 0; height: auto; min-height: 64px; }
html.mobile .tuile-nom { font-size: 21px; padding: 14px 8px 6px; }
html.mobile .tuile-reprendre .tuile-nom { font-size: 16px; }
html.mobile .colonne-partir .liens-accueil { flex: 1 1 100%; justify-content: space-between; gap: 4px 10px; }
html.mobile .lien { font-size: 13.5px; }
html.mobile #modal-box > .port.m-scene { margin-left: calc(27% + 10px); }
html.mobile #modal-box > .port.m-scene > .port-hero { width: 27%; }
html.mobile .vignette .vig-motif { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.mobile .m-bien-boutons { flex-wrap: nowrap; gap: 2px; }
html.mobile .m-bien-boutons .btn { padding: 2px 6px; }
html.mobile .m-recrues .boutons-ligne { flex-wrap: nowrap; gap: 4px; }
html.mobile .douane-ligne { font-size: 12.5px; line-height: 1.35; margin: 4px 0 0; }
html.mobile .nego-ligne { font-size: 12.5px; margin: 3px 0; }
html.mobile .port .onglet-corps > p.muet { font-size: 12px; }
html.mobile .m-recrues .boutons-ligne { flex-wrap: wrap; justify-content: center; gap: 3px; }
html.mobile .m-recrues .boutons-ligne .btn { flex: 1 1 auto; }
html.mobile .port h4 + .rumeurs, html.mobile .port .rumeurs { background: #fbf3dc; border: 1px dashed #c9ae72; border-radius: 8px; padding: 4px 8px 4px 24px; }
html.mobile #modal-box > .port.m-scene > .port-tete { position: absolute; left: 0; bottom: 0; width: 27%; z-index: 1; margin: 0;
  display: block; padding: 28px 8px 6px; border: 0; background: linear-gradient(rgba(20, 12, 4, 0), rgba(20, 12, 4, .88) 38%); }
html.mobile #modal-box > .port.m-scene > .port-tete h2 { color: #ffe3a0; text-shadow: 2px 2px 0 #000; font-size: 22px; }
html.mobile #modal-box > .port.m-scene > .port-tete .port-moi { color: #f3e6c4; font-size: 12px; line-height: 1.35; font-weight: 700; }
html.mobile .port .onglets { padding-right: 40px; }
html.mobile .vignette > .btn, html.mobile .vignette .boutons-ligne .btn { white-space: nowrap; font-size: 12px; padding: 3px 6px; }
html.mobile .port .onglet-corps h4 small { font-size: 11px; }
html.mobile .m-bien-boutons .btn { white-space: nowrap; }
html.mobile #modal:not(.accueil) { align-items: center; justify-content: center; }
html.mobile #modal-box:not(.m-plein) { width: min(640px, 96vw); height: auto; max-height: calc(var(--hm, 100vh) - 12px);
  border: 3px solid #8a5a2b; border-radius: 12px; box-shadow: 0 0 0 2px #2a1a0e, 0 12px 40px rgba(0, 0, 0, .7); padding: 10px 14px; }
html.mobile #modal-box:not(.m-plein) > div:not(.bulle-tactile) { height: auto; max-height: calc(var(--hm, 100vh) - 44px); }
html.mobile .resultat.m-scene, html.mobile .fin.m-scene { display: flex; flex-direction: column; justify-content: safe center; }
html.mobile #modal-box > .chronique:has(.journal-long) { display: flex; flex-direction: column; }
html.mobile .chronique .journal-long { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
html.mobile .resultat li, html.mobile .chronique li { font-size: 15px; }
html.mobile .resultat.m-scene .boutons, html.mobile .chronique.m-scene .boutons { margin-top: 10px; }
html.mobile #modal-box > .combat { display: grid; grid-template-columns: minmax(0, 1fr) 244px; column-gap: 10px;
  grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "scene titre" "scene stats" "bas actions"; }
html.mobile .combat > h2 { grid-area: titre; font-size: 17px !important; text-align: left; padding-right: 36px !important; margin: 0 0 4px !important; }
html.mobile .combat > .cb-scene { grid-area: scene; align-self: start; }
html.mobile .combat > .cb-scene canvas { width: 100%; height: auto; max-height: none !important; display: block; }
html.mobile .combat > .cb-stats { grid-area: stats; flex-direction: column; gap: 4px; margin: 0; }
html.mobile .combat .cb-side { padding: 3px 7px; }
html.mobile .combat .cb-nom { font-size: 13px; margin-bottom: 2px; }
html.mobile .combat .cb-ligne { font-size: 11.5px; }
html.mobile .combat > .cb-duel { grid-area: bas; min-height: 0; overflow-y: auto; }
html.mobile .combat > .cb-duel:empty { display: none; }
html.mobile .combat > .cb-log:empty { display: none; }
html.mobile #modal-box > .combat:has(> .cb-log:empty):has(> .cb-duel:empty) {
  grid-template-areas: "scene titre" "scene stats" "scene actions";
}
html.mobile #modal-box > .combat:has(> .cb-log:empty):has(> .cb-duel:empty) > .cb-scene { align-self: center; }
html.mobile .combat:has(.cb-duel:not(:empty)) > .cb-log { display: none; }
html.mobile .combat .duel-tete { margin: 4px 0 2px; }
html.mobile .combat .duel-choix .btn { min-height: 44px; padding: 3px 5px; }
html.mobile .combat > .cb-log { grid-area: bas; max-height: none; min-height: 0; overflow-y: auto; margin-top: 6px; font-size: 12.5px; }
html.mobile .combat > .cb-actions { grid-area: actions; flex-direction: column; flex-wrap: nowrap; justify-content: flex-end; align-items: stretch; gap: 4px; margin: 6px 0 0; min-height: 0; }
html.mobile .combat > .cb-actions .btn { margin: 0; min-height: 36px; text-align: left; }
html.mobile .combat > h2, html.mobile .combat > .cb-stats { align-self: start; }
html.mobile .combat > .cb-actions:has(> .btn:only-child) { justify-content: flex-start; margin-top: 10px; }
html.mobile #modal-box > .aide { display: flex; flex-direction: column; overflow: hidden; }
html.mobile .aide .aide-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px; align-items: stretch; }
html.mobile .aide .aide-nav { flex-direction: column; flex-wrap: nowrap; max-height: none; min-height: 0; overflow-y: auto; gap: 2px; }
html.mobile .aide .aide-nav .onglet { flex: 0 0 auto; font-size: 13px; padding: 5px 8px; min-height: 0; }
html.mobile .aide .aide-texte { max-height: none; min-height: 0; overflow-y: auto; font-size: 14px; line-height: 1.5; padding: 2px 12px 8px; }
html.mobile .aide .droits { margin: 2px 0 0; font-size: 11px; }
html.mobile .aide > .boutons { display: none; }
html.mobile .jeu-tete span { flex: 1 1 auto; min-width: 0; text-align: right; white-space: normal; }
html.mobile .btn kbd { display: none; }
html.mobile #modal-box > .regate { display: grid; grid-template-columns: minmax(0, 1fr) 150px; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; overflow: hidden; }
html.mobile .regate .regate-scene { height: 100%; min-height: 0; justify-self: center; align-self: stretch; aspect-ratio: 360 / 196; max-width: 100%; }
html.mobile .regate #regate-canvas { width: 100%; height: 100%; }
html.mobile .regate .regate-cote { min-height: 0; overflow: hidden; gap: 4px; }
html.mobile .regate #regate-carte { width: 150px; height: auto; aspect-ratio: 220 / 236; }
html.mobile .regate #regate-classement { font-size: 11.5px; padding: 2px 6px 2px 20px; }
html.mobile .regate .regate-commandes { flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
html.mobile .regate [data-maintien] { min-height: 52px; min-width: 96px; font-size: 15px; text-align: center; }
html.mobile .regate .regate-ecoute .jauge { width: 110px; }
html.mobile .regate [data-op="abandon"] { font-size: 12px; padding: 4px 8px; }
html.mobile .regate .abandon-long { display: none; }
html.mobile .regate .abandon-court { display: inline; font-size: 16px; }
html.bois.mobile .regate [data-op="abandon"] { border-width: 7px !important; min-width: 0; flex-shrink: 0; }
html.mobile .regate .hud-louvoyer { font-size: 10px; }
html.mobile .regate .tuto-bulle { font-size: 12px; max-width: 80%; padding: 6px 10px; line-height: 1.3; }
html.mobile .regate .tuto-bulle small { font-size: 10px; margin-top: 3px; }
html.mobile .regate .tuto-fleche { font-size: 24px; }
html.mobile .regate .regate-nom { font-size: 9px; padding: 1px 4px 1px 3px; }
html.mobile .regate #regate-classement small { display: none; }
html.mobile .regate #regate-classement { padding-left: 6px; }
html.mobile .regate #regate-classement li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; list-style-position: inside; }
html.mobile .regate .hud-message { white-space: normal; width: max-content; max-width: 92%; text-align: center; font-size: 12px; }
html.mobile .m-pages { display: flex; gap: 4px; margin: 0 0 5px; }
html.mobile .m-page { flex: 1 1 0; font: 700 12.5px var(--txt); color: #6b4426; background: #f3e5c0; border: 1px solid #c9ae72; border-radius: 999px; padding: 4px 8px; cursor: pointer; }
html.mobile .m-page.actif { background: #8f2020; border-color: #8f2020; color: #ffe8bd; }
html.mobile .m-en-pages > [hidden] { display: none !important; }
@media (max-width: 720px) {
  html.mobile #panneau { width: 236px; flex-basis: 236px; }
  html.mobile .pan-onglets .onglet { font-size: 10.5px; }
}
html.mobile #modal-box.m-avec-scene { padding: 0; }
html.mobile #modal-box.m-avec-scene > .m-scene { padding: 6px 8px 6px 0; }
html.mobile .choix-dialogue { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
html.mobile .port .onglets { padding-right: 0; margin-right: 40px; }
html.mobile .port .onglets .onglet { flex: 1 1 auto; min-width: 52px; padding: 3px 4px 2px; }
html.mobile .pan-onglets .onglet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 2px 1px; line-height: 1.05; min-height: 36px; }
html.mobile .pan-onglets .m-onglet-icone { font-size: 16px; line-height: 1.1; }
html.mobile .pan-onglets .m-onglet-icone img { width: 17px; height: 17px; vertical-align: 0; }
html.mobile .pan-onglets .m-onglet-nom { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html.mobile .pan-onglets .onglet { border-radius: 8px; border-bottom: 2px solid #8a5a2b; background: linear-gradient(#efdfb4, #d8bf84); }
html.mobile .pan-onglets .onglet.actif { background: linear-gradient(#ffe7a0, #f0bf4a); }
html.mobile .m-etat { flex: 0 0 auto; background: linear-gradient(#f6ebd0, #e8d6aa); border: 2px solid #b8955a; border-radius: 9px; padding: 4px 6px; margin-top: 4px; color: #3b2612; }
html.mobile .m-barres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
html.mobile .m-barre { height: 16px; margin: 0; }
html.mobile .m-barre span { font-size: 10px; line-height: 16px; white-space: nowrap; overflow: hidden; }
html.mobile .m-etat-ligne { font-size: 11.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.mobile .pan-dock { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
html.mobile .pan-dock .fin-tour { margin-top: auto; }
html.mobile #panneau .pan-corps { display: none; }
html.mobile.m-fiche #panneau .pan-corps { display: block; position: fixed; z-index: 45; left: 4px; top: 4px; bottom: 4px; right: 284px;
  padding: 6px 10px 10px; overflow-y: auto; border: 3px solid #2a1a0e; border-radius: 12px; font-size: 13.5px;
  background: linear-gradient(160deg, #7a4f2c, #4e3019 60%, #3f2715); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
@media (max-width: 720px) { html.mobile.m-fiche #panneau .pan-corps { right: 250px; } }
html.mobile .m-fiche-tete { position: sticky; top: -6px; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: -6px -10px 6px; padding: 6px 10px; background: #3f2715; color: #ffe3a0; font-family: var(--titre); font-size: 20px; }
html.mobile .m-fiche-tete b { font-weight: 400; }
html.mobile .m-fiche-fermer { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #6b2a1e; background: linear-gradient(#e98a78, #b8483a); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
html.mobile.m-fiche #panneau .pan-corps .bloc { font-size: 13.5px; }
html.mobile.m-fiche #panneau .pan-corps .barre { height: 16px; }
html.mobile.m-fiche #panneau .pan-corps .barre span { font-size: 11px; line-height: 16px; }
html.mobile .dock-actions .btn { min-height: 28px; padding: 3px 6px; line-height: 1.2; }
html.mobile .dock-actions .btn small { font-size: 10.5px; margin-top: 0; }
html.mobile .dock-pouvoirs .btn.pouvoir { padding: 2px 4px; line-height: 1.15; }
html.mobile .dock-pouvoirs .btn.pouvoir small { margin-top: 0; }
html.mobile .dock-lieu { margin-bottom: 2px; }
html.mobile .fin .lignee { max-height: calc(var(--hm, 100vh) - 190px); }
html.mobile .fin-cols { gap: 8px; margin: 4px 0; }
html.mobile .fin-col { padding: 6px 8px; }
html.mobile #modal-box > .famille-fen { display: flex; flex-direction: column; }
html.mobile .famille-fen .arbre { flex: 1 1 auto; min-height: 0; max-height: none; }
html.mobile #modal-box.large:not(.m-plein) { width: calc(100vw - 16px); }
html.mobile .m-scene > .illu[data-nom="prologue_partage"] { object-position: 64% center; }
html.mobile .m-scene > .illu[data-nom="prologue_aujourdhui"] { object-position: 55% center; }
html.mobile .m-scene > .illu[data-nom="bord_vivant"] { object-position: 42% center; }
html.mobile #modal-box.m-avec-bandeau { padding: 0; }
html.mobile #modal-box > .m-bandeau { position: relative; padding: calc(var(--bandeau, 150px) + 6px) 10px 6px; }
html.mobile #modal-box > .m-bandeau > .illu, html.mobile #modal-box > .m-bandeau > .port-hero {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--bandeau, 150px) !important; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; object-fit: cover; min-height: 0; }
html.mobile #modal-box > .m-bandeau > .port-hero .illu { position: absolute; inset: 0; width: 100%; height: 100% !important; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
html.mobile #modal-box > .m-bandeau::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--bandeau, 150px); z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(12, 8, 3, .5), rgba(12, 8, 3, 0) 28%, rgba(12, 8, 3, 0) 58%, rgba(12, 8, 3, .82)); }
html.mobile #modal-box > .m-bandeau > h2 { position: absolute; left: 12px; right: 56px; top: calc(var(--bandeau, 150px) - 34px); z-index: 2; margin: 0; padding: 0;
  color: #ffe3a0; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.mobile #modal-box.m-avec-bandeau > .fermer { z-index: 5; }
html.mobile #modal-box > .m-mesure { display: block !important; height: auto !important; overflow: visible !important; }
html.mobile #modal-box > .m-mesure > * { margin-top: 0 !important; }
html.mobile #modal-box > .m-mesure .journal-long, html.mobile #modal-box > .m-mesure .arbre { max-height: 120px !important; }
html.mobile .dialogue.m-bandeau .choix-dialogue { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
html.mobile .dialogue.m-bandeau .replique { margin-top: 0; }
html.mobile #modal-box > .port.m-bandeau > .port-tete { position: absolute; left: 0; top: 0; z-index: 2; margin: 0; padding: 6px 12px; border: 0; background: none; display: block; }
html.mobile #modal-box > .port.m-bandeau > .port-tete h2 { color: #ffe3a0; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; font-size: 22px; }
html.mobile #modal-box > .port.m-bandeau > .port-tete .port-moi { color: #f3e6c4; font-size: 12px; font-weight: 700; text-shadow: 1px 1px 0 #000, 0 0 4px #000; }
html.mobile #modal-box > .port.m-bandeau > .onglets { position: absolute; left: 0; right: 0; top: calc(var(--bandeau, 150px) - 42px); z-index: 2; margin: 0; padding: 0 8px; border-bottom: 0; }
html.mobile #modal-box > .port.m-bandeau > .onglets .onglet { background: linear-gradient(rgba(239, 223, 180, .92), rgba(216, 191, 132, .92)); }
html.mobile #modal-box > .port.m-bandeau > .onglets .onglet.actif { background: linear-gradient(#ffe7a0, #f0bf4a); }
html.mobile .port.m-bandeau .deux-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
html.mobile .port.m-bandeau .deux-cols.m-en-pages { display: block; }
html.mobile .port.m-bandeau .en-vignettes, html.mobile .port.m-bandeau .liste-actions.en-vignettes { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
html.mobile .port.m-bandeau .m-biens { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
html.mobile .port.m-bandeau .m-navires { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
:where(html.mobile .m-bandeau) > .illu, :where(html.mobile .m-bandeau) > .port-hero .illu { object-position: 50% 35%; }
html.mobile .ecusson-attente { width: 76px; height: 76px; }
html.mobile .attente-titre { font-size: 10px; }
html.mobile .attente { gap: 10px; }
html.mobile .port .onglets .onglet, html.mobile .pan-onglets .onglet {
  border-radius: 9px; border: 2px solid #7a5128;
  background: linear-gradient(#e9d7ab, #cbb079);
  box-shadow: 0 2px 0 rgba(58, 36, 18, .45), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .1s, box-shadow .14s, background .14s;
}
html.mobile .port .onglets .onglet.actif, html.mobile .pan-onglets .onglet.actif {
  background: linear-gradient(#ffe7a0, #eeba45); border-color: #9a6a1e;
  box-shadow: 0 2px 0 #5b3a1a, 0 0 12px rgba(242, 200, 90, .55), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: translateY(-1px);
}
html.mobile #modal-box > .port.m-bandeau > .onglets .onglet {
  background: linear-gradient(rgba(233, 215, 171, .94), rgba(203, 176, 121, .94));
}
html.mobile #modal-box > .port.m-bandeau > .onglets .onglet.actif { background: linear-gradient(#ffe7a0, #eeba45); }
html.mobile .m-onglet-icone { filter: drop-shadow(0 1px 1px rgba(58, 36, 18, .45)); }
html.mobile .pan-onglets .onglet { padding: 2px 1px; }
html.mobile .pan-onglets .m-onglet-icone { font-size: 16px; line-height: 1.05; }
html.mobile .pan-onglets .m-onglet-nom { font-size: 10px; font-weight: 700; letter-spacing: .02em; }
html.mobile .pan-onglets .onglet img { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  html.mobile .port .onglets .onglet, html.mobile .pan-onglets .onglet { transition: none; }
}
html.mobile .pan-onglets .onglet img {
  width: 19px; height: 19px; filter: brightness(1.18) saturate(1.08) drop-shadow(0 1px 1px rgba(58, 36, 18, .5));
}
html.mobile .m-onglet-icone img.emo { width: 19px; height: 19px; vertical-align: 0; }
html.mobile .m-onglet-icone img.emo { width: 24px; height: 24px; }
html.mobile .pan-onglets .onglet img, html.mobile .pan-onglets .m-onglet-icone img.emo { width: 22px; height: 22px; }
html.mobile .vignette .vig-icone { width: 50px; height: 50px; }
html.mobile .vignette .vig-icone img.emo { width: 30px; height: 30px; }
html.mobile .port .liste-actions:not(.en-vignettes),
html.mobile .port .deux-cols .liste-actions:not(.en-vignettes) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
html.mobile .port .ligne-action:not(.vignette) { padding: 4px 7px; gap: 6px; line-height: 1.25; }
html.mobile .port .ligne-action:not(.vignette) b { font-size: 13.5px; }
html.mobile .port .ligne-action:not(.vignette) small { font-size: 11.5px; line-height: 1.25; }
html.mobile .port .ligne-action:not(.vignette) .btn { font-size: 12.5px; padding: 3px 8px; min-height: 30px; white-space: nowrap; }
html.mobile .port .ligne-action:not(.vignette) img.emo { height: 1.5em; vertical-align: -0.35em; }
html.mobile .port .liste-actions:not(.en-vignettes) > .ligne-action.quete { grid-column: 1 / -1; }
html.mobile .m-biens { grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); }
html.mobile .m-navires { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
html.mobile .m-navire .m-bien-nom img, html.bois.mobile .m-navire .m-bien-nom img { height: 38px; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
html.mobile .m-navire .m-bien-boutons, html.bois.mobile .m-navire .m-bien-boutons { grid-template-columns: 1fr; gap: 4px; }
html.mobile .m-navire .m-bien-boutons .btn, html.bois.mobile .m-navire .m-bien-boutons .btn { flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 1px 4px; min-height: 32px; min-width: 0; font-size: 13px; }
html.mobile .m-navire .m-bien-boutons .btn small, html.bois.mobile .m-navire .m-bien-boutons .btn small { display: block; margin: 1px 0 0; font-size: 9.5px; white-space: nowrap; }
html.mobile .m-bien { overflow: hidden; min-width: 0; }
html.mobile .m-bien-nom, html.mobile .m-bien-cale { max-width: 100%; overflow-wrap: anywhere; }
html.mobile .m-bien-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; justify-items: stretch;
 }
html.mobile .m-bien-prix { min-height: 2.5em; align-content: flex-start; }
html.mobile .m-bien-cale { min-height: 15px; }
html.mobile .m-bien-boutons .btn { width: 100%; min-width: 0; margin: 0; padding: 2px 4px; font-size: 12px; text-align: center; }
html.mobile .m-bien-boutons .btn:nth-child(3), html.mobile .m-bien-boutons .btn:only-child { grid-column: 1 / -1; }
html.mobile .m-bien-prix { max-width: 100%; }
html.mobile .m-bien-prix span { white-space: nowrap; }
html.mobile .chapitre { gap: 6px; }
html.mobile .chapitre-illu .illu { width: min(210px, 34vw); max-height: 40vh; }
html.mobile .chapitre-illu .illu[src*="ecusson"] { width: 78px; }
html.mobile .chapitre-titre { font-size: 30px; }
html.mobile .chapitre-ligne { font-size: 13px; }
html.mobile .titre-modes { max-height: 40%; }
html.mobile .medaillon-img { width: min(58px, 13vh); }
html.mobile .medaillon-nom { font-size: min(16px, 3.6vh); }
html.mobile .titre-pose { max-height: 46%; padding-top: min(30px, 6vh) !important; }
html.mobile .titre-pose h1 { font-size: min(34px, 12vw, 11vh); white-space: nowrap; }
html.mobile .titre-pose .sous { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.mobile .dialogue .replique.avec-portrait > .portrait-mini { width: 56px; height: 56px; margin-right: 10px; }
html.mobile .pan-dock .fin-tour { position: sticky; bottom: -6px; z-index: 2; flex-direction: row; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: 6px; margin: 2px -10px -6px; padding: 4px 10px 6px; background: #efe2be;
  box-shadow: 0 -6px 8px -6px rgba(58, 36, 18, .45); }
html.mobile .pan-dock .fin-tour > span { font-size: 12px; line-height: 1.2; flex: 1 1 auto; min-width: 0; white-space: normal; }   
html.bois.mobile .dock-actions .btn, html.bois.mobile .pan-dock .fin-tour .btn {
  border-width: 6px !important; padding: 2px 8px !important; min-height: 0 !important; font-size: 13px !important; line-height: 1.25 !important; }
html.bois.mobile .pan-dock .fin-tour .btn { flex: 0 0 auto; white-space: nowrap; }
html.mobile #menu-deroulant:not(.cache) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; max-height: calc(100vh - 56px); overflow-y: auto; }
html.mobile #menu-deroulant > .menu-sep, html.mobile #menu-deroulant > .menu-reglage { grid-column: 1 / -1; }
html.bois.mobile #menu-deroulant .lien-menu { border-width: 6px !important; padding: 3px 8px !important; min-height: 0 !important; font-size: 13.5px !important; line-height: 1.25 !important; }
html.mobile #btn-plein { display: none !important; }
html.mobile #menu-deroulant > .menu-version { grid-column: 1 / -1; }
html.mobile #btn-installer { grid-column: 1 / -1; order: -1; }
html.bois.mobile .port .onglets .onglet.actif { font-size: 12.5px !important; flex-direction: row !important; align-items: center; gap: 5px !important;
  padding-left: 10px !important; padding-right: 12px !important; white-space: nowrap; flex: 0 0 auto; }
html.mobile .port .ligne-action small { font-size: 12px; line-height: 1.3; }
html.bois.mobile .choix-dialogue .btn small { font-size: 12px !important; line-height: 1.3; }
html.mobile .dialogue .texte { font-size: 14px; }
html.mobile .choix-dialogue .btn small.m-replie { display: none !important; }
html.mobile .choix-dialogue .btn .m-effet-i { margin-left: 6px; font-size: 13px; line-height: 1; opacity: .85; flex: 0 0 auto; }
html.mobile .combat .duel-choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
html.mobile .combat .duel-choix .btn, html.bois.mobile .combat .duel-choix .btn {
  min-height: 0 !important; height: auto; padding: 2px 4px !important; border-width: 5px !important;
  display: flex; flex-direction: column !important; align-items: center !important; justify-content: center; gap: 0 !important;
  font-size: 12.5px !important; line-height: 1.15 !important; white-space: nowrap; }
html.mobile .combat .duel-choix .btn img.emo, html.bois.mobile .combat .duel-choix .btn img.emo { width: 16px !important; height: 16px !important; margin: 0 3px 0 0 !important; vertical-align: -3px; }
html.mobile .combat .duel-choix .btn small, html.bois.mobile .combat .duel-choix .btn small {
  display: block !important; margin: 0 !important; font-size: 10.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html.mobile .m-navire .m-bien-boutons, html.bois.mobile .m-navire .m-bien-boutons { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 3px !important; }
html.mobile .m-navire .m-bien-boutons .btn, html.bois.mobile .m-navire .m-bien-boutons .btn {
  flex-direction: row !important; min-height: 0 !important; padding: 1px 3px !important; border-width: 5px !important; font-size: 12px !important; line-height: 1.2 !important; white-space: nowrap; }
html.mobile .m-navire .m-bien-prix { font-size: 11.5px; gap: 1px 6px; }
html.mobile .m-navire .m-bien-cale { font-size: 11.5px; margin: 1px 0; }
html.mobile .dialogue.recit .texte { font-size: 12px; line-height: 1.35; }
html.mobile .dialogue.recit .qui { font-size: 11px; margin-bottom: 1px; }
html.mobile .dialogue.recit .replique { padding: 4px 10px; margin: 2px 0 4px; }
html.mobile .dialogue.recit .choix-dialogue .btn small { font-size: 10.5px; }
html.mobile .choix-dialogue:not(.duel-postures):not(.duel-choix) .btn:not(:has(.courrier-carte)):not(:has(small:not(.m-replie))) { flex-wrap: nowrap !important; align-items: center; padding: 2px 8px; min-height: 32px; line-height: 1.2; }
html.bois.mobile .choix-dialogue .btn { border-width: 8px !important; }
html.mobile .choix-dialogue .btn > .emo { flex: 0 0 auto; }
html.mobile .choix-dialogue { align-items: start; }
html.mobile .vab-scene { width: min(100%, calc((100vh - 170px) * 2)); }
html.mobile .vab-etiquette { font-size: 10px; line-height: 1.15; padding: 1px 6px; text-align: center; }
html.mobile .vab-etiquette .vab-sep { display: none; }
html.mobile .vab-etiquette .vab-etat { display: block; }
