/* PlayInWoW - шапка-меню, версия 7. Изменены только пути к картинкам. */

:root {
  --wow-gold: #d9af55;
  --wow-pale-gold: #ffe4a1;
  --wow-ice: #58c9ff;
  --wow-fel: #91f33d;
  --wow-ink: #03070a;
  --wow-ease: cubic-bezier(0.2, 0.82, 0.2, 1);
}

.wow-header {
  position: relative;
  z-index: 4;
  isolation: isolate;
  min-height: 390px;
  overflow: hidden;
  color: #f5ead3;
  background:
    linear-gradient(to bottom, rgba(1, 4, 7, 0.16), transparent 38%, #03070a 100%),
    radial-gradient(ellipse at 16% 50%, rgba(20, 99, 158, 0.34), transparent 38%),
    radial-gradient(ellipse at 84% 50%, rgba(75, 137, 24, 0.27), transparent 38%),
    linear-gradient(105deg, #07121d, #090b0d 48%, #0b1609);
}

.wow-header::before {
  content: none;
  position: absolute;
  z-index: -3;
  display: none;
  inset: -28%;
  background:
    repeating-radial-gradient(
      ellipse at 22% 45%,
      rgba(111, 207, 255, 0.08) 0 1px,
      transparent 2px 17px
    ),
    repeating-radial-gradient(
      ellipse at 78% 45%,
      rgba(150, 255, 79, 0.06) 0 1px,
      transparent 2px 20px
    );
  opacity: 0.52;
  transform: rotate(-3deg);
}

.wow-header::after {
  content: "";
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(69, 188, 255, 0.58) 24%,
    rgba(222, 178, 84, 0.48) 50%,
    rgba(137, 242, 54, 0.54) 76%,
    transparent
  );
  box-shadow:
    0 -2px 14px rgba(79, 181, 245, 0.18),
    0 -3px 20px rgba(128, 233, 49, 0.12);
}

.wow-header:has(.wow-universal-nav.is-open) {
  z-index: 30;
  overflow: visible;
}

.wow-header__sky,
.wow-header__mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wow-header__sky {
  z-index: -1;
  overflow: hidden;
}

.wow-header__mist {
  top: 20%;
  width: 68%;
  height: 52%;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.36;
  animation: wow-mist-breathe 8s ease-in-out infinite alternate;
}

.wow-header__mist--ice {
  right: auto;
  background: radial-gradient(ellipse, rgba(68, 173, 237, 0.26), transparent 68%);
}

.wow-header__mist--fel {
  right: 0;
  left: auto;
  background: radial-gradient(ellipse, rgba(112, 211, 42, 0.2), transparent 68%);
  animation-delay: -4s;
}

.wow-header__star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bcecff;
  box-shadow: 0 0 7px currentColor, 0 0 14px currentColor;
  animation: wow-star 3.6s ease-in-out infinite;
}

.wow-header__star--1 {
  top: 26%;
  left: 14%;
}

.wow-header__star--2 {
  top: 47%;
  left: 30%;
  animation-delay: -1.7s;
}

.wow-header__star--3 {
  top: 31%;
  right: 29%;
  color: #c8ff9c;
  animation-delay: -2.5s;
}

.wow-header__star--4 {
  top: 53%;
  right: 12%;
  color: #adff72;
  animation-delay: -0.8s;
}

.wow-header__topline {
  position: relative;
  z-index: 12;
  display: flex;
  width: min(1480px, calc(100% - 42px));
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: #8d9aa7;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.wow-header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9b3a4;
  letter-spacing: 0.12em;
}

.wow-header__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83e43d;
  box-shadow: 0 0 7px #83e43d, 0 0 16px rgba(131, 228, 61, 0.55);
  animation: wow-status-pulse 2.2s ease-in-out infinite;
}

.wow-universal-nav {
  position: relative;
  z-index: 15;
  width: min(1540px, calc(100% - 28px));
  height: 138px;
  margin: 45px auto 0;
  overflow: visible;
}

.wow-universal-nav__rail {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  left: 0;
  height: auto;
  border: 0;
  aspect-ratio: 2048 / 223;
  background: url("../images/ui/umenu-backplate.webp") center / 100% 100% no-repeat;
  filter:
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 15px rgba(81, 177, 229, 0.1));
  transform: translateY(-50%);
}

