/* Egyedi tooltip: a böngésző saját title-buborékja helyett, a téma színeivel és a státuszsáv textúrájával */
.mx-tip {
  position: fixed; z-index: 300000; /* 2026-10-05: a térkép (11000) és minden ablak fölött */ pointer-events: none;
  max-width: min(24rem, calc(100vw - 16px)); padding: .5rem .8rem;
  font-size: .86rem; line-height: 1.4; color: var(--text); white-space: pre-line;
  background:
    linear-gradient(color-mix(in srgb, var(--panel) 84%, transparent), color-mix(in srgb, var(--panel) 84%, transparent)),
    var(--hat-statusz) center / cover no-repeat,
    var(--hat-alap-statusz) center / cover no-repeat,
    var(--panel);
  border: 1px solid var(--border-hover); border-left: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 6px 18px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(-3px); transition: opacity .14s ease, transform .14s ease;
}
.mx-tip.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mx-tip { transition: none; } }

/* 2026-10-15 (user: „a buborékok pergamen háttérrel, stílusosabban”): minden buborék valódi pergamen-textúrát kap, témától függetlenül */
.mx-tip, #genericTooltip, .mx-goal-bub, .mx-goal-card {
  color: #3b2410 !important;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 248, 228, .55), rgba(255, 248, 228, 0) 70%),
    url(/static/brand/arculat_konyv_lap_pergamen_v2.jpg) center / cover,
    #efdfb8 !important;
  border: 1px solid #8a6533 !important; border-left-width: 1px !important;
  box-shadow: inset 0 0 14px rgba(110, 70, 25, .45), inset 0 0 0 1px rgba(255, 240, 205, .5), 0 8px 22px rgba(0, 0, 0, .45) !important;
  text-shadow: 0 1px 0 rgba(255, 245, 220, .5);
  font-family: Georgia, 'Palatino Linotype', serif;
}
.mx-tip { border-radius: 6px; padding: .55rem .85rem; }
.mx-tip b, .mx-tip strong, #genericTooltip b, #genericTooltip strong { color: #6b2a12; }
.mx-goal-bub::before { border-bottom-color: #8a6533 !important; }
