#exploration-hud{position:fixed;z-index:34;left:50%;bottom:22px;transform:translateX(-50%);max-width:min(440px,70vw);padding:7px 14px;border:1px solid #d5b577;border-radius:9px;background:#123934f2;color:#fff4dc;box-shadow:0 4px 18px #0004;cursor:pointer;text-align:center;font:13px Arial,sans-serif;user-select:none}
#exploration-hud[hidden],#exploration-action[hidden],#exploration-arrow[hidden]{display:none!important}.explore-keys{display:flex;justify-content:center;align-items:center;gap:9px}.explore-keys img{width:36px;height:32px;object-fit:contain}.explore-keys img.missing{filter:grayscale(1);opacity:.3}.explore-keys img.carried{filter:drop-shadow(0 0 5px #fff);opacity:.85}.explore-keys small{font-size:13px;color:#fff}.explore-status{margin-top:4px;line-height:1.3}.exploration-map-note{display:block!important;background:#173c36;color:#fff3d8!important;border-radius:4px;padding:6px 9px;margin-top:5px;font:12px Arial,sans-serif!important}
#exploration-arrow{position:fixed;z-index:36;pointer-events:none;transform:translate(-50%,-50%);color:#ffdf7f;text-shadow:0 2px 3px #000;text-align:center;font:12px Arial,sans-serif}#exploration-arrow b{display:block;margin:auto;width:34px;height:34px;border:2px solid #ffdf7f;background:#113b35;border-radius:50%;font-size:25px;line-height:30px}#exploration-arrow span{display:block;margin-top:4px;padding:4px 6px;max-width:150px;background:#123934f5;border-radius:4px;color:#fff3d3;font-weight:bold}
#exploration-action{position:fixed;z-index:39;left:50%;bottom:125px;transform:translateX(-50%);min-height:48px;padding:12px 20px;border:2px solid #ffdf7f;border-radius:7px;background:#bd4d1b;color:white;font:bold 15px Arial;box-shadow:0 3px 12px #0006;touch-action:manipulation}
#exploration-help{max-width:570px;border:2px solid #c8a35c;border-radius:12px;background:#fff5df;color:#153d35;padding:28px;font:16px/1.5 Arial}#exploration-help::backdrop{background:#081f24bb}#exploration-help h2{color:#173e34}#exploration-help p{color:#173e34}#exploration-help button{background:#b84c1b;color:white;border:0;padding:13px 25px;border-radius:5px}
.exploration-guide{display:block;width:100%;text-align:left;min-height:36px;padding:7px 12px;margin:0 0 8px;background:#173c36;color:#fff2d5!important;border:1px solid #c7a66e;border-radius:5px;font:13px Arial;cursor:pointer}
@media(max-width:700px){#exploration-hud{bottom:calc(92px + env(safe-area-inset-bottom));padding:5px 8px;max-width:62vw;font-size:11px}.explore-keys img{height:25px;width:28px}.explore-keys{gap:6px}#exploration-action{bottom:calc(181px + env(safe-area-inset-bottom));font-size:12px;max-width:60vw;padding:10px}#exploration-arrow span{max-width:105px;font-size:10px}}
@media(max-height:500px) and (orientation:landscape){#exploration-hud{bottom:8px;padding:3px 10px;max-width:45vw;display:flex;gap:10px;align-items:center;font-size:11px}.explore-keys img{height:23px;width:25px}.explore-status{max-width:185px;margin:0}#exploration-action{bottom:60px;min-height:40px;padding:7px 14px}}

/* Le suivi appartient au chrono : aucun panneau supplémentaire en bas. */
.explore-clock-host{position:relative}
#exploration-hud{position:absolute;top:50%;left:calc(100% + 14px);bottom:auto;right:auto;transform:translateY(-50%);width:154px;max-width:none;padding:6px 9px;display:block;gap:0;background:#fff3dbf5;border:1px solid #c7a363;border-radius:7px;box-shadow:0 3px 10px #061e2530;color:#163e36;font:12px Arial,sans-serif;line-height:1.1;letter-spacing:0;text-align:left;pointer-events:auto;min-height:0;min-width:0;white-space:normal}
#exploration-hud:hover{background:#fff9ed;border-color:#b86429}
#exploration-hud:active{transform:translateY(-50%)}
#exploration-hud .explore-caption{display:block;font-size:8px;letter-spacing:1.1px;font-weight:800;color:#5d6c5b;margin-bottom:3px}
#exploration-hud .explore-keyline{display:flex;align-items:center;gap:6px}
#exploration-hud .explore-keys{display:flex;align-items:center;justify-content:flex-start;gap:3px;flex:1;min-width:0}
#exploration-hud .explore-keys img{width:26px;height:26px;object-fit:contain;filter:none;opacity:1;padding:1px;border-bottom:2px solid transparent;border-radius:3px}
#exploration-hud .explore-keys img.missing{opacity:.7;filter:saturate(.8);border-color:#c7b898;border-bottom-style:dotted}
#exploration-hud .explore-keys img.owned{background:#dcebd9;border-color:#3c784d}
#exploration-hud .explore-keys img.carried{background:#ffdb93;border-color:#c06821;filter:drop-shadow(0 0 2px #e49a40)}
#exploration-hud .explore-count{color:#173e36;font-weight:900;font-size:15px;white-space:nowrap;margin-left:4px}
#exploration-hud .explore-count small{font-size:10px;color:#5d6c5b;margin-left:1px}
#exploration-hud .explore-info{display:grid;place-items:center;flex:0 0 16px;height:16px;border:1px solid #8e9e8c;border-radius:50%;font-size:10px;font-weight:800;color:#355344}
#exploration-hud .explore-status{font-size:10px;line-height:1.2;font-weight:700;margin-top:4px;max-width:none;color:#285247;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#exploration-hud[data-phase="waiting"][data-announced="false"] .explore-status{display:none}

/* Une fiche illustrée, avec trois étapes distinctes et une vraie hiérarchie. */
#exploration-help{box-sizing:border-box;width:min(880px,calc(100vw - 32px));max-width:880px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #c6a568;border-radius:16px;background:#fcf5e6;color:#173d34;box-shadow:0 24px 100px #001a2399;font:14px/1.5 Arial,sans-serif;overflow:auto;overscroll-behavior:contain}
#exploration-help::backdrop{background:#071f24b8;backdrop-filter:blur(5px)}
#exploration-help .explore-help-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:27px 34px 24px;background:radial-gradient(ellipse at 87% 20%,#4d7253 0%,transparent 60%),#173d34;border:0;height:auto;min-height:0}
#exploration-help .explore-eyebrow{display:block;font:800 9px/1.3 Arial,sans-serif;letter-spacing:1.7px;color:#b49458}
#exploration-help .explore-help-head .explore-eyebrow{color:#e9c88d}
#exploration-help h2{font-family:Service,'Arial Narrow',Impact,sans-serif;font-size:36px;letter-spacing:-.6px;line-height:1.05;margin:10px 0;color:#fff3d9;font-weight:800}
#exploration-help .explore-help-head p{margin:0;color:#deebdd;font-size:13px;line-height:1.5}
#exploration-help .explore-help-trophy{flex:0 0 180px;display:grid;place-items:center;position:relative;align-self:stretch}
#exploration-help .explore-help-trophy:before{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse,#dfbe6e47,transparent 70%)}
#exploration-help .explore-help-trophy img{display:block;position:relative;width:180px;height:140px;object-fit:contain;filter:drop-shadow(0 10px 10px #041e2770)}
#exploration-help button.explore-help-close{position:absolute;right:11px;top:10px;display:grid;place-items:center;width:30px;height:30px;min-height:0;margin:0;padding:0;border:1px solid #d7dbbc66;border-radius:50%;background:#113b32;color:#fff3d9;font:23px/1 Arial,sans-serif;box-shadow:none}
#exploration-help .explore-help-body{padding:25px 30px 24px}
#exploration-help .explore-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0;margin:0;list-style:none}
#exploration-help .explore-steps li{position:relative;min-width:0;padding:0 14px 0 0;border-right:1px solid #d7c9aa}
#exploration-help .explore-steps li:last-child{border:0;padding-right:0}
#exploration-help .explore-step-number{position:absolute;left:0;top:0;font:bold 12px Arial;color:#9b793e;letter-spacing:1px}
#exploration-help .explore-step-art{height:88px;display:flex;justify-content:center;align-items:center;margin:0 0 12px;background:radial-gradient(ellipse at 50% 65%,#e2d6b9,transparent 68%);gap:0}
#exploration-help .explore-step-art>img{width:120px;height:82px;object-fit:contain}
#exploration-help .explore-three-keys>img{width:57px;height:66px;transform:rotate(-12deg)}
#exploration-help .explore-three-keys>img:nth-child(2){transform:translateY(-7px);width:62px}
#exploration-help .explore-three-keys>img:nth-child(3){transform:rotate(12deg)}
#exploration-help h3{font:800 16px/1.2 Arial,sans-serif;letter-spacing:-.3px;color:#173d34;margin:0 0 9px}
#exploration-help .explore-steps p{margin:0;font:13px/1.55 Arial;color:#365347}
#exploration-help .explore-steps small{display:block;margin-top:9px;font:11px/1.4 Arial;color:#6c6e56}
#exploration-help .explore-caution{display:flex;align-items:center;gap:12px;border:1px solid #e4ca9d;border-radius:7px;background:#f6e9cc;margin:22px 0;padding:10px 14px}
#exploration-help .explore-caution>span{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border:1px solid #b27932;border-radius:50%;font:bold 14px Arial;color:#9a5b24}
#exploration-help .explore-caution p{margin:0;color:#70512e;font-size:12px;line-height:1.5}
#exploration-help .explore-help-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;border:0;font-size:13px}
#exploration-help .explore-help-footer p{margin:6px 0 0;color:#22483b;font-size:13px}
#exploration-help .explore-help-footer p>span{color:#7b806d;padding:0 5px}
#exploration-help button.explore-help-confirm{display:flex;align-items:center;justify-content:space-between;gap:25px;flex-shrink:0;min-height:44px;background:#b64e1d;border:1px solid #a64115;border-radius:6px;color:#fff8eb;padding:12px 20px;font:800 14px Arial,sans-serif;box-shadow:0 3px 0 #853c1e}
#exploration-help button.explore-help-confirm:hover{background:#cb6028}
@media(max-width:1099px){
 #exploration-hud{position:relative;left:auto;top:auto;bottom:auto;right:auto;transform:none;width:max-content;max-width:100%;padding:2px 5px;margin:4px auto 0;border-radius:4px;box-shadow:none}
 #exploration-hud:active{transform:none}
 #exploration-hud .explore-caption{display:none}
 #exploration-hud .explore-keys img{width:20px;height:20px}
 #exploration-hud .explore-count{font-size:12px;margin-left:1px}
 #exploration-hud .explore-info{flex-basis:13px;height:13px;font-size:9px}
 #exploration-hud .explore-keyline{gap:3px}
 #exploration-hud .explore-status{font-size:9px;max-width:135px;margin-top:1px}
}
@media(max-width:540px){
 #exploration-hud{padding:1px 3px}
 #exploration-hud .explore-keys img{width:16px;height:18px}
 #exploration-hud .explore-keys{gap:1px}
 #exploration-hud .explore-count small{font-size:9px}
 #exploration-hud .explore-status{max-width:100px;font-size:8px}
 #exploration-help{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:12px}
 #exploration-help .explore-help-head{padding:22px 20px 19px;gap:8px}
 #exploration-help h2{font-size:27px;margin:9px 0}
 #exploration-help .explore-help-head p{font-size:11px;max-width:210px}
 #exploration-help .explore-help-trophy{flex-basis:86px}
 #exploration-help .explore-help-trophy img{width:92px;height:100px}
 #exploration-help .explore-eyebrow{font-size:8px;letter-spacing:1.2px}
 #exploration-help .explore-help-body{padding:18px}
 #exploration-help .explore-steps{grid-template-columns:1fr;gap:15px}
 #exploration-help .explore-steps li{display:grid;grid-template-columns:84px 1fr;align-items:start;gap:12px;padding:0 0 14px;border:0;border-bottom:1px solid #dfd2b8}
 #exploration-help .explore-step-number{position:absolute;left:0;top:-3px;font-size:9px}
 #exploration-help .explore-step-art{height:82px;margin:0;align-self:center}
 #exploration-help .explore-step-art>img{width:80px;height:70px}
 #exploration-help .explore-three-keys>img{width:29px;height:51px}
 #exploration-help .explore-three-keys>img:nth-child(2){width:31px}
 #exploration-help h3{font-size:14px;margin-bottom:5px}
 #exploration-help .explore-steps p{font-size:12px;line-height:1.45}
 #exploration-help .explore-steps small{font-size:10px;margin-top:5px}
 #exploration-help .explore-caution{margin:15px 0;padding:9px 11px;gap:9px}
 #exploration-help .explore-caution p{font-size:11px}
 #exploration-help .explore-help-footer{align-items:stretch;flex-direction:column;gap:12px}
 #exploration-help button.explore-help-confirm{width:100%;min-height:42px;padding:10px 16px}
}
@media(max-height:500px) and (orientation:landscape){
 #exploration-hud{position:relative;left:auto;top:auto;bottom:auto;transform:none;margin:2px auto 0;display:block;width:max-content;max-width:100%;padding:1px 5px}
 #exploration-hud .explore-keys img{width:18px;height:18px}
 #exploration-help{max-height:calc(100dvh - 16px);width:min(760px,calc(100vw - 24px))}
 #exploration-help .explore-help-head{padding:14px 25px;min-height:0}
 #exploration-help h2{font-size:24px;margin:5px 0}
 #exploration-help .explore-help-head h2 br{display:none}
 #exploration-help .explore-help-trophy{flex-basis:100px}
 #exploration-help .explore-help-trophy img{width:105px;height:70px}
 #exploration-help .explore-help-body{padding:14px 22px}
 #exploration-help .explore-step-art{height:44px;margin-bottom:7px}
 #exploration-help .explore-step-art>img{height:44px;width:70px}
 #exploration-help .explore-three-keys>img{width:34px;height:38px}
 #exploration-help .explore-three-keys>img:nth-child(2){width:35px}
 #exploration-help h3{font-size:13px;margin-bottom:5px}
 #exploration-help .explore-steps p{font-size:11px;line-height:1.35}
 #exploration-help .explore-steps small{display:none}
 #exploration-help .explore-caution{margin:10px 0;padding:7px 10px}
 #exploration-help .explore-caution p{font-size:10px}
 #exploration-help .explore-help-footer p{font-size:11px;margin-top:3px}
 #exploration-help button.explore-help-confirm{min-height:34px;padding:8px 14px;font-size:12px}
}
.explore-test-speed{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;margin:16px 0;border:1px solid #b39a68;border-radius:7px;background:#f1e7d0;color:#21493b;font:13px Arial,sans-serif}
.explore-test-speed b{display:block;color:#21493b;font-size:14px}.explore-test-speed small{display:block;color:#596953;font:11px/1.4 Arial,sans-serif;margin-top:4px;max-width:270px}
.explore-rate-buttons{display:flex;gap:5px;flex-shrink:0}.explore-rate-buttons button{min-width:42px;min-height:38px;padding:7px 10px;background:#fff8e8;border:1px solid #b9a17a;border-radius:4px;color:#234a3d;font:bold 13px Arial,sans-serif;box-shadow:none}
.explore-rate-buttons button[aria-pressed="true"]{background:#204d3f;color:#fff5db;border-color:#204d3f}
#exploration-hud[data-test-speed="2"] .explore-caption:after{content:' · TEST ×2'}#exploration-hud[data-test-speed="3"] .explore-caption:after{content:' · TEST ×3'}#exploration-hud[data-test-speed="10"] .explore-caption:after{content:' · TEST ×10'}
@media(max-width:540px){.explore-test-speed{flex-direction:column;align-items:stretch;gap:10px;padding:12px}.explore-rate-buttons{justify-content:space-between}.explore-rate-buttons button{flex:1}}
@media(max-height:500px) and (orientation:landscape){.explore-test-speed{margin:8px 0;padding:8px 12px}.explore-rate-buttons button{min-height:30px;padding:5px 9px}}

/* Les styles historiques imposent une taille minimale aux spans du HUD. */
#exploration-hud .explore-caption{font-size:8px!important;line-height:1.1!important;letter-spacing:.9px!important;white-space:nowrap}
#exploration-hud .explore-count{display:inline-flex!important;align-items:baseline;font-size:14px!important;line-height:1!important;flex-shrink:0;letter-spacing:0!important}
#exploration-hud .explore-count small{display:inline!important;font-size:10px!important;line-height:1!important;color:#5d6c5b!important;letter-spacing:0!important}
#exploration-hud .explore-info{font-size:10px!important;line-height:1!important;letter-spacing:0!important}
#exploration-hud .explore-status{display:block;font-size:10px!important;line-height:1.1!important;letter-spacing:0!important}
#exploration-hud[data-phase="waiting"][data-announced="false"] .explore-status{display:none!important}
#exploration-hud .explore-keys{flex-shrink:0!important}
@media(max-width:1099px){
 #exploration-hud .explore-status{font-size:9px!important}
 #exploration-hud .explore-count{font-size:12px!important}
 .time-status #exploration-hud{position:absolute;left:calc(100% + 10px);top:19px;bottom:auto;width:110px;max-width:none;transform:none;margin:0;padding:3px 5px}
 .time-status #exploration-hud:active{transform:none}
 .time-status #exploration-hud .explore-status{display:none!important}
 .time-status #exploration-hud[data-phase="waiting"][data-announced="true"] .explore-keyline{display:none}
 .time-status #exploration-hud[data-phase="waiting"][data-announced="true"] .explore-status{display:block!important;white-space:nowrap;margin:0}
}
@media(max-width:700px) and (orientation:portrait){
 .time-status #exploration-hud{left:calc(100% + 8px);top:38px;width:105px;padding:2px 5px}
 .time-status #exploration-hud .explore-keys img{width:19px;height:19px}
 #exploration-hud .explore-count small{font-size:9px!important}
}
#modal-content .explore-rate-buttons button,#tab-settings .explore-rate-buttons button{background:#fff8e8!important;color:#234a3d!important;border:1px solid #b9a17a!important;opacity:1!important}
#modal-content .explore-rate-buttons button[aria-pressed="true"],#tab-settings .explore-rate-buttons button[aria-pressed="true"]{background:#204d3f!important;color:#fff5db!important;border-color:#204d3f!important}
.explore-rate-buttons button{transition:none!important}

/* La progression appartient à chaque carte : trois logements vides ou acquis. */
.exploration-map-note{display:flex!important;align-items:center;justify-content:space-between;gap:8px;max-width:100%;min-height:39px;margin:8px 0 0!important;padding:5px 8px!important;background:#f9f2e2!important;border:1px solid #c9b68d;border-radius:6px;color:#34503f!important;box-shadow:inset 0 1px 3px #69532e12;font:11px Arial,sans-serif!important;letter-spacing:0!important}
.exploration-map-keys{display:flex!important;align-items:center;gap:5px;min-width:0}
.exploration-key-slot{display:grid!important;place-items:center;position:relative;width:34px;height:30px;flex:0 0 34px;border:1px dashed #bbaa86;border-radius:4px;background:#e8dfc9;overflow:hidden}
.exploration-key-slot img{display:block!important;position:static!important;width:27px!important;height:25px!important;min-height:0!important;max-height:25px!important;object-fit:contain!important;transform:none!important;filter:none;opacity:1;transition:filter .2s,opacity .2s}
.exploration-key-slot.is-empty img{filter:brightness(0) saturate(0);opacity:.16}
.exploration-key-slot.is-owned{background:#fff8e8;border:1px solid #b7934b;box-shadow:0 1px 3px #73522725}
.exploration-key-check{position:absolute!important;right:0;bottom:0;display:block!important;font:bold 8px/1 Arial!important;color:#315e3f;background:#f9f1da;border-radius:2px;padding:1px}
.exploration-key-slot.is-empty .exploration-key-check{display:none!important}
.exploration-map-total{display:block!important;flex-shrink:0;font:800 11px/1.2 Arial,sans-serif!important;color:#46604c!important;letter-spacing:0!important;text-align:right}
@media(max-width:600px){.exploration-map-note{gap:4px;padding:4px!important;min-height:33px}.exploration-map-keys{gap:3px}.exploration-key-slot{width:25px;height:25px;flex-basis:25px}.exploration-key-slot img{width:22px!important;height:21px!important;max-height:21px!important}.exploration-map-total{font-size:9px!important}}

/* Bandeau d'origine conservé, emplacements simplement ajoutés à droite. */
.exploration-map-note{background:#173c36!important;color:#fff3d8!important;border:0;border-radius:4px;padding:6px 9px!important;box-shadow:none;min-height:35px;margin-top:5px!important}
.exploration-map-total{order:0;flex:1;min-width:0;white-space:normal;text-align:left;color:#fff3d8!important;font-size:11px!important;line-height:1.3!important}
.exploration-map-keys{order:1;flex-shrink:0;gap:4px}
.exploration-key-slot{width:29px;height:26px;flex-basis:29px;background:#ffffff0a;border:1px dashed #f1ddb947}
.exploration-key-slot img{width:25px!important;height:23px!important;max-height:23px!important}
.exploration-key-slot.is-empty img{filter:brightness(0) invert(1);opacity:.23}
.exploration-key-slot.is-owned{background:#f5dfac18;border-color:#d6ae61;box-shadow:none}
.exploration-key-check{background:#204d3f;color:#fff0bc!important}
@media(max-width:600px){.exploration-map-note{gap:5px;padding:5px!important;flex-wrap:wrap}.exploration-map-total{font-size:10px!important;flex-basis:100%}.exploration-map-keys{width:100%;justify-content:flex-start}.exploration-key-slot{width:24px;height:22px;flex-basis:24px}.exploration-key-slot img{width:21px!important;height:19px!important;max-height:19px!important}}