.wow-universal-nav__rail::before,
.wow-universal-nav__rail::after {
  content: none;
  display: none;
}

.wow-universal-nav__crystal-glow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: clamp(74px, 8vw, 122px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(9px);
  mix-blend-mode: screen;
  opacity: 0.54;
  pointer-events: none;
  transform: translateY(-50%);
  animation: wow-edge-crystal 3.1s ease-in-out infinite alternate;
}

.wow-universal-nav__crystal-glow--ice {
  left: -1.5%;
  background: radial-gradient(
    circle,
    rgba(166, 233, 255, 0.86),
    rgba(41, 163, 255, 0.36) 31%,
    transparent 70%
  );
}

.wow-universal-nav__crystal-glow--fel {
  right: -1.5%;
  background: radial-gradient(
    circle,
    rgba(209, 255, 142, 0.86),
    rgba(110, 238, 32, 0.34) 31%,
    transparent 70%
  );
  animation-delay: -1.55s;
}

.wow-universal-nav__desktop {
  position: relative;
  z-index: 3;
  display: grid;
  height: 138px;
  align-items: center;
  padding: 0 clamp(58px, 5.2vw, 90px);
  grid-template-columns: minmax(0, 1fr) clamp(370px, 28.5vw, 440px) minmax(0, 1fr);
  gap: 5px;
}

.wow-universal-nav__group {
  display: flex;
  min-width: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.wow-universal-nav__group--left {
  justify-content: flex-end;
}

.wow-universal-nav__group--right {
  justify-content: flex-start;
}

.wow-universal-nav__group > li {
  position: relative;
  min-width: 0;
  max-width: 192px;
  flex: 1 1 142px;
  container-type: inline-size;
}

/*
 * Два внутренних пункта подходят к эмблеме ближе остальных.
 * Смещение назначено элементам списка, поэтому hover-анимация самой
 * кнопки остаётся независимой и не дёргает соседние пункты.
 */
.wow-universal-nav__inner-item {
  z-index: 4;
  flex-grow: 1.12;
}

.wow-universal-nav__inner-item--left {
  margin-right: -23px;
  transform: translateY(5px);
}

.wow-universal-nav__inner-item--right {
  margin-left: -23px;
  transform: translateY(5px);
}

.wow-universal-nav__inner-item::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 17px;
  width: 38px;
  height: 25px;
  border-top: 1px solid rgba(235, 201, 114, 0.5);
  border-bottom: 1px solid rgba(101, 73, 24, 0.6);
  background:
    linear-gradient(180deg, rgba(225, 186, 89, 0.17), rgba(3, 7, 10, 0.78)),
    #080b0d;
  box-shadow:
    inset 0 1px rgba(255, 235, 172, 0.08),
    0 0 10px rgba(220, 177, 73, 0.08);
  pointer-events: none;
}

.wow-universal-nav__inner-item--left::after {
  right: -30px;
  clip-path: polygon(0 0, 100% 42%, 76% 100%, 0 100%);
}

.wow-universal-nav__inner-item--right::after {
  left: -30px;
  clip-path: polygon(100% 0, 100% 100%, 24% 100%, 0 42%);
}

.wow-universal-nav__inner-item--left .wow-nav-button {
  padding-right: clamp(12px, 1vw, 18px);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}

.wow-universal-nav__inner-item--right .wow-nav-button {
  padding-left: clamp(12px, 1vw, 18px);
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
}

.wow-universal-nav__group > li + li::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 1px;
  background: linear-gradient(
    transparent,
    rgba(202, 169, 88, 0.18) 18%,
    rgba(230, 202, 125, 0.5) 50%,
    rgba(202, 169, 88, 0.18) 82%,
    transparent
  );
  box-shadow: 1px 0 rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.wow-nav-button {
  --accent: var(--wow-ice);
  --accent-rgb: 88, 201, 255;

  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.55vw, 7px);
  overflow: hidden;
  padding: 0 clamp(8px, 0.75vw, 13px);
  border: 0;
  border-radius: 2px;
  color: #d8be77;
  background:
    linear-gradient(180deg, rgba(255, 232, 163, 0.03), transparent 32%),
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.035) 50%, transparent);
  box-shadow:
    inset 0 1px rgba(255, 228, 153, 0.08),
    inset 0 -1px rgba(0, 0, 0, 0.5);
  font: 700 clamp(0.66rem, 0.78vw, 0.8rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-shadow:
    0 2px 2px #000,
    0 0 7px rgba(var(--accent-rgb), 0.18);
  text-transform: uppercase;
  transform: translateZ(0);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    letter-spacing 240ms var(--wow-ease),
    transform 190ms var(--wow-ease);
}

