/* Creatures & Heroes — V11 interaction and translucent-menu refinements. */

/* Make every genuinely interactive element announce itself with the hand cursor. */
:where(
  a[href],
  button:not(:disabled),
  select:not(:disabled),
  summary,
  [role="button"],
  [role="link"],
  [role="menuitem"],
  [role="menuitemradio"],
  [role="option"],
  [onclick],
  .cah-select-toggle,
  .cah-select-option,
  .rune-language-toggle,
  .rune-language-menu button
) {
  cursor: pointer !important;
}

/* Main navigation: no hover frame or movement; only bold golden text. */
.topbar nav a,
.codex-topbar nav a {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .16s ease, font-weight .16s ease !important;
}

.topbar nav a:hover,
.codex-topbar nav a:hover {
  color: #f4cf62 !important;
  font-weight: 800 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  text-shadow: 0 0 12px rgba(244, 207, 98, .28);
}

/* Keep the upper-left brand/logo visually unchanged on hover. */
.topbar .brand:hover,
.codex-topbar .brand:hover {
  color: var(--gold-bright) !important;
  font-weight: inherit !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/*
 * Unified glass style. A 3% dark tint keeps the panels 97% transparent,
 * while the softer blur reveals more of the artwork behind them and costs
 * less GPU work than the previous 20–24px blur.
 */
.cah-select-toggle,
.creator .cah-select-toggle,
.heroes-toolbar .cah-select-toggle,
.rune-language-toggle,
select {
  background: rgba(7, 20, 17, .03) !important;
  -webkit-backdrop-filter: blur(5px) saturate(1.08) !important;
  backdrop-filter: blur(5px) saturate(1.08) !important;
}

.cah-select-menu,
.creator .cah-select-menu,
.heroes-toolbar .cah-select-menu,
.rune-language-menu {
  background: rgba(7, 20, 17, .03) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.1) !important;
  backdrop-filter: blur(7px) saturate(1.1) !important;
}

/* Options remain readable but do not become opaque on hover or selection. */
.cah-select-option,
.rune-language-menu button,
select option {
  background-color: rgba(7, 20, 17, .06) !important;
}

.cah-select-option:hover,
.cah-select-option:focus-visible,
.rune-language-menu button:hover,
.rune-language-menu button:focus-visible {
  background-color: rgba(226, 184, 73, .12) !important;
}

.cah-select-option[aria-selected="true"],
.rune-language-menu button.is-current {
  background-color: rgba(226, 184, 73, .09) !important;
}

@media (prefers-reduced-motion: reduce) {
  .topbar nav a,
  .codex-topbar nav a {
    transition: none !important;
  }
}
