/* NOXIPOTES — identité permanente. Chargée après les décors saisonniers. */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&display=swap');
:root{--nox-ink:#192f40;--nox-cream:#f8eedb;--nox-gold:#e6b978;--nox-leaf:#a8b97b;--nox-sky:#b9e2f3;--nox-brown:#86613d;--nox-line:#dfcfaf;--nox-paper:#fffaf0;--ink:var(--nox-ink);--muted:#6c756b;--paper:var(--nox-paper);--line:var(--nox-line);--green:#304d42;--forest:#304d42;--gold:var(--nox-gold);--haze:#f6edda;--deep:#253f42;--deep-2:#405b4b;--wash:#f6eedc;--border-accent:#d9c59d;--r:21px;--shadow:0 12px 30px rgba(69,53,29,.10)}
html{background:var(--nox-cream)}
body,body.theme-classique,body.theme-noel,body.theme-halloween,body.theme-paques,body.theme-printemps,body.theme-ete{--imm-base:#f8eedb;--imm-dark:#f7ecd5;--imm-deep:#f0e2c6;--imm-panel:#fffaf0;--imm-panel-2:#f3e7d1;--imm-line:#decba6;--imm-highlight:#b88c4c;--imm-txt:#192f40;--imm-muted:#687467;--imm-light:#fffaf0;--imm-glow:#b9e2f3;--imm-fade:#f8eedbed;--paper:#fffaf0;--ink:#192f40;--muted:#687467;--wash:#f5ebd6;--border-accent:#dfcba8;background:#f8eedb!important;color:#192f40!important;color-scheme:light;font-family:'Nunito',system-ui,sans-serif}
.site-bg,.theme-noel .site-bg,.theme-halloween .site-bg,.theme-paques .site-bg,.theme-printemps .site-bg,.theme-ete .site-bg{background:radial-gradient(ellipse 550px 390px at 95% 8%,#c7e8f3a8,transparent 80%),radial-gradient(ellipse 530px 450px at 3% 66%,#dce5c1a6,transparent 77%),repeating-linear-gradient(40deg,#d6bc8c10 0 1px,transparent 1px 18px),#f8eedb!important}
.site-bg:before,.site-bg:after,.theme-atmosphere{display:none!important}
.topbar{width:min(1180px,calc(100% - 30px));height:auto;min-height:94px;padding:12px 0;position:relative;z-index:4;border-bottom:1px solid #dfcba7;background:transparent!important;box-shadow:none!important}
.topbar:before,.theme-noel .topbar:before{display:none!important}
.brand{gap:12px;align-items:center}.brand .nox-logo{display:block;width:66px;height:66px;object-fit:contain;filter:drop-shadow(0 4px 6px #72562b2b)}.brand strong{font-family:'Fraunces',Georgia,serif;font-size:clamp(19px,3vw,28px);font-weight:800;letter-spacing:.4px;color:#192f40!important}.brand small{color:#86613d!important;letter-spacing:1.05px;font-size:9px;margin-top:5px}.top-right{color:#192f40!important}.header-guide,.user-status{background:#fff9ed!important;border:1px solid #dfcba7!important;color:#304b43!important;border-radius:18px!important}
.app-container{position:relative;z-index:2}.hero,.page-banner,.banner.page-banner{border:2px solid #d7bd8e!important;border-radius:28px!important;background:radial-gradient(circle at 87% 18%,#d3eaf2 0%,transparent 42%),linear-gradient(125deg,#fff8e9,#f2e4c7 72%,#e8d5ac)!important;color:#192f40!important;box-shadow:0 15px 32px #6b512c18!important;isolation:isolate}
.hero:after{content:'✦';font-size:220px;color:#ba965b12;bottom:-75px;right:20px}.hero h1,.page-banner .page-title,.page-banner .page-subtitle,.page-banner .section-kicker,.hero p,.hero .eyebrow{color:#192f40!important}.hero p,.page-subtitle{color:#536b62!important}.hero .eyebrow,.section-kicker,.eyebrow{color:#9a7041!important}.hero .scene-artwork,.page-banner .scene-artwork{opacity:.28;filter:saturate(.75)!important}
h1,h2,h3,.hero-title,.stat-value,.page-title{font-family:'Fraunces',Georgia,serif;color:#192f40!important}.hero h1{color:#192f40!important}
.card,.card.highlight,.theme-admin-card,.guide-type-panel,.clue-card,.selected-qr,.qr-chip,.hunt-card,.empty,.play-help-strip,.theme-option,.theme-preview,.journey-strip{background:#fffaf0!important;color:#192f40!important;border:1px solid #dfcba7!important;box-shadow:0 8px 24px #765d3520!important;border-radius:20px!important}
.card:after{background:none!important}.card h3,.card p,.guide-type-heading h3,.guide-type-heading p,.theme-option strong,.theme-option small,.hunt-card-content h3,.hunt-card-content p,.clue-card h3,.empty p{color:#192f40!important}.card p,.hunt-card-content p,.guide-type-heading p,.empty p{color:#67766d!important}.hunt-card-content{background:#fffaf0!important}.hunt-card-banner{border-radius:18px 18px 0 0}.hunt-card-theme{background:#f5ebd7!important;color:#314a44!important}.card:not(.hunt-card)::before{background:linear-gradient(90deg,#a8b97b,#e6b978,#b9e2f3)!important;height:3px}
.btn,.btn.primary,.nav-button.active,.pill.active,.tab-pills .active{background:#e6b978!important;color:#192f40!important;border:1px solid #c79a5d!important;border-radius:14px!important;box-shadow:0 3px 0 #b9905b30;font-weight:900}.btn:hover:not(:disabled){filter:brightness(1.035)}.btn.outline,.btn.plain,.btn.secondary{background:#fffaf0!important;color:#304b43!important;border:1px solid #d6c39d!important}.btn.ghost{background:#304b43!important;color:#fffaf0!important;border-color:#304b43!important}.btn.danger{background:#a94d4b!important;color:white!important;border-color:#a94d4b!important}
.bottom-nav,.admin-top-tabs{background:#fffaf0f5!important;border:1px solid #ddc79f!important;box-shadow:0 9px 28px #765d3530!important}.nav-button{color:#546b60!important}.nav-button.active{color:#192f40!important}.admin-top-tabs button{color:#304b43}.badge{background:#f0e2c6;color:#66512e}.badge.normal{background:#e2ecd4;color:#405c35}.badge.tresor{background:#f5dfb5;color:#72512d}.badge.ended{background:#f7e2dc;color:#8c4d44}
.field label{color:#42594d!important}.field input,.field textarea,.field select,input,textarea,select{background:#fffefa!important;color:#192f40!important;border-color:#d6c49f!important;border-radius:12px!important}.field input:focus,.field textarea:focus,.field select:focus{border-color:#a2b57b!important;box-shadow:0 0 0 3px #a8b97b55!important}.notice{background:#f1ecd9!important;border:1px solid #dcca9f!important;color:#5a604a!important}.notice.warning{background:#fff0dc!important;color:#8e5b2e!important}.notice.error{background:#fbe7e5!important;color:#973e3e!important}.notice.success{background:#e7f0db!important;color:#406a3f!important}.meta,.muted,.small-text{color:#687467!important}.divider{background:#e1d3b8!important}.toast{background:#304b43;color:#fffaf0}.qr-chip.used{background:#ede8dd!important;color:#687467!important}.qr-chip.selected{background:#e6f0dc!important;border-color:#8caa6b!important}
.rules-dialog,.rules-dialog::backdrop{color:#192f40}.legal-footer{color:#687467}.legal-footer a{color:#304b43}
/* L'interface conserve ses thèmes d'énigmes, mais le chrome et la marque restent identiques. */
@media(max-width:640px){.topbar{min-height:76px;padding:9px 0}.brand .nox-logo{width:51px;height:51px}.brand strong{font-size:19px}.brand small{font-size:7px;letter-spacing:.45px}.hero,.page-banner,.banner.page-banner{border-radius:22px!important;padding:25px 20px!important}.hero h1,.page-title{font-size:clamp(29px,8vw,40px)!important}.card{padding:19px!important}.bottom-nav{bottom:9px!important}.header-guide{padding:9px!important}.user-status{font-size:10px!important;padding:7px 9px!important}}
@media print{body,body.theme-classique{background:#fff!important;color:#111!important}.site-bg,.theme-atmosphere,.bottom-nav{display:none!important}.card,.clue-card{box-shadow:none!important;background:#fff!important;color:#111!important}}

/* NOXIPOTES 2.1 — accueil illustré, mascottes et bulles BD */
.noxi-home{display:grid;gap:48px;padding-bottom:20px}.noxi-welcome{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);align-items:center;gap:22px;min-height:460px;padding:46px 48px;position:relative;overflow:hidden;border:2px solid #d6b884;border-radius:34px;background:radial-gradient(circle at 75% 35%,#d5edf5 0%,transparent 38%),radial-gradient(circle at 10% 90%,#dce9c5 0%,transparent 35%),linear-gradient(130deg,#fff9ec,#f4e5c6);box-shadow:0 16px 42px #6b512c20}.noxi-welcome:before{content:'';position:absolute;inset:10px;border:1px dashed #d6bd92;border-radius:26px;pointer-events:none}.noxi-welcome-copy{position:relative;z-index:2}.noxi-welcome-kicker,.noxi-section-kicker{font-weight:900;letter-spacing:2px;font-size:11px;color:#916a3d}.noxi-welcome h1{font-family:'Fraunces',Georgia,serif;font-size:clamp(38px,5vw,65px);line-height:1.09;letter-spacing:-1.7px;margin:16px 0 20px}.noxi-welcome h1 span{display:block;color:#46775d}.noxi-intro{font-size:clamp(16px,1.8vw,19px);line-height:1.7;color:#566d61;max-width:500px}.noxi-welcome-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.noxi-welcome-actions .btn{padding:14px 19px!important}.noxi-welcome-tags{display:flex;gap:12px 20px;flex-wrap:wrap;margin-top:25px;font-size:12px;font-weight:800;color:#7e7258}.noxi-welcome-illustration{position:relative;display:grid;place-items:center;min-height:365px;isolation:isolate}.noxi-welcome-illustration:before{content:'';position:absolute;width:320px;height:320px;border-radius:50%;background:#e3edcf;box-shadow:0 0 0 14px #e3edcf70,0 0 0 17px #a9b98a70;z-index:-1}.noxi-welcome-logo{width:min(100%,350px);height:auto;object-fit:contain;filter:drop-shadow(0 15px 15px #55432624);transform:rotate(3deg)}.noxi-bubble{background:#fffdf6;border:2px solid #233b45;border-radius:23px;box-shadow:5px 6px 0 #e7b778;line-height:1.35;font-weight:900;color:#213b45}.noxi-bubble-main{position:absolute;top:4px;right:-18px;max-width:210px;padding:14px 16px;transform:rotate(5deg);font-size:15px}.noxi-bubble-main:after{content:'';position:absolute;bottom:-13px;left:38px;width:21px;height:21px;background:#fffdf6;border-right:2px solid #233b45;border-bottom:2px solid #233b45;transform:rotate(45deg)}.noxi-bubble-name{display:block;font-size:10px;letter-spacing:1px;color:#7a9258;text-transform:uppercase;margin-bottom:5px}.noxi-sticker-star{position:absolute;top:40px;left:5px;color:#e7ae4c;font-size:46px;transform:rotate(-12deg)}.noxi-mini-compass{position:absolute;right:5px;bottom:18px;font-size:48px;color:#9cb17a}.noxi-section-heading{text-align:center;margin-bottom:23px}.noxi-section-heading h2{font-size:clamp(27px,3.2vw,38px);margin:7px 0 8px}.noxi-section-heading p{color:#667467;margin:0}.noxi-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.noxi-story-card{position:relative;padding:26px 22px 31px;background:#fffaf0;border:1.5px solid #dcc59e;border-radius:25px;box-shadow:0 8px 22px #765d351a;text-align:center}.noxi-story-number{position:absolute;top:16px;left:18px;font-family:'Fraunces',Georgia,serif;font-size:24px;color:#d6c39e}.noxi-story-emoji{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:#e6eedb;border:2px dashed #abc18e;margin:0 auto 15px;font-size:38px}.noxi-story-card:nth-child(2) .noxi-story-emoji{background:#dff0f5;border-color:#a7ceda}.noxi-story-card:nth-child(3) .noxi-story-emoji{background:#faebcf;border-color:#e5be76}.noxi-story-card h3{font-size:21px;margin:0 0 8px}.noxi-story-card p{color:#65756c;line-height:1.6;margin:0 auto;max-width:290px}.noxi-story-bubble{position:relative;display:inline-block;margin-top:22px;padding:10px 13px;background:#eaf2dc;border:1.5px solid #9cb07b;border-radius:15px;font-weight:800;color:#405c42;font-size:13px;transform:rotate(-2deg)}.noxi-story-bubble:before{content:'';position:absolute;top:-8px;left:27px;width:13px;height:13px;background:#eaf2dc;border-left:1.5px solid #9cb07b;border-top:1.5px solid #9cb07b;transform:rotate(45deg)}.noxi-modes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.noxi-mode-card{display:flex;align-items:flex-start;gap:19px;padding:25px;background:#fffaf0;border:1.5px solid #d8c39d;border-radius:24px;box-shadow:0 8px 22px #765d351a}.noxi-mode-icon{flex:none;display:grid;place-items:center;width:75px;height:75px;border-radius:21px;background:#e4edd6;font-size:35px}.noxi-mode-card:nth-child(2) .noxi-mode-icon{background:#dbeef3}.noxi-mode-label{color:#8c734f;font-size:10px;font-weight:900;letter-spacing:1.3px}.noxi-mode-card h3{margin:5px 0 9px;font-size:23px}.noxi-mode-card p{color:#68776e;line-height:1.6;margin:0 0 14px}.noxi-mode-pill{display:inline-block;padding:6px 12px;border-radius:20px;background:#f0e4cb;color:#775a36;font-weight:900;font-size:11px}.noxi-section-heading-inline{display:flex;justify-content:space-between;align-items:end;gap:15px;text-align:left}.noxi-home-ending{display:flex;align-items:center;gap:22px;background:#fffaf0;border:1px dashed #c6ab7f;border-radius:25px;padding:25px}.noxi-home-ending h2{margin:0 0 5px;font-size:23px}.noxi-home-ending p{margin:0;color:#667467}.noxi-ending-avatar{font-size:38px}.noxi-home-ending .btn{margin-left:auto;flex:none}
@media(max-width:900px){.noxi-welcome{padding:34px 30px;grid-template-columns:1fr 310px}.noxi-welcome-illustration{min-height:300px}.noxi-welcome-illustration:before{width:250px;height:250px}.noxi-bubble-main{right:0;top:0;font-size:13px;max-width:175px}.noxi-story-grid{gap:11px}.noxi-story-card{padding:23px 14px}}
@media(max-width:680px){.noxi-home{gap:34px}.noxi-welcome{display:flex;flex-direction:column;align-items:stretch;padding:30px 22px 20px;gap:8px}.noxi-welcome h1{font-size:clamp(34px,9vw,47px);letter-spacing:-1px}.noxi-welcome-illustration{min-height:290px}.noxi-welcome-logo{max-width:270px}.noxi-welcome-illustration:before{width:235px;height:235px}.noxi-bubble-main{right:0;top:4px;max-width:170px;font-size:12px;padding:10px 12px}.noxi-story-grid,.noxi-modes-grid{grid-template-columns:1fr}.noxi-story-card{padding:22px 18px}.noxi-story-emoji{width:65px;height:65px;font-size:30px}.noxi-mode-card{padding:20px}.noxi-section-heading-inline{align-items:flex-start;flex-direction:column}.noxi-home-ending{flex-wrap:wrap}.noxi-home-ending .btn{margin-left:0}.noxi-welcome-tags{font-size:11px}}
@media(prefers-reduced-motion:reduce){.noxi-welcome-logo{transform:none}.noxi-bubble-main{transform:none}}

/* Univers Noxipotes — illustration et carnet d'exploration */
.noxi-world{display:grid;gap:34px;padding-bottom:32px}.noxi-scene{border:5px solid #62431f;border-radius:27px;overflow:hidden;background:#c7eaf6;box-shadow:0 10px 0 #b78d51,0 22px 35px #654d2a35;position:relative}.noxi-scene-art{display:block;width:100%;height:auto;aspect-ratio:1536/375;object-fit:cover}.noxi-scene-actions{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;padding:16px 18px 19px;background:linear-gradient(#e4c48b,#f7e5ba);border-top:4px solid #62431f}.noxi-scene-actions .btn,.noxi-board-cta .btn{font-size:17px!important;border:2px solid #5b3e22!important;box-shadow:0 4px 0 #79572f!important;border-radius:18px!important}.noxi-adventure-btn{background:linear-gradient(#ffcf52,#eaa62f)!important;color:#362818!important}.noxi-journal{position:relative;border:3px solid #9a6d3a;border-radius:28px;background:repeating-linear-gradient(0deg,#0000 0 30px,#9a78410b 31px 32px),linear-gradient(120deg,#fff7df,#f5e2b6);padding:30px 24px 35px;box-shadow:0 8px 0 #bd985f,0 20px 30px #6b512c1f}.noxi-journal:before,.noxi-journal:after{content:'✿';position:absolute;color:#72934e;font-size:34px}.noxi-journal:before{left:13px;top:10px}.noxi-journal:after{right:13px;bottom:10px}.noxi-journal-head{text-align:center;margin-bottom:23px}.noxi-stamp{display:inline-block;font-weight:950;letter-spacing:1.5px;color:#7b5830;font-size:12px}.noxi-journal-head h1{font-size:clamp(26px,4vw,40px);margin:8px 0;color:#253d46!important}.noxi-journal-head p{color:#655b45}.noxi-journal-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.noxi-journal-step{display:flex;flex-direction:column;align-items:center;gap:0}.noxi-journal-step img{width:145px;height:145px;object-fit:cover;border:4px solid #654625;border-radius:50%;background:#e8d6ad;box-shadow:0 5px 0 #c69e61;position:relative;z-index:1}.noxi-comic{position:relative;background:#fffdf3;border:3px solid #233c46;border-radius:22px;box-shadow:5px 6px 0 #d3ac67;padding:17px 15px;min-height:120px;text-align:center;width:100%;margin-top:16px}.noxi-comic:before{content:'';position:absolute;top:-14px;left:calc(50% - 11px);width:21px;height:21px;background:#fffdf3;border-left:3px solid #233c46;border-top:3px solid #233c46;transform:rotate(45deg)}.noxi-comic strong{display:block;font-size:16px;color:#243b45}.noxi-comic p{font-size:14px;line-height:1.5;margin:9px 0 0;color:#665d4a}.noxi-adventure-board{border:3px solid #87613b;border-radius:26px;padding:27px;background:radial-gradient(circle at 15% 90%,#c6d4a080,transparent 35%),linear-gradient(145deg,#f9ebca,#e9d4a8);box-shadow:0 8px 0 #b28c59}.noxi-adventure-board .noxi-section-heading{margin-bottom:22px}.noxi-adventure-board .noxi-mode-card{border:3px solid #6b5035;box-shadow:4px 5px 0 #b99a6c;background:#fff8e6}.noxi-board-cta{text-align:center;margin-top:23px}.noxi-open-hunts .hunt-card{border:2px solid #ab885b!important;box-shadow:0 6px 0 #d3b58a!important}.noxi-home-ending{border:3px dashed #ab885b;background:#fff3d7}
@media(max-width:760px){.noxi-world{gap:25px}.noxi-scene{border-width:3px;border-radius:19px}.noxi-scene-art{height:235px;aspect-ratio:auto;object-fit:cover;object-position:center top}.noxi-scene-actions{padding:14px 10px;gap:10px}.noxi-scene-actions .btn{font-size:13px!important;padding:12px!important}.noxi-journal{padding:23px 15px}.noxi-journal-steps{grid-template-columns:1fr;gap:19px}.noxi-journal-step{flex-direction:row;gap:12px;align-items:center}.noxi-journal-step img{width:96px;height:96px;flex:none}.noxi-comic{margin-top:0;text-align:left;min-height:0;padding:14px}.noxi-comic:before{top:calc(50% - 9px);left:-12px;transform:rotate(-45deg)}.noxi-adventure-board{padding:20px 14px}.noxi-modes-grid{grid-template-columns:1fr}}
@media(max-width:390px){.noxi-journal-step img{width:75px;height:75px}.noxi-comic strong{font-size:14px}.noxi-comic p{font-size:12px}.noxi-scene-art{height:190px}}


/* NOXIPOTES 3.0 — carnet d'aventure pour TOUT l'espace joueurs, administration exclue */
body.role-explorer{--noxi-dark:#263e45;--noxi-wood:#75502b;--noxi-honey:#f4c665;--noxi-parchment:#fff4d5;background:#f7edcf!important}
body.role-explorer .app-container{max-width:1160px}
body.role-explorer .site-bg{background:radial-gradient(circle at 8% 12%,#b7d9b46b,transparent 25%),radial-gradient(circle at 96% 45%,#b1e0ec83,transparent 30%),repeating-linear-gradient(45deg,#7e603008 0 2px,transparent 2px 17px),#f7edcf!important}
body.role-explorer .topbar{border-bottom:3px dashed #b69b69!important}
body.role-explorer .bottom-nav{border:3px solid #6e502f!important;border-radius:20px!important;background:linear-gradient(160deg,#fff8e8,#e8d0a4)!important;box-shadow:0 5px 0 #a17a45,0 12px 22px #3e301d29!important}
body.role-explorer .nav-button.active{background:#f3c767!important;border:2px solid #78502c!important;border-radius:14px!important;box-shadow:0 3px 0 #a47d44!important}
.noxi-player-world{display:grid;gap:22px;padding-bottom:35px;position:relative}
.noxi-companion{display:flex;align-items:center;gap:19px;padding:12px 19px;border:3px solid #795632;border-radius:28px;background:radial-gradient(circle at 90% 10%,#d5e7c8,transparent 43%),linear-gradient(125deg,#f8e6b9,#fff8e5);box-shadow:0 6px 0 #bb925b,0 13px 22px #61432321;min-height:126px}
.noxi-companion img{width:108px;height:108px;flex:none;border-radius:50%;border:4px solid #67482a;object-fit:cover;background:#fff7dc;box-shadow:0 4px 0 #c19a64}
.noxi-companion-bubble{position:relative;border:3px solid #253b45;border-radius:24px;background:#fffdf5;padding:16px 23px;box-shadow:5px 5px 0 #d4ad68;color:#253b45;max-width:650px;line-height:1.4}
.noxi-companion-bubble:before{content:'';position:absolute;left:-13px;top:36px;width:20px;height:20px;transform:rotate(-45deg);border-top:3px solid #253b45;border-left:3px solid #253b45;background:#fffdf5}
.noxi-dialogue-label{display:block;font-size:10px;letter-spacing:1.5px;font-weight:900;color:#7b8d4c;margin-bottom:5px}
.noxi-companion-bubble strong{font-size:clamp(15px,2.3vw,21px);font-family:'Nunito',sans-serif}
.noxi-player-content{min-width:0}
body.role-explorer .noxi-page-scroll,body.role-explorer .noxi-quest-hero{border:4px solid #74502b!important;border-radius:28px!important;background:radial-gradient(circle at 95% 20%,#b4dfe5a8,transparent 40%),linear-gradient(135deg,#fff5d6,#e9d3a5)!important;box-shadow:0 7px 0 #b58a50,0 15px 24px #73502b25!important;overflow:hidden;position:relative}
body.role-explorer .noxi-page-scroll:before,body.role-explorer .noxi-quest-hero:before{content:'🧭';position:absolute;right:22px;bottom:10px;font-size:65px;opacity:.28;pointer-events:none}
body.role-explorer .noxi-page-scroll .page-title{font-size:clamp(30px,4vw,48px)!important}
body.role-explorer .card,body.role-explorer .clue-card,body.role-explorer .play-help-strip,body.role-explorer .empty{border:3px solid #a8814d!important;border-radius:24px!important;background:repeating-linear-gradient(0deg,#0000 0 31px,#7e6a3610 32px 33px),#fff7e3!important;box-shadow:0 5px 0 #d6b781,0 12px 22px #7d592022!important}
body.role-explorer .card.highlight{border:4px solid #6c8b5b!important;background:linear-gradient(145deg,#fff9e8,#edf0d6)!important}
body.role-explorer .hunt-card{overflow:hidden}
body.role-explorer .hunt-card-banner{border-bottom:3px solid #a8814d;background:#dcead4!important}
body.role-explorer .hunt-card-content h3{font-size:clamp(20px,2.5vw,27px)!important}
body.role-explorer .hunt-card .card-bottom .btn{width:100%;justify-content:center}
body.role-explorer .btn.primary,body.role-explorer .btn[data-show-scan],body.role-explorer .btn[data-step-complete],body.role-explorer .btn[data-start-hunt]{border:2px solid #61421e!important;border-radius:16px!important;background:linear-gradient(#ffda74,#e7ac3b)!important;box-shadow:0 4px 0 #94632c!important;color:#302819!important;font-weight:900!important}
body.role-explorer .btn.outline{border:2px solid #876a43!important;background:#fff9e9!important;color:#3c513d!important}
body.role-explorer .btn:focus-visible,body.role-explorer .nav-button:focus-visible{outline:3px solid #1e617f!important;outline-offset:3px}
body.role-explorer .section-title{margin-top:25px}
body.role-explorer .section-title h2:before{content:'✦ ';color:#b8873b}
body.role-explorer .stat-box{border:2px solid #9b7a4c!important;border-radius:18px!important;background:#fff3d5!important;box-shadow:0 4px 0 #d2b681!important}
body.role-explorer .stat-value{color:#334b3c!important}
body.role-explorer .progress{border:2px solid #806138!important;border-radius:20px!important;background:#eee0b8!important;overflow:hidden}
body.role-explorer .progress i{background:linear-gradient(90deg,#8aa66d,#e9bd60)!important}
body.role-explorer .countdown .timer-box{border:2px solid #b3925e!important;background:#fffaf0!important;border-radius:15px!important}
body.role-explorer .clue-card{position:relative;padding:18px!important}
body.role-explorer .clue-number{background:#e7b65d!important;color:#253b45!important;border:2px solid #7b572f!important}
body.role-explorer .notice{border:2px dashed #c0a06c!important;border-radius:17px!important;background:#fff6d9!important;color:#3c4d42!important}
body.role-explorer .notice.success{border-color:#7eaa6b!important;background:#e9f1dc!important}
body.role-explorer .play-help-strip:before{content:'📜';font-size:34px;align-self:center}
body.role-explorer .rank-table{border-collapse:separate;border-spacing:0 6px}
body.role-explorer .rank-table thead{background:#e7d2a8!important}
body.role-explorer .rank-table tbody tr{background:#fff9e8!important}
body.role-explorer .rank-pos{background:#e9b85c!important;color:#263e45!important;border:2px solid #8b6737!important}
body.role-explorer .field input,body.role-explorer .field select,body.role-explorer .field textarea{border:2px solid #baa071!important;background:#fffef5!important}
body.role-explorer .tab-pills{border:2px solid #b69b6c!important;background:#f4e4c0!important;border-radius:18px!important}
body.role-explorer .rules-dialog{border:4px solid #78562f!important;border-radius:26px!important;background:#fff4d8!important;box-shadow:0 10px 0 #b5905d!important}
.noxi-player-footnote{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px;color:#6a634d;font-weight:800;text-align:center;font-size:13px}
.noxi-player-footnote img{width:60px;height:60px;border:2px solid #886339;border-radius:50%;object-fit:cover;background:#fff5da}
@media(max-width:650px){.noxi-companion{padding:10px;gap:12px;min-height:98px;border-radius:19px}.noxi-companion img{width:75px;height:75px;border-width:3px}.noxi-companion-bubble{padding:10px 13px;border-width:2px;border-radius:16px}.noxi-companion-bubble:before{left:-10px;top:25px;width:14px;height:14px;border-width:2px}.noxi-dialogue-label{font-size:8px;letter-spacing:.5px}.noxi-companion-bubble strong{font-size:13px}.noxi-player-world{gap:16px}.noxi-player-footnote{padding:0 12px}.noxi-player-footnote img{width:44px;height:44px}body.role-explorer .card,body.role-explorer .clue-card{border-width:2px!important}body.role-explorer .noxi-page-scroll,body.role-explorer .noxi-quest-hero{border-width:3px!important}}
@media(prefers-reduced-motion:reduce){body.role-explorer *{scroll-behavior:auto!important}}
@media print{.noxi-companion,.noxi-player-footnote{display:none!important}body.role-explorer .card,body.role-explorer .clue-card{box-shadow:none!important}}

/* Inscription : Noxipseudo et guide BD */
.noxi-nickname-wrap{width:100%}.noxi-nickname-field{display:flex;align-items:stretch;overflow:hidden;border:2px solid #a87941;border-radius:16px;background:#fffaf0;min-height:52px}.noxi-nickname-prefix{display:flex;align-items:center;padding:0 14px;font-weight:900;color:#173447;background:#f4dba6;border-right:2px solid #a87941;letter-spacing:.3px}.noxi-nickname-field input{flex:1;min-width:0;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:12px!important;font-size:17px}.noxi-nickname-preview{font-size:13px;margin:6px 0 0;color:#40545a}.noxi-nickname-preview strong{color:#173447}.noxi-nickname-guide{display:flex;align-items:center;gap:8px;margin:14px 0 6px}.noxi-nickname-guide img{width:90px;height:90px;object-fit:contain;flex-shrink:0}.noxi-nickname-bubble{position:relative;background:#fff9e8;color:#203744;border:2px solid #77532e;border-radius:22px;padding:13px 17px;font-size:15px;font-weight:600;line-height:1.45;box-shadow:3px 4px 0 #ddbb81}.noxi-nickname-bubble:before{content:'';position:absolute;left:-11px;top:35px;width:17px;height:17px;background:#fff9e8;border-left:2px solid #77532e;border-bottom:2px solid #77532e;transform:rotate(45deg)}@media(max-width:380px){.noxi-nickname-guide img{width:70px;height:70px}.noxi-nickname-bubble{font-size:13px;padding:10px}}

/* Signature BD de l’inscription Noxipotes */
.noxi-nickname-bubble-sub{display:block;margin-top:6px;font-size:.9em;font-weight:400;line-height:1.4}

/* NOXIPOTES 3.2 — espace joueurs pleine largeur, carnet structuré (admin inchangée) */
body.role-explorer{--r:9px}
body.role-explorer .app-container{width:calc(100% - 48px)!important;max-width:none!important;margin-inline:24px!important;padding-inline:0!important}
body.role-explorer .topbar{width:calc(100% - 48px)!important;max-width:none!important;margin-inline:24px!important;border-radius:0!important}
body.role-explorer .noxi-player-world,body.role-explorer .noxi-player-content,body.role-explorer .noxi-world,body.role-explorer .noxi-home{width:100%!important;max-width:none!important;min-width:0}
body.role-explorer .noxi-scene,body.role-explorer .noxi-journal,body.role-explorer .noxi-adventure-board,body.role-explorer .noxi-welcome,body.role-explorer .noxi-home-ending{border-radius:8px!important}
body.role-explorer .noxi-page-scroll,body.role-explorer .noxi-quest-hero,body.role-explorer .hero,body.role-explorer .page-banner{border-radius:8px!important;box-shadow:0 3px 0 #c4a778,0 8px 18px #6b512c16!important}
body.role-explorer .card,body.role-explorer .clue-card,body.role-explorer .hunt-card,body.role-explorer .empty,body.role-explorer .play-help-strip,body.role-explorer .stat-box,body.role-explorer .notice,body.role-explorer .noxi-mode-card,body.role-explorer .noxi-story-card{border-radius:8px!important;box-shadow:0 2px 0 #d6b781,0 6px 15px #7d592017!important}
body.role-explorer .noxi-companion{border-radius:8px!important;box-shadow:0 3px 0 #bb925b!important}
/* Les dialogues sont les seules véritables bulles BD. */
body.role-explorer .noxi-companion-bubble,body.role-explorer .noxi-comic,body.role-explorer .noxi-bubble{border-radius:19px!important}
body.role-explorer .btn,body.role-explorer .btn.primary,body.role-explorer .btn.outline,body.role-explorer .nav-button,body.role-explorer .nav-button.active,body.role-explorer .header-guide,body.role-explorer .user-status,body.role-explorer .tab-pills,body.role-explorer .pill,body.role-explorer .noxi-mode-pill{border-radius:7px!important}
body.role-explorer .field input,body.role-explorer .field select,body.role-explorer .field textarea,body.role-explorer input,body.role-explorer select,body.role-explorer textarea{border-radius:6px!important}
body.role-explorer .bottom-nav{border-radius:8px!important}
body.role-explorer .hunt-card-banner{border-radius:6px 6px 0 0!important}
body.role-explorer .noxi-journal-step img,body.role-explorer .noxi-companion img,body.role-explorer .noxi-player-footnote img{border-radius:50%!important}
body.role-explorer .noxi-welcome-illustration:before{border-radius:50%!important}
@media(max-width:700px){body.role-explorer .app-container{width:calc(100% - 24px)!important;margin-inline:12px!important}body.role-explorer .topbar{width:calc(100% - 24px)!important;margin-inline:12px!important}body.role-explorer .noxi-welcome,body.role-explorer .noxi-journal,body.role-explorer .noxi-adventure-board{padding-inline:14px!important}body.role-explorer .noxi-companion{gap:10px!important}}


/* NOXIPOTES 3.3 — disposition sans cadres, bord à bord (joueurs uniquement) */
body.role-explorer{overflow-x:hidden!important}
body.role-explorer .app-container,body.role-explorer main#app{
  display:block!important;box-sizing:border-box!important;width:100%!important;
  max-width:100%!important;min-width:0!important;margin:0!important;
  padding:0!important;
}
body.role-explorer .topbar{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:12px clamp(12px,2vw,28px)!important}
body.role-explorer .noxi-player-world,body.role-explorer .noxi-player-content,
body.role-explorer .noxi-world,body.role-explorer .noxi-home,
body.role-explorer .noxi-open-hunts,body.role-explorer .noxi-story-grid,
body.role-explorer .noxi-modes-grid,body.role-explorer .hunt-grid,
body.role-explorer .hunts-grid,body.role-explorer .grid,
body.role-explorer .auth-layout,body.role-explorer .auth-card,
body.role-explorer .noxi-adventure-board,body.role-explorer .noxi-journal,
body.role-explorer .noxi-welcome,body.role-explorer .noxi-scene,
body.role-explorer .noxi-page-scroll,body.role-explorer .noxi-quest-hero,
body.role-explorer .hero,body.role-explorer .page-banner{
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  min-width:0!important;margin-left:0!important;margin-right:0!important;
}
/* Suppression de l'effet "cartes empilées". */
body.role-explorer .noxi-scene,body.role-explorer .noxi-journal,
body.role-explorer .noxi-adventure-board,body.role-explorer .noxi-welcome,
body.role-explorer .noxi-home-ending,body.role-explorer .noxi-page-scroll,
body.role-explorer .noxi-quest-hero,body.role-explorer .hero,
body.role-explorer .page-banner,body.role-explorer .noxi-companion,
body.role-explorer .card,body.role-explorer .clue-card,
body.role-explorer .hunt-card,body.role-explorer .empty,
body.role-explorer .play-help-strip,body.role-explorer .stat-box,
body.role-explorer .notice,body.role-explorer .noxi-mode-card,
body.role-explorer .noxi-story-card,body.role-explorer .noxi-home-ending,
body.role-explorer .noxi-open-hunts .hunt-card{
  border:0!important;border-radius:0!important;box-shadow:none!important;
  outline:0!important;
}
body.role-explorer .noxi-welcome:before,body.role-explorer .noxi-scene:before,
body.role-explorer .noxi-page-scroll:before,body.role-explorer .noxi-quest-hero:before,
body.role-explorer .card:not(.hunt-card):before{display:none!important}
body.role-explorer .noxi-story-card,body.role-explorer .noxi-mode-card,
body.role-explorer .hunt-card,body.role-explorer .card,
body.role-explorer .clue-card,body.role-explorer .stat-box{
  background:#fffaf0!important;
}
body.role-explorer .noxi-story-card,body.role-explorer .noxi-mode-card,
body.role-explorer .hunt-card{border-bottom:1px solid #dcc8a4!important}
body.role-explorer .noxi-companion{background:transparent!important;padding-inline:clamp(12px,2vw,28px)!important}
body.role-explorer .noxi-journal,body.role-explorer .noxi-adventure-board,
body.role-explorer .noxi-welcome{padding-inline:clamp(12px,2vw,28px)!important}
body.role-explorer .noxi-welcome-illustration:before{display:none!important}
body.role-explorer .noxi-story-emoji,body.role-explorer .noxi-mode-icon{
  border:0!important;border-radius:4px!important;box-shadow:none!important;
}
body.role-explorer .noxi-mode-pill,body.role-explorer .badge,
body.role-explorer .pill,body.role-explorer .tab-pills,
body.role-explorer .user-status,body.role-explorer .header-guide,
body.role-explorer .nav-button,body.role-explorer .nav-button.active,
body.role-explorer .btn,body.role-explorer .btn.primary,
body.role-explorer input,body.role-explorer textarea,body.role-explorer select,
body.role-explorer .noxi-nickname-field{
  border-radius:3px!important;box-shadow:none!important;
}
body.role-explorer .bottom-nav{box-sizing:border-box!important;width:100%!important;max-width:100%!important;left:0!important;right:0!important;bottom:0!important;transform:none!important;margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;box-shadow:none!important}
/* Les portraits restent ronds, les dialogues restent des bulles BD. */
body.role-explorer .noxi-companion img,body.role-explorer .noxi-journal-step img,
body.role-explorer .noxi-player-footnote img{border-radius:50%!important}
body.role-explorer .noxi-companion-bubble,body.role-explorer .noxi-comic,
body.role-explorer .noxi-bubble,body.role-explorer .noxi-nickname-bubble{
  border-radius:18px!important;
}
body.role-explorer .noxi-home{gap:22px!important}
@media(max-width:700px){
 body.role-explorer .app-container,body.role-explorer main#app{width:100%!important;margin:0!important;padding:0!important}
 body.role-explorer .noxi-home,body.role-explorer .noxi-world{gap:16px!important}
 body.role-explorer .noxi-welcome,body.role-explorer .noxi-journal,
 body.role-explorer .noxi-adventure-board{padding-inline:12px!important}
 body.role-explorer .noxi-story-grid,body.role-explorer .noxi-modes-grid{grid-template-columns:1fr!important;gap:0!important}
 body.role-explorer .noxi-story-card,body.role-explorer .noxi-mode-card{padding-inline:12px!important}
}

/* Réactions illustrées : toutes les validations, pas seulement les QR. */
.noxi-event{position:fixed;inset:0;z-index:9999;pointer-events:none;display:flex;align-items:center;justify-content:center;background:rgba(19,40,45,.18);animation:noxi-fade .22s ease-out}
.noxi-event-scene{position:relative;display:flex;align-items:center;gap:12px;width:min(580px,calc(100vw - 24px));padding:20px 26px;background:#fff4d9;border:2px solid #bc8e4e;box-shadow:0 12px 35px #24301e35;pointer-events:auto;animation:noxi-pop .45s cubic-bezier(.2,1.5,.4,1)}
.noxi-event-avatar{width:112px;max-width:30%;height:auto;object-fit:contain;animation:noxi-hop .75s ease-out}
.noxi-event-text{flex:1;color:#203c47}.noxi-event-text strong{display:block;font-size:clamp(20px,3vw,29px);font-weight:900}.noxi-event-text p{margin:7px 0 0;font-size:clamp(14px,2.5vw,18px)}
.noxi-event-close{align-self:flex-start;background:transparent;border:0;color:#3e4b45;font-size:28px;cursor:pointer;line-height:1}
.noxi-spark{position:absolute;left:50%;top:50%;font-size:20px;color:#e9a82b;pointer-events:none;animation:noxi-burst 1.1s ease-out both;animation-delay:calc(var(--i)*35ms)}
@keyframes noxi-fade{from{opacity:0}to{opacity:1}}@keyframes noxi-pop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}@keyframes noxi-hop{0%,100%{transform:translateY(0)}40%{transform:translateY(-15px)}}@keyframes noxi-burst{0%{opacity:0;transform:rotate(var(--angle)) translateX(0) scale(.2)}35%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(145px) scale(1.3)}}
@media(max-width:500px){.noxi-event-scene{padding:14px;gap:8px}.noxi-event-avatar{width:85px}}
@media(prefers-reduced-motion:reduce){.noxi-event,.noxi-event-scene,.noxi-event-avatar,.noxi-spark{animation:none!important}.noxi-spark{display:none}}

/* Noxipotes 3.5.0 : célébrations plein écran, espace joueurs uniquement. */
.noxi-event-grand{background:radial-gradient(circle at 50% 40%,rgba(28,66,72,.62),rgba(8,23,35,.91));backdrop-filter:blur(5px);padding:clamp(12px,3vw,36px);overflow:hidden}
.noxi-event-grand .noxi-event-scene{width:min(1050px,100%);min-height:min(660px,85dvh);max-height:94dvh;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(12px,2vh,24px);padding:clamp(25px,5vw,65px);text-align:center;border:3px solid #d7aa55;border-radius:12px;background:radial-gradient(ellipse at 50% 15%,#fff9e8 0%,#f6dfae 65%,#e6bd7e 100%);box-shadow:0 0 0 8px #f3d39744,0 30px 90px #0009;animation:noxi-big-entrance .65s cubic-bezier(.18,1.4,.3,1) both}
.noxi-event-grand .noxi-event-avatar{position:relative;z-index:2;width:min(460px,75vw);max-width:90%;max-height:42dvh;object-fit:contain;filter:drop-shadow(0 12px 10px #56402440);animation:noxi-hero-hop 1.1s .3s ease-out both}
.noxi-event-grand .noxi-event-text{position:relative;z-index:2;flex:0 1 auto;max-width:760px}
.noxi-event-grand .noxi-event-text strong{font-size:clamp(31px,5.2vw,66px);line-height:1.05;letter-spacing:-.025em;color:#173d4d;text-shadow:0 2px 0 #fff7e6}
.noxi-event-grand .noxi-event-text p{font-size:clamp(18px,2.2vw,28px);line-height:1.4;margin:15px 0 0;color:#4a4737;font-weight:650}
.noxi-event-grand .noxi-event-close{position:absolute;right:12px;top:10px;z-index:4;width:42px;height:42px;border-radius:50%;background:#fff9e9d9;font-size:30px}
.noxi-event-grand .noxi-spark{z-index:3;font-size:clamp(22px,4vw,42px);color:#f5b92e;animation:noxi-burst-big 1.8s ease-out both;animation-delay:calc(var(--i)*45ms)}
.noxi-event-rays{position:absolute;inset:-45%;pointer-events:none;background:repeating-conic-gradient(from 0deg,#f8c85b38 0deg 9deg,transparent 9deg 18deg);animation:noxi-ray-spin 25s linear infinite}
@keyframes noxi-big-entrance{from{opacity:0;transform:scale(.68) translateY(45px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes noxi-hero-hop{0%{opacity:0;transform:translateY(65px) scale(.7)}60%{opacity:1;transform:translateY(-22px) scale(1.05)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes noxi-burst-big{0%{opacity:0;transform:rotate(var(--angle)) translateX(0) scale(.2)}35%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(min(39vw,370px)) scale(1.6)}}
@keyframes noxi-ray-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.noxi-event-grand{padding:8px}.noxi-event-grand .noxi-event-scene{min-height:82dvh;max-height:94dvh;padding:22px 15px;gap:14px}.noxi-event-grand .noxi-event-avatar{width:90%;max-height:39dvh}.noxi-event-grand .noxi-event-text strong{font-size:clamp(29px,9vw,44px)}.noxi-event-grand .noxi-event-text p{font-size:clamp(17px,4.7vw,22px)}}
@media(prefers-reduced-motion:reduce){.noxi-event-grand .noxi-event-scene,.noxi-event-grand .noxi-event-avatar,.noxi-event-rays,.noxi-event-grand .noxi-spark{animation:none!important}.noxi-event-rays,.noxi-event-grand .noxi-spark{display:none}}

/* Ambiances décoratives Noxipotes : exclusivement pour les joueurs.
   Aucun libellé de saison sur l'interface ; administration inchangée. */
body.role-explorer.theme-classique .scene-world,
body.role-explorer.theme-classique .scene-artwork{display:none!important}
body.role-explorer.theme-classique .noxi-page-scroll:before,
body.role-explorer.theme-classique .noxi-quest-hero:before{content:'🧭'}
body.role-explorer.theme-noel{--season-a:#cbe8f3;--season-b:#e9f5fb;--season-decor:'❄️'}
body.role-explorer.theme-halloween{--season-a:#f0c68f;--season-b:#f6e0c1;--season-decor:'🎃'}
body.role-explorer.theme-paques{--season-a:#e3e6ae;--season-b:#f6d9e9;--season-decor:'🥚'}
body.role-explorer.theme-ete{--season-a:#f5e1a1;--season-b:#d9edba;--season-decor:'🌻'}
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .site-bg{background:radial-gradient(circle at 95% 12%,var(--season-a),transparent 32%),radial-gradient(circle at 2% 75%,var(--season-b),transparent 35%),#f7edcf!important}
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .noxi-page-scroll:before,
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .noxi-quest-hero:before{content:var(--season-decor);opacity:.52;font-size:72px;right:28px;bottom:12px}
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .noxi-page-scroll,
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .noxi-quest-hero{background:radial-gradient(circle at 90% 15%,var(--season-a),transparent 44%),linear-gradient(130deg,#fff7df,var(--season-b))!important}
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .hunt-card-banner{background:linear-gradient(110deg,var(--season-a),var(--season-b))!important;min-height:85px;position:relative}
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .hunt-card-banner:after{content:var(--season-decor);position:absolute;right:15px;top:6px;font-size:48px;opacity:.85;pointer-events:none}
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .noxi-player-content .section-title h2:after{content:var(--season-decor);font-size:.65em;margin-left:10px;opacity:.75}
body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .scene-artwork{opacity:.45!important}
body.role-explorer.theme-noel .scene-particle{background:#fff!important;box-shadow:0 0 5px #fff}
body.role-explorer.theme-halloween .scene-particle{background:#c17a37!important}
body.role-explorer.theme-paques .scene-particle{background:#eab7cf!important}
body.role-explorer.theme-ete .scene-particle{background:#efce6b!important}
body.role-admin .scene-particle{animation:none!important}
@media(max-width:680px){body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .noxi-page-scroll:before,body.role-explorer:is(.theme-noel,.theme-halloween,.theme-paques,.theme-ete) .noxi-quest-hero:before{font-size:43px;right:10px;bottom:8px}}
@media(prefers-reduced-motion:reduce){body.role-explorer .scene-particle{animation:none!important}}

/* Noël : chute de neige persistante sur les écrans joueurs, jamais dans l'admin. */
.noxi-snowfall{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:20;contain:layout style;isolation:isolate}
.noxi-snowflake{position:absolute;top:-22px;left:var(--snow-left);width:var(--snow-size);height:var(--snow-size);border-radius:50%;background:#fff;opacity:var(--snow-opacity);box-shadow:0 0 2px #fff,0 0 7px #b4ddeb;animation:noxi-snow-fall var(--snow-time) linear var(--snow-delay) infinite;will-change:transform}
@keyframes noxi-snow-fall{0%{transform:translate3d(0,-25px,0)}100%{transform:translate3d(var(--snow-drift),calc(100vh + 50px),0)}}
body.role-admin .noxi-snowfall,body:not(.theme-noel) .noxi-snowfall{display:none!important}
@media(max-width:600px){.noxi-snowflake:nth-child(2n){display:none}}
@media(prefers-reduced-motion:reduce){.noxi-snowflake{animation:none;display:none}}

/* Halloween : silhouette de profil avec deux ailes articulées (sans écrasement). */
.noxi-halloween-bats{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:20;contain:layout style}
.noxi-flying-bat{position:absolute;top:var(--bat-top);left:0;width:var(--bat-size);opacity:var(--bat-opacity);will-change:transform;animation:noxi-bat-fly-right var(--bat-time) linear var(--bat-delay) infinite}
.noxi-flying-bat.bat-left{animation-name:noxi-bat-fly-left}
.noxi-bat-drift{display:block;animation:noxi-bat-bob 3.8s ease-in-out infinite alternate;animation-delay:var(--bat-delay)}
.noxi-bat-icon{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 1px 1px #24172933)}
.bat-left .noxi-bat-icon{transform:scaleX(-1)}
.noxi-bat-icon path{fill:#272333}
.noxi-bat-eye{fill:#bd8b82}
.noxi-bat-front-wing,.noxi-bat-back-wing{transform-box:view-box;transform-origin:44px 32px;animation:noxi-bat-wingbeat var(--bat-flap) ease-in-out infinite alternate}
.noxi-bat-back-wing{opacity:.77;animation-direction:alternate-reverse;animation-duration:calc(var(--bat-flap) * 1.12)}
@keyframes noxi-bat-wingbeat{0%{transform:rotate(-26deg)}100%{transform:rotate(24deg)}}
@keyframes noxi-bat-fly-right{from{transform:translate3d(-100px,0,0)}to{transform:translate3d(calc(100vw + 100px),0,0)}}
@keyframes noxi-bat-fly-left{from{transform:translate3d(calc(100vw + 100px),0,0)}to{transform:translate3d(-100px,0,0)}}
@keyframes noxi-bat-bob{from{transform:translateY(calc(var(--bat-wave) * -.5)) rotate(-5deg)}to{transform:translateY(calc(var(--bat-wave) * .5)) rotate(5deg)}}
body.role-admin .noxi-halloween-bats,body:not(.theme-halloween) .noxi-halloween-bats{display:none!important}
@media(max-width:600px){.noxi-flying-bat:nth-child(2n){display:none}}
@media(prefers-reduced-motion:reduce){.noxi-flying-bat{animation:none;display:none}}
}

/* Bannières originales Noxipotes : Noël et Halloween */
body.role-explorer .noxi-scene:has(.noxi-season-banner){position:relative;display:block!important;padding:0!important;overflow:hidden;min-height:0!important;background:transparent!important}
body.role-explorer .noxi-scene .noxi-season-banner{display:block;width:100%;height:auto;aspect-ratio:2048/758;object-fit:contain;object-position:center;position:relative;z-index:0}
body.role-explorer .noxi-scene:has(.noxi-season-banner) .noxi-scene-actions{position:relative;z-index:2;display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px 16px 18px;background:#fff6e5}
body.role-explorer .noxi-season-page{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0!important;overflow:hidden!important}
body.role-explorer .noxi-season-page>.noxi-season-banner{display:block;position:relative;width:100%;height:auto;aspect-ratio:2048/758;object-fit:contain;z-index:1}
body.role-explorer .noxi-season-page>.page-banner-copy{position:relative;z-index:2;padding:18px clamp(16px,3vw,36px) 20px;width:100%;box-sizing:border-box;background:#fff6e5}
body.role-explorer .noxi-season-page>.scene-world{display:none!important}
@media(max-width:640px){body.role-explorer .noxi-scene .noxi-season-banner,body.role-explorer .noxi-season-page>.noxi-season-banner{aspect-ratio:2048/758;object-fit:contain}body.role-explorer .noxi-scene:has(.noxi-season-banner) .noxi-scene-actions{padding:10px 12px 15px}body.role-explorer .noxi-season-page>.page-banner-copy{padding:15px!important}}

/* Correctif : bannière pleine largeur AVANT le compagnon sur toutes les pages joueur */
body.role-explorer .noxi-player-world{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
body.role-explorer .noxi-global-banner{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;line-height:0!important;overflow:hidden!important;order:-1}
body.role-explorer .noxi-global-banner .noxi-season-banner{display:block!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:auto!important;object-fit:fill!important;margin:0!important}
body.role-explorer .noxi-player-world>.noxi-companion{margin-top:18px!important}
body.role-explorer .noxi-season-page{min-height:0!important}
body.role-explorer .noxi-season-page>.page-banner-copy{padding:16px clamp(16px,3vw,36px)!important}
body.role-explorer .noxi-scene .noxi-season-banner{width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:auto!important;object-fit:fill!important}

/* 2026-11-12 — Bannières réellement plus imposantes : hauteur accrue, sans étirement. */
body.role-explorer .noxi-global-banner .noxi-season-banner,
body.role-explorer .noxi-scene .noxi-season-banner,
body.role-explorer .noxi-season-page>.noxi-season-banner{
  width:100%!important;
  height:clamp(360px,48vw,760px)!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center center!important;
}
@media(max-width:640px){
  body.role-explorer .noxi-global-banner .noxi-season-banner,
  body.role-explorer .noxi-scene .noxi-season-banner,
  body.role-explorer .noxi-season-page>.noxi-season-banner{
    height:clamp(260px,62vw,440px)!important;
    object-position:center center!important;
  }
}

/* Noxicarte : affichage plein écran, sans modifier l'interface d'administration */
.noximap-overlay{position:fixed;inset:0;z-index:99990;background:#f3dba5;display:flex;flex-direction:column}.noximap-top{min-height:54px;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8edce;color:#473321;font-weight:800;box-shadow:0 2px 9px #0002}.noximap-top small{font-size:12px;font-weight:500}.noximap-close{cursor:pointer;border:1px solid #a98556;background:#fff9e9;border-radius:6px;padding:9px 14px;color:#473321;font-weight:700}.noximap-overlay iframe{border:0;width:100%;flex:1;min-height:0;display:block}@media(max-width:600px){.noximap-top{padding:8px 10px}.noximap-top small{display:block}.noximap-close{white-space:nowrap}}

/* Badges Noxipotes */
.noxi-badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:18px 0}.noxi-badge{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;padding:16px;border:1px solid rgba(99,72,38,.18);border-radius:12px}.noxi-badge img{width:110px;height:110px;object-fit:contain}.noxi-badge.locked img{filter:grayscale(1);opacity:.35}.noxi-badge small{line-height:1.4}.noxi-badge button{width:100%}

/* Animation de déblocage des badges, réutilise la scène Noxipotes */
.noxi-badge-unlock{z-index:10001}
.noxi-badge-unlock .noxi-event-scene{gap:16px}
.noxi-badge-kicker{position:relative;z-index:2;font-weight:900;color:#9b6420;font-size:clamp(17px,3vw,25px);letter-spacing:.07em}
.noxi-unlock-image{position:relative;z-index:2;width:min(290px,55vw);height:min(290px,32dvh);object-fit:contain;filter:drop-shadow(0 14px 18px #563b2850);animation:noxi-hero-hop 1.1s .3s ease-out both}
.noxi-badge-continue{position:relative;z-index:4;pointer-events:auto;min-width:180px}
@media(prefers-reduced-motion:reduce){.noxi-unlock-image{animation:none!important}}

/* Cartes de chasses disponibles : format carnet d'aventure compact */
body.role-explorer .hunt-card.noxi-hunt-mini{display:flex!important;flex-direction:row!important;align-items:center;gap:12px;min-height:88px;padding:12px 14px!important;border:2px solid #a58251!important;border-radius:14px!important;background:linear-gradient(115deg,#fff9e9,#f4e5c4)!important;box-shadow:0 3px 0 #c6a474!important}
body.role-explorer .noxi-hunt-mini .noxi-hunt-mini-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;font-size:26px;border-radius:12px;background:#e2d3a6;border:1px solid #ae8c54}
body.role-explorer .noxi-hunt-mini .noxi-hunt-mini-body{min-width:0;flex:1}
body.role-explorer .noxi-hunt-mini h3{margin:0 0 3px!important;font-size:16px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#46331d!important}
body.role-explorer .noxi-hunt-mini-location{font-size:12px;color:#6b604e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.role-explorer .noxi-hunt-mini-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px;font-size:11px;color:#675438}
body.role-explorer .noxi-hunt-mini-tags>span:not(.badge){background:#e9d7ae;padding:2px 7px;border-radius:7px}
body.role-explorer .noxi-hunt-mini-tags .badge{font-size:10px!important;padding:2px 6px!important;min-height:0!important}
body.role-explorer .noxi-hunt-mini .noxi-hunt-mini-go{width:auto!important;flex:0 0 auto;padding:9px 12px!important;white-space:nowrap;border-radius:9px!important}
body.role-explorer .noxi-hunt-mini .noxi-hunt-mini-go span{font-size:18px}
body.role-explorer .noxi-open-hunts .cards,body.role-explorer .view-hunts .cards{gap:10px!important}
@media(max-width:420px){body.role-explorer .hunt-card.noxi-hunt-mini{gap:8px;padding:10px!important}body.role-explorer .noxi-hunt-mini .noxi-hunt-mini-icon{width:40px;height:40px;flex-basis:40px;font-size:22px}body.role-explorer .noxi-hunt-mini .noxi-hunt-mini-go{padding:8px!important;font-size:12px!important}}

/* Noxipotes — bandeau de partie : retour, étape et chrono harmonisés */
.noxi-play-header{display:flex;align-items:stretch;gap:10px;margin:0 0 14px;flex-wrap:wrap}
.noxi-play-header .noxi-play-back{min-height:58px;min-width:112px;padding:12px 17px!important;font-size:15px!important;font-weight:800!important;border-radius:14px!important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.noxi-play-header .noxi-play-clock{flex:1;min-width:170px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:9px 16px;margin:0;border:2px solid #9c7746;border-radius:14px;background:linear-gradient(145deg,#fff8e8,#eed9b1);box-shadow:0 3px 0 #c6a577;color:#49351e;text-align:center}
.noxi-play-header .noxi-play-clock span{font-size:15px!important;line-height:1.2;font-weight:900;letter-spacing:.025em;color:#70512c}
.noxi-play-header .noxi-play-clock strong{font-size:clamp(23px,5vw,31px)!important;line-height:1.15;font-variant-numeric:tabular-nums;color:#31583b}
.noxi-play-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.noxi-play-actions .btn{flex:1;min-height:48px;border-radius:13px;font-weight:800}
@media(max-width:420px){.noxi-play-header{gap:8px}.noxi-play-header .noxi-play-back{min-width:100px;padding:10px!important}.noxi-play-header .noxi-play-clock{min-width:145px;padding:8px}.noxi-play-actions .btn{padding:10px 12px}}

/* Collection compacte des badges — espace joueur uniquement */
.noxi-collection{background:linear-gradient(155deg,#fff9e9,#f0dfb9);border:2px solid #b8955d;border-radius:19px;padding:clamp(13px,3vw,24px);box-shadow:0 5px 0 rgba(83,58,29,.12),inset 0 0 0 3px rgba(255,255,255,.38);color:#4d3823}
.noxi-collection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #cdb58b;padding-bottom:12px;margin-bottom:15px}
.noxi-collection-head h2{margin:3px 0 5px;font-family:inherit;color:#4d3823}.noxi-collection-head p{font-size:13px;margin:0;color:#796246}
.noxi-collection-kicker{font-size:10px;font-weight:900;letter-spacing:.13em;color:#94733d}
.noxi-collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:12px 8px}
.noxi-medallion{appearance:none;border:0;background:transparent;display:flex;align-items:center;flex-direction:column;gap:6px;padding:5px 2px;cursor:pointer;color:#49351f;font:inherit;min-width:0;border-radius:12px;transition:transform .18s,background .18s}
.noxi-medallion:hover,.noxi-medallion:focus-visible{background:#e7d5ad;transform:translateY(-2px);outline-offset:2px}
.noxi-medallion-art{width:72px;height:72px;display:grid;place-items:center;position:relative;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff8dd,#dbc08a);border:3px solid #aa8041;box-shadow:0 3px 0 #795a31,0 5px 9px #49351f22,inset 0 0 0 2px #f7e6bb}
.noxi-medallion-art img{width:56px;height:56px;object-fit:contain;display:block}
.noxi-medallion-state{position:absolute;right:-4px;bottom:-4px;background:#527b4b;color:#fff;font-size:12px;font-weight:900;min-width:23px;height:23px;border-radius:50%;display:grid;place-items:center;border:2px solid #f6e7c5}
.noxi-medallion.is-locked .noxi-medallion-art{border-color:#aa9d84;background:#ddd2bd;box-shadow:0 3px 0 #93856e}
.noxi-medallion.is-locked img{filter:grayscale(1);opacity:.48}.noxi-medallion.is-locked .noxi-medallion-state{background:#8b8170;font-size:10px}
.noxi-medallion-name{font-size:11px;font-weight:800;line-height:1.2;text-align:center;max-width:100%;overflow-wrap:anywhere}
.noxi-badge-details[hidden]{display:none}.noxi-badge-details{margin-top:16px;background:#fff8e8;border:1px solid #b89963;border-radius:12px;padding:12px}
.noxi-badge-details-content{display:flex;align-items:center;gap:12px;position:relative;padding-right:22px}.noxi-badge-details-content>img{width:62px;height:62px;object-fit:contain;flex:none}.noxi-badge-details-content strong{color:#49351f}.noxi-badge-details-content p{margin:3px 0;color:#6e5636;font-size:13px}.noxi-badge-details-content small{color:#665338;font-size:12px}
.noxi-badge-details-close{position:absolute;right:0;top:0;border:0;background:transparent;color:#5a4326;font-size:24px;cursor:pointer}
.noxi-badge-mini-progress{height:5px;background:#ded0ae;border-radius:8px;overflow:hidden;margin-top:7px}.noxi-badge-mini-progress i{display:block;height:100%;background:#5e814d}
@media(max-width:420px){.noxi-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 4px}.noxi-medallion-art{width:66px;height:66px}.noxi-medallion-art img{width:50px;height:50px}}

/* Collection Noxipotes : badges à gagner en gris, gagnés en couleurs originales. */
.noxi-medallion.is-locked .noxi-medallion-art img{filter:grayscale(100%);opacity:.55}
.noxi-medallion.is-earned .noxi-medallion-art img{filter:none;opacity:1}
.noxi-badge-details-content>img{filter:none}
.noxi-badge-grid .noxi-badge .btn.danger{background:#8e493b;color:#fff;border-color:#8e493b}

/* Accueil : présentation ludique et compacte de la collection de badges */
.noxi-badge-story{display:flex;align-items:center;gap:22px;margin:22px auto 8px;padding:23px 27px;max-width:1080px;border:2px solid #b99460;border-radius:22px;background:linear-gradient(125deg,#fff8e6,#f1dfb7);box-shadow:0 7px 0 rgba(92,66,32,.09);color:#503b24}
.noxi-badge-story-icon{flex:0 0 86px;width:86px;height:86px;display:grid;place-items:center;font-size:46px;border-radius:50%;border:3px solid #aa8145;background:radial-gradient(circle,#f9edce,#dfbf7e);box-shadow:inset 0 0 0 4px #f9ebc9}
.noxi-badge-story-copy{min-width:0}.noxi-badge-story h2{margin:6px 0 10px;color:#4b3520;font-size:clamp(21px,2.5vw,30px)}.noxi-badge-story p{margin:7px 0;line-height:1.55;color:#5b4b37}.noxi-badge-story .noxi-stamp{color:#8b6635}
.guide-badge-tip{display:flex;gap:14px;align-items:flex-start;margin:17px 0;padding:17px 19px;border-radius:16px;border:2px solid #c4a271;background:#fff3d6;color:#503b24}.guide-badge-tip-icon{font-size:30px;line-height:1.2}.guide-badge-tip p{margin:6px 0 0;line-height:1.55}
@media(max-width:600px){.noxi-badge-story{gap:12px;padding:16px 14px;align-items:flex-start}.noxi-badge-story-icon{flex-basis:54px;width:54px;height:54px;font-size:28px;border-width:2px}.noxi-badge-story h2{font-size:20px}.noxi-badge-story p{font-size:13px}.guide-badge-tip{padding:12px;gap:10px}}

/* Noxicompte : profil, carnet d'accueil, collection, suppression */
.noxi-account-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:15px 19px;background:#fff8e8;border:2px solid #b99a6b;border-radius:18px;box-shadow:0 4px 0 rgba(91,65,35,.10)}
.noxi-account-name{display:flex;align-items:center;gap:10px;color:#49351f;font-size:clamp(18px,3vw,24px);min-width:0;overflow-wrap:anywhere}
.noxi-account-top .btn{flex-shrink:0}
.noxi-account-welcome{display:flex;align-items:center;justify-content:center;gap:16px;padding:15px 20px;margin-bottom:20px;background:#f5e7c8;border:2px solid #b99a6b;border-radius:20px}
.noxi-account-welcome img{width:clamp(86px,20vw,150px);height:clamp(86px,20vw,150px);object-fit:contain;flex-shrink:0}
.noxi-account-welcome-bubble{flex:1;max-width:620px;background:#fffaf0;border:2px solid #a88b60;border-radius:18px;padding:18px;color:#49351f;display:flex;flex-direction:column;gap:8px}
.noxi-account-welcome-bubble strong{font-size:clamp(17px,2.8vw,25px);line-height:1.25}
@media(max-width:480px){.noxi-account-top{padding:12px}.noxi-account-top .btn{padding:10px 12px}.noxi-account-welcome{padding:12px;gap:9px}.noxi-account-welcome img{width:78px;height:94px}.noxi-account-welcome-bubble{padding:11px}.noxi-account-welcome-bubble strong{font-size:16px}}

/* Classements : mêmes cartes compactes que dans l’onglet Chasses. */
.noxi-rank-hunt-list .noxi-hunt-mini-go{white-space:nowrap;min-width:max-content;padding-inline:12px}
@media(max-width:420px){.noxi-rank-hunt-list .noxi-hunt-mini-go{font-size:12px;padding-inline:9px}.noxi-rank-hunt-list .noxi-hunt-mini-icon{flex-shrink:0}}

/* Indices narratifs : Archéo Nono raconte l'histoire dans une bulle BD. */
.noxi-narrative-card{background:#f7ebcf;border:2px solid #b4915f;border-radius:20px;padding:18px 16px;overflow:hidden}
.noxi-story-heading{text-align:center;color:#866338;font-size:12px;font-weight:900;letter-spacing:.12em;margin:0 0 12px}
.noxi-story-scene{display:flex;align-items:center;justify-content:center;gap:14px}
.noxi-story-character{display:block;flex:0 0 auto;width:clamp(92px,25vw,172px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:50%;filter:drop-shadow(0 4px 3px rgba(60,37,17,.16))}
.noxi-story-bubble{position:relative;flex:1;min-width:0;background:#fffaf0;border:2px solid #9f7846;border-radius:20px;padding:18px 20px;box-shadow:0 5px 0 rgba(99,70,34,.1);color:#49351f}
.noxi-story-bubble:before{content:"";position:absolute;left:-12px;top:42%;width:19px;height:19px;background:#fffaf0;border-left:2px solid #9f7846;border-bottom:2px solid #9f7846;transform:rotate(45deg)}
.noxi-story-name{font-size:13px;font-weight:900;color:#886038;margin-bottom:8px}
.noxi-story-bubble p{font-size:clamp(15px,2.6vw,19px);line-height:1.6;color:#49351f;white-space:pre-line;overflow-wrap:anywhere;margin:0}
@media(max-width:520px){.noxi-narrative-card{padding:13px 10px}.noxi-story-scene{gap:10px;align-items:flex-start}.noxi-story-character{width:90px;margin-top:12px}.noxi-story-bubble{padding:12px 13px;border-radius:15px}.noxi-story-bubble:before{left:-9px;width:14px;height:14px}.noxi-story-name{font-size:12px}.noxi-story-bubble p{font-size:15px}}
@media(max-width:360px){.noxi-story-character{width:70px}.noxi-story-scene{gap:8px}}

/* Crédits et remerciements - carnet Noxipotes */
.noxi-credits{margin:22px 0 12px;padding:22px 18px;border:3px solid #b38b54;border-radius:28px;background:linear-gradient(145deg,#fff7e2,#f1dfb9);color:#503b25;box-shadow:0 7px 0 #a8835440}
.noxi-credits h2{color:#45321e;margin:8px 0}.noxi-credits>p{margin:0 0 18px;color:#6e5b43}
.noxi-credits-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin-top:15px}
.noxi-credit-item{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #c9a875;border-radius:17px;background:#fffaf0}
.noxi-credit-item img,.noxi-credit-admin img{width:66px;height:66px;object-fit:contain;flex-shrink:0;border-radius:10px}
.noxi-credit-symbol{font-size:30px}.noxi-credit-item strong{display:block;color:#49341f}.noxi-credit-item p{font-size:.88rem;margin:5px 0;color:#70573b}.noxi-credit-item a{font-size:.85rem;color:#426e49;font-weight:700}
.noxi-credit-admin{display:flex;flex-direction:column;gap:8px}.noxi-credit-admin p{margin:0}.noxi-credit-admin .action-bar{flex-wrap:wrap}
@media(max-width:520px){.noxi-credits{padding:17px 12px}.noxi-credits-grid{grid-template-columns:1fr}}

/* Direction révélée seulement après validation d'une étape */
.noxi-direction-overlay{position:fixed;inset:0;z-index:10020;background:rgba(33,27,17,.75);display:flex;align-items:center;justify-content:center;padding:20px}
.noxi-direction-card{width:min(100%,480px);max-height:85vh;overflow:auto;text-align:center;background:linear-gradient(145deg,#fff9e8,#f0dfb8);border:3px solid #a9824b;border-radius:22px;box-shadow:0 14px 40px #24190d88;padding:28px 22px;color:#4d3721}
.noxi-direction-kicker{color:#936d3a;font-size:.76rem;letter-spacing:.15em;font-weight:800}.noxi-direction-icon{font-size:3rem;margin:12px 0}.noxi-direction-card h2{color:#3d5338;margin:0 0 12px}.noxi-direction-card p{font-size:1.08rem;line-height:1.65;white-space:pre-wrap;margin:0 0 22px}.noxi-direction-card .btn{width:100%}

.noxi-step-toolbar-holder { position: sticky; top: 8px; z-index: 35; }
.noxi-step-toolbar-holder .noxi-step-toolbar { position: static; }

/* Barre d'ajout des étapes visible pendant le défilement de l'éditeur. */
.noxi-step-toolbar {
  position: sticky;
  top: 8px;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 10px;
  border: 2px solid #a77b45;
  border-radius: 14px;
  background: #fff5dc;
  box-shadow: 0 5px 16px rgba(65, 42, 21, .17);
}
.noxi-step-toolbar .btn {
  flex: 1 1 auto;
  min-height: 42px;
  white-space: normal;
  background: #f8ebcd;
  border-color: #a77b45;
  color: #4b351e;
}
@media (max-width: 520px) {
  .noxi-step-toolbar { gap: 6px; padding: 7px; top: 4px; }
  .noxi-step-toolbar .btn { font-size: 12px; padding: 9px 7px; }
}

/* Collection des narrateurs de Noxipotes */
.noxi-character-list{display:grid;gap:10px;margin-top:16px}.noxi-character-row{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff7e6;border:1px solid #c8a77a;border-radius:14px}.noxi-character-row img{width:58px;height:58px;object-fit:contain;border-radius:12px;background:#ead9b5}.noxi-character-row strong{flex:1;color:#543a20}.noxi-character-form{display:grid;gap:12px}.noxi-story-character{object-fit:contain}@media(max-width:480px){.noxi-character-row{flex-wrap:wrap}.noxi-character-row strong{min-width:35%}}

/* Navigation admin : icones seules, distinctes et accessibles */
body.role-admin .bottom-nav .nav-button{min-width:48px;padding:10px 12px;justify-content:center;gap:0}
body.role-admin .bottom-nav .nav-symbol{font-size:23px;line-height:1.25}
@media(max-width:640px){body.role-admin .bottom-nav{max-width:calc(100% - 10px);gap:2px;padding:5px}body.role-admin .bottom-nav .nav-button{min-width:0;flex:1;padding:9px 3px}body.role-admin .bottom-nav .nav-symbol{font-size:21px}}

/* Correctif ciblé : menu principal ancré en bas, sans décor de forêt sur le site. */
html body .bottom-nav {position:fixed!important;bottom:0!important;left:0;right:0;z-index:1000!important;}
@supports (padding-bottom: env(safe-area-inset-bottom)) {html body .bottom-nav {padding-bottom:max(6px, env(safe-area-inset-bottom))!important;}}

/* Narration : disposition identique à la bulle de connexion (personnage à gauche, texte à droite). */
.noxi-story-scene{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;margin:14px 0 18px}
.noxi-story-scene .noxi-story-character{display:block;flex:0 0 90px;width:90px;height:90px;aspect-ratio:1;object-fit:contain;object-position:center;border:0;border-radius:0;background:transparent;margin:0;filter:none}
.noxi-story-scene .noxi-story-bubble{position:relative;display:block;flex:1 1 auto;min-width:0;margin:0;padding:13px 17px;background:#fff9e8;border:2px solid #77532e;border-radius:22px;box-shadow:3px 4px 0 #ddbb81;color:#203744;transform:none;text-align:left;font-weight:600;line-height:1.45}
.noxi-story-scene .noxi-story-bubble:before{content:'';position:absolute;left:-11px;top:35px;width:17px;height:17px;background:#fff9e8;border:0;border-left:2px solid #77532e;border-bottom:2px solid #77532e;transform:rotate(45deg)}
.noxi-story-scene .noxi-story-name{color:#203744;font-weight:900;font-size:15px;line-height:1.35;margin-bottom:6px}
.noxi-story-scene .noxi-story-bubble p{font-size:15px;font-weight:400;line-height:1.45;color:#203744;margin:0;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:380px){.noxi-story-scene .noxi-story-character{flex-basis:70px;width:70px;height:70px}.noxi-story-scene .noxi-story-bubble{padding:10px 12px;border-radius:18px}.noxi-story-scene .noxi-story-bubble:before{top:25px}.noxi-story-scene .noxi-story-name,.noxi-story-scene .noxi-story-bubble p{font-size:13px}}

/* Correctif narrateur : portrait en haut, accolé à la bulle. */
.noxi-narrative-card .noxi-story-scene{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important;margin:0!important}
.noxi-narrative-card .noxi-story-character{align-self:flex-start!important;flex:0 0 88px!important;width:88px!important;height:auto!important;max-height:130px;aspect-ratio:auto!important;object-fit:contain!important;object-position:top center!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;mix-blend-mode:normal!important}
.noxi-narrative-card .noxi-story-bubble{align-self:flex-start!important;flex:1 1 0!important;min-width:0!important;margin:0!important}
@media(max-width:380px){.noxi-narrative-card .noxi-story-character{flex-basis:68px!important;width:68px!important}}

/* Correctif effectif : le HTML utilise .noxi-story-scene sans .noxi-narrative-card. */
html body .noxi-story-scene{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;margin:10px 0 18px!important;text-align:left!important}
html body .noxi-story-scene > img.noxi-story-character{display:block!important;position:static!important;align-self:flex-start!important;flex:0 0 88px!important;width:88px!important;height:auto!important;max-height:140px!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center top!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;filter:none!important;transform:none!important}
html body .noxi-story-scene > .noxi-story-bubble{align-self:flex-start!important;flex:1 1 0!important;min-width:0!important;margin:0!important;text-align:left!important}
@media(max-width:420px){html body .noxi-story-scene > img.noxi-story-character{flex-basis:68px!important;width:68px!important}}

/* Chasse : commandes compactes, retour pres du guide, carte pres du chrono */
.noxi-play-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.noxi-play-toolbar .noxi-play-back{flex:0 0 52px;min-width:52px!important;width:52px;height:52px;min-height:52px;padding:0!important;font-size:29px!important;line-height:1;border:2px solid #8a633e;border-radius:15px!important;background:#fff8e7;color:#354e43}
.noxi-play-toolbar .noxi-play-guide{flex:1;min-height:52px;border-radius:15px;font-size:15px;font-weight:800}
.noxi-play-header{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:12px!important}
.noxi-play-header .noxi-map-round{flex:0 0 76px;display:flex;align-items:center;justify-content:center;width:76px;min-height:76px;padding:12px;border:3px solid #855d34;border-radius:50%;background:linear-gradient(145deg,#ffe8a9,#edbd64);box-shadow:0 4px 0 #caa16b;color:#334f44;cursor:pointer}
.noxi-play-header .noxi-map-round svg{width:48px;height:48px}
.noxi-play-header .noxi-map-round:focus-visible{outline:3px solid #365e84;outline-offset:3px}
.noxi-play-header .noxi-play-clock{flex:1!important;min-width:0!important}
@media(max-width:420px){.noxi-play-header .noxi-map-round{flex-basis:66px;width:66px;min-height:66px;padding:9px}.noxi-play-header .noxi-map-round svg{width:44px;height:44px}.noxi-play-toolbar .noxi-play-guide{font-size:13px}}
/* Bulle narrative : portrait en haut au centre et texte sans intitulé */
html body .noxi-story-scene{display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;margin:32px 0 18px!important;overflow:visible!important}
html body .noxi-story-scene > img.noxi-story-character{position:relative!important;z-index:2!important;align-self:center!important;flex:0 0 auto!important;width:92px!important;height:92px!important;max-height:none!important;aspect-ratio:1!important;object-fit:contain!important;margin:0 0 -38px!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;filter:none!important}
html body .noxi-story-scene > .noxi-story-bubble{position:relative!important;align-self:stretch!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:53px 20px 20px!important;border:2px solid #855d34!important;border-radius:24px!important;background:#fff9e9!important;box-shadow:3px 4px 0 #dfc291!important;text-align:left!important}
html body .noxi-story-scene > .noxi-story-bubble::before{display:none!important}
html body .noxi-story-scene .noxi-story-name{display:none!important}
html body .noxi-story-scene .noxi-story-bubble p{margin:0!important;font-size:16px!important;line-height:1.6!important;font-weight:400!important}

/* Navigation chasse : retour dans le bandeau supérieur, sans doublon Comment jouer */
.top-right .noxi-header-back{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0!important;border:2px solid #8a633e!important;border-radius:9px!important;background:#fff8e7!important;color:#354e43!important;font-size:28px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 2px 0 #c6a577}
.top-right .noxi-header-back:focus-visible{outline:3px solid #365e84;outline-offset:2px}
.top-right{display:flex;align-items:center;gap:8px}
@media(max-width:640px){.top-right .noxi-header-back{flex-basis:40px;width:40px;height:40px;font-size:26px}}

/* Narration façon maquette Inkscape : une seule bulle et médaillon chevauchant le bord. */
body.role-explorer .card.highlight:has(> .noxi-story-scene),
body.role-explorer .card.highlight:has(> .noxi-story-scene + button){
  background:transparent!important;border:0!important;box-shadow:none!important;
  border-radius:0!important;padding:0!important;overflow:visible!important;
}
html body .noxi-story-scene{
  position:relative!important;display:block!important;margin:58px 0 22px!important;
  padding:0!important;overflow:visible!important;text-align:left!important;
}
html body .noxi-story-scene > img.noxi-story-character{
  position:absolute!important;z-index:5!important;top:-51px!important;left:50%!important;
  transform:translateX(-50%)!important;display:block!important;
  width:104px!important;height:104px!important;max-height:none!important;
  margin:0!important;padding:0!important;object-fit:contain!important;
  border-radius:50%!important;border:0!important;background:transparent!important;
  box-shadow:none!important;filter:none!important;
}
html body .noxi-story-scene > .noxi-story-bubble{
  display:block!important;position:relative!important;width:100%!important;
  margin:0!important;padding:72px 22px 25px!important;box-sizing:border-box!important;
  border:2px solid #855d34!important;border-radius:28px!important;
  background:#fff9e9!important;box-shadow:3px 4px 0 #dfc291!important;
  text-align:left!important;transform:none!important;
}
html body .noxi-story-scene > .noxi-story-bubble::before,
html body .noxi-story-scene > .noxi-story-bubble::after{display:none!important}
html body .noxi-story-scene .noxi-story-name{display:none!important}
html body .noxi-story-scene .noxi-story-bubble p{
  margin:0!important;font-size:16px!important;font-weight:400!important;
  line-height:1.6!important;color:#203744!important;
}
@media(max-width:420px){
 html body .noxi-story-scene{margin-top:52px!important}
 html body .noxi-story-scene > img.noxi-story-character{width:94px!important;height:94px!important;top:-46px!important}
 html body .noxi-story-scene > .noxi-story-bubble{padding:65px 18px 22px!important}
}

/* NARRATION NOXIPOTES — structure distincte des cartes de chasse. */
html body .noxi-play-clue .noxi-narration-shell {
  display:block!important;position:relative!important;box-sizing:border-box!important;
  padding:0!important;margin:52px 0 20px!important;
  border:0!important;outline:0!important;background:transparent!important;
  background-image:none!important;box-shadow:none!important;border-radius:0!important;
  overflow:visible!important;
}
html body .noxi-narration-shell::before,html body .noxi-narration-shell::after{display:none!important;content:none!important}
html body .noxi-narration-shell .noxi-story-scene {
  display:block!important;position:relative!important;box-sizing:border-box!important;
  padding:0!important;margin:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
html body .noxi-narration-shell .noxi-story-character {
  display:block!important;position:absolute!important;top:-48px!important;left:50%!important;
  transform:translateX(-50%)!important;z-index:4!important;
  width:96px!important;height:96px!important;max-height:none!important;
  margin:0!important;padding:0!important;object-fit:contain!important;
  border:0!important;border-radius:50%!important;background:transparent!important;
  background-image:none!important;box-shadow:none!important;filter:none!important;
}
html body .noxi-narration-shell .noxi-story-bubble {
  display:block!important;position:relative!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;margin:0!important;
  padding:65px 20px 24px!important;border:2px solid #855d34!important;
  border-radius:25px!important;background:#fff9e9!important;background-image:none!important;
  box-shadow:3px 4px 0 #dfc291!important;transform:none!important;
  text-align:left!important;
}
html body .noxi-narration-shell .noxi-story-bubble::before,
html body .noxi-narration-shell .noxi-story-bubble::after{display:none!important;content:none!important}
html body .noxi-narration-shell .noxi-story-name{display:none!important}
html body .noxi-narration-shell .noxi-story-bubble p {
  margin:0!important;padding:0!important;font-size:16px!important;
  font-weight:400!important;line-height:1.6!important;color:#203744!important;
}
html body .noxi-narration-shell > button{margin-top:15px!important}

/* Bouton de révélation de l’énigme — style aventure Noxipotes. */
html body button.noxi-reveal-riddle {
  display:flex; align-items:center; justify-content:center; gap:12px;
  width:min(100%,420px); min-height:62px; margin:22px auto 10px; padding:13px 22px;
  border:3px solid #805632; border-radius:19px;
  background:linear-gradient(180deg,#ffe7a0 0%,#f5c969 70%,#e8b553 100%);
  color:#17394b; font-weight:900; font-size:clamp(16px,4vw,20px); letter-spacing:.015em;
  box-shadow:0 5px 0 #b48750,0 8px 14px rgba(74,50,26,.16);
  text-shadow:0 1px 0 rgba(255,255,255,.6);
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
html body button.noxi-reveal-riddle::before {content:'✦';font-size:20px;color:#3d6951;}
html body button.noxi-reveal-riddle:hover {filter:brightness(1.04);transform:translateY(-1px);}
html body button.noxi-reveal-riddle:active {transform:translateY(3px);box-shadow:0 2px 0 #b48750;}
html body button.noxi-reveal-riddle:focus-visible {outline:3px solid #244f65;outline-offset:4px;}
@media (prefers-reduced-motion:reduce){html body button.noxi-reveal-riddle{transition:none;}}

/* Patch unifié : navigation administrateur identique à la navigation joueur.
   La largeur est calculée depuis la fenêtre, sans décalage latéral ni débordement. */
html body.role-admin .bottom-nav{
  position:fixed!important;left:0!important;right:0!important;bottom:0!important;
  top:auto!important;transform:none!important;margin:0!important;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;display:flex!important;flex-direction:row!important;
  justify-content:space-around!important;align-items:stretch!important;
  gap:2px!important;padding:6px max(5px,env(safe-area-inset-right,0px)) max(7px,env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px))!important;
  overflow-x:hidden!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;
  z-index:1000!important;
}
html body.role-admin .bottom-nav .nav-button{
  box-sizing:border-box!important;flex:1 1 0!important;width:0!important;min-width:0!important;
  max-width:none!important;margin:0!important;padding:9px 1px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  white-space:nowrap!important;overflow:hidden!important;
}
html body.role-admin .bottom-nav .nav-symbol{font-size:clamp(16px,4.8vw,23px)!important;line-height:1!important}

/* Chasse en cours : le retour en haut remplace la navigation fixe du bas. */
html body.noxi-hunt-playing #bottomNav{display:none!important}
html body.noxi-hunt-playing{padding-bottom:0!important}


/* Icônes Noxipotes : SVG directement, sans pastille ni encadré.
   Les SVG restent personnalisables dans assets/icones-menu/joueur et /admin. */
html body .bottom-nav .nav-button .nav-symbol,
html body .bottom-nav .nav-button.active .nav-symbol {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:44px!important;
  height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
}
html body .bottom-nav .nav-button .noxi-menu-icon-file {
  display:block!important;
  width:42px!important;
  height:42px!important;
  min-width:0!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  object-fit:contain!important;
  transform:none!important;
  border:none!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body .bottom-nav .nav-button {gap:2px!important;}
@media (max-width:540px) {
  html body .bottom-nav .nav-button .nav-symbol,
  html body .bottom-nav .nav-button.active .nav-symbol {width:40px!important;height:40px!important;}
  html body .bottom-nav .nav-button .noxi-menu-icon-file {width:39px!important;height:39px!important;}
}
@media (max-width:360px) {
  html body .bottom-nav .nav-button .nav-symbol,
  html body .bottom-nav .nav-button.active .nav-symbol {width:37px!important;height:37px!important;}
  html body .bottom-nav .nav-button .noxi-menu-icon-file {width:36px!important;height:36px!important;}
}