.wow-universal-nav__group--right .wow-nav-button {
  --accent: var(--wow-fel);
  --accent-rgb: 145, 243, 61;
}

.wow-nav-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 3px 2px 4px;
  background:
    radial-gradient(ellipse at 50% 118%, rgba(var(--accent-rgb), 0.24), transparent 64%),
    linear-gradient(180deg, rgba(32, 45, 53, 0.58), rgba(5, 9, 12, 0.28));
  border-top: 1px solid rgba(221, 188, 105, 0.12);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 2px;
  opacity: 0.34;
  transform: scaleX(0.88);
  transition:
    border-color 220ms ease,
    opacity 200ms ease,
    transform 240ms var(--wow-ease);
}

.wow-nav-button::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 12%;
  bottom: 5px;
  left: 12%;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--accent) 24%, #f7ffd9 50%, var(--accent) 76%, transparent);
  box-shadow:
    0 0 5px rgba(var(--accent-rgb), 0.68),
    0 0 12px rgba(var(--accent-rgb), 0.24);
  opacity: 0.2;
  transform: scaleX(0.18);
  transition: opacity 180ms ease, transform 260ms var(--wow-ease);
}

.wow-nav-button svg {
  position: relative;
  z-index: 2;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid rgba(216, 184, 99, 0.28);
  border-radius: 50%;
  box-sizing: border-box;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.34));
  transition:
    border-color 180ms ease,
    box-shadow 200ms ease,
    filter 180ms ease,
    transform 220ms var(--wow-ease);
}

.wow-nav-button__glyph {
  position: relative;
  z-index: 2;
  display: inline-grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 50%;
  color: #e3c775;
  background: rgba(4, 8, 11, 0.5);
  box-shadow: inset 0 0 7px rgba(var(--accent-rgb), 0.08);
  font: 800 0.82rem/1 Georgia, "Times New Roman", serif;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.18));
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    filter 220ms ease,
    transform 240ms var(--wow-ease);
}

.wow-nav-button:hover .wow-nav-button__glyph,
.wow-nav-button[aria-current="page"] .wow-nav-button__glyph {
  border-color: rgba(var(--accent-rgb), 0.74);
  color: #fff0b7;
  box-shadow:
    inset 0 0 7px rgba(var(--accent-rgb), 0.18),
    0 0 8px rgba(var(--accent-rgb), 0.28);
  filter:
    drop-shadow(0 0 4px var(--accent))
    drop-shadow(0 0 9px rgba(var(--accent-rgb), 0.65));
  transform: scale(1.08) rotate(-4deg);
}

.wow-nav-button > span:not(.wow-nav-button__glyph) {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wow-nav-button:hover,
.wow-nav-button[aria-current="page"] {
  color: #fff0b8;
  background:
    linear-gradient(180deg, rgba(255, 229, 145, 0.1), transparent 34%),
    radial-gradient(ellipse at 50% 115%, rgba(var(--accent-rgb), 0.14), transparent 66%);
  box-shadow:
    inset 0 1px rgba(255, 228, 153, 0.18),
    inset 0 -1px rgba(var(--accent-rgb), 0.22),
    0 0 16px rgba(var(--accent-rgb), 0.08);
  letter-spacing: 0.07em;
  text-shadow:
    0 2px 2px #000,
    0 0 6px var(--accent),
    0 0 15px rgba(var(--accent-rgb), 0.74);
  transform: translateY(-1px);
}

.wow-nav-button:hover::before,
.wow-nav-button[aria-current="page"]::before {
  border-bottom-color: rgba(var(--accent-rgb), 0.5);
  opacity: 1;
  transform: scaleX(1);
}

.wow-nav-button:hover::after,
.wow-nav-button[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
  animation: wow-button-energy 1.8s ease-in-out infinite;
}

.wow-nav-button:hover svg {
  border-color: rgba(var(--accent-rgb), 0.74);
  box-shadow:
    inset 0 0 7px rgba(var(--accent-rgb), 0.16),
    0 0 8px rgba(var(--accent-rgb), 0.28);
  filter:
    drop-shadow(0 0 4px var(--accent))
    drop-shadow(0 0 9px rgba(var(--accent-rgb), 0.76));
  transform: scale(1.08) rotate(-4deg);
}

.wow-nav-button:active {
  background: rgba(0, 0, 0, 0.3);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.72),
    inset 0 -1px rgba(var(--accent-rgb), 0.16);
  transform: translateY(2px) scale(0.985);
  transition-duration: 60ms;
}

