/* Mode découverte : habillage uniquement. Les coordonnées et limites en ligne
   de decouverte.js gardent la priorité ; dimensions de la flèche inchangées. */
#guide-bubble{position:fixed;z-index:9400;left:50%;bottom:12px;transform:translateX(-50%);width:min(520px,calc(100vw - 32px));box-sizing:border-box;padding:12px 42px 12px 16px;border:1px solid #397860;border-left:3px solid #c77b4a;border-radius:4px 12px 12px 4px;background:linear-gradient(135deg,#203b31,#12231efc 72%);box-shadow:0 8px 24px #0009,inset 0 0 0 1px #ecdcc00c;color:#ecdcc0;text-align:left;font:500 15px/1.35 system-ui,sans-serif;overflow-wrap:anywhere;color-scheme:dark}
#guide-bubble.side{bottom:auto;transform:none;overflow:auto;padding:12px 36px 12px 12px;font-size:14px;scrollbar-width:thin;scrollbar-color:#397860 #12231e}
#guide-bubble.top{top:8px;bottom:auto}
#guide-bubble[hidden],#guide-arrow[hidden]{display:none}
#guide-bubble>strong{display:flex;align-items:center;gap:7px;margin-bottom:6px;color:#91d4b5;font:900 11px/1.2 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
#guide-bubble>strong::before{content:'';width:7px;height:7px;flex:none;background:#c77b4a;transform:rotate(45deg)}
#guide-bubble p{margin:0}
#guide-bubble p span{color:#c1cec5}
#guide-bubble .guide-step{margin-top:8px;padding-top:8px;border-top:1px solid #79ba9738;font-weight:800;color:#f4eee2}
#guide-bubble #guide-close{position:absolute;right:5px;top:5px;width:30px;height:30px;min-height:0;padding:0;border:1px solid #ecdcc024;border-radius:6px;background:#0d1b1780;color:#ecdcc0;font:700 18px/1 system-ui,sans-serif;cursor:pointer;box-shadow:none}
#guide-bubble #guide-sage{display:block;margin:9px 0 0;min-height:0;padding:7px 10px;border:1px solid #c77b4a;border-radius:5px;background:#284a3c;color:#f4eee2;font:700 13px/1.25 system-ui,sans-serif;cursor:pointer}
#guide-bubble button:hover{filter:brightness(1.15)}
#guide-bubble button:focus-visible,#ng-discovery:focus-visible,.guide-offer button:focus-visible,#menu-discovery:focus-visible,#menu-guide:focus-visible{outline:2px solid #91d4b5;outline-offset:3px}
/* 40 × 52 correspond aux calculs de aim() ; aucune surface n'intercepte les clics. */
#guide-arrow{position:fixed;z-index:9450;width:40px;height:52px;pointer-events:none;animation:guide-bob 1.15s ease-in-out infinite}
#guide-arrow svg{display:block;width:100%;height:100%;fill:#83d5ab;stroke:#10251d;stroke-width:2.5;filter:drop-shadow(0 2px 2px #000c) drop-shadow(0 0 5px #1f7a5c)}
#guide-arrow.up svg{transform:rotate(180deg)}
@keyframes guide-bob{0%,100%{translate:0 0}50%{translate:0 5px}}
#guide-arrow.up{animation-name:guide-bob-up}
@keyframes guide-bob-up{0%,100%{translate:0 0}50%{translate:0 -5px}}
html body[data-map] #board .cell.guide-lit.hint-cast{box-shadow:inset 0 0 0 3px #12231e,inset 0 0 0 6px #83d5ab,inset 0 0 20px 5px #1f7a5c!important;z-index:3}
/* Les nouveaux points d'entrée reprennent les cadres cuivre et émeraude. */
#ng-discovery{display:flex;flex-direction:column;align-items:center;gap:4px;margin:10px auto 0;padding:9px 14px;border:1px solid #397860;border-left:3px solid #c77b4a;border-radius:6px;background:linear-gradient(120deg,#244a3b,#162c24);color:#ecdcc0;box-shadow:inset 0 0 0 1px #ecdcc008;white-space:normal;text-align:center}
#ng-discovery strong{color:#a4dfc3}
#ng-discovery small{font-weight:500;font-size:12px;line-height:1.3;color:#c1cec5}
/* La découverte est la deuxième tuile construite dans splash.js. */
#splash .splash-actions .mode-tile:nth-child(2){border-color:#4c9674;border-top:3px solid #c77b4a;background:linear-gradient(145deg,#244a3b,#14271f);box-shadow:inset 0 0 0 1px #91d4b51a,0 5px 16px #0005}
#splash .mode-tile:nth-child(2) strong{color:#b4e4c9}
#splash .mode-tile:nth-child(2) small{color:#ecdcc0;opacity:1}
#modal .guide-offer{box-sizing:border-box;max-width:560px;margin:auto;padding:20px;border:1px solid #397860;border-top:3px solid #c77b4a;border-radius:8px;background:linear-gradient(135deg,#213e32,#13251f);text-align:left;color:#ecdcc0}
.guide-offer .menu-eyebrow{color:#ce9269;letter-spacing:.18em;font-size:11px}
#modal .guide-offer h2{margin:9px 0 12px;color:#a4dfc3;font-size:clamp(20px,3vw,28px);line-height:1.15}
.guide-offer p{line-height:1.45;margin:10px 0}
.guide-offer .small{color:#c1cec5;font-size:13px}
#modal .guide-offer button{margin-top:8px;white-space:normal;border-radius:5px}
#modal .guide-offer #guide-go{background:#23543e;border:1px solid #73b994;color:#f4eee2;padding:10px 16px}
#modal .guide-offer #guide-later{background:transparent;border:1px solid #607669;color:#ecdcc0;padding:10px 16px}
#modal #menu-discovery,#modal #menu-guide{border-left:3px solid #c77b4a;background:linear-gradient(90deg,#254536,#182c24);color:#d6ecdf}
@media(max-height:500px){
 #guide-bubble{padding:7px 36px 7px 11px;font-size:13px;line-height:1.25;bottom:8px}
 #guide-bubble.side{padding:8px 35px 8px 10px;font-size:13px}
 #guide-bubble>strong{margin-bottom:3px;font-size:10px}
 #guide-bubble .guide-step{margin-top:4px;padding-top:4px}
 #guide-bubble #guide-sage{margin-top:5px;padding:5px 8px;font-size:12px}
 #ng-discovery{margin-top:5px;padding:5px 9px;gap:2px}
 #ng-discovery small{font-size:11px}
 #modal .guide-offer{padding:12px 16px}
 #modal .guide-offer h2{margin:5px 0 8px;font-size:21px}
 .guide-offer p{margin:7px 0;font-size:13px;line-height:1.3}
 #modal .guide-offer button{padding:7px 12px}
}
@media(prefers-reduced-motion:reduce){#guide-arrow{animation:none}}
