/* Halouine 2026 — pastille du HUD, fenêtre, habillage léger. Au thème des fenêtres Retroverse (parchemin, barre brune, filet orange du jeu).
   L'orange citrouille (--hw-pumpkin) ne sert QUE pour la jauge et les icônes. Habillage du HUD : uniquement sous body.rv-halouine. */
:root { --hw-pumpkin: #f27a1a; --hw-pumpkin-2: #ffa23d; --hw-pumpkin-deep: #c85a08; }

/* ── Pastille (dans #rv-top-stack, comme « Week-end Bonus ») ── */
#halouine-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 9px; border-radius: 999px; border: 1px solid #c9a35a; background: linear-gradient(180deg, #5a4630, #3d2f20 60%, #2c2117); color: #f6e8c8; font: 700 12.5px/1.2 var(--font-ui, system-ui, sans-serif); box-shadow: 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 226, 160, .3); cursor: pointer; white-space: nowrap; pointer-events: auto; }
#halouine-chip[hidden] { display: none !important; }
#halouine-chip:hover { filter: brightness(1.1); }
#halouine-chip .hw-pump { flex: none; filter: drop-shadow(0 1px 1px #0007); }
#halouine-chip b { color: #f6e8c8; }
#halouine-chip small { color: #ffd58a; font-weight: 700; }
#halouine-chip.is-todo small { color: #1d1308; background: linear-gradient(180deg, #ffd58a, #f0a33a); padding: 1px 7px; border-radius: 999px; }
#halouine-chip:not(#rv-top-stack > *) { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 59; }
body.in-battle #rv-top-stack > #halouine-chip { visibility: hidden; pointer-events: none; }
body.rv-halouine #halouine-chip { border-color: var(--hw-pumpkin-deep); }
/* mobile : mobile-v2.css aligne déjà les pastilles du haut sur une ligne ; on garde la pastille courte */
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  #halouine-chip { padding: 0 9px 0 6px; gap: 4px; }
  #halouine-chip .hw-pump { width: 15px; height: 15px; }
  #halouine-chip small { font-size: 10px; }
}

/* ── Habillage discret du HUD pendant l'événement (retiré hors événement : classe body.rv-halouine) ── */
body.rv-halouine #rv-top-stack > #community-chip { border-color: #d19a58; }

/* ── Fenêtre ── */
#halouine-window { box-sizing: border-box; position: fixed; width: min(1000px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; overflow: hidden; border: 1px solid #17120b; border-radius: 10px; background: linear-gradient(180deg, var(--window-paper, #ddd6b4) 0%, var(--window-paper-deep, #cbc39c) 100%); color: var(--window-ink, #2f2a1e); box-shadow: inset 0 0 0 1px #ffffff26, 0 14px 34px #000a, 0 2px 8px #0006; font: 13px/1.4 var(--font-ui, 'Fira Sans', system-ui, sans-serif); }
#halouine-window:not([open]) { display: none; }
#halouine-window[open] { display: flex; flex-direction: column; }
#halouine-window:not(:modal) { top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }
#halouine-window::backdrop { background: #0a080566; }
#halouine-window * { box-sizing: border-box; }
#halouine-window .hw-head { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 8px 5px 12px; border-radius: 9px 9px 0 0; background: linear-gradient(180deg, #5b5243 0%, #3f382c 55%, #342e24 100%); border-bottom: 1px solid #e8780c; box-shadow: inset 0 1px #ffffff1c; cursor: grab; }
#halouine-window .hw-head .hw-pump { flex: none; filter: drop-shadow(0 1px 2px #0009); }
#halouine-window .hw-title { flex: 1; min-width: 0; }
#halouine-window .hw-title h2 { margin: 0; font: 400 18px/1.15 'Bree Serif', var(--font-display, Georgia, serif); color: var(--window-text, #fff8e2); letter-spacing: .01em; }
#halouine-window .hw-title p { margin: 1px 0 0; font-size: 11.5px; color: var(--window-muted, #d8cfab); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#halouine-window .hw-x { flex: none; width: 28px; height: 28px; padding: 0; border-radius: 6px; border: 1px solid #ffffff40; background: #0006; color: #fff; font: 700 14px/1 sans-serif; cursor: pointer; }
#halouine-window .hw-x:hover { background: #000a; }
#halouine-window .hw-flash { flex: none; margin: 0; padding: 7px 14px; background: #3d5a2a; color: #f3ffe0; font-weight: 700; text-align: center; }
#halouine-window .hw-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px 12px 12px; }
/* toiles d'araignée fines aux coins */
#halouine-window .hw-web { position: absolute; z-index: 3; width: 74px; height: 74px; color: #fff8e2; opacity: .26; pointer-events: none; }
#halouine-window .hw-web-l { left: 0; top: 48px; }
#halouine-window .hw-web-r { right: 0; bottom: 0; transform: rotate(180deg); color: #3a2a10; opacity: .22; }
#halouine-window .hw-head ~ .hw-web { display: none; }