.wow-nav-button:focus-visible,
.wow-universal-nav__toggle:focus-visible,
.wow-universal-nav__play:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--wow-pale-gold);
  outline-offset: 3px;
}

.wow-menu-logo:focus-visible {
  outline: 0;
}

.wow-menu-logo:focus-visible .wow-menu-logo__image {
  filter:
    brightness(1.13)
    drop-shadow(0 0 12px rgba(255, 226, 154, 0.72))
    drop-shadow(-8px 0 15px rgba(76, 187, 255, 0.35))
    drop-shadow(8px 0 15px rgba(131, 239, 52, 0.28));
}

.wow-nav-button.is-hit::before {
  animation: wow-button-impact 540ms var(--wow-ease);
}

@container (max-width: 110px) {
  .wow-nav-button {
    gap: 3px;
    padding-inline: 4px;
    font-size: 0.61rem;
  }

  .wow-nav-button svg,
  .wow-nav-button__glyph {
    width: 19px;
    height: 19px;
    padding: 3px;
  }
}

@container (max-width: 90px) {
  .wow-nav-button svg,
  .wow-nav-button__glyph {
    display: none;
  }
}

.wow-menu-logo {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(420px, 34vw, 530px);
  aspect-ratio: 1298 / 728;
  color: var(--wow-pale-gold);
  text-decoration: none;
  transform: translate(-50%, -27%);
  transform-origin: 50% 27%;
}

.wow-menu-logo__image,
.wow-menu-logo__inner-glow,
.wow-menu-logo__fel-crystal-glow,
.wow-menu-logo__aura,
.wow-menu-logo__blade-glow,
.wow-menu-logo__ring,
.wow-menu-logo__particles {
  position: absolute;
  pointer-events: none;
}

.wow-menu-logo__image {
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 17px 15px rgba(0, 0, 0, 0.88))
    drop-shadow(-8px 0 13px rgba(76, 187, 255, 0.12))
    drop-shadow(8px 0 13px rgba(131, 239, 52, 0.1));
  animation: wow-logo-breathe 5.8s ease-in-out infinite;
  transition: filter 280ms ease, transform 300ms var(--wow-ease);
}

.wow-menu-logo__inner-glow {
  z-index: 4;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(17% 1% 41%);
  filter: brightness(1.72) contrast(1.22) saturate(1.58);
  mix-blend-mode: screen;
  opacity: 0.18;
  animation: wow-logo-inner-glow 3.2s ease-in-out infinite;
  transition: opacity 220ms ease, filter 240ms ease;
}

.wow-menu-logo__aura {
  z-index: 0;
  inset: 10% -7% 20%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 27% 42%, rgba(70, 189, 255, 0.33), transparent 42%),
    radial-gradient(ellipse at 50% 40%, rgba(255, 199, 84, 0.18), transparent 34%),
    radial-gradient(ellipse at 75% 42%, rgba(130, 239, 49, 0.3), transparent 42%);
  filter: blur(17px);
  opacity: 0.5;
  transform: scale(0.94);
  animation: wow-logo-aura 4.4s ease-in-out infinite alternate;
  transition: opacity 260ms ease, transform 300ms var(--wow-ease);
}

.wow-menu-logo__fel-crystal-glow {
  z-index: 5;
  top: 1%;
  left: 43%;
  width: 14%;
  height: 21%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(235, 255, 174, 0.92) 0 4%, rgba(147, 255, 52, 0.62) 12%, rgba(76, 236, 14, 0.24) 42%, transparent 72%);
  filter: blur(3px);
  mix-blend-mode: screen;
  opacity: 0.48;
  animation: wow-crystal-pulse 2.4s ease-in-out infinite;
}

