.nav-update {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-update:hover {
  color: var(--gold-2);
}

.nav-new-badge {
  position: absolute;
  top: -13px;
  right: -24px;
  min-width: 31px;
  padding: 2px 5px;
  color: #fff;
  background: linear-gradient(135deg, #ff2b2b, #b40000);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(190, 0, 0, 0.34);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  transform: rotate(-18deg);
}

.mobile-update-entry {
  display: none;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 24px;
}

.update-modal.is-open {
  display: grid;
}

.update-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(10px);
}

.update-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(820px, calc(100svh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 229, 163, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(20, 18, 24, 0.96), rgba(7, 9, 15, 0.98)),
    radial-gradient(circle at 74% 18%, rgba(112, 216, 255, 0.14), transparent 32%);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62), 0 0 54px rgba(245, 201, 107, 0.1);
}

.update-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 14px 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.update-close::before,
.update-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 10px;
  width: 16px;
  height: 2px;
  background: #fff1c8;
}

.update-close::before { transform: rotate(45deg); }
.update-close::after { transform: rotate(-45deg); }

.update-head {
  padding: 34px 34px 20px;
}

.update-kicker {
  margin-bottom: 10px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.update-head h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.update-head p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 244, 224, 0.74);
}

.update-panel {
  padding: 0 34px 34px;
}

.update-panel.is-active {
  display: block;
}

.god-events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.update-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid rgba(245, 201, 107, 0.24);
  border-radius: 12px;
  color: #ffe8a6;
  background:
    linear-gradient(90deg, rgba(245, 201, 107, 0), rgba(245, 201, 107, 0.13), rgba(245, 201, 107, 0)),
    rgba(8, 10, 16, 0.58);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.update-history-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 -2px;
  color: rgba(255, 232, 166, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.update-history-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 201, 107, 0.34), transparent);
}

.god-event {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  aspect-ratio: 2000 / 662;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(9, 11, 17, 0.96), rgba(14, 16, 24, 0.56)),
    radial-gradient(circle at 80% 22%, rgba(245, 201, 107, 0.12), transparent 34%);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.god-event.is-past {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.god-event::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.86) 0%, rgba(5, 7, 12, 0.64) 28%, rgba(5, 7, 12, 0.18) 52%, transparent 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

html[dir="rtl"] .god-event::before {
  background:
    linear-gradient(270deg, rgba(5, 7, 12, 0.86) 0%, rgba(5, 7, 12, 0.64) 28%, rgba(5, 7, 12, 0.18) 52%, transparent 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.god-event.is-past::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.78) 36%, rgba(5, 7, 12, 0.34) 64%, rgba(5, 7, 12, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34));
}

html[dir="rtl"] .god-event.is-past::before {
  background:
    linear-gradient(270deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.78) 36%, rgba(5, 7, 12, 0.34) 64%, rgba(5, 7, 12, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34));
}

.god-event-content {
  position: relative;
  z-index: 2;
  width: min(450px, 48%);
  padding: 24px;
}

.god-date {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(245, 201, 107, 0.32);
  border-radius: 999px;
  color: #ffe8a6;
  background: rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 900;
}

.god-type {
  margin-bottom: 8px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.god-names {
  margin: 0;
  color: #fff6df;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.12;
  font-weight: 950;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.54);
}

.god-note {
  margin: 10px 0 0;
  color: rgba(255, 244, 224, 0.66);
  font-size: 13px;
}

.god-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 700ms ease, filter 700ms ease;
}

html[dir="rtl"] .god-banner {
  transform: scaleX(-1) scale(1.01);
}

.god-event.is-past .god-banner {
  filter: saturate(0.58) brightness(0.7);
}

.god-event.is-past .god-type {
  color: rgba(112, 216, 255, 0.66);
}

.god-event.is-past .god-date {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 232, 166, 0.74);
}

.god-event.is-past .god-names {
  color: rgba(255, 246, 223, 0.82);
}

.god-event:hover .god-banner {
  transform: scale(1.035);
  filter: saturate(1.06) brightness(1.04);
}

html[dir="rtl"] .god-event:hover .god-banner {
  transform: scaleX(-1) scale(1.035);
}

.god-event.is-past:hover .god-banner {
  filter: saturate(0.7) brightness(0.78);
}

@media (max-width: 780px) {
  .update-modal {
    padding: 12px;
  }

  .update-dialog {
    max-height: calc(100svh - 24px);
  }

  .update-head,
  .update-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .god-event {
    min-height: 178px;
    aspect-ratio: auto;
  }

  .god-event-content {
    width: 64%;
    padding: 16px;
  }

  .god-names {
    font-size: clamp(21px, 7vw, 30px);
  }

  .nav-new-badge {
    top: -10px;
    right: -20px;
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(166px, auto);
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    overflow: hidden;
  }

  .brand-logo {
    width: clamp(92px, 24vw, 138px);
  }

  .language-switcher {
    min-width: 166px;
    max-width: 176px;
  }

  .mobile-update-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    max-width: 114px;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid rgba(245, 201, 107, 0.36);
    border-radius: 999px;
    color: #fff2c8;
    background: rgba(8, 10, 16, 0.66);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-update-entry [data-update-label] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-new-dot {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    color: #fff;
    background: linear-gradient(135deg, #ff2b2b, #b40000);
    font-size: 8px;
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(128px, auto);
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .brand-logo {
    width: clamp(82px, 22vw, 110px);
  }

  .mobile-update-entry {
    max-width: 96px;
    min-height: 32px;
    padding: 0 7px;
    font-size: 11px;
    gap: 4px;
  }

  .mobile-new-dot {
    height: 14px;
    padding: 0 3px;
    font-size: 7px;
  }

  .language-switcher {
    min-width: 128px;
    max-width: 136px;
    height: 34px;
    padding: 0 6px;
    gap: 5px;
  }

  .language-globe {
    width: 16px;
    height: 16px;
  }

  .language-switcher select {
    font-size: 11px;
  }
}

@media (max-width: 370px) {
  .brand-logo {
    display: none;
  }

  .mobile-update-entry {
    max-width: 108px;
  }
}