#halouine-window .hw-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; align-items: start; }
#halouine-window .hw-col { display: grid; gap: 10px; min-width: 0; align-content: start; }
#halouine-window .hw-left { position: sticky; top: 0; }
#halouine-window .hw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
#halouine-window .hw-poster { margin: 0; border: 1px solid #17120b; border-radius: 8px; overflow: hidden; background: #1c140c; box-shadow: 0 3px 10px #0005; }
#halouine-window .hw-poster img { display: block; width: 100%; height: auto; }
#halouine-window .hw-card { position: relative; padding: 9px 12px 11px; border: 1px solid var(--window-line, #7d7559); border-radius: 8px; background: #f3ead2; box-shadow: inset 0 1px #fff8, 0 1px 0 #0000000d; min-width: 0; }
#halouine-window .hw-card h3 { margin: 0 0 7px; padding: 0 0 5px; border-bottom: 1px solid #d6c9a0; font: 400 15px/1.2 'Bree Serif', Georgia, serif; color: #3a2f1f; }
#halouine-window .hw-sub { margin: 9px 0 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a6a47; }
#halouine-window .hw-note, #halouine-window .hw-hint { margin: 6px 0 0; font-size: 12px; color: #5d5238; }
#halouine-window .hw-list { margin: 4px 0 0; padding-left: 17px; display: grid; gap: 4px; font-size: 12.5px; }
#halouine-window .hw-list li::marker { color: #b98b3a; }
#halouine-window b { color: #2a2112; }
#halouine-window .hw-ok { color: #2f6b2f; font-weight: 800; font-style: normal; }

/* dates et phase */
#halouine-window .hw-dates { text-align: center; }
#halouine-window .hw-phase { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #e9dfbf; color: #5d5238; border: 1px solid #c8b987; }
#halouine-window .hw-phase-cours { background: #dff0d2; color: #2f6b2f; border-color: #9cc784; }
#halouine-window .hw-phase-h { background: #0000002e; color: #f6e8c8; border-color: #ffffff3a; }
#halouine-window .hw-phase-h.hw-phase-cours { color: #bfeaa4; }
#halouine-window .hw-when { margin: 7px 0 4px; font-size: 12px; font-weight: 700; }
#halouine-window .hw-cd { margin: 3px 0 0; font-size: 13px; }
#halouine-window .hw-cd b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* compteurs */
#halouine-window .hw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#halouine-window .hw-stat { padding: 7px 6px; text-align: center; border-radius: 7px; background: #e9dfbf; border: 1px solid #d3c493; }
#halouine-window .hw-stat b { display: block; font: 400 24px/1.1 'Bree Serif', Georgia, serif; color: #3a2f1f; }
#halouine-window .hw-stat span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.25; color: #5d5238; }