.wow-menu-logo__blade-glow {
  z-index: 2;
  top: 49%;
  bottom: 2%;
  left: 50%;
  width: 7%;
  background:
    radial-gradient(ellipse at center, rgba(144, 232, 255, 0.78), rgba(40, 173, 255, 0.22) 28%, transparent 70%);
  filter: blur(6px);
  opacity: 0.56;
  transform: translateX(-50%);
  animation: wow-blade-runes 2.25s ease-in-out infinite;
  transition: opacity 240ms ease, filter 240ms ease;
}

.wow-menu-logo__ring {
  z-index: 1;
  top: 24%;
  left: 50%;
  width: 32%;
  aspect-ratio: 1;
  border: 1px solid rgba(111, 210, 255, 0.7);
  border-radius: 50%;
  box-shadow:
    0 0 10px rgba(78, 184, 255, 0.5),
    inset 0 0 10px rgba(78, 184, 255, 0.38);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
}

.wow-menu-logo__particles {
  z-index: 5;
  inset: -8% 7% 11%;
  overflow: hidden;
}

.wow-menu-logo__particles i {
  position: absolute;
  bottom: 2%;
  left: var(--x);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  opacity: 0;
  animation: wow-particle-rise var(--duration) linear var(--delay) infinite;
}

.wow-menu-logo__particles i:nth-child(n + 5) {
  color: #a8ff60;
}

.wow-menu-logo__hint {
  position: absolute;
  z-index: 10;
  top: 45%;
  left: 50%;
  padding: 7px 14px;
  border: 1px solid rgba(224, 180, 84, 0.48);
  border-radius: 4px;
  color: #ffe9aa;
  background: rgba(3, 7, 10, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 14px rgba(224, 180, 84, 0.14);
  font: 700 0.66rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.14em;
  opacity: 0;
  text-transform: uppercase;
  transform: translate(-50%, 7px);
  transition: opacity 180ms ease, transform 220ms var(--wow-ease);
  white-space: nowrap;
}

.wow-menu-logo:hover .wow-menu-logo__image {
  filter:
    brightness(1.12)
    saturate(1.12)
    drop-shadow(0 20px 17px rgba(0, 0, 0, 0.88))
    drop-shadow(-10px 0 17px rgba(76, 187, 255, 0.44))
    drop-shadow(10px 0 17px rgba(131, 239, 52, 0.34));
  transform: translateY(-5px) scale(1.035);
}

.wow-menu-logo:hover .wow-menu-logo__inner-glow {
  filter: brightness(2.05) contrast(1.3) saturate(1.72);
  opacity: 0.52;
}

.wow-menu-logo:hover .wow-menu-logo__aura {
  opacity: 0.92;
  transform: scale(1.1);
}

.wow-menu-logo:hover .wow-menu-logo__blade-glow {
  filter: blur(4px);
  opacity: 0.95;
}

.wow-menu-logo:hover .wow-menu-logo__fel-crystal-glow {
  filter: blur(2px);
  opacity: 0.92;
}

.wow-menu-logo:hover .wow-menu-logo__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wow-menu-logo:active .wow-menu-logo__image {
  filter: brightness(1.3) saturate(1.2);
  transform: translateY(2px) scale(0.985);
  transition-duration: 70ms;
}

.wow-menu-logo.is-struck .wow-menu-logo__ring {
  animation: wow-logo-impact 720ms var(--wow-ease);
}

.wow-menu-logo.is-struck .wow-menu-logo__image {
  animation: wow-logo-strike 520ms var(--wow-ease);
}

.wow-menu-logo.is-struck .wow-menu-logo__inner-glow {
  animation: wow-logo-inner-flash 620ms var(--wow-ease);
}

.wow-universal-nav__toggle,
.wow-universal-nav__drawer {
  display: none;
}

.wow-universal-nav.is-collapsed {
  width: min(760px, calc(100% - 28px));
}

.wow-universal-nav.is-collapsed .wow-universal-nav__desktop {
  display: none;
}

.wow-universal-nav.is-collapsed .wow-universal-nav__rail {
  right: 10%;
  left: 10%;
}

.wow-universal-nav.is-collapsed .wow-menu-logo {
  width: clamp(300px, 50vw, 390px);
  transform: translate(-50%, -30%);
}

.wow-universal-nav.is-collapsed .wow-universal-nav__toggle {
  position: absolute;
  z-index: 11;
  top: 46px;
  right: 4%;
  left: auto;
  display: inline-flex;
  min-width: 154px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffedbc;
  background: transparent;
  font: 700 0.75rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 2px #000, 0 0 10px rgba(232, 186, 80, 0.56);
  text-transform: uppercase;
  transform: none;
  cursor: pointer;
}

.wow-universal-nav__toggle-icon,
.wow-universal-nav__toggle-icon::before,
.wow-universal-nav__toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
  transition: transform 200ms var(--wow-ease);
}

