/* ===== Annonce du Guerrier, « Le Guerrier aux portes » (refonte du 02/12/2026, js/guerrier.js, guerrierShow dans game.js) ===== */
dialog#guerrier-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; box-sizing: border-box;
  border: 0; background: #1a0d08; color: #3a2412; overflow: hidden; }
dialog#guerrier-dialog::backdrop { background: rgba(6, 4, 3, .92); }
#guerrier-dialog .gu-stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; }
#guerrier-dialog .gu-stage img, #guerrier-dialog .gu-stage > div, #guerrier-dialog .gu-world > img { position: absolute; left: 0; top: 0; will-change: transform, opacity; pointer-events: none; user-select: none; }
#guerrier-dialog .gu-world { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
#guerrier-dialog .gu-fig { transform-origin: 50% 100%; }
#guerrier-dialog .gu-garde, #guerrier-dialog .gu-course, #guerrier-dialog .gu-chute, #guerrier-dialog .gu-banner { filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .45)); }
#guerrier-dialog .gu-helmet { filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .4)); }
#guerrier-dialog .gu-add { mix-blend-mode: screen; }
#guerrier-dialog .gu-dust { width: 64px; height: 64px; filter: sepia(1) saturate(1.3) brightness(.78) hue-rotate(-12deg); }
#guerrier-dialog .gu-petal { width: 17px; height: 23px; }
#guerrier-dialog .gu-spark { width: 64px; height: 64px; }
#guerrier-dialog .gu-shade { width: 1600px; height: 900px; background: radial-gradient(ellipse at 62% 45%, rgba(60, 10, 8, .55), rgba(10, 4, 2, .95) 75%); }
#guerrier-dialog .gu-bar { width: 1600px; height: 108px; background: #000; }
#guerrier-dialog .gu-flash { width: 1600px; height: 900px; background: #fff3d8; }
#guerrier-dialog .gu-glow { width: 420px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 230, 160, .75), rgba(255, 170, 80, .25) 55%, rgba(255, 140, 60, 0)); mix-blend-mode: screen; }
#guerrier-dialog.gu-tap .gu-stage { animation: gu-shake .45s; }
@keyframes gu-shake { 0%, 100% { translate: 0 0; } 20% { translate: -10px 6px; } 40% { translate: 9px -7px; } 60% { translate: -6px 4px; } 80% { translate: 4px -2px; } }
#guerrier-dialog.gu-load .gu-stage, #guerrier-dialog.gu-load .gu-skip { visibility: hidden; }

/* Bulles (hors de la scène : texte lisible au téléphone) */
#guerrier-dialog .gu-bubble { position: fixed; z-index: 4; left: -999px; top: 0; max-width: min(340px, calc(100vw - 24px)); box-sizing: border-box; padding: 12px 18px; border-radius: 18px;
  background: #fdeecc; color: #3a2412; border: 2px solid #e8d0a0; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); font-size: 18px; line-height: 1.35; font-weight: bold;
  opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .2s, transform .28s cubic-bezier(.2, .9, .3, 1.3); pointer-events: none; }
#guerrier-dialog .gu-bubble::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -13px; margin-left: -11px; border: 11px solid transparent; border-bottom: 0; border-top: 13px solid #e8d0a0; }
#guerrier-dialog .gu-bubble.on { opacity: 1; transform: none; }
#guerrier-dialog .gu-bl { background: #2a0e0c; color: #ffe2b0; border-color: #b8862e; font-style: italic; font-size: 20px; }
#guerrier-dialog .gu-bl::after { display: none; }

/* Carte */
#guerrier-dialog .gu-card { position: fixed; z-index: 3; left: 50%; top: 6vh; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box;
  padding: 22px 26px 18px; border-radius: 20px; background: #fbf0d8; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); font-size: 16px; line-height: 1.45;
  opacity: 0; transform: translate(-50%, 18px); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; }
#guerrier-dialog .gu-card.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#guerrier-dialog .gu-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--font-title); font-weight: normal; font-size: 26px; color: #7a1d2a; }
#guerrier-dialog .gu-face { width: 56px; height: 56px; object-fit: contain; flex: none; }
#guerrier-dialog .gu-body p { margin: 0 0 8px; }
#guerrier-dialog .gu-where { padding: 8px 12px; border-radius: 10px; background: rgba(122, 29, 42, .1); }
#guerrier-dialog .gu-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#guerrier-dialog .gu-skip { position: fixed; z-index: 5; right: 24px; top: 20px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
#guerrier-dialog .gu-skip[hidden] { display: none; }
#guerrier-dialog.gu-portrait .gu-card { top: auto; bottom: 16px; }
#guerrier-dialog.gu-still .gu-bubble { display: none; }
#guerrier-dialog.gu-still .gu-card { top: 50%; bottom: auto; transform: translate(-50%, -50%); transition: none; }
@media (max-width: 560px) { #guerrier-dialog .gu-card { padding: 16px 18px 14px; } #guerrier-dialog .gu-card h2 { font-size: 22px; } #guerrier-dialog .gu-bubble { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { #guerrier-dialog .gu-bubble, #guerrier-dialog .gu-card { transition: none !important; } }
html.dark-win #guerrier-dialog .gu-card { background: var(--dw-bg); color: var(--dw-ink); color-scheme: dark; }
html.dark-win #guerrier-dialog .gu-card h2 { color: #ffb0a0; }