/* barres (la jauge est la seule en citrouille) */
#halouine-window .hw-bar { display: block; height: 8px; border-radius: 99px; background: #cdbf93; box-shadow: inset 0 1px 2px #0003; overflow: hidden; }
#halouine-window .hw-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(180deg, #7a8a52, #55663a); }
#halouine-window .hw-bar-v i { background: linear-gradient(180deg, #9a7bd0, #6f55a8); }
#halouine-window .hw-gauge { padding: 14px 6px 18px; }
#halouine-window .hw-rail { position: relative; height: 20px; border-radius: 99px; background: #2b2216; box-shadow: inset 0 2px 4px #000a, 0 0 0 1px #17120b; }
#halouine-window .hw-fill { height: 100%; border-radius: inherit; background: linear-gradient(180deg, var(--hw-pumpkin-2), var(--hw-pumpkin) 55%, var(--hw-pumpkin-deep)); box-shadow: 0 0 10px #f27a1a80, inset 0 1px #fff6; }
#halouine-window .hw-mark { position: absolute; top: -5px; width: 0; }
#halouine-window .hw-mark i { position: absolute; left: -1px; top: 0; width: 2px; height: 30px; background: #f6e8c8; opacity: .55; }
#halouine-window .hw-mark small { position: absolute; left: 0; top: 33px; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; color: #7a6a47; white-space: nowrap; }
#halouine-window .hw-mark:last-child small { transform: translateX(-85%); }
#halouine-window .hw-mark.ok small { color: #2a2112; }
#halouine-window .hw-gnum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
#halouine-window .hw-gnum b { font: 400 19px/1 'Bree Serif', Georgia, serif; color: #3a2f1f; }
#halouine-window .hw-gnum small { font-size: 12px; color: #6a5d3f; }
#halouine-window .hw-pals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
#halouine-window .hw-pal { padding: 7px 8px; border-radius: 7px; background: #e9dfbf; border: 1px solid #d3c493; min-width: 0; }
#halouine-window .hw-pal b { font: 400 16px/1 'Bree Serif', Georgia, serif; }
#halouine-window .hw-pal-etat { display: block; margin: 2px 0 3px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #8a7a55; }
#halouine-window .hw-pal p { margin: 0; font-size: 11.5px; line-height: 1.3; }
#halouine-window .hw-pal.ok { background: #e3ecc9; border-color: #a9bf7c; }
#halouine-window .hw-pal.ok .hw-pal-etat { color: #2f6b2f; }
#halouine-window .hw-actions { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }

/* boutons : même famille que les boutons or des fenêtres */
#halouine-window .hw-btn { min-height: 30px; padding: 5px 16px; border: 1px solid #8a5a12; border-radius: 7px; background: linear-gradient(180deg, #f6bd5a, #e08a1c); color: #2a1a05; font: 800 12.5px/1 var(--font-ui, sans-serif); cursor: pointer; box-shadow: inset 0 1px #fff7; }
#halouine-window .hw-btn:hover:not(:disabled) { filter: brightness(1.07); }
#halouine-window .hw-btn:disabled { cursor: not-allowed; background: #d9d0b0; border-color: #b7aa7e; color: #8a7e5c; box-shadow: none; }

/* bonbons actifs, Vendâme, Jack */
#halouine-window .hw-bbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#halouine-window .hw-bbs > li { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(60px, 1fr) auto; align-items: center; gap: 4px 10px; padding: 5px 8px; border-radius: 7px; background: #e9dfbf; border: 1px solid #d3c493; font-size: 12.5px; }
#halouine-window .hw-bb-n { font-weight: 700; min-width: 0; }
#halouine-window .hw-bb-n small { margin-left: 4px; font-weight: 400; color: #7a6a47; }
#halouine-window .hw-bb-v { font-weight: 800; color: #2f6b2f; white-space: nowrap; }
#halouine-window .hw-bb-c { font-size: 11.5px; color: #5d5238; white-space: nowrap; }
#halouine-window .hw-jack-cd { font-size: 13.5px; }
#halouine-window .hw-jack-now { color: #a13a0a; }
#halouine-window .hw-vtop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
#halouine-window .hw-vpp b { font: 400 24px/1 'Bree Serif', Georgia, serif; }
#halouine-window .hw-vmax { font-weight: 800; color: #6f55a8; }
#halouine-window .hw-esp { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
#halouine-window .hw-esp li { display: grid; grid-template-columns: minmax(70px, .9fr) 1.4fr auto; align-items: center; gap: 8px; font-size: 12.5px; }
#halouine-window .hw-esp small { font-weight: 400; color: #7a6a47; }