.wow-universal-nav__toggle-icon {
  position: relative;
}

.wow-universal-nav__toggle-icon::before,
.wow-universal-nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.wow-universal-nav__toggle-icon::before {
  top: -6px;
}

.wow-universal-nav__toggle-icon::after {
  top: 6px;
}

.wow-universal-nav.is-open .wow-universal-nav__toggle-icon {
  background: transparent;
  box-shadow: none;
}

.wow-universal-nav.is-open .wow-universal-nav__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.wow-universal-nav.is-open .wow-universal-nav__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.wow-universal-nav.is-collapsed .wow-universal-nav__drawer {
  position: absolute;
  z-index: 20;
  top: clamp(185px, 25vw, 220px);
  right: 6%;
  left: 6%;
  display: grid;
  padding: 18px;
  border: 1px solid rgba(218, 177, 80, 0.52);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(28, 98, 148, 0.16), transparent 42%),
    linear-gradient(225deg, rgba(91, 148, 32, 0.14), transparent 42%),
    rgba(3, 8, 12, 0.98);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 22px 46px rgba(0, 0, 0, 0.78),
    0 0 26px rgba(81, 177, 229, 0.1);
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-13px) scale(0.975);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 240ms var(--wow-ease);
}

.wow-universal-nav.is-collapsed.is-open .wow-universal-nav__drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wow-universal-nav__drawer-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
}

.wow-universal-nav__drawer-list .wow-nav-button {
  --accent: var(--wow-ice);
  --accent-rgb: 88, 201, 255;
  height: 54px;
  font-size: 0.78rem;
}

.wow-universal-nav__drawer-list li:nth-child(n + 4) .wow-nav-button {
  --accent: var(--wow-fel);
  --accent-rgb: 145, 243, 61;
}

.wow-universal-nav__play {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229, 183, 78, 0.5);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  color: #ffebb1;
  background: linear-gradient(90deg, rgba(39, 127, 185, 0.22), rgba(116, 78, 16, 0.34), rgba(100, 173, 34, 0.22));
  font: 700 0.76rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-shadow: 0 2px 2px #000, 0 0 12px rgba(231, 185, 82, 0.5);
  text-transform: uppercase;
  transition: filter 180ms ease, transform 180ms var(--wow-ease);
}

.wow-universal-nav__play:hover {
  filter: brightness(1.25) drop-shadow(0 0 8px rgba(226, 182, 81, 0.42));
  transform: translateY(-2px);
}

@keyframes wow-sky-drift {
  to {
    transform: translate3d(3%, -2%, 0) rotate(2deg);
  }
}

@keyframes wow-mist-breathe {
  from {
    opacity: 0.25;
    transform: translateX(-2%) scale(0.94);
  }
  to {
    opacity: 0.48;
    transform: translateX(3%) scale(1.08);
  }
}

@keyframes wow-star {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.55);
  }
  48% {
    opacity: 0.9;
    transform: scale(1.35);
  }
}

