#gameWelcome{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;padding:0;background:#061510;color:#f6ead2;overflow:auto;isolation:isolate}#gameWelcome::backdrop{background:#061510}.welcome-art,.welcome-glow{position:absolute;inset:0;z-index:-1;pointer-events:none}.welcome-art{background:linear-gradient(90deg,#04100de8,#04100d70),linear-gradient(0deg,#04100d,transparent 60%),url('../assets/affiches/codexom-affiche-v1.png') center/cover;animation:welcome-arrive 2s ease-out both}.welcome-glow{background:radial-gradient(ellipse at 70% 20%,#dcb67024,transparent 45%);animation:welcome-light 10s ease-in-out infinite alternate}.welcome-content{padding:12vh 8vw 7vh;min-height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;max-width:1100px;animation:welcome-copy 1.2s .15s both}.welcome-kicker{color:#e4c68b;font-size:11px;letter-spacing:5px}.welcome-content h1{font:clamp(60px,9vw,150px)/1 Georgia,serif;color:#ecd6a9;letter-spacing:.04em;margin:24px 0}.welcome-subtitle{font:clamp(20px,2vw,32px)/1.4 Georgia,serif;color:#eee1c8}.welcome-content .welcome-enter{background:#e5c990;color:#14271d;border:0;padding:22px 34px;font-size:16px;margin:35px 0 25px;min-width:280px;cursor:pointer;transition:box-shadow .3s,filter .3s;display:flex;justify-content:space-between;gap:40px}.welcome-enter:hover{box-shadow:0 0 45px #e5c99040;filter:brightness(1.12)}.welcome-content a{color:#d4d8ca;font-size:13px;text-underline-offset:6px}.welcome-content small{color:#a6b5a2;margin-top:30px;font-size:12px}.welcome-story{max-width:720px;font-size:16px;line-height:1.8;color:#d2d8c9}.welcome-story p{animation:welcome-copy .7s both}.introduction .welcome-art{opacity:.4}.introduction .welcome-content h1{font-size:clamp(40px,5vw,75px);letter-spacing:-1px}.introduction .welcome-subtitle{font-size:17px}.welcome-exit{animation:welcome-away .55s ease-in forwards!important}.welcome-content a:focus-visible,.welcome-enter:focus-visible{outline:3px solid #fff;outline-offset:6px}
@keyframes welcome-arrive{from{scale:1.12;filter:blur(6px);opacity:.3}to{scale:1;filter:blur(0);opacity:1}}@keyframes welcome-copy{from{opacity:0;translate:0 25px}to{opacity:1;translate:0 0}}@keyframes welcome-light{to{translate:-12% 10%;scale:1.2}}@keyframes welcome-away{to{opacity:0;filter:blur(8px)}}@media(max-width:600px){.welcome-content{padding:10vh 7vw 7vh}.welcome-story{font-size:14px}.welcome-content .welcome-enter{min-width:0;width:100%;padding:18px}.welcome-kicker{font-size:9px;letter-spacing:3px}}@media(prefers-reduced-motion:reduce){#gameWelcome *,#gameWelcome{animation:none!important;transition:none!important}}
#gameWelcome.welcome-reduced,#gameWelcome.welcome-reduced *{animation:none!important;transition:none!important}

#gameWelcome .welcome-reset{background:transparent;color:#c8cdbd;border:1px solid #82947c55;font-size:12px;padding:12px 18px;margin-top:20px;cursor:pointer}.welcome-state{font-size:12px;color:#b5c6ab;margin-top:14px}
#panel.codex-in-game{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;background:#071426;padding:0;overflow:hidden}#panel.codex-in-game>header{height:60px;padding:10px 24px}#panel.codex-in-game #panelContent{padding:0;height:calc(100dvh - 60px);overflow:hidden}#gameCodex{width:100%;height:100%;border:0;display:block}#hud [hidden]{display:none!important}

#hud nav [data-menu]:not([data-menu="start"]){display:none}#panel.start-menu{position:fixed;inset:80px 28px auto auto;margin:0;width:290px;max-height:calc(100dvh - 110px);border:1px solid #b9c8b088;border-radius:6px;padding:14px;background:#0b211df5;box-shadow:0 16px 60px #0009}#panel.start-menu::backdrop{background:#03110c35}.start-actions{display:grid;gap:5px}.start-actions button{text-align:left;padding:15px 22px;font-size:17px;background:transparent;border:1px solid transparent;color:#f0e7cf}.start-actions button:hover,.start-actions button:focus-visible{background:#c5bb8830;border-color:#c5bb8888}.start-actions button:focus-visible:before{content:"▸ ";color:#e2c78f}

#panel.codex-in-game>header h2{font-size:24px;line-height:1.2;margin:0}#panel.codex-in-game>header{display:flex;align-items:center;justify-content:space-between}

#world-targets{position:fixed;inset:0;pointer-events:none;z-index:20}.world-target{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;border:1px solid #ffe49a;background:#123a2af2;color:#fff0c4;padding:10px 16px;max-width:260px;box-shadow:0 0 22px #edcc7770,0 6px 20px #0008;font-size:13px;cursor:pointer;white-space:normal}.world-target:after{content:"";position:absolute;top:100%;left:calc(50% - 7px);border:7px solid transparent;border-top-color:#ffe49a}.world-target.action{outline:2px solid #ffe49a55;outline-offset:4px}.world-target.exit{background:#16404cf2;border-color:#a5eeed;color:#ddffff}.world-target:focus-visible,.world-target:hover{background:#315e39;outline:3px solid #fff;outline-offset:4px}#world-targets [hidden]{display:none!important}

#gameAtlas{display:block;width:100%;height:100%;border:0}
/* Actions : fond clair et contraste stable, indépendants de la lumière du décor. */
#world-targets .world-target{background:linear-gradient(135deg,#fff0c8,#e8c978);color:#243b32;border:2px solid #fff6dc;border-radius:12px;font-weight:700;text-shadow:none;box-shadow:0 4px 14px #162c3b55,0 0 0 2px #8d6929a0;padding:11px 17px;line-height:1.35}
#world-targets .world-target.action,#world-targets .world-target.scene{animation:quest-beacon 2.6s ease-in-out infinite}
#world-targets .world-target.action:before{content:'!';display:inline-grid;place-items:center;background:#6a4a16;color:#fff5d6;border-radius:50%;width:19px;height:19px;margin-right:7px;font-weight:900}
#world-targets .world-target.exit{background:linear-gradient(130deg,#d7fff3,#85d4cf);color:#173d3c;border-color:#effffc}
#world-targets .world-target:hover,#world-targets .world-target:focus-visible{background:#fff8df;color:#162d26;outline:3px solid #fff;outline-offset:5px}
#interact,#dialogueActions button,#panel .actions button:not(:disabled),#panel .card button:not(:disabled){background:linear-gradient(135deg,#f9e5b7,#dfbf79);color:#20372f;border:1px solid #fff0c6;font-weight:650;box-shadow:0 3px 12px #061e242b}
#interact:hover,#dialogueActions button:hover,#panel .actions button:not(:disabled):hover,#panel .card button:not(:disabled):hover{background:#fff2cf;color:#162c26}
#panel button:disabled{background:#425a5a;color:#d4dfd9;opacity:.65;box-shadow:none}
@keyframes quest-beacon{0%,100%{box-shadow:0 4px 14px #162c3b55,0 0 0 2px #8d6929a0,0 0 12px #ffe7a34d}50%{box-shadow:0 4px 14px #162c3b55,0 0 0 5px #ffe4a05c,0 0 30px #ffe7a3c0}}
@media(prefers-reduced-motion:reduce){#world-targets .world-target{animation:none!important}}
.reduce-motion #world-targets .world-target{animation:none!important}
