/* Nouvelle interface Noxipotes — seulement une chasse au trésor active. */
.noxi-first-layout{--noxi-ink:#6c482a;--noxi-cream:#fff8e8;--noxi-gold:#f3d5a0;max-width:720px;margin:0 auto;padding:12px 10px 18px;color:var(--noxi-ink)}
.noxi-first-dashboard{display:grid;grid-template-columns:minmax(90px,29%) 1fr;align-items:end;gap:8px;min-height:170px;margin-bottom:9px}
.noxi-first-avatar{align-self:end;position:relative;z-index:2;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1;border-radius:50%;background:#fff4d9;border:3px solid var(--noxi-ink);box-shadow:0 3px 0 #e1bd87;overflow:hidden}
.noxi-first-avatar img{width:100%;height:100%;object-fit:contain}
.noxi-first-right{display:flex;flex-direction:column;gap:16px;min-width:0;padding-bottom:4px}
.noxi-first-timer{display:flex;align-items:center;justify-content:center;gap:8px;background:#c28c4f;border:3px solid #fff8e8;border-radius:25px;color:white;min-height:66px;padding:7px 8px;box-shadow:0 3px 0 #d9bd8e}
.noxi-first-watch{font-size:43px;line-height:1;color:#fff8e8}.noxi-first-timer small{font-weight:700;font-size:12px;display:block;text-align:center;color:white}
.noxi-first-timer .noxi-play-clock{display:block;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;text-align:center;color:white!important}
.noxi-first-timer .noxi-play-clock>span{display:none!important}.noxi-first-timer .noxi-play-clock strong{color:white!important;font-size:clamp(20px,5vw,29px)!important;line-height:1.1;white-space:nowrap}
.noxi-first-steps{position:relative;background:#f4d8a7;border:3px solid #fff8e8;border-radius:24px;padding:18px 8px 7px;box-shadow:0 2px 0 #d6b688}
.noxi-first-ribbon{position:absolute;top:-17px;left:50%;transform:translateX(-50%);padding:1px 18px;background:#fff1d2;border:2px solid #a77b4b;border-radius:12px;font-size:17px;font-weight:900;white-space:nowrap}
.noxi-first-track{display:flex;justify-content:space-around;gap:3px;position:relative}.noxi-first-track:before{content:'';position:absolute;top:14px;left:9%;right:9%;height:3px;background:#a47c4f}
.noxi-first-step{display:flex;flex-direction:column;align-items:center;gap:2px;z-index:1;min-width:0}.noxi-first-step b{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;border:2px solid #ae8959;background:#fff6e5;color:#ae8959;font-size:18px}.noxi-first-step.done b{background:#85b841;color:white;border-color:#fff}.noxi-first-step.current b{background:#e8b35d;border-color:#318ca6;color:#fff;font-size:21px}.noxi-first-step small{font-size:11px;font-weight:900}.noxi-first-more{display:block;text-align:center}
.noxi-first-bubble{position:relative;min-height:310px;background:var(--noxi-cream);border:2px solid #422f25;border-radius:28px;padding:24px 14px 14px;box-shadow:0 4px 0 #d8c6a9}.noxi-first-bubble:before{content:'';position:absolute;top:-13px;left:13%;width:23px;height:23px;transform:rotate(45deg);background:var(--noxi-cream);border-top:2px solid #422f25;border-left:2px solid #422f25}
.noxi-first-bubble-heading{position:relative;width:max-content;max-width:100%;margin:-7px auto 15px;background:#f3d9a9;border:2px solid #8c623d;border-radius:12px;padding:5px 22px;font-weight:900;font-size:19px;text-align:center}
.noxi-first-clue{position:relative;z-index:1;min-height:155px}.noxi-first-clue .card.highlight,.noxi-first-clue .noxi-narration-shell{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;color:#563c2a!important}
.noxi-first-clue h2{font-size:17px;text-align:center;color:#6c482a}.noxi-first-clue .noxi-riddle-text{font-size:clamp(16px,4.4vw,21px);line-height:1.5;text-align:center;color:#563c2a}
.noxi-first-clue .noxi-story-scene{max-width:100%}.noxi-first-clue input{width:100%;background:white;border:2px solid #8c623d;border-radius:18px;min-height:48px}.noxi-first-clue .field label{font-weight:700}
.noxi-first-clue [data-step-complete]{width:100%;margin-top:10px;border-radius:14px}.noxi-first-clue [data-treasure-help]{margin:12px auto;display:block;max-width:100%;white-space:normal}
.noxi-first-footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:15px}.noxi-first-footer button{min-height:43px;border-radius:13px;font-weight:800}.noxi-first-map{border:2px solid #8c623d;background:#f9dfb0;color:#60432e;padding:8px 13px}.noxi-first-scan{flex:1;min-width:145px}
@media(max-width:420px){.noxi-first-layout{padding:7px 5px 15px}.noxi-first-dashboard{grid-template-columns:31% 1fr;gap:5px;min-height:140px}.noxi-first-right{gap:14px}.noxi-first-watch{font-size:34px}.noxi-first-timer{min-height:56px;padding:5px 3px}.noxi-first-timer .noxi-play-clock strong{font-size:22px!important}.noxi-first-bubble{padding:20px 10px 12px}.noxi-first-ribbon{font-size:14px}.noxi-first-step b{width:26px;height:26px;font-size:15px}}

/* Narration épurée : portrait et progression déjà visibles au-dessus. */
.noxi-first-bubble .noxi-story-scene{display:block!important;min-height:0!important;padding-top:0!important;margin-top:0!important}
.noxi-first-bubble .noxi-story-bubble{margin:0!important;max-width:100%!important}
.noxi-first-bubble .noxi-first-clue{padding-top:0}

/* Une seule bulle : aucun fond, cadre ni ombre autour du texte narratif. */
.noxi-first-bubble .noxi-first-story-text,
.noxi-first-bubble .noxi-story-scene,
.noxi-first-bubble .noxi-narration-shell,
.noxi-first-bubble .noxi-first-clue .card.highlight{background:transparent!important;background-image:none!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important;padding:0!important;min-height:0!important;max-width:none!important;width:100%!important;}
.noxi-first-bubble .noxi-first-story-text p{margin:0!important;padding:0!important;color:#563c2a!important;font-size:clamp(16px,4.4vw,21px)!important;line-height:1.55!important;}
.noxi-first-bubble .noxi-story-scene:before,.noxi-first-bubble .noxi-story-scene:after,.noxi-first-bubble .noxi-first-story-text:before,.noxi-first-bubble .noxi-first-story-text:after{display:none!important;content:none!important;}

/* Noxicarte : bouton rond placé au-dessus du portrait, zone indiquée sur la capture. */
.noxi-first-dashboard{position:relative}
.noxi-first-map-float{position:absolute;z-index:5;top:58px;left:7%;display:grid;place-items:center;width:48px;height:48px;padding:0;border:3px solid #7b5536;border-radius:50%;background:#fff0cf;color:#60432e;box-shadow:0 3px 0 #d5b78b;font-size:23px;cursor:pointer;touch-action:manipulation}
.noxi-first-map-float:focus-visible{outline:3px solid #238caa;outline-offset:3px}
@media(max-width:420px){.noxi-first-map-float{top:42px;left:7%;width:44px;height:44px;font-size:21px}}

/* Commandes rapides de la chasse : Noxicarte et aide côte à côte. */
.noxi-first-tools{position:absolute;z-index:5;top:58px;left:2%;display:flex;align-items:center;gap:7px}
.noxi-first-tools .noxi-first-map-float,.noxi-first-tools .noxi-first-help-float{position:static;display:grid;place-items:center;width:46px;height:46px;padding:0;border:3px solid #7b5536;border-radius:50%;background:#fff0cf;color:#60432e;box-shadow:0 3px 0 #d5b78b;font-size:22px;cursor:pointer;touch-action:manipulation}
.noxi-first-tools .noxi-first-help-float{background:#ffe6a4}
.noxi-first-tools button:focus-visible{outline:3px solid #238caa;outline-offset:3px}
@media(max-width:420px){.noxi-first-tools{top:42px;left:1%;gap:5px}.noxi-first-tools .noxi-first-map-float,.noxi-first-tools .noxi-first-help-float{width:40px;height:40px;font-size:19px}}

/* Confirmation d'aide : dialogue illustré Noxipotes, sans alert navigateur. */
.noxi-help-dialog{width:min(92vw,440px);max-height:calc(100dvh - 30px);padding:0;border:0;border-radius:24px;background:transparent;color:#563c2a;overflow:visible;box-shadow:none}
.noxi-help-dialog::backdrop{background:rgba(32,28,23,.68);backdrop-filter:blur(3px)}
.noxi-help-paper{position:relative;margin:54px 4px 8px;padding:75px 22px 24px;border:3px solid #634632;border-radius:28px;background:#fff5df;box-shadow:0 8px 0 #c8aa7c,0 20px 48px #25180f55;text-align:center}
.noxi-help-portrait{position:absolute;top:-65px;left:50%;transform:translateX(-50%);width:125px;height:125px;object-fit:contain;filter:drop-shadow(0 4px 1px #a8875c)}
.noxi-help-kicker{font-size:12px;font-weight:900;letter-spacing:.09em;color:#92633a}
.noxi-help-paper h2{font-size:clamp(23px,5vw,30px);line-height:1.2;margin:9px 0 14px;color:#63432b}
.noxi-help-paper p{font-size:16px;line-height:1.55;margin:10px 0}
.noxi-help-warning{padding:13px;border:2px solid #dfbc79;border-radius:15px;background:#ffebbc}
.noxi-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.noxi-help-actions .btn{min-height:52px;white-space:normal;padding:10px 8px;font-size:14px}
.noxi-help-close{position:absolute;right:12px;top:9px;width:32px;height:32px;border:0;background:transparent;font-size:28px;color:#765238;cursor:pointer}
@media(max-width:360px){.noxi-help-paper{padding:72px 14px 18px}.noxi-help-actions{grid-template-columns:1fr}}

/* Scanner QR : fenêtre modale unique, indépendante de la page de chasse. */
.noxi-scanner-dialog{box-sizing:border-box;width:min(94vw,520px);max-width:520px;max-height:min(88dvh,850px);margin:auto;padding:0;border:3px solid #67482f;border-radius:25px;background:#fff8e8;color:#503b2c;box-shadow:0 20px 65px #24180d85;overflow:auto}
.noxi-scanner-dialog::backdrop{background:rgba(21,31,34,.73);backdrop-filter:blur(3px)}
.noxi-scanner-content{padding:clamp(18px,4vw,28px);text-align:center}
.noxi-scanner-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.noxi-scanner-kicker{font-size:12px;font-weight:800;letter-spacing:.09em;color:#90633e}
.noxi-scanner-x{width:40px;height:40px;border:2px solid #8b6748;border-radius:12px;background:#f8e8c6;color:#63462f;font-size:28px;line-height:1;cursor:pointer}
.noxi-scanner-dialog h2{font-size:clamp(23px,5vw,31px);line-height:1.15;margin:8px 0 12px;color:#243847}
.noxi-scanner-dialog p{font-size:15px;line-height:1.45;margin:0 0 16px}
.noxi-scanner-camera{display:grid;place-items:center;min-height:190px;border:2px dashed #ad895f;border-radius:17px;background:#f5e8cb;padding:12px;color:#71563f;font-size:15px;overflow:hidden}
.noxi-scanner-camera video{display:block;width:100%;max-height:48dvh;object-fit:cover;border-radius:12px}
.noxi-scanner-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}
.noxi-scanner-actions .btn{flex:1 1 150px;min-height:48px}

/* Étapes terminées : aucun fond de bouton, aucune bordure ni halo.
   Seul le rond vert de validation reste visible. */
.noxi-first-step.done,
.noxi-first-step.done:hover,
.noxi-first-step.done:active {
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
.noxi-first-step.done b {
  background:#85b841!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  color:#fff!important;
}
.noxi-first-step.done:focus-visible b {
  outline:0!important;
  box-shadow:none!important;
}

/* Navigation des etapes : defilement tactile et boutons actifs. */
.noxi-first-track{display:flex!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;gap:6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;touch-action:pan-x;overscroll-behavior-x:contain;padding:3px 4px 8px;}
.noxi-first-track .noxi-first-step{flex:0 0 auto!important;min-width:34px;cursor:default;}
.noxi-first-track .noxi-first-step[data-review-step]{cursor:pointer;pointer-events:auto!important;touch-action:pan-x;}
.noxi-first-track .noxi-first-step.done{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;}
.noxi-first-track .noxi-first-step.done b{background:#85b841!important;color:white!important;border:0!important;box-shadow:none!important;}

/* Toutes les etapes : aucune plaque, fond, bordure ou ombre sur le bouton.
   Conserve les ronds d'etat, le defilement et les clics existants. */
.noxi-first-track .noxi-first-step,
.noxi-first-track .noxi-first-step:hover,
.noxi-first-track .noxi-first-step:active,
.noxi-first-track .noxi-first-step:focus,
.noxi-first-track .noxi-first-step.current,
.noxi-first-track .noxi-first-step:not(.done):not(.current) {
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.noxi-first-track .noxi-first-step b {
  box-shadow:none!important;
  outline:0!important;
  border:0!important;
}

/* Bouton scanner — carnet d'aventure Noxipotes (sans impact sur les autres boutons) */
.noxi-first-footer .noxi-scan-parchment{
  appearance:none;-webkit-appearance:none;box-sizing:border-box;display:flex;
  align-items:center;gap:12px;flex:1 1 100%;min-width:0;width:100%;
  padding:9px 13px 9px 9px;border:3px solid #815536;border-radius:20px;
  background:linear-gradient(150deg,#fff8e9 0%,#f4e3c0 100%);
  color:#583a29;box-shadow:0 4px 0 #b38b5a,0 8px 15px rgba(82,49,28,.13);
  text-align:left;cursor:pointer;min-height:76px;max-width:460px;
  transition:transform .14s ease,box-shadow .14s ease;
}
.noxi-first-footer .noxi-scan-parchment:active{transform:translateY(3px);box-shadow:0 1px 0 #b38b5a,0 3px 8px rgba(82,49,28,.12)}
.noxi-first-footer .noxi-scan-parchment:focus-visible{outline:3px solid #8a5bb3;outline-offset:4px}
.noxi-scan-mascot{flex:0 0 56px;width:56px;height:56px;border-radius:15px;overflow:hidden;border:2px solid #c39a65;background:#e9d7b2;display:block}
.noxi-scan-mascot img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 33%}
.noxi-scan-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.noxi-scan-copy strong{font-size:clamp(16px,4.3vw,20px);font-weight:900;line-height:1.15;color:#553823}
.noxi-scan-copy small{font-size:clamp(11px,3.1vw,13px);font-weight:600;line-height:1.3;color:#8a6b4e}
.noxi-scan-arrow{flex:0 0 auto;font-size:32px;line-height:1;color:#8b5c37;font-family:Georgia,serif}
@media(max-width:360px){.noxi-first-footer .noxi-scan-parchment{gap:8px;padding-right:9px}.noxi-scan-mascot{flex-basis:48px;width:48px;height:48px}}

/* Validation : même design exact que le bouton Scanner un QR */
.noxi-first-clue .noxi-answer-parchment{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;max-width:460px;min-width:0;min-height:76px;margin:12px auto 0;padding:9px 13px 9px 9px;border:3px solid #815536;border-radius:20px;background:linear-gradient(150deg,#fff8e9 0%,#f4e3c0 100%);color:#583a29;box-shadow:0 4px 0 #b38b5a,0 8px 15px rgba(82,49,28,.13);text-align:left;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease}
.noxi-first-clue .noxi-answer-parchment:active{transform:translateY(3px);box-shadow:0 1px 0 #b38b5a,0 3px 8px rgba(82,49,28,.12)}
.noxi-first-clue .noxi-answer-parchment:focus-visible{outline:3px solid #8a5bb3;outline-offset:4px}
@media(max-width:360px){.noxi-first-clue .noxi-answer-parchment{gap:8px;padding-right:9px}}

/* Découvrir l’énigme : présentation identique au bouton QR */
.noxi-first-clue .noxi-reveal-riddle{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;max-width:460px;min-width:0;min-height:76px;margin:12px auto 0;padding:9px 13px 9px 9px;border:3px solid #815536;border-radius:20px;background:linear-gradient(150deg,#fff8e9 0%,#f4e3c0 100%);color:#583a29;box-shadow:0 4px 0 #b38b5a,0 8px 15px rgba(82,49,28,.13);text-align:left;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease}
.noxi-first-clue .noxi-reveal-riddle:active{transform:translateY(3px);box-shadow:0 1px 0 #b38b5a,0 3px 8px rgba(82,49,28,.12)}
.noxi-first-clue .noxi-reveal-riddle:focus-visible{outline:3px solid #8a5bb3;outline-offset:4px}
@media(max-width:360px){.noxi-first-clue .noxi-reveal-riddle{gap:8px;padding-right:9px}}
