.global-boost-events {
  position: fixed;
  z-index: 10;
  top: var(--hud-global-events-top, 69px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(500px, calc(100vw - 24px));
  min-width: 0;
  pointer-events: none;
}
@media (min-width: 781px) {
  .global-boost-events {
    /* Leave the analyzer, its 49px capture rail and their gutters clear. */
    --global-boost-band-width: clamp(200px, calc(100vw - 700px), 500px);
    max-width: var(--global-boost-band-width);
    left: min(50%, calc(100vw - 350px - var(--global-boost-band-width) / 2));
  }
}
.global-boost-events[hidden],
.global-boost-events-list[hidden],
.global-boost-events-toggle[hidden],
.global-boost-insight[hidden] {
  display: none;
}
.global-boost-events-toggle {
  display: none;
}
@media (max-width: 780px) {
  .global-boost-events {
    display: flex;
    align-items: center;
    gap: var(--ui-space-1);
  }
  .global-boost-events-toggle {
    display: inline-flex;
    flex: none;
    gap: var(--ui-space-2);
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: var(--ui-space-1) var(--ui-space-2);
    font: 600 12px/1.2 var(--ui-font-body);
    pointer-events: auto;
  }
  .global-boost-events-summary {
    display: inline-flex;
    align-items: center;
    gap: var(--ui-space-1);
  }
  .global-boost-events-count {
    color: var(--ui-color-text-muted);
    font-variant-numeric: tabular-nums;
  }
  .global-boost-events-chevron {
    width: 12px;
    height: 12px;
  }
  .global-boost-events-toggle[aria-expanded="true"] .global-boost-events-summary {
    display: none;
  }
  .global-boost-events-toggle[aria-expanded="true"] .global-boost-events-chevron {
    transform: rotate(180deg);
  }
}
.global-boost-events-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ui-space-1);
}
.active-boost.global-boost-event {
  --global-boost-color: var(--ui-color-text);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  min-height: 24px;
  max-width: 100%;
  padding: 0;
  border-color: color-mix(
    in srgb,
    var(--global-boost-color) 40%,
    var(--ui-color-border)
  );
  border-radius: var(--ui-radius);
  background: var(--ui-color-border);
  color: var(--ui-color-text);
  font: 600 12px/1.2 var(--ui-font-body);
  text-align: center;
  overflow-wrap: anywhere;
  overflow: hidden;
  pointer-events: auto;
}
.global-boost-event[data-global-boost-tone="xp"],
.global-boost-event-effect:is([data-global-boost-kind="xp"], [data-global-boost-kind="betaXp"]) {
  --global-boost-color: #ff8a7a;
}
.global-boost-event[data-global-boost-tone="loot"],
.global-boost-event-effect[data-global-boost-kind="loot"] {
  --global-boost-color: var(--ui-color-success);
}
.global-boost-event[data-global-boost-tone="capture"],
.global-boost-event-effect[data-global-boost-kind="capture"] {
  --global-boost-color: #8fd0ff;
}
.global-boost-event[data-global-boost-tone="shiny"],
.global-boost-event-effect:is(
  [data-global-boost-kind="shiny"],
  [data-global-boost-kind="shinyCapture"]
) {
  --global-boost-color: #fff1be;
}
.global-boost-event[data-global-boost-tone="holo"],
.global-boost-event-effect[data-global-boost-kind="holo"] {
  --global-boost-color: #b6f5f3;
}
.global-boost-event[data-global-boost-tone="vip"] {
  --global-boost-color: #f3cf77;
}
.global-boost-event-effect {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: var(--ui-space-1);
  min-width: 0;
  max-width: 100%;
  padding: var(--ui-space-1) var(--ui-space-2);
  background: color-mix(
    in srgb,
    var(--global-boost-color) 12%,
    var(--ui-color-surface)
  );
  color: var(--global-boost-color);
}
.global-boost-event-label {
  min-width: 0;
}
.global-boost-event-separator {
  display: none;
}
.global-boost-event-icon {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 16px;
  height: 16px;
}
.global-boost-event-icon--shiny-capture {
  width: 20px;
}
.active-boost.global-boost-event .global-boost-event-icon img {
  flex: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
}
.active-boost.global-boost-event
  .global-boost-event-icon
  img.global-boost-event-icon-shiny {
  position: absolute;
  top: -2px;
  right: 0;
  width: 10px;
  height: 10px;
}
.active-boost.global-boost-event:is(:hover, :focus-visible) {
  border-color: var(--global-boost-color);
}
.global-boost-event:is(:hover, :focus-visible) .global-boost-event-effect {
  background: color-mix(
    in srgb,
    var(--global-boost-color) 18%,
    var(--ui-color-surface)
  );
}
.global-boost-insight {
  z-index: 145;
  padding: var(--ui-space-2) var(--ui-space-3);
  border: 1px solid var(--ui-color-border);
  color: var(--ui-color-text);
  font: 12px/1.4 var(--ui-font-body);
  font-variant-numeric: tabular-nums;
}
.global-boost-insight-tools {
  display: flex;
  justify-content: flex-end;
  gap: var(--ui-space-1);
  margin-bottom: var(--ui-space-2);
}
.global-boost-insight-tools .ui-button {
  min-height: 28px;
  padding: var(--ui-space-1) var(--ui-space-2);
  font-size: 12px;
}
.global-boost-insight h2 {
  margin: 0;
  color: var(--ui-color-primary);
  font: 600 15px/1.2 var(--ui-font-body);
  overflow-wrap: anywhere;
}
.global-boost-insight p {
  margin: var(--ui-space-2) 0 0;
}
.global-boost-insight-remaining {
  color: var(--ui-color-text-muted);
}
.global-boost-insight-effects {
  margin: var(--ui-space-3) 0;
  padding-left: var(--ui-space-4);
}
.global-boost-event:focus-visible {
  outline: var(--ui-focus-width) solid var(--ui-color-focus);
  outline-offset: var(--ui-focus-offset);
}
/* Tipo do Dia: the type's own color identifies the day; its name is the text. */
.active-boost.global-boost-event.daily-type-event {
  --global-boost-color: color-mix(
    in srgb,
    var(--daily-type-color, var(--ui-color-primary)) 70%,
    var(--ui-color-text)
  );
}
.daily-type-event-effect {
  color: var(--ui-color-text);
}
.daily-type-event-swatch {
  flex: none;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ui-color-text);
  border-radius: 50%;
  background: var(--daily-type-color, var(--ui-color-primary));
}
.daily-type-event-bonus {
  color: var(--ui-color-primary);
  font-weight: 700;
}

/* Mobile bonuses share one touch row. More events scroll within the band;
   expanding the chevron never creates a second block over the map. */
@media (max-width: 780px) {
  .global-boost-events-list {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
    height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
    pointer-events: auto;
  }
  .global-boost-events-list::-webkit-scrollbar {
    display: none;
  }
  .global-boost-events-list .active-boost.global-boost-event {
    flex: none;
    flex-wrap: nowrap;
    min-height: 44px;
    max-width: none;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .global-boost-events-list .global-boost-event-effect {
    flex: none;
    max-width: none;
  }
  .global-boost-events-list .global-boost-event:focus-visible {
    outline-offset: -3px;
  }
}
