/* Guía interactiva HMB (Tankar y Fran). Colores con los tokens de hmb-base.css y respaldo propio. */
.hmbay { position: fixed; inset: 0; z-index: 9990; pointer-events: none; font-family: var(--font-body, Rajdhani, sans-serif); }
.hmbay > * { pointer-events: auto; }
.hmbay [hidden] { display: none !important; }

/* botón flotante (abajo a la derecha; el ACCESO móvil está abajo a la izquierda) */
.hmbay-fab {
	position: fixed; right: 14px; bottom: calc(14px + var(--hmbay-lift, 0px) + env(safe-area-inset-bottom, 0px));
	display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 6px;
	background: linear-gradient(180deg, #2a0d0b, #120707); color: #fff;
	border: 2px solid var(--fire, #cc2200); border-radius: 999px; cursor: pointer;
	font: 700 15px/1 var(--font-title, Oswald, sans-serif); letter-spacing: .08em; text-transform: uppercase;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .6), 0 0 18px rgba(204, 34, 0, .35);
}
.hmbay-fab img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #0c0505; border: 1px solid #5b1a12; }
.hmbay-fab:hover, .hmbay-fab:focus-visible { border-color: var(--gold, #daa520); outline: none; box-shadow: 0 6px 22px rgba(0, 0, 0, .6), 0 0 22px rgba(218, 165, 32, .45); }
.hmbay-fab.is-off { opacity: .8; border-color: #4a3a38; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.hmbay-fab.is-off img { filter: grayscale(.8); }

/* cuadro de diálogo */
.hmbay-card {
	position: fixed; right: 14px; bottom: calc(72px + var(--hmbay-lift, 0px) + env(safe-area-inset-bottom, 0px));
	width: min(440px, calc(100vw - 28px)); box-sizing: border-box; padding: 14px 16px 12px;
	background: linear-gradient(180deg, rgba(34, 12, 10, .97), rgba(14, 6, 6, .98));
	color: #f1ece8; border: 2px solid var(--fire, #cc2200); border-radius: 14px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .7), 0 0 26px rgba(204, 34, 0, .3);
}
.hmbay-card.is-fran { border-color: var(--gold, #daa520); }
.hmbay-row { display: flex; gap: 12px; align-items: flex-start; }
.hmbay-face { flex: 0 0 92px; width: 92px; height: 92px; margin-top: -34px; }
.hmbay-img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .7)); }
.hmbay-img.pop { animation: hmbayPop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes hmbayPop { from { transform: scale(.7) rotate(-6deg); opacity: .3; } to { transform: none; opacity: 1; } }
.hmbay-body { flex: 1 1 auto; min-width: 0; }
.hmbay-who { display: block; font: 400 20px/1 var(--font-display, 'Metal Mania', cursive); letter-spacing: .06em; color: var(--fire-text, #ff4d2e); margin-bottom: 4px; }
.is-fran .hmbay-who { color: var(--gold, #daa520); }
.hmbay-txt { font-size: 16.5px; line-height: 1.38; }
.hmbay-txt b { color: #fff; }
.hmbay-txt i { color: #c9b9b4; }
.hmbay-x { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: #cfc2bd; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.hmbay-x:hover { color: #fff; }
.hmbay-nav { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.hmbay-count { margin-left: auto; margin-right: auto; font: 600 13px/1 var(--font-title, Oswald, sans-serif); color: #a99a95; letter-spacing: .1em; }
.hmbay-nav .hmbay-b:first-child[hidden] + .hmbay-count { margin-left: 0; }
.hmbay-b {
	background: transparent; color: #fff; border: 1px solid #6d3a33; border-radius: 8px; padding: 7px 12px; cursor: pointer;
	font: 600 14px/1 var(--font-title, Oswald, sans-serif); letter-spacing: .06em; text-transform: uppercase;
}
.hmbay-b:hover { border-color: var(--gold, #daa520); }
.hmbay-main { background: var(--fire, #cc2200); border-color: var(--fire, #cc2200); margin-left: auto; }
.hmbay-main:hover { background: #e32a00; border-color: #e32a00; }
.hmbay-count + .hmbay-main { margin-left: 0; }
.hmbay-opts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 8px; border-top: 1px solid #3a1a16; padding-top: 6px; }
.hmbay-link { background: none; border: 0; padding: 3px 0; color: #b8a8a3; font: 500 13px/1.2 var(--font-body, Rajdhani, sans-serif); cursor: pointer; text-align: left; }
.hmbay-link:hover { color: var(--gold, #daa520); text-decoration: underline; }

/* aviso breve en pantallas con reloj: arriba, discreto, sin botones de paso */
.hmbay-card.is-tip { top: 74px; bottom: auto; right: 50%; transform: translateX(50%); width: min(520px, calc(100vw - 20px)); padding: 10px 14px 8px; opacity: .97; }
.hmbay-card.is-tip .hmbay-nav, .hmbay-card.is-tip .hmbay-opts { display: none; }
.hmbay-card.is-tip .hmbay-face, .hmbay-card.is-tip .hmbay-img { flex-basis: 60px; width: 60px; height: 60px; margin-top: 0; }
.hmbay-card.is-tip .hmbay-txt { font-size: 15px; }

/* marco que señala el elemento explicado */
.hmbay-ring {
	position: fixed; pointer-events: none !important; box-sizing: border-box; border: 3px solid var(--gold, #daa520); border-radius: 12px;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 22px 4px rgba(218, 165, 32, .55); animation: hmbayRing 1.4s ease-in-out infinite;
}
@keyframes hmbayRing { 50% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 32px 10px rgba(255, 77, 46, .6); } }

@media (max-width: 600px) {
	.hmbay-card { right: 8px; left: 8px; width: auto; bottom: calc(66px + var(--hmbay-lift, 0px) + env(safe-area-inset-bottom, 0px)); }
	.hmbay-card.is-tip { right: 8px; left: 8px; transform: none; width: auto; top: 64px; }
	.hmbay-txt { font-size: 16px; }
	.hmbay-fab span { display: none; }
	.hmbay-fab { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
	.hmbay-img.pop, .hmbay-ring { animation: none; }
}
