/* Noxipotes — Le carnet des mystères, design validé le 19/11/2026.
   Ne vise QUE body.view-enigmes et .noxi-mystere (jamais les chasses/admin).
   Les styles historiques de l'onglet sont surchargés, sans les modifier. */
body.role-explorer.view-enigmes .noxi-enigmes-page.noxi-mystere{
  --noxi-ink:#4c301f;--noxi-paper:#fff9e9;
  box-sizing:border-box!important;display:block!important;
  max-width:1020px!important;width:100%!important;
  margin:0 auto 35px!important;padding:12px 4px 30px!important;
  color:var(--noxi-ink)!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
body.role-explorer.view-enigmes .noxi-mystere *{box-sizing:border-box}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-intro{
  display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;
  background:transparent!important;border:0!important;box-shadow:none!important;
  margin:10px 0 27px;padding:0;text-align:left;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-eyebrow{
  color:#a26f35;display:block;font-weight:900;font-size:11px;letter-spacing:2px;
  text-transform:uppercase;margin-bottom:11px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-intro h1{
  color:#4c301f!important;font:900 clamp(33px,4.1vw,51px)/1.04 'Fraunces',Georgia,serif!important;
  letter-spacing:-1.3px;margin:0 0 11px!important;text-shadow:0 2px #fff3d5;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-intro p{
  color:#87674a!important;font-size:15px!important;line-height:1.5!important;
  max-width:470px;margin:0!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-signet{
  color:#916633;background:#edd7b4;border:2px dashed #ac854e;
  border-radius:16px;padding:11px 16px;font-size:20px;white-space:nowrap;
  box-shadow:4px 5px 0 #dec29c;transform:rotate(5deg);align-self:flex-end;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-stage{
  display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:28px;align-items:stretch;
  min-width:0;width:100%;
}
/* Le parchemin est une vraie feuille avec son double bord, pas une carte ordinaire. */
body.role-explorer.view-enigmes .noxi-mystere .noxi-home-feature.noxi-mystere-paper{
  display:block!important;position:relative!important;isolation:isolate!important;
  padding:0 0 7px!important;margin:0!important;min-width:0!important;
  border:0!important;border-radius:31px 29px 29px 26px!important;
  background:#b4844b!important;
  box-shadow:0 14px 25px #62462727!important;overflow:visible!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper::before{
  content:'';position:absolute;inset:7px 3px 6px;z-index:-1;border-radius:29px;
  background:#9f7340;transform:rotate(-.55deg);
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper-inside{
  min-height:100%;position:relative;overflow:hidden;
  background:linear-gradient(148deg,#fffdf5,#fff7e7 60%,#f8eaca);
  border:2px solid #64452d;border-radius:29px 30px 24px 26px;padding:29px 35px 34px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper-inside::before{
  content:'';position:absolute;left:26px;right:26px;top:13px;height:4px;
  background:radial-gradient(ellipse at center,#d2aa72 22%,transparent 23%) 0 0/28px 4px repeat-x;opacity:.7;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper-inside::after{
  content:'✦';position:absolute;right:15px;bottom:12px;font-size:22px;color:#cba573;opacity:.75;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-sticker{
  display:inline-flex;align-items:center;gap:7px;background:#83592e;color:#fff4dc;
  font:900 10px/1.35 'DM Sans',system-ui,sans-serif;letter-spacing:1.5px;
  border-radius:8px;padding:8px 13px;box-shadow:0 3px #d1a769;transform:rotate(-1deg);
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-chapter{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin:20px 0 14px;color:#805b3b;font:800 11px/1.35 'DM Sans',system-ui,sans-serif;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-wax{
  display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;
  color:#50321c;font:900 20px Georgia,serif;
  background:radial-gradient(circle at 33% 25%,#eecb92,#bc7e42);
  border:2px solid #6d4827;outline:3px solid #f4dfbd;border-radius:48% 53% 45% 51%;transform:rotate(11deg);
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper h2{
  color:#4e2f1d!important;font:900 clamp(28px,3.4vw,38px)/1.1 'Fraunces',Georgia,serif!important;
  letter-spacing:-.8px;margin:0 0 14px!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper .noxi-mystere-question{
  color:#765139!important;font:italic clamp(21px,2.6vw,28px)/1.43 Georgia,serif!important;
  margin:0 0 26px!important;max-width:530px;white-space:pre-wrap;overflow-wrap:anywhere;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-dotted{
  border:0;border-top:1.5px dashed #d5b890;margin:0 0 23px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-answer{margin:0!important}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-answer>label{
  display:block;color:#5c3c26;font-weight:900;font-size:14px;margin:0 0 9px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-inputbox{
  display:flex!important;align-items:stretch;flex-wrap:nowrap!important;
  overflow:hidden;border:2px solid #b89060;border-radius:14px;
  background:#fffdf6;box-shadow:inset 0 1px 6px #7c573014;gap:0!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-inputbox input{
  box-sizing:border-box!important;width:100%!important;flex:1 1 0!important;
  min-width:0!important;min-height:51px!important;margin:0!important;padding:14px 15px!important;
  outline:0!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:transparent!important;color:#51351e!important;
  font:15px/1.3 'DM Sans',system-ui,sans-serif!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-inputbox button{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto!important;
  width:auto!important;min-width:0!important;min-height:51px!important;margin:0!important;padding:0 19px!important;
  border:0!important;border-left:2px solid #694128!important;border-radius:0!important;
  box-shadow:none!important;color:#fff6e7!important;cursor:pointer;
  background:linear-gradient(#9e6b3b,#7d4a27)!important;
  font:800 13px/1.2 'DM Sans',system-ui,sans-serif!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-inputbox button:hover{filter:brightness(1.12)}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-answer .noxi-riddle-hint{
  color:#957356!important;font-size:12px!important;line-height:1.45!important;
  margin:11px 0 0!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-answer .noxi-riddle-feedback{
  font-size:13px;margin:12px 0 0;line-height:1.45;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper .noxi-mystere-empty{
  color:#765139!important;font:italic 21px/1.5 Georgia,serif!important;
}
/* Le compagnon représente un personnage ORIGINAL déjà utilisé dans le jeu. */
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide{
  position:relative;overflow:hidden;min-width:0;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:22px 20px 16px;border:2px solid #bd945e;border-radius:23px;
  background:linear-gradient(180deg,#e9d9b3 0%,#f7edce 45%,#f4ddab 100%);
  box-shadow:0 8px 0 #d4b585,0 10px 20px #6b4c1f1e;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide::before{
  content:'';position:absolute;inset:12px;border:1px dashed #c49c6c;border-radius:16px;pointer-events:none;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide::after{
  content:'✧';position:absolute;right:15px;top:12px;color:#b98c57;font-size:32px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-eyebrow{
  display:block;color:#7e5a36;font-weight:900;font-size:10px;letter-spacing:2px;margin-bottom:13px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide img{
  display:block;position:relative;z-index:1;max-width:96%;width:220px;height:220px;
  object-fit:cover;border:7px solid #fff8e6;outline:2px solid #745031;
  border-radius:50%;box-shadow:0 8px 0 #bd9156;transform:rotate(3deg);
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info{position:relative;z-index:1}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info h2{
  color:#593922;font:900 23px/1.1 'Fraunces',Georgia,serif;margin:18px 0 7px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info p{
  color:#806147;font-size:13px;line-height:1.45;margin:0;max-width:210px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info .noxi-mystere-guide-accent{
  color:#85592f;font:italic 17px Georgia,serif;margin:16px 0 0;
}
/* Encadré des badges : les liens de connexion existants restent de vrais boutons. */
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus{
  position:relative;display:flex;align-items:center;gap:19px;
  padding:22px 26px 22px 24px;margin-top:28px;
  background:linear-gradient(100deg,#f4e2be,#fff5dd 75%);
  border:1.5px solid #c9a776;border-radius:20px;box-shadow:0 5px #e0c293;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-medal{
  display:grid;place-items:center;flex:0 0 63px;width:63px;height:63px;
  font-size:33px;border-radius:18px;border:2px solid #ae7845;
  background:#fff6db;transform:rotate(-8deg);box-shadow:3px 4px 0 #dfc093;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus-copy{min-width:0;flex:1}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus h2{
  color:#4c301f;font:900 22px/1.2 'Fraunces',Georgia,serif;margin:0 0 6px;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus p{
  color:#7f5e42!important;font-size:13px!important;line-height:1.5!important;max-width:700px;margin:0!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus-actions{
  display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus-actions button{
  display:inline-block!important;min-height:37px!important;width:auto!important;
  background:#8b5a34!important;color:#fff8e9!important;border:1.5px solid #87562e!important;
  border-radius:10px!important;box-shadow:none!important;cursor:pointer!important;
  padding:9px 12px!important;font:900 12px/1.2 'DM Sans',system-ui,sans-serif!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus-actions button.is-secondary{
  background:#fff8e6!important;color:#80512d!important;
}
body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-footnote{
  color:#a07b53!important;font-size:12px!important;text-align:center;margin:29px auto 0!important;
  line-height:1.65;
}
body.role-explorer.view-enigmes .noxi-mystere :is(input,button):focus-visible{outline:3px solid #4b85b7!important;outline-offset:3px!important}
@media(max-width:800px){
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-stage{grid-template-columns:minmax(0,1fr);gap:20px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide{order:-1;flex-direction:row;justify-content:center;text-align:left;gap:16px;padding:17px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide::before{inset:9px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide img{width:125px;height:125px;border-width:4px;flex:none}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-eyebrow{display:none}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info h2{font-size:21px;margin:0 0 7px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info p{font-size:12px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info .noxi-mystere-guide-accent{display:none}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-signet{display:none}
}
@media(max-width:520px){
  body.role-explorer.view-enigmes .noxi-enigmes-page.noxi-mystere{padding:7px 2px 20px!important;margin-bottom:24px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-intro{margin:12px 0 20px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-intro h1{font-size:35px!important;letter-spacing:-1.3px;margin-bottom:9px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-intro p{font-size:13px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-eyebrow{font-size:9px;letter-spacing:1.5px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide{min-height:123px;padding:16px 17px 15px;gap:17px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide img{width:99px;height:99px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide-info h2{font-size:20px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper-inside{padding:27px 22px 25px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper h2{font-size:30px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper .noxi-mystere-question{font-size:22px!important;margin-bottom:23px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-wax{width:36px;height:36px;flex-basis:36px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-chapter{margin:17px 0 13px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-inputbox input{padding:14px 11px!important;font-size:14px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-inputbox button{font-size:12px!important;padding:0 13px!important;width:auto!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus{margin-top:23px;align-items:flex-start;gap:14px;padding:19px 15px 20px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-medal{width:49px;height:49px;flex-basis:49px;font-size:25px;border-radius:14px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus h2{font-size:20px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus p{font-size:12px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus-actions button{font-size:11px!important;padding:8px 10px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-footnote{font-size:11px!important;margin-top:25px!important;padding-bottom:22px}
}
@media(max-width:345px){
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide{gap:10px;padding:12px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-guide img{width:82px;height:82px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper-inside{padding:25px 14px 22px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper h2{font-size:25px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-paper .noxi-mystere-question{font-size:19px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-inputbox button{padding:0 9px!important}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-bonus{gap:10px;padding:16px 11px}
  body.role-explorer.view-enigmes .noxi-mystere .noxi-mystere-medal{width:40px;height:40px;flex-basis:40px;font-size:22px}
}
