/* Habillage créateur de personnage : papier natif, encre #331e0b, polices Dungeonfront. Aucun style ne dépend du rendu pour rester utilisable. */
@font-face{font-family:DungeonfrontPixel;src:url('/ui/Dungeonfront_Pixel.ttf') format('truetype');font-display:swap}
@font-face{font-family:DungeonfrontStats;src:url('/ui/Dungeonfront_Stats.ttf') format('truetype');font-display:swap}
.df-beta{box-sizing:border-box;color:#331e0b;font:22px/1.25 DungeonfrontStats,monospace;background:#e2c38b url('/ui/papier_createur_tuile.png') repeat;background-size:auto;image-rendering:pixelated;border:24px solid transparent;border-image:url(/ui/cadres_createur.png) 64 / 24px / 0 stretch;background-clip:padding-box;box-shadow:0 10px 34px #000a;padding:18px 24px;border-radius:0}
.df-beta *{box-sizing:border-box}.df-beta[hidden],.df-beta [hidden]{display:none!important}
.df-beta h2{font:30px/1.1 DungeonfrontPixel,monospace;font-weight:400;text-transform:uppercase;letter-spacing:1px;margin:0 0 8px;color:#331e0b}
.df-beta p{margin:6px 0}.df-beta small{display:block;font:22px/1.2 DungeonfrontStats,monospace;color:#4f3318}
.df-beta .df-eyebrow{color:#6b2a10;font:22px/1.2 DungeonfrontStats,monospace;letter-spacing:1px;text-transform:uppercase}
/* Boutons parchemin : repli bordure encre simple ; l'image n'est appliquée que si le rendu partagé fournit la variable. */
.df-beta button,.df-beta .df-link{font:24px/1.1 DungeonfrontPixel,monospace;text-transform:uppercase;min-height:48px;min-width:44px;padding:14px 20px;border:3px solid #331e0b;border-image:var(--df-creator-button) 12 fill / 12px repeat;background:#c99f62;color:#331e0b;cursor:pointer;display:inline-block;width:auto;margin:0;text-decoration:none;border-radius:0;box-shadow:none;image-rendering:pixelated;text-shadow:none}
.df-beta button:hover,.df-beta .df-link:hover{background-color:#dbb677;filter:brightness(1.1)}.df-beta button:active{transform:translateY(1px)}.df-beta button:disabled{opacity:.6;cursor:wait}
.df-beta :focus-visible{outline:2px solid #8a2b0e;outline-offset:-5px}.df-beta a{color:#6b2a10}.df-beta .df-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}
/* Bandeau d'invitation : le texte peut rétrécir et passer à la ligne, le bouton garde sa largeur naturelle (jamais rétréci par flex) et passe sous le texte si la largeur manque. */
.df-recruit{position:relative;margin:0 auto 22px;width:calc(100% - 36px);max-width:1050px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 22px}
.df-recruit>:not(button){flex:1 1 320px;min-width:0;overflow-wrap:break-word}
.df-recruit h2{margin:4px 0}
.df-recruit button{flex:0 0 auto;max-width:100%;white-space:normal;overflow-wrap:break-word;text-align:center}
.df-dialog{position:fixed;width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:12px 16px;overflow:visible}.df-dialog[open]{display:flex;flex-direction:column}.df-dialog::backdrop{background:#0c100de6}
/* La modale conserve son propre scrolleur ; le document garde sa position et sa largeur à la fermeture. */
html:has(.df-dialog){scrollbar-gutter:stable;background:#161b17}
html:has(.df-dialog[open]){overflow:hidden}
.df-beta button.df-x{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:0;border-image:none;background:transparent url('/ui/fermer.png') center/32px 32px no-repeat;filter:none}
.df-beta button.df-x:hover,.df-beta button.df-x:focus-visible{background-image:url('/ui/fermer_survol.png');filter:none}
.df-beta label{display:block;font:22px/1.2 DungeonfrontStats,monospace;margin:12px 0 6px}
.df-beta input:not([type=checkbox]){display:block;width:100%;font:22px/1.2 DungeonfrontStats,monospace;padding:10px 12px;min-height:48px;border:3px solid #331e0b;background:#f3e1b8;color:#331e0b;border-radius:0;box-shadow:inset 2px 2px 0 #c9a870}
.df-beta .df-checkbox{display:flex;gap:10px;align-items:flex-start}.df-beta input[type=checkbox]{width:24px;height:24px;min-height:0;margin:2px 0;flex:none;accent-color:#331e0b}
.df-beta input.df-honey{display:none!important}.df-beta .df-message{font-size:22px;margin:0 0 6px;overflow-wrap:anywhere}.df-beta .df-message:empty{display:none}
.df-panel-head{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:8px;border-bottom:1px solid #9b7744}.df-panel-head h2{min-width:0;margin:0;overflow-wrap:break-word}
.df-panel-body{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:8px 8px 8px 4px;scrollbar-color:#765533 #e2c38b;scrollbar-width:thin}
.df-panel-body::-webkit-scrollbar{width:10px}.df-panel-body::-webkit-scrollbar-thumb{background:#765533;border:2px solid #e2c38b}.df-panel-body::-webkit-scrollbar-track{background:#e2c38b}
.df-panel-foot{flex:none;min-width:0;padding-top:10px;border-top:1px solid #9b7744}.df-beta .df-panel-foot .df-actions,.df-beta.df-consent>.df-actions{margin-top:0}.df-panel-foot button{flex:1 1 180px;min-width:0;white-space:normal;overflow-wrap:break-word}
.df-beta .df-details{margin:10px 0}.df-details summary{color:#6b2a10;cursor:pointer;padding:6px 8px 6px 0;min-height:36px}.df-details[open] summary{margin-bottom:4px}.df-policy{display:inline-block;margin:8px 0 0;padding:4px;font-size:22px;line-height:1.2}.df-beta .df-receipt h3{font:26px/1.2 DungeonfrontPixel,monospace;color:#331e0b;margin:12px 0}.df-receipt{padding:8px 0}
/* Bandeau de consentement en bas de page : Accepter et Refuser strictement équivalents. */
.df-consent{position:fixed;inset:auto 12px 12px;max-width:820px;margin:0 auto;z-index:10000;border-width:24px;padding:12px 16px;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:visible}
.df-consent .df-actions button{flex:1 1 180px;min-width:140px;min-height:52px}.df-consent p{max-width:920px}
.df-preferences{position:fixed;bottom:8px;right:8px;z-index:9999;font-size:22px!important;min-height:48px;padding:10px 14px!important}
.df-beta.df-preferences[hidden],.df-preferences[hidden]{display:none!important}
@media(max-width:760px){.df-recruit{display:block;margin-top:20px;padding:16px}.df-recruit button{width:100%;margin-top:12px;white-space:normal}.df-beta h2{font-size:26px}.df-consent,.df-dialog{padding:8px 10px}.df-consent .df-actions{gap:8px}.df-consent .df-actions button{flex:1 1 100px;min-width:0;font-size:22px;padding:12px}.df-dialog .df-panel-foot button{font-size:20px;padding:10px 12px}}
/* Le texte seul défile en faible hauteur ; titre, croix et actions restent dans le cadre. */
@media(max-height:560px){.df-consent,.df-dialog{padding:8px 12px}.df-beta h2{font-size:24px}.df-consent p{margin:3px 0}.df-panel-head{padding-bottom:4px}.df-panel-foot{padding-top:6px}.df-panel-foot button{min-height:48px;padding:10px 16px}.df-panel-body{padding-top:4px;padding-bottom:6px}}
@media(prefers-reduced-motion:reduce){.df-beta,.df-beta *{animation:none!important;transition:none!important}}

.df-beta.df-preferences{border:12px solid #331e0b;border-image:var(--df-creator-button) 12 fill / 12px repeat;padding:4px 8px!important;min-height:44px;font:20px/1.1 DungeonfrontPixel,monospace!important;text-transform:uppercase;cursor:pointer}
/* Les préférences reprennent les panneaux Options, sans épais liseré clair. */
.df-beta.df-consent{border:1px solid #806344;border-image:none;padding:16px 20px;background-color:#e2c38b}

.df-beta .df-mobile-warning{border-left:3px solid #90622d;padding-left:12px;font-size:14px;line-height:1.5}
#chargement-conseil .df-mobile-warning{margin-top:14px;border-left:2px solid #b58e51;padding-left:12px;font-size:clamp(13px,1.4vw,16px);line-height:1.5}
