/* The Hunter's Map - layout, panel and marks. Colours and menu pieces come
   from style.css and theme.css (the game's menu art). */

/* The map fills the window under the header, whatever height the header
   wraps to: the page is a column (style.css) and the map takes what is
   left, never less than 460px; the panel scrolls inside its own row. */
.main-content:has(.hm-wrap) { max-width: none; padding: 0; display: flex; flex-direction: column; }
.page-map .site-footer { padding: 0.5rem 0 0.6rem; }
.page-map .site-footer::before { content: none; }

.hm-wrap {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    min-height: 460px;
}

.hm-map-frame {
    position: relative;
    margin: 4px 14px 14px;
    border: 1px solid var(--rim-soft);
    box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(10, 12, 15, 0.9), 0 0 0 5px rgba(190, 185, 170, 0.14),
                0 12px 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.9) inset;
    background: #08080c;
    overflow: hidden;
}
.hm-map { position: absolute; inset: 0; background: #0e0c0b; }
.hm-map .leaflet-container, .hm-map.leaflet-container { background: #0e0c0b; font-family: 'EB Garamond', Georgia, serif; }

/* gold corners */
.hm-corner { position: absolute; width: 34px; height: 34px; pointer-events: none; z-index: 500;
    border-color: var(--highlight-gold); border-style: solid; opacity: 0.75;
    filter: drop-shadow(0 0 4px rgba(201, 169, 106, 0.45)); }
.hm-corner.tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.hm-corner.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.hm-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.hm-corner.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
.hm-corner::after { content: ""; position: absolute; width: 5px; height: 5px; background: var(--highlight-gold);
    transform: rotate(45deg); }
.hm-corner.tl::after { top: 6px; left: 6px; } .hm-corner.tr::after { top: 6px; right: 6px; }
.hm-corner.bl::after { bottom: 6px; left: 6px; } .hm-corner.br::after { bottom: 6px; right: 6px; }

.hm-panel-toggle { display: none; position: absolute; z-index: 600; right: 12px; top: 12px;
    font-family: 'Cinzel', serif; letter-spacing: 0.12em; font-size: 0.78rem; color: #e4dccb;
    background: linear-gradient(180deg, #1b2027, #0b0e12); border: 1px solid var(--rim-soft); padding: 6px 12px;
    cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.hm-panel-toggle:hover { background: var(--select-wash), linear-gradient(180deg, #1b2027, #0b0e12); border-color: var(--rim); }

/* ---- panel: a menu page on slate ---- */
.hm-panel {
    background: var(--panel);
    border: 1px solid var(--edge);
    margin: 4px 14px 14px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    padding: 18px 20px 24px;
    scrollbar-width: thin; scrollbar-color: #4a4538 rgba(0, 0, 0, 0.4);
}
/* beside the map the panel's length must not size the page: it scrolls */
@media (min-width: 801px) { .hm-panel { contain: size; } }
.hm-panel-head { text-align: center; padding-bottom: 30px; margin-bottom: 4px; position: relative; }
.hm-panel-head::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 26px;
    background: url('/static/img/game/divider.webp') center / contain no-repeat; opacity: 0.75; }
.hm-title { display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: 'Cinzel', serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.1em; white-space: nowrap;
    color: #e4dccb; text-shadow: 0 0 14px rgba(201, 169, 106, 0.2), 0 2px 3px #000; line-height: 1.15; }
.hm-title::before { content: ""; width: 1.9rem; height: 1.9rem; flex-shrink: 0; background: var(--highlight-gold);
    -webkit-mask: url('/static/img/game/runes/guidance.svg') center / contain no-repeat;
            mask: url('/static/img/game/runes/guidance.svg') center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(201, 169, 106, 0.4)); }
.hm-sub { font-style: italic; color: var(--text-muted); font-size: 0.95rem; }

.hm-section { padding: 14px 0 12px; position: relative; }
.hm-section + .hm-section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(190, 185, 170, 0.16) 15%, rgba(190, 185, 170, 0.16) 85%, transparent); }
.hm-h { font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--highlight-gold); margin-bottom: 8px; font-weight: 600; }
.hm-note { color: var(--text-muted); font-size: 0.9rem; line-height: 1.35; margin: 6px 0 0; }
.hm-credit { color: var(--text-dim); font-size: 0.82rem; font-style: italic; margin-top: 10px; }
.hm-credit a { color: var(--highlight-gold); }

.hm-layer .hm-span3 { grid-column: 2 / -1; }   /* a row with no swatch or count */
.hm-layer { display: grid; grid-template-columns: 18px 16px 1fr auto; align-items: center; gap: 8px;
    padding: 5px 6px; margin: 0 -6px; cursor: pointer; font-size: 1.02rem; color: var(--text-gold);
    border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease; }
.hm-layer:hover { background: var(--select-wash); border-color: var(--rim-soft); }
.hm-layer:hover .hm-lname { color: var(--highlight-bright); }
.hm-layer input { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; margin: 0;
    border: 1px solid var(--rim-soft); background: rgba(0, 0, 0, 0.6); position: relative; cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9); }
.hm-layer input:checked { border-color: var(--rim); }
.hm-layer input:checked::after { content: ""; position: absolute; inset: 3px; background: var(--highlight-gold);
    box-shadow: 0 0 6px rgba(201, 169, 106, 0.7); }
.hm-layer input:focus-visible { outline: 1px solid var(--highlight-gold); outline-offset: 2px; }
.hm-count { font-family: 'Cinzel', serif; font-size: 0.82rem; color: var(--text-muted); }
.hm-swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.hm-swatch.death { background: radial-gradient(circle, #ff4a3a 0%, #8b0000 60%, #3a0000 100%); }
.hm-swatch.kill { background: #d8ccb0; border-radius: 1px; transform: rotate(45deg) scale(0.75); }
/* Bosses felled: Madman's Knowledge (a boss gives Insight) in a gold-rimmed medallion,
   unlike the live hunters' lantern glow */
.hm-swatch.boss { width: 18px; height: 18px; background: url('/static/img/game/madmans-knowledge.webp') 50% 72% / 150% no-repeat, #0c0a08; box-shadow: 0 0 0 1.5px #d4a847, 0 0 6px rgba(212, 168, 71, 0.6); }
.hm-swatch.heat { background: linear-gradient(90deg, #5a1010, #e02a1a, #ffd070); border-radius: 2px; }
.hm-swatch.live { width: 18px; height: 18px; background: url('/static/img/game/armor/2048.webp') 50% 40% / 118% no-repeat, #0c0a08; box-shadow: 0 0 0 1.5px #d4a847, 0 0 6px rgba(212, 168, 71, 0.6); }

.hm-filter { padding: 0 0 4px 42px; }
.hm-panel select { width: 100%; background: rgba(0, 0, 0, 0.55); color: var(--text-gold);
    border: 1px solid rgba(190, 185, 170, 0.2); box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
    font-family: 'EB Garamond', serif; font-size: 0.95rem; padding: 5px 6px; }
.hm-panel select:focus { border-color: var(--rim); outline: none; }

.hm-areas { list-style: none; margin: 4px 0 0; padding: 0; }
.hm-areas li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid rgba(190, 185, 170, 0.08); font-size: 0.98rem; }
.hm-areas .hm-area-n { font-family: 'Cinzel', serif; color: var(--highlight-gold); }
.hm-areas .hm-empty { color: var(--text-dim); font-style: italic; border: 0; }

/* ---- marks on the map ---- */
.hm-pin { border-radius: 50%; }
.hm-pin.death { background: radial-gradient(circle, #ff5a48 0%, #b00000 45%, rgba(90, 0, 0, 0.9) 70%, rgba(0, 0, 0, 0) 72%);
    box-shadow: 0 0 8px 2px rgba(200, 0, 0, 0.55); }
.hm-pin.kill { }
.hm-pin.kill::before { content: ""; position: absolute; inset: 3px; background: #e8dcc0; transform: rotate(45deg);
    box-shadow: 0 0 0 1px #2a1a10, 0 0 6px rgba(232, 220, 192, 0.5); }
.hm-pin.kill.approx::before { background: none; border: 1.5px dashed rgba(232, 220, 192, 0.85); box-shadow: none; }
.hm-pin.boss { background: url('/static/img/game/madmans-knowledge.webp') 50% 72% / 150% no-repeat, #0c0a08; box-shadow: 0 0 0 2px #e0b85a, 0 0 0 3px #3a2608, 0 0 10px 2px rgba(232, 192, 96, 0.55); }
/* approximate: a hollow ring, not a pin */
.hm-pin.approx { background: none !important; box-shadow: none; border: 2px dashed rgba(232, 200, 150, 0.8); }
.hm-pin.kill.approx { border: 0; }
.hm-pin.death.approx { border-color: rgba(255, 90, 72, 0.85); }
.hm-pin.boss.approx { background: url('/static/img/game/madmans-knowledge.webp') 50% 72% / 150% no-repeat, #0c0a08 !important; border: 0; box-shadow: none; outline: 2px dashed rgba(232, 192, 96, 0.9); outline-offset: 1px; }

.hm-cluster { border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hm-cluster-in { font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.8rem; color: #fff3e0;
    text-shadow: 0 1px 2px #000; }
.hm-cluster.death { background: radial-gradient(circle, rgba(200, 20, 10, 0.95) 0%, rgba(120, 0, 0, 0.8) 55%, rgba(80, 0, 0, 0) 72%); }
.hm-cluster.kill { background: radial-gradient(circle, rgba(200, 185, 150, 0.9) 0%, rgba(90, 80, 60, 0.75) 55%, rgba(0, 0, 0, 0) 72%); }
.hm-cluster.kill .hm-cluster-in { color: #1a120a; text-shadow: none; }
.hm-cluster.boss { background: radial-gradient(circle, rgba(240, 200, 100, 0.95) 0%, rgba(150, 100, 20, 0.8) 55%, rgba(0, 0, 0, 0) 72%); }

/* Leaflet positions markers with an inline transform: animate a pseudo-element, never the icon */
/* A hunter abroad: the Hunter Hat in the bosses' gold-rimmed medallion, with a slow
   pulse ring so a live hunter still reads as live. leaflet-marker-icon is already
   position: absolute; Leaflet owns its transform, so animations run on ::before/::after. */
.hm-hunter { border-radius: 50%; background: url('/static/img/game/armor/2048.webp') 50% 40% / 118% no-repeat, #0c0a08;
    box-shadow: 0 0 0 2px #e0b85a, 0 0 0 3px #3a2608, 0 0 10px 2px rgba(232, 192, 96, 0.55); }
.hm-hunter::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(255, 220, 140, 0.8);
    animation: hm-lantern 2.4s ease-out infinite; pointer-events: none; }
.hm-hunter::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 40, 20, 0.85) 0%, rgba(200, 0, 0, 0.6) 60%, rgba(120, 0, 0, 0) 100%); }
.hm-hunter.approx { box-shadow: none; outline: 2px dashed rgba(232, 192, 96, 0.9); outline-offset: 1px; }
@keyframes hm-lantern { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-hunter::before { animation: none; opacity: 0; } }

.hm-heat { mix-blend-mode: screen; opacity: 0.9; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: linear-gradient(180deg, #161b22, #0b0e12); color: var(--text-gold);
    border: 1px solid var(--rim); border-radius: 0; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 14px rgba(201, 169, 106, 0.15); }
.leaflet-popup-content { margin: 10px 14px; font-family: 'EB Garamond', serif; font-size: 1rem; }
.hm-pop-title { font-family: 'Cinzel', serif; color: var(--highlight-gold); font-size: 0.95rem; margin-bottom: 2px; }
.hm-pop-line { color: var(--text-muted); font-size: 0.92rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
/* map buttons: the menu's dark plates with a gold rim */
.leaflet-bar a { background: linear-gradient(180deg, #1b2027, #0b0e12); color: #e4dccb;
    border-bottom-color: rgba(190, 185, 170, 0.18); transition: background 0.15s ease, color 0.15s ease; }
.leaflet-bar a:hover, .leaflet-bar a:focus-visible { background: var(--select-wash), linear-gradient(180deg, #1b2027, #0b0e12);
    color: var(--highlight-bright); }
.leaflet-bar { border: 1px solid var(--rim-soft) !important; border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important; }
.leaflet-bar a:first-child, .leaflet-bar a:last-child { border-radius: 0; }

/* ---- small screens: the panel becomes a sheet under the map ---- */
@media (max-width: 800px) {
    .hm-wrap { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; flex: none; }
    .hm-map-frame { margin: 6px; height: 72vh; min-height: 380px; }
    .hm-panel-toggle { display: block; }
    .hm-panel { margin: 0 6px 6px; max-height: 55vh; }
    .hm-panel.collapsed { display: none; }
    .hm-corner { display: none; }
}

/* ---- first-visit clarity: intro, legend lines, areas list ---- */
.hm-intro { color: var(--text-gold); font-size: 1.02rem; line-height: 1.4; margin-top: 8px; text-align: left; }
.hm-center { text-align: center; }
.hm-k { font-weight: 600; }
.hm-k.death { color: #ff6a58; }
.hm-k.kill { color: #efe4c8; }
.hm-k.boss { color: #f0c860; }
.hm-legend-line { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center;
    color: var(--text-muted); font-size: 0.9rem; margin: 6px 0 0; }
.hm-swatch.cluster { width: 18px; height: 18px; background: radial-gradient(circle, rgba(200, 20, 10, 0.95) 0%, rgba(120, 0, 0, 0.8) 55%, rgba(80, 0, 0, 0) 72%); }
.hm-swatch.approx { width: 14px; height: 14px; border: 2px dashed rgba(255, 110, 90, 0.9); background: none; }
.hm-area-list { margin-top: 6px; }
.hm-area-group { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 0 2px;
    font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--highlight-gold); cursor: pointer; }
.hm-area-items { list-style: none; margin: 0 0 4px; padding: 0 0 0 10px; columns: 2; column-gap: 12px; }
.hm-area-items li { break-inside: avoid; }
.hm-area-link { background: none; border: 0; padding: 2px 0; color: var(--text-gold); cursor: pointer;
    font-family: 'EB Garamond', serif; font-size: 0.98rem; text-align: left; }
.hm-area-link:hover, .hm-area-group:hover { color: var(--highlight-bright); text-decoration: underline; }
.hm-approx-tag { color: var(--text-dim); font-size: 0.8rem; font-style: italic; }

/* ---- on the map: realm titles, area names, controls ---- */
.hm-group-anchor, .hm-label-anchor { background: none; border: 0; }
/* realm titles: a menu plate with a gold rim */
.hm-group-title { position: absolute; left: 8px; top: 8px; white-space: normal; box-sizing: border-box; width: max-content;
    pointer-events: none; padding: 5px 11px 6px; background: linear-gradient(180deg, rgba(27, 32, 39, 0.92), rgba(10, 12, 15, 0.92));
    border: 1px solid var(--rim-soft); border-radius: 0; text-shadow: 0 0 4px #000;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 4px 14px rgba(0, 0, 0, 0.6); }
.hm-group-title.narrow .hm-gs { display: none; }
.hm-gt { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.08em; color: #e4dccb; font-size: 1.15rem; line-height: 1.1; }
.hm-gs { font-family: 'EB Garamond', serif; font-style: italic; color: #bba98a; font-size: 0.9rem; }
.hm-group-title.main .hm-gt { font-size: 1.8rem; color: #ece5d3; text-shadow: 0 0 14px rgba(201, 169, 106, 0.25), 0 2px 3px #000; }
.hm-area-label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
    font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; color: #f4ead2;
    text-shadow: 0 0 4px #000, 0 0 2px #000, 0 1px 1px #000; }
.hm-near .hm-area-label { font-size: 1.05rem; }
.hm-far .hm-area-label { display: none; }
.hm-far .hm-gs { display: none; }
.hm-showall a { width: auto !important; padding: 0 12px; font-family: 'Cinzel', serif; font-size: 0.7rem;
    letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; line-height: 30px !important; height: 30px !important; }
@media (max-width: 800px) {
    .hm-gt { font-size: 1.05rem; }
    .hm-group-title.main .hm-gt { font-size: 1.5rem; }
    .hm-area-label { font-size: 0.72rem; }
    .hm-area-items { columns: 1; }
    .hm-map .leaflet-bottom.leaflet-left { margin-bottom: 64px; }
}

/* a one-line explanation over the map where the panel starts folded */
.hm-caption { display: none; }
@media (max-width: 800px) {
    .hm-caption { display: block; position: absolute; z-index: 600; left: 8px; right: 8px; bottom: 8px; margin: 0;
        padding: 6px 10px; background: linear-gradient(180deg, rgba(27, 32, 39, 0.92), rgba(10, 12, 15, 0.92));
        border: 1px solid var(--rim-soft); color: var(--text-gold);
        font-size: 0.86rem; line-height: 1.3; pointer-events: none; }
}

.hm-swatch.ground { width: 18px; height: 14px; border-radius: 2px;
    background: repeating-linear-gradient(135deg, #5a4a3c 0 4px, #3f342b 4px 7px); }

.hm-swatch.ink { width: 18px; height: 14px; border-radius: 0;
    background: linear-gradient(90deg, #4b6aa8 0 40%, #120e0c 40% 58%, #4b6aa8 58%); }

/* ---- Chalice Dungeons inset: labyrinths surfacing in the mist (worldmap.js) ---- */
.hm-labyrinth { pointer-events: none; }
.hm-labyrinth .hm-lab { opacity: 0; transform-box: fill-box; transform-origin: center;
    animation: hm-lab 54s linear infinite; }
@keyframes hm-lab {
    0%   { opacity: 0;    transform: scale(0.9) rotate(-4deg); filter: blur(6px); }
    4%   { opacity: 0.9;  filter: blur(0); }
    9%   { opacity: 0.9;  filter: blur(0); }
    14%  { opacity: 0;    transform: scale(1.08) rotate(4deg); filter: blur(8px); }
    100% { opacity: 0;    transform: scale(1.08) rotate(4deg); }
}
.hm-labyrinth .hm-fog { transform-box: fill-box; opacity: 0.7; }
.hm-labyrinth .hm-fog-a { animation: hm-fog-a 70s ease-in-out infinite alternate; }
.hm-labyrinth .hm-fog-b { opacity: 0.45; animation: hm-fog-b 95s ease-in-out infinite alternate; }
@keyframes hm-fog-a { from { transform: translate(0, 0); } to { transform: translate(-22%, -10%); } }
@keyframes hm-fog-b { from { transform: translate(-18%, -14%) scale(1.15); } to { transform: translate(6%, 4%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
    .hm-labyrinth .hm-lab, .hm-labyrinth .hm-fog { animation: none; }
    .hm-labyrinth .hm-lab:first-of-type { opacity: 0.6; }
}

/* Live hunter: an HP bar under the lantern; dead (fades until the lamp); hurt (a red flash) */
.hm-hunter .hm-hp { position: absolute; left: 2px; right: 2px; bottom: -7px; height: 3px; background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 1px rgba(201, 169, 106, 0.35); }
.hm-hunter .hm-hp-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #8a0f0a, #d23a2a); transition: width 0.25s ease; }
.hm-hunter .hm-hp.low .hm-hp-fill { background: #ff4a32; animation: hm-hp-low 0.8s ease-in-out infinite; }
@keyframes hm-hp-low { 50% { opacity: 0.45; } }
.hm-hunter { transition: opacity 0.9s ease; }
.hm-hunter.dead { opacity: 0; }
.hm-hunter.hurt::after { animation: hm-hurt 0.5s ease-out; }
@keyframes hm-hurt { 0% { opacity: 1; } 100% { opacity: 0; } }

/* One-shot effects (worldmap.js fx()): the icon is a 44 px box centred on the spot */
.hm-fx { pointer-events: none; }
.hm-fx-in { position: absolute; inset: 0; border-radius: 50%; }
.hm-fx-label { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); white-space: nowrap;
    font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    color: #fff1d6; text-shadow: 0 1px 2px #000, 0 0 6px #000, 0 0 10px #000; animation: hm-fx-rise 1.6s ease-out forwards; }
@keyframes hm-fx-rise { 0% { opacity: 0; transform: translate(-50%, 4px); } 10% { opacity: 1; } 70% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -26px); } }

/* a gunshot: a quick hot muzzle flash */
.fx-shot .hm-fx-in { background: radial-gradient(circle, #fff8d0 0%, #ffc040 22%, rgba(255, 120, 20, 0.55) 40%, rgba(0, 0, 0, 0) 62%);
    animation: hm-fx-flash 0.55s ease-out forwards; }
@keyframes hm-fx-flash { 0% { transform: scale(0.3); opacity: 1; } 30% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; } }
/* a melee swing: a pale arc */
.fx-swing .hm-fx-in { inset: 8px; border: 2px solid transparent; border-top-color: rgba(235, 230, 215, 0.85);
    border-right-color: rgba(235, 230, 215, 0.4); animation: hm-fx-swing 0.42s ease-out forwards; }
@keyframes hm-fx-swing { 0% { transform: rotate(-80deg) scale(0.7); opacity: 0.9; } 100% { transform: rotate(110deg) scale(1.05); opacity: 0; } }
/* a hit landed: blood spray */
.fx-hit .hm-fx-in { inset: 4px; background: radial-gradient(circle, #ff6a50 0%, #b4140c 35%, rgba(120, 0, 0, 0) 66%);
    animation: hm-fx-flash 0.6s ease-out forwards; }
/* damage taken: a red ring closing on the hunter */
.fx-hurt .hm-fx-in { border: 2px solid rgba(255, 50, 30, 0.9); animation: hm-fx-hurt 0.65s ease-out forwards; }
@keyframes hm-fx-hurt { 0% { transform: scale(1.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(0.45); opacity: 0; } }
.fx-hurt .hm-fx-label { color: #ff8a70; animation-duration: 0.7s; }
/* a kill: a crimson burst, then the blood echoes rising */
.fx-kill .hm-fx-in { inset: -12px; background: radial-gradient(circle, rgba(255, 90, 70, 0.95) 0%, rgba(150, 0, 0, 0.75) 30%, rgba(60, 0, 0, 0) 64%);
    animation: hm-fx-kill 1.7s ease-out forwards; }
.fx-kill .hm-fx-in::before, .fx-kill .hm-fx-in::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
    margin: -2px; border-radius: 50%; background: #ff3a28; box-shadow: 0 0 6px 2px rgba(255, 40, 20, 0.8);
    animation: hm-fx-echo 1.6s ease-out forwards; }
.fx-kill .hm-fx-in::after { animation-delay: 0.15s; margin-left: 4px; }
@keyframes hm-fx-kill { 0% { transform: scale(0.2); opacity: 1; } 25% { transform: scale(1.3); opacity: 0.95; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes hm-fx-echo { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-6px, -34px); opacity: 0; } }
/* a visceral: a white flash inside a large spiked crimson splash */
.fx-visceral .hm-fx-in { inset: -14px; background:
    radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.9) 10%, rgba(255, 40, 30, 0.9) 22%, rgba(110, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0) 64%),
    repeating-conic-gradient(rgba(200, 10, 0, 0.75) 0deg 6deg, rgba(0, 0, 0, 0) 6deg 30deg);
    -webkit-mask: radial-gradient(circle, #000 0%, #000 55%, transparent 70%); mask: radial-gradient(circle, #000 0%, #000 55%, transparent 70%);
    animation: hm-fx-visceral 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes hm-fx-visceral { 0% { transform: scale(0.1) rotate(0deg); opacity: 1; } 18% { transform: scale(1.1) rotate(8deg); opacity: 1; }
    100% { transform: scale(1.35) rotate(14deg); opacity: 0; } }
/* a heal: a gold-red mote rising */
.fx-heal .hm-fx-in { inset: 12px; background: radial-gradient(circle, #ffe9b0 0%, rgba(230, 120, 80, 0.7) 40%, rgba(0, 0, 0, 0) 66%);
    animation: hm-fx-heal 1.2s ease-out forwards; }
@keyframes hm-fx-heal { 0% { transform: translateY(6px) scale(0.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-18px) scale(1.1); opacity: 0; } }
.fx-heal .hm-fx-label { color: #ffd9a0; }
/* a death: the lantern gutters into a widening crimson ring */
.fx-death .hm-fx-in { inset: -22px; border: 3px solid rgba(200, 16, 8, 0.95); background: radial-gradient(circle, rgba(255, 200, 150, 0.9) 0%, rgba(180, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0) 55%);
    animation: hm-fx-death 2.3s ease-out forwards; }
@keyframes hm-fx-death { 0% { transform: scale(0.2); opacity: 1; } 20% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; border-width: 1px; } }
/* arriving at a lamp (a respawn or a warp): a soft column of lamplight */
.fx-respawn .hm-fx-in { inset: -6px; background: radial-gradient(circle, rgba(255, 250, 220, 0.95) 0%, rgba(255, 210, 120, 0.6) 30%, rgba(255, 180, 60, 0) 66%);
    animation: hm-fx-lamp 1.55s ease-out forwards; }
@keyframes hm-fx-lamp { 0% { transform: scale(0.2); opacity: 0; } 30% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(0.8); opacity: 0; } }
/* a fresh tombstone drops in */
.hm-pin.death.fresh::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 90, 72, 0.9);
    animation: hm-fx-tomb 1.6s ease-out 2; }
@keyframes hm-fx-tomb { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-fx { display: none; } .hm-hunter { transition: none; } .hm-hp-fill { transition: none; } }

/* Blood messages: a messenger over the orange glow a message leaves on the ground */
.hm-swatch.message { width: 18px; height: 18px; border-radius: 0;
    background: url('/static/img/game/messenger-pin.webp') center / contain no-repeat,
                radial-gradient(ellipse at 50% 80%, rgba(255, 160, 70, 0.75) 0%, rgba(220, 90, 20, 0) 60%); }
.hm-pin.message { border-radius: 0; background: url('/static/img/game/messenger-pin.webp') center / contain no-repeat;
    filter: drop-shadow(0 0 3px rgba(255, 150, 60, 0.9)) drop-shadow(0 1px 1px #000); }
.hm-pin.message::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -3px; height: 8px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 170, 80, 0.85) 0%, rgba(230, 100, 20, 0) 70%); z-index: -1; }
.hm-pin.message.approx { opacity: 0.75; }
.hm-cluster.message { background: radial-gradient(circle, rgba(255, 190, 110, 0.95) 0%, rgba(200, 90, 20, 0.8) 55%, rgba(0, 0, 0, 0) 72%); }
.hm-cluster.message .hm-cluster-in { color: #2a1404; text-shadow: none; }

/* Follow a hunter */
.hm-trail-form { display: flex; gap: 6px; margin: 4px 0 8px; }
.hm-trail-form input { flex: 1; min-width: 0; padding: 6px 8px; font-family: 'EB Garamond', serif; font-size: 1rem;
    color: var(--text-gold, #e8dcc0); background: rgba(8, 10, 13, 0.85); border: 1px solid var(--rim, #5a4a30); border-radius: 0; }
.hm-trail-form input:focus { outline: 1px solid rgba(232, 192, 96, 0.7); }
.hm-btn { padding: 6px 12px; font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: #e4dccb; background: linear-gradient(180deg, #1b2027, #0b0e12); border: 1px solid var(--rim, #5a4a30); cursor: pointer; }
.hm-btn:hover { color: #fff3d8; border-color: rgba(232, 192, 96, 0.8); }
.hm-trail-clear { margin-top: 4px; }
.hm-trail { filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)); }
.hm-pin.death.trail { box-shadow: 0 0 0 2px #ffe08a, 0 0 8px 2px rgba(255, 224, 138, 0.6); }

/* A boss felled: a golden burst and the game's own words */
.fx-boss .hm-fx-in { inset: -40px; background: radial-gradient(circle, rgba(255, 246, 210, 0.95) 0%, rgba(240, 190, 90, 0.75) 22%, rgba(180, 110, 20, 0.3) 45%, rgba(0, 0, 0, 0) 66%);
    animation: hm-fx-boss 4s ease-out forwards; }
@keyframes hm-fx-boss { 0% { transform: scale(0.2); opacity: 0; } 12% { transform: scale(1.1); opacity: 1; } 60% { opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.fx-boss .hm-fx-in::before { content: "PREY SLAUGHTERED"; position: absolute; left: 50%; top: 18%; transform: translateX(-50%); white-space: nowrap;
    font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; color: #ffe6a8;
    text-shadow: 0 0 6px #000, 0 0 12px #000, 0 0 18px rgba(255, 200, 100, 0.8); }
.fx-boss .hm-fx-label { top: 70%; font-size: 0.85rem; color: #fff1d6; animation: hm-fx-rise 4s ease-out forwards; }

.hm-pop-icon { float: left; width: 44px; height: 44px; margin: 0 10px 4px 0; border-radius: 50%; object-fit: contain;
    background: radial-gradient(circle, #1c1814 0%, #0c0a08 70%); box-shadow: 0 0 0 1.5px #b8944e; }
.hm-pin.death.spot::after { animation-iteration-count: infinite; }

/* Thrown items (worldmap.js ITEM_FX): at the thrower, with the item's icon and name */
.hm-fx-icon { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.fx-item .hm-fx-label { animation-duration: 2.1s; }
/* Molotov / Rope Molotov: a fire burst with licking flames */
.fx-fire .hm-fx-in { inset: -6px; background: radial-gradient(circle, #fff3b0 0%, #ffb02e 22%, rgba(240, 90, 10, 0.75) 45%, rgba(120, 20, 0, 0) 68%);
    animation: hm-fx-fire 1.9s ease-out forwards; }
.fx-fire.fx-big .hm-fx-in { inset: -20px; }
.fx-fire .hm-fx-in::before { content: ""; position: absolute; inset: 18%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 120, 0.9) 0%, rgba(255, 120, 20, 0) 70%); animation: hm-fx-flicker 0.18s steps(2) infinite; }
@keyframes hm-fx-fire { 0% { transform: scale(0.2); opacity: 1; } 18% { transform: scale(1.15); opacity: 1; } 70% { opacity: 0.85; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes hm-fx-flicker { 0% { transform: scale(0.85); } 100% { transform: scale(1.1); } }
/* Oil Urn: a dark spreading splash */
.fx-oil .hm-fx-in { inset: -4px; background: radial-gradient(ellipse 55% 45%, rgba(40, 30, 18, 0.95) 0%, rgba(25, 18, 10, 0.8) 55%, rgba(0, 0, 0, 0) 72%);
    box-shadow: 0 0 6px rgba(90, 70, 30, 0.5); animation: hm-fx-oil 2s ease-out forwards; }
@keyframes hm-fx-oil { 0% { transform: scale(0.3); opacity: 1; } 25% { transform: scale(1.2, 0.95); } 100% { transform: scale(1.4, 1.05); opacity: 0; } }
/* Numbing Mist: a slow pale-violet cloud */
.fx-mist .hm-fx-in { inset: -18px; background: radial-gradient(circle, rgba(220, 210, 255, 0.85) 0%, rgba(160, 130, 230, 0.5) 40%, rgba(120, 90, 200, 0) 70%);
    filter: blur(1px); animation: hm-fx-mist 2.1s ease-out forwards; }
@keyframes hm-fx-mist { 0% { transform: scale(0.3); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
/* Pungent Blood Cocktail: a red lure cloud that pulses */
.fx-lure .hm-fx-in { inset: -14px; background: radial-gradient(circle, rgba(255, 120, 110, 0.85) 0%, rgba(170, 10, 20, 0.6) 40%, rgba(90, 0, 0, 0) 70%);
    animation: hm-fx-lure 2.1s ease-in-out forwards; }
@keyframes hm-fx-lure { 0% { transform: scale(0.3); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.85); }
    75% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } }
/* Throwing / Poison Knife: a quick glinting streak (purple for poison) */
.fx-knife .hm-fx-in { inset: 18px -14px; border-radius: 2px; background: linear-gradient(90deg, rgba(220, 225, 235, 0) 0%, #eef2f8 60%, #ffffff 100%);
    box-shadow: 0 0 6px rgba(230, 235, 255, 0.8); animation: hm-fx-knife 0.9s ease-out forwards; }
.fx-knife.fx-poison .hm-fx-in { background: linear-gradient(90deg, rgba(120, 50, 170, 0) 0%, #a35ad6 60%, #ecd2ff 100%);
    box-shadow: 0 0 8px rgba(160, 80, 220, 0.85); }   /* the poison knife's purple (its icon) */
@keyframes hm-fx-knife { 0% { transform: translateX(-24px) scaleX(0.3); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(30px) scaleX(1); opacity: 0; } }
/* Pebble: a small grey ring where it lands */
.fx-pebble .hm-fx-in { inset: 12px; border: 2px solid rgba(200, 195, 185, 0.9); animation: hm-fx-pebble 1s ease-out forwards; }
@keyframes hm-fx-pebble { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* A blood vial drunk: a crimson ring drawn into the hunter, then red motes rising */
.fx-vial .hm-fx-in { border: 3px solid rgba(220, 20, 30, 0.9); box-shadow: 0 0 12px 3px rgba(200, 0, 20, 0.6);
    animation: hm-fx-vial 1.1s ease-in forwards; }
@keyframes hm-fx-vial { 0% { transform: scale(1.9); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(0.3); opacity: 0; } }
.fx-vial .hm-fx-in::before, .fx-vial .hm-fx-in::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
    margin: -3px; border-radius: 50%; background: #ff3a3a; box-shadow: 0 0 8px 3px rgba(255, 40, 40, 0.8);
    animation: hm-fx-echo 1.6s ease-out 0.7s both; }
.fx-vial .hm-fx-in::after { margin-left: 6px; animation-delay: 0.85s; }
.fx-vial .hm-fx-label { color: #ff9a8a; animation-duration: 2s; }

/* Live moments beyond combat (worldmap.js fire()) */
.hm-hunter-in { position: absolute; inset: 0; border-radius: 50%; }
.hm-fx-big { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; object-fit: contain;
    filter: drop-shadow(0 0 4px #000) drop-shadow(0 0 8px rgba(255, 220, 160, 0.6)); animation: hm-fx-big 2.4s ease-out forwards; }
@keyframes hm-fx-big { 0% { transform: scale(0.4); opacity: 0; } 15% { transform: scale(1.1); opacity: 1; } 75% { opacity: 1; }
    100% { transform: translateY(-14px) scale(1); opacity: 0; } }
.fx-bell .hm-fx-label, .fx-msgwrite .hm-fx-label { top: -22px; animation-duration: 2.4s; }
/* A bell rung: its icon and three rings rippling out, as its sound does */
.fx-bell .hm-fx-in::before, .fx-bell .hm-fx-in::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(240, 220, 170, 0.85); box-shadow: 0 0 6px rgba(255, 230, 170, 0.5); opacity: 0; animation: hm-fx-ring 1.5s ease-out 2 forwards; }
.fx-bell .hm-fx-in::after { animation-delay: 0.6s; }
@keyframes hm-fx-ring { 0% { transform: scale(0.5); opacity: 0.95; } 100% { transform: scale(3.2); opacity: 0; } }
/* Insight: a pale violet eye opening */
.fx-insight .hm-fx-in { inset: -8px; border-radius: 50% / 30%;
    background: radial-gradient(ellipse, #1a0a24 0%, #1a0a24 14%, #e7d6ff 18%, rgba(160, 110, 230, 0.75) 36%, rgba(60, 20, 110, 0) 66%);
    animation: hm-fx-eye 1.7s ease-in-out forwards; }
@keyframes hm-fx-eye { 0% { transform: scaleY(0.05); opacity: 0; } 25% { transform: scaleY(1); opacity: 1; } 70% { transform: scaleY(1); opacity: 0.9; }
    100% { transform: scaleY(0.05) scaleX(1.3); opacity: 0; } }
.fx-insight .hm-fx-label { color: #e3cfff; }
/* Hunter tools: an arcane blue-white burst */
.fx-tool .hm-fx-in { inset: -10px; background: radial-gradient(circle, #f2fbff 0%, #9fd8ff 20%, rgba(70, 120, 230, 0.6) 42%, rgba(20, 30, 90, 0) 68%);
    animation: hm-fx-kill 1.5s ease-out forwards; }
.fx-tool .hm-fx-label { color: #cfe8ff; }
/* A pickup: a small glint on the ground */
.fx-pickup .hm-fx-in::after { content: ""; position: absolute; inset: 15px; border-radius: 50%;
    background: radial-gradient(circle, #fffbe8 0%, rgba(255, 230, 160, 0.8) 30%, rgba(255, 200, 90, 0) 70%); animation: hm-fx-glint 1.2s ease-out forwards; }
.fx-pickup .hm-fx-in::before { content: ""; position: absolute; left: 50%; top: 9px; bottom: 9px; width: 2px; margin-left: -1px;
    background: linear-gradient(transparent, #fff6d8, transparent); box-shadow: 0 0 4px #fff2c0; animation: hm-fx-glint 1.2s ease-out forwards; }
@keyframes hm-fx-glint { 0% { transform: scale(0.2) rotate(0deg); opacity: 0; } 30% { transform: scale(1.1) rotate(45deg); opacity: 1; }
    100% { transform: scale(0.6) rotate(90deg); opacity: 0; } }
.fx-pickup .hm-fx-label { font-size: 0.72rem; animation-duration: 1.7s; }
/* A fall: dust kicked out flat on landing */
.fx-fall .hm-fx-in::after { content: ""; position: absolute; inset: 8px -26px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(200, 180, 150, 0.85) 0%, rgba(140, 120, 95, 0.45) 45%, rgba(0, 0, 0, 0) 70%); animation: hm-fx-dust 1.2s ease-out forwards; }
@keyframes hm-fx-dust { 0% { transform: scale(0.3, 0.2); opacity: 1; } 100% { transform: scale(1.9, 0.9); opacity: 0; } }
.fx-fall .hm-fx-label { color: #e0d2b8; animation-duration: 1.3s; }
/* A parry: a sharp golden spark */
.fx-parry .hm-fx-in { inset: -6px; background:
    linear-gradient(45deg, transparent 46%, #fff6c8 49%, #fff6c8 51%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #ffd768 49%, #ffd768 51%, transparent 54%),
    radial-gradient(circle, #fffbe0 0%, rgba(255, 200, 60, 0.75) 25%, rgba(255, 160, 0, 0) 55%);
    animation: hm-fx-flash 0.6s ease-out forwards; }
.fx-parry .hm-fx-label { color: #ffe08a; font-family: 'Cinzel', serif; letter-spacing: 0.08em; animation-duration: 0.9s; }
/* A boss fight begun: fog gathers, and stays about the hunter until it ends */
.fx-bossstart .hm-fx-in { inset: -30px; background: radial-gradient(circle, rgba(220, 225, 235, 0.7) 0%, rgba(160, 170, 185, 0.4) 40%, rgba(0, 0, 0, 0) 68%);
    animation: hm-fx-fogin 2.6s ease-in-out forwards; }
@keyframes hm-fx-fogin { 0% { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(0.7); opacity: 0; } }
.fx-bossstart .hm-fx-label { color: #e6e9ef; font-family: 'Cinzel', serif; letter-spacing: 0.08em; animation-duration: 2.6s; }
.hm-fog { position: absolute; inset: -16px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; z-index: -1;
    background: radial-gradient(circle at 40% 45%, rgba(215, 222, 232, 0.55) 0%, rgba(170, 180, 195, 0.35) 35%, rgba(0, 0, 0, 0) 68%),
                radial-gradient(circle at 65% 60%, rgba(200, 208, 220, 0.45) 0%, rgba(0, 0, 0, 0) 55%); }
.hm-hunter.in-boss .hm-fog { opacity: 1; animation: hm-fog-swirl 6s linear infinite; }
.hm-hunter.in-boss { box-shadow: 0 0 0 2px #c9ced8, 0 0 0 3px #2a2e36, 0 0 14px 4px rgba(210, 218, 230, 0.6); }
.hm-hunter.in-boss::before { border-color: rgba(220, 226, 236, 0.75); }
@keyframes hm-fog-swirl { from { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.12); } to { transform: rotate(360deg) scale(1); } }
/* Messages: a messenger rises where one is written; a rating sparkles (Fine) or dims (Poor) */
.fx-msgwrite .hm-fx-in::before { content: ""; position: absolute; inset: 6px -4px -6px; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 80%, rgba(255, 170, 80, 0.85) 0%, rgba(230, 100, 20, 0) 60%); animation: hm-fx-lamp 2.2s ease-out forwards; }
.fx-msgwrite .hm-fx-label { color: #ffcf9a; }
.fx-msgrate .hm-fx-in::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; animation: hm-fx-glint 1.4s ease-out forwards; }
.fx-msgrate.fx-fine .hm-fx-in::after { background: radial-gradient(circle, #fffbe0 0%, rgba(255, 210, 90, 0.8) 30%, rgba(255, 170, 40, 0) 70%); }
.fx-msgrate.fx-poor .hm-fx-in::after { background: radial-gradient(circle, #a8a8a8 0%, rgba(90, 90, 100, 0.7) 35%, rgba(30, 30, 40, 0) 70%); }
.fx-msgrate.fx-fine .hm-fx-label { color: #ffe08a; }
.fx-msgrate.fx-poor .hm-fx-label { color: #b8b8c0; }
@media (prefers-reduced-motion: reduce) { .hm-hunter.in-boss .hm-fog { animation: none; } }

/* Which world (world.py): the normal hunt, or the modded runs' */
.hm-worlds { display: flex; gap: 0; margin: 6px 0 10px; border: 1px solid var(--rim-soft, rgba(201, 169, 106, 0.28)); }
.hm-world { flex: 1; padding: 7px 6px; text-align: center; font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: #a9a294; text-decoration: none; background: linear-gradient(180deg, #14181e, #0b0e12); }
.hm-world + .hm-world { border-left: 1px solid var(--rim-soft, rgba(201, 169, 106, 0.28)); }
.hm-world:hover { color: #f1e6c8; }
.hm-world.on { color: #ffe9b8; background: var(--select-wash, linear-gradient(180deg, rgba(56, 70, 92, 0.55), rgba(18, 24, 34, 0.55))), #0b0e12;
    box-shadow: inset 0 -2px 0 #c9a96a; }
.hm-modded-list { list-style: none; margin: 4px 0 10px; padding: 0; }
.hm-modded-run { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 5px 0; border-bottom: 1px solid rgba(190, 185, 170, 0.1); }
.hm-modded-name { color: #ecd8a4; text-decoration: none; font-weight: 600; }
.hm-modded-name:hover { text-decoration: underline; }
.hm-modded-rules { grid-column: 1; font-size: 0.85rem; color: #b9b2a2; }
.hm-modded-when { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.8rem; color: #8f897c; white-space: nowrap; }
.hm-modded-run.online .hm-modded-when { color: #ffd27a; }
.hm-modded-run.online .hm-modded-name::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%;
    background: #ffcf6a; box-shadow: 0 0 6px #ffb02e; vertical-align: 1px; }

/* a hunter named in a popup (worldmap.js hunterLink) */
.hm-pop a.hm-pop-hunter { color: #ecd8a4; text-decoration: underline; text-decoration-color: rgba(201, 169, 106, 0.6); }
.hm-pop a.hm-pop-hunter:hover { color: #fff3d8; }

/* The Chalice Dungeons below (worldmap.js fillChaliceList): their glyphs; one
   picked is drawn as the game lays it out (drawChalice) */
.hm-chalice-list { background: rgba(14, 12, 10, 0.92); padding: 6px 0; max-width: 300px; max-height: 50vh; overflow-y: auto;
    font-family: 'Cormorant Garamond', serif; color: #d8cfbb; }
.hm-chalice-list .hm-cl-title { font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: #c9a96a; padding: 0 12px 4px; }
.hm-chalice-list a.hm-cl-item { display: grid !important; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline;
    width: auto !important; height: auto !important; line-height: 1.3 !important; padding: 4px 12px; text-align: left;
    color: #e8dcc0; background: transparent; border-bottom: 1px solid rgba(201, 169, 106, 0.15); cursor: pointer; }
.hm-chalice-list a.hm-cl-item:hover, .hm-chalice-list a.hm-cl-item.on { background: rgba(201, 169, 106, 0.16); color: #fff3d8; }
.hm-chalice-list a.hm-cl-item.off { cursor: default; opacity: 0.6; }
.hm-chalice-list .hm-cl-glyph { font-family: 'Courier New', monospace; font-size: 0.85rem; color: #ecd8a4; }
.hm-chalice-list .hm-cl-name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-chalice-list .hm-cl-n { font-family: 'Cinzel', serif; font-size: 0.75rem; color: #c9a96a; }
.hm-chalice-list .hm-cl-note { padding: 5px 12px 2px; font-size: 0.78rem; font-style: italic; color: #b9ad94; }
.hm-dungeon { pointer-events: none; }
.hm-dungeon .hm-dungeon-floor { stroke-width: 0.3; shape-rendering: crispEdges; filter: drop-shadow(0 0 1.2px rgba(0, 0, 0, 0.95)); }
/* layers stacked: the top one (0) brightest, the deeper ones darker and fainter under it */
.hm-dungeon .hm-dl-0 { fill: #b49e78; stroke: #b49e78; }
.hm-dungeon .hm-dl-1 { fill: #7d6c52; stroke: #7d6c52; opacity: 0.8; }
.hm-dungeon .hm-dl-2 { fill: #5a4d3b; stroke: #5a4d3b; opacity: 0.7; }
.hm-dungeon .hm-dl-3 { fill: #463c2e; stroke: #463c2e; opacity: 0.6; }
.hm-dungeon .hm-dl-4 { fill: #3a3226; stroke: #3a3226; opacity: 0.55; }
