.wowhead-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.wowhead-language-button {
  width: 42px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #f3eef0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wowhead-language-button:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  transform: translateY(-1px);
}

.wowhead-language-button[aria-pressed="true"] {
  border-color: rgba(255,76,97,.72);
  background: linear-gradient(180deg, rgba(211,52,70,.27), rgba(104,16,29,.22));
  box-shadow: 0 0 18px rgba(211,52,70,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.wowhead-language-button:focus-visible {
  outline: 2px solid #ff6678;
  outline-offset: 3px;
}

.kill-video-link { flex: 0 0 auto; white-space: nowrap; }

.wowhead-language-flag {
  display: block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}

.wowhead-language-button[data-wowhead-language="de"] .wowhead-language-flag {
  background-image: linear-gradient(to bottom, #111 0 33.333%, #d00 33.333% 66.666%, #ffce00 66.666% 100%);
}

.wowhead-language-button[data-wowhead-language="en"] .wowhead-language-flag {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'%3E%3Cpath fill='%23012169' d='M0 0h60v36H0z'/%3E%3Cpath stroke='%23fff' stroke-width='7' d='m0 0 60 36m0-36L0 36'/%3E%3Cpath stroke='%23c8102e' stroke-width='3.5' d='m0 0 60 36m0-36L0 36'/%3E%3Cpath stroke='%23fff' stroke-width='12' d='M30 0v36M0 18h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='7' d='M30 0v36M0 18h60'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  .wowhead-language-switch { gap: 2px; padding: 3px; }
  .wowhead-language-button { width: 38px; height: 32px; }
  .wowhead-language-flag { width: 20px; height: 14px; }
}

@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  .header-inner .brand { min-width: 0; flex: 0 1 215px !important; gap: 8px !important; }
  .header-inner .brand-icon { width: 44px !important; height: 44px !important; flex-basis: 44px !important; border-radius: 12px !important; }
  .header-inner .brand-banner { max-width: calc(100% - 52px) !important; height: 46px !important; }
  .header-inner .top-nav { flex: 0 0 auto; gap: 4px; }
  .top-nav .overview-link {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0 !important;
    font-size: 0 !important;
  }
  .top-nav .overview-link::before { content: "\2190"; font-size: 1rem; }
  .top-nav .source-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wowhead-language-button { transition: none; }
}