@keyframes wow-status-pulse {
  0%,
  100% {
    opacity: 0.64;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes wow-edge-crystal {
  0% {
    opacity: 0.32;
    filter: blur(10px) brightness(0.86);
    transform: translateY(-50%) scale(0.82);
  }
  52% {
    opacity: 0.76;
    filter: blur(7px) brightness(1.24);
    transform: translateY(-50%) scale(1.12);
  }
  100% {
    opacity: 0.48;
    filter: blur(9px) brightness(1);
    transform: translateY(-50%) scale(0.96);
  }
}

@keyframes wow-button-energy {
  0%,
  100% {
    filter: brightness(0.86);
    opacity: 0.62;
    transform: scaleX(0.82);
  }
  50% {
    filter: brightness(1.42);
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes wow-button-impact {
  0% {
    opacity: 0.35;
    transform: scale(0.65);
  }
  38% {
    opacity: 1;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@keyframes wow-logo-breathe {
  0%,
  100% {
    filter:
      drop-shadow(0 17px 15px rgba(0, 0, 0, 0.88))
      drop-shadow(-8px 0 11px rgba(76, 187, 255, 0.1))
      drop-shadow(8px 0 11px rgba(131, 239, 52, 0.08));
  }
  50% {
    filter:
      brightness(1.055)
      drop-shadow(0 19px 16px rgba(0, 0, 0, 0.9))
      drop-shadow(-10px 0 16px rgba(76, 187, 255, 0.26))
      drop-shadow(10px 0 16px rgba(131, 239, 52, 0.2));
  }
}

@keyframes wow-logo-aura {
  from {
    opacity: 0.34;
    transform: scale(0.9);
  }
  to {
    opacity: 0.68;
    transform: scale(1.05);
  }
}

@keyframes wow-logo-inner-glow {
  0%,
  100% {
    filter: brightness(1.55) contrast(1.18) saturate(1.48);
    opacity: 0.12;
  }
  48% {
    filter: brightness(1.94) contrast(1.28) saturate(1.7);
    opacity: 0.34;
  }
}

@keyframes wow-logo-inner-flash {
  0%,
  100% {
    opacity: 0.2;
  }
  32% {
    filter: brightness(2.45) contrast(1.35) saturate(1.9);
    opacity: 0.88;
  }
}

@keyframes wow-crystal-pulse {
  0%,
  100% {
    filter: blur(3px) brightness(0.86);
    opacity: 0.38;
    transform: scale(0.92);
  }
  50% {
    filter: blur(2px) brightness(1.48);
    opacity: 0.84;
    transform: scale(1.08);
  }
}

@keyframes wow-blade-runes {
  0%,
  100% {
    opacity: 0.32;
    transform: translateX(-50%) scaleX(0.75);
  }
  50% {
    opacity: 0.82;
    transform: translateX(-50%) scaleX(1.12);
  }
}

@keyframes wow-particle-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.5);
  }
  18% {
    opacity: 0.75;
  }
  78% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -128px, 0) scale(1.15);
  }
}

@keyframes wow-logo-impact {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.28);
  }
  70% {
    opacity: 0.66;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

@keyframes wow-logo-strike {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    filter:
      brightness(1.42)
      saturate(1.25)
      drop-shadow(0 0 25px rgba(91, 203, 255, 0.82));
    transform: translateY(3px) scale(0.975);
  }
  68% {
    transform: translateY(-5px) scale(1.035);
  }
}

@media (max-width: 919px) {
  .wow-header {
    min-height: 390px;
    overflow: visible;
  }

  .wow-header__topline {
    width: calc(100% - 28px);
  }

  .wow-universal-nav {
    margin-top: 58px;
  }
}

@media (max-width: 620px) {
  .wow-header {
    min-height: 340px;
  }

  .wow-header__topline {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
  }

  .wow-header__status {
    letter-spacing: 0.05em;
  }

  .wow-universal-nav {
    margin-top: 50px;
  }

  .wow-universal-nav.is-collapsed .wow-universal-nav__rail {
    right: 3%;
    left: 3%;
  }

  .wow-universal-nav.is-collapsed .wow-universal-nav__toggle {
    right: 5%;
    min-width: 92px;
  }

  .wow-universal-nav.is-collapsed .wow-menu-logo {
    width: min(330px, 84vw);
    transform: translate(-50%, -33%);
  }

  .wow-universal-nav.is-collapsed .wow-universal-nav__drawer {
    right: 1%;
    left: 1%;
    padding: 13px;
  }

  .wow-universal-nav__drawer-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .wow-universal-nav__drawer-list .wow-nav-button {
    justify-content: flex-start;
    padding-inline: 22%;
  }

  .wow-menu-logo__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wow-header *,
  .wow-header *::before,
  .wow-header *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .wow-nav-button:hover,
  .wow-menu-logo:hover .wow-menu-logo__image {
    transform: none;
  }
}