/* missions */
#halouine-window .hw-wide { grid-column: 1 / -1; }
#halouine-window .hw-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#halouine-window .hw-miss { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#halouine-window .hw-miss > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 6px 9px; border-radius: 7px; background: #e9dfbf; border: 1px solid #d3c493; font-size: 12.5px; }
#halouine-window .hw-miss > li.ok { background: #e3ecc9; border-color: #a9bf7c; }
#halouine-window .hw-miss .hw-m-t { grid-column: 1 / -1; }
#halouine-window .hw-miss .hw-bar { align-self: center; }
#halouine-window .hw-m-n { font-variant-numeric: tabular-nums; }
#halouine-window .hw-m-r { grid-column: 1; font-size: 11.5px; color: #5d5238; align-self: center; }
#halouine-window .hw-m-r small { color: #8a7a55; }
#halouine-window .hw-m-act { grid-column: 2; grid-row: 3; justify-self: end; align-self: center; }
#halouine-window .hw-m-act .hw-btn { min-height: 26px; padding: 3px 12px; }
#halouine-window .hw-soon { margin: 0 0 8px; padding: 6px 10px; border-radius: 7px; background: #e9dfbf; border: 1px dashed #b7aa7e; font-size: 12.5px; }

/* règles */
#halouine-window .hw-more { margin-top: 9px; border-top: 1px solid #d6c9a0; padding-top: 6px; }
#halouine-window .hw-more summary { cursor: pointer; font-weight: 800; color: #3a2f1f; padding: 3px 0; }
#halouine-window .hw-bbcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#halouine-window .hw-bbs-t > li { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 8px; font-size: 12px; }
#halouine-window .hw-bbs-t .hw-bb-c { grid-column: 1 / -1; margin-top: -3px; }
#halouine-window .hw-zones { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#halouine-window .hw-zones li { padding: 6px 9px; border-radius: 7px; background: #e9dfbf; border: 1px solid #d3c493; font-size: 12.5px; }
#halouine-window .hw-zones small { display: block; color: #5d5238; }
#halouine-window .hw-z-niv { color: #7a6a47; font-size: 11.5px; }
#halouine-window .hw-infog { position: relative; display: block; width: 100%; margin-top: 10px; padding: 0; border: 1px solid #17120b; border-radius: 8px; overflow: hidden; background: #1c140c; cursor: zoom-in; max-height: 190px; }
#halouine-window .hw-infog img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
#halouine-window .hw-infog span { position: absolute; right: 8px; bottom: 8px; padding: 3px 10px; border-radius: 6px; background: #000a; color: #fff; font-weight: 800; font-size: 11.5px; }
.hw-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 14px; background: #000d; overflow: auto; cursor: zoom-out; }
.hw-lightbox img { max-width: min(560px, 100%); height: auto; border-radius: 8px; }
.hw-lightbox .hw-x { position: fixed; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid #fff5; background: #0009; color: #fff; font-size: 16px; }
#halouine-window .hw-one { display: block; }

/* mobile : feuille plein écran modale (window-manager) ; une colonne, affiche 16:9 */
@media (max-width: 700px), (pointer: coarse) {
  #halouine-window { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  #halouine-window:modal { margin: 0; top: 0; left: 0; transform: none; }
  #halouine-window .hw-head { border-radius: 0; padding-top: calc(5px + env(safe-area-inset-top, 0px)); cursor: auto; }
  #halouine-window .hw-title p { white-space: normal; font-size: 11px; }
  #halouine-window .hw-x { width: 40px; height: 40px; font-size: 16px; }
  #halouine-window .hw-scroll { padding: 8px 8px calc(14px + env(safe-area-inset-bottom, 0px)); }
  #halouine-window .hw-body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #halouine-window .hw-left { position: static; }
  #halouine-window .hw-two, #halouine-window .hw-cols, #halouine-window .hw-bbcols, #halouine-window .hw-zones { grid-template-columns: minmax(0, 1fr); }
  #halouine-window .hw-pals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #halouine-window .hw-bbs > li { grid-template-columns: minmax(0, 1fr) auto; }
  #halouine-window .hw-bbs > li .hw-bar { grid-column: 1 / -1; order: 5; }
  #halouine-window .hw-bbs > li .hw-bb-c { grid-column: 1 / -1; order: 6; }
  #halouine-window .hw-btn { min-height: 40px; }
  #halouine-window .hw-m-act .hw-btn { min-height: 36px; }
  #halouine-window .hw-web { display: none; }
}
/* paysage mobile : deux colonnes dès que la largeur le permet */
@media (max-height: 500px) and (min-width: 700px) {
  #halouine-window { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; }
  #halouine-window .hw-body { grid-template-columns: 200px minmax(0, 1fr); }
  #halouine-window .hw-head { min-height: 42px; }
  #halouine-window .hw-two { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { #halouine-window .hw-fill { transition: width .6s ease; } }

/* bonbons au sol */
#halouine-window .hw-sol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#halouine-window .hw-sol li { display: inline-flex; align-items: center; gap: 7px; padding: 3px 5px 3px 10px; border-radius: 999px; background: #e9dfbf; border: 1px solid #d3c493; font-size: 12.5px; }
#halouine-window .hw-sol b { min-width: 22px; padding: 1px 6px; text-align: center; border-radius: 999px; background: linear-gradient(180deg, var(--hw-pumpkin-2), var(--hw-pumpkin)); color: #2a1304; font-size: 12px; }
#halouine-window .hw-sol-lead b { font: 400 17px/1 'Bree Serif', Georgia, serif; }

/* ═══ Thème Halouine de l'interface et du monde (body.rv-halouine : pendant l'événement SEULEMENT) ═══
   Touches discrètes au thème Retroverse : liserés citrouille, petites citrouilles et chauves-souris sur les cadres, voile d'ambiance orangé léger.
   Jamais de « nuit violette », rien sur le texte. Hors événement la classe est retirée et plus rien de ceci ne s'applique. */
:root { --hw-pump-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 9c1-3.4 2.6-5.2 5.4-6.1l.7 1.9c-1.9.8-3 2.1-3.4 4.4z' fill='%235f7a2a'/%3E%3Cpath d='M16 8.6c-2.4-1.6-5.6-1.8-8.1-.2C4.6 10.4 3 14 3 17.3c0 5.700 4.800 10.300 13 10.300s13-4.600 13-10.300c0-3.300-1.600-6.900-4.900-8.900-2.500-1.600-5.700-1.400-8.100.2z' fill='%23f27a1a'/%3E%3Cpath d='M16 8.6c-3.400 1.900-5.200 5.100-5.200 9s1.800 7.600 5.200 10c3.400-2.400 5.200-6.100 5.200-10s-1.800-7.100-5.200-9z' fill='%23ff9a3c'/%3E%3Cpath d='M9 15l3.200 2.200L9 18.600zM23 15l-3.200 2.200 3.200 1.400zM11.500 22.200c1.600 1.400 3.200 1.900 4.500 1.900s2.900-.5 4.500-1.900' fill='%234a2208' stroke='%234a2208' stroke-width='1.200' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hw-bat-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath d='M16 3l-2 3.500Q10 4.500 1 8q5 1 6 5.500Q9.500 11 12.500 12 14.500 13 16 18q1.500-5 3.500-6 3-1 5.500 1.500 1-4.500 6-5.500-9-3.500-13-1.500z' fill='%232a1a10'/%3E%3C/svg%3E"); }
#hw-ambiance { display: none; }
body.rv-halouine #hw-ambiance { display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse 90% 70% at 50% 110%, rgba(255, 120, 30, .5), rgba(255, 120, 30, 0) 70%), linear-gradient(rgba(255, 150, 50, .22), rgba(255, 110, 30, .22)); }
body.rv-halouine #spell-dock, body.rv-halouine #mobile-map-panel { box-shadow: inset 0 0 0 1px rgba(242, 122, 26, .45), 0 4px 14px rgba(0, 0, 0, .35); }
body.rv-halouine #spell-dock::before { content: ''; position: absolute; left: -8px; top: -11px; width: 24px; height: 24px; background: var(--hw-pump-img) center / contain no-repeat; pointer-events: none; z-index: 3; filter: drop-shadow(0 1px 2px #0008); }
body.rv-halouine #mobile-map-panel::before { content: ''; position: absolute; right: -6px; top: -10px; width: 26px; height: 16px; background: var(--hw-bat-img) center / contain no-repeat; pointer-events: none; z-index: 3; opacity: .9; filter: drop-shadow(0 0 3px rgba(242, 122, 26, .7)); }
body.rv-halouine dialog.rv-win { box-shadow: inset 0 0 0 1px #ffffff26, inset 0 -2px 0 rgba(242, 122, 26, .5), 0 14px 34px #000a, 0 2px 8px #0006 !important; }
body.rv-halouine dialog.rv-win::after { content: ''; position: absolute; right: 46px; top: 5px; width: 24px; height: 15px; background: var(--hw-bat-img) center / contain no-repeat; pointer-events: none; z-index: 6; opacity: .85; filter: drop-shadow(0 0 2px rgba(255, 200, 120, .7)); }
body.rv-halouine #halouine-window::after { display: none; }
@media (max-width: 700px), (pointer: coarse) { body.rv-halouine dialog.rv-win::after { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  body.rv-halouine #spell-dock::before { animation: hw-sway 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
  body.rv-halouine #mobile-map-panel::before { animation: hw-flap 2.2s ease-in-out infinite; }
  #halouine-window[open]:not(:modal) { animation: hw-pop .38s cubic-bezier(.2, .9, .3, 1.15); }
  #halouine-window.hw-opening .hw-fill { animation: hw-grow 1s ease-out; }
  #halouine-window.hw-opening .hw-head .hw-pump { animation: hw-hop .8s ease-out; }
  #halouine-window.hw-opening .hw-head::after { content: ''; position: absolute; left: 22px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #ffd58a; box-shadow: 14px -3px 0 #ff9a3c, 30px 4px 0 #ffd58a, -10px 6px 0 #ff9a3c; animation: hw-spark .9s ease-out forwards; pointer-events: none; }
}
@keyframes hw-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes hw-flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.7) translateY(2px); } }
@keyframes hw-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.93); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes hw-grow { from { width: 0; } }
@keyframes hw-hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-9px) scale(1.15) rotate(-8deg); } 65% { transform: translateY(0) scale(.95); } 100% { transform: none; } }
@keyframes hw-spark { 0% { opacity: 0; transform: translateY(8px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scale(1.2); } }
/* mobile : mêmes touches sur la barre du bas */
body.rv-halouine #mobile-explorebar { box-shadow: inset 0 0 0 1px rgba(242, 122, 26, .5), 0 4px 14px rgba(0, 0, 0, .35); }
body.rv-halouine #mobile-explorebar::before { content: ''; position: absolute; left: 10px; top: -13px; width: 24px; height: 24px; background: var(--hw-pump-img) center / contain no-repeat; pointer-events: none; z-index: 3; filter: drop-shadow(0 1px 2px #0008); }
body.rv-halouine #mobile-explorebar::after { content: ''; position: absolute; right: 14px; top: -9px; width: 26px; height: 16px; background: var(--hw-bat-img) center / contain no-repeat; pointer-events: none; z-index: 3; opacity: .9; filter: drop-shadow(0 0 3px rgba(242, 122, 26, .7)); }
