/* Luxor2 ambient redesign */
:root {
  --luxor-bg: url("../img/luxor-violet-bg.jpg");
  --luxor-hero-a: url("../img/luxor-arcane-hero.jpg");
  --luxor-hero-b: url("../img/luxor-portal-hero.jpg");
  --luxor-night: #05020d;
  --luxor-ink: rgba(6, 2, 18, 0.78);
  --luxor-ink-soft: rgba(18, 7, 39, 0.62);
  --luxor-violet: #a84dff;
  --luxor-blue: #40b9ff;
  --luxor-gold: #e9c46a;
  --luxor-pink: #f26dff;
  --luxor-border: rgba(181, 113, 255, 0.34);
  --luxor-border-strong: rgba(230, 196, 112, 0.54);
  --luxor-shadow: 0 24px 70px rgba(4, 1, 18, 0.72);
  --luxor-glow: 0 0 28px rgba(168, 77, 255, 0.32);
}

html {
  min-height: 100%;
  background: var(--luxor-night);
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: #f8ebff;
  background: transparent;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: -5vmax;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 1, 10, 0.94) 0%, rgba(3, 1, 10, 0.5) 25%, rgba(3, 1, 10, 0.12) 54%, rgba(3, 1, 10, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 1, 14, 0.34) 0%, rgba(4, 1, 11, 0.74) 66%, #05020d 100%),
    var(--luxor-bg) center top / cover no-repeat;
  filter: saturate(1.18) contrast(1.04);
  transform: scale(1.02);
  animation: luxorBgDrift 32s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 22%, rgba(168, 77, 255, 0.28), transparent 19rem),
    radial-gradient(circle at 76% 16%, rgba(64, 185, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 50% 88%, rgba(233, 196, 106, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(7, 2, 19, 0.06), rgba(6, 2, 18, 0.76) 62%, rgba(5, 2, 13, 0.95));
  mix-blend-mode: screen;
  opacity: 0.86;
  animation: luxorAuraPulse 18s ease-in-out infinite alternate;
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 0;
}

.site-header {
  padding-bottom: 26px;
}

.container {
  max-width: 1240px;
}

.top-bar {
  background:
    linear-gradient(90deg, rgba(5, 2, 18, 0), rgba(20, 8, 46, 0.82) 20%, rgba(11, 27, 61, 0.82) 50%, rgba(34, 8, 54, 0.84) 80%, rgba(5, 2, 18, 0));
  border: 1px solid rgba(168, 77, 255, 0.18);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 45px rgba(5, 0, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  min-height: 46px;
  z-index: 30;
}

.top-bar::before {
  content: "";
  position: absolute;
  inset: 0 10%;
  background: linear-gradient(90deg, transparent, rgba(233, 196, 106, 0.13), transparent);
  opacity: 0.65;
  animation: luxorHeaderSweep 8s linear infinite;
  pointer-events: none;
}

.top-bar::after {
  background: linear-gradient(90deg, transparent, rgba(64, 185, 255, 0.48), rgba(233, 196, 106, 0.64), rgba(168, 77, 255, 0.5), transparent);
  box-shadow: 0 0 20px rgba(168, 77, 255, 0.72), 0 0 30px rgba(64, 185, 255, 0.24);
  pointer-events: none;
}

.top-nav {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto minmax(78px, 1fr);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  min-height: 46px;
  margin: 0 auto;
}

.top-nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.top-nav-links > a {
  white-space: nowrap;
}

.top-nav .nav-lang-item {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  align-items: stretch;
  flex-direction: column;
  gap: 2px;
  position: static;
  margin-right: 10px;
  transform: none;
}

.top-nav .nav-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  min-height: 15px;
  padding: 1px 4px;
  border: 1px solid rgba(233, 196, 106, 0.35);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(9, 3, 25, 0.78), rgba(36, 11, 59, 0.7));
  color: #f8ecff;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.78;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24), inset 0 0 8px rgba(168, 77, 255, 0.1);
  backdrop-filter: blur(10px);
}

.top-nav .nav-lang-link .flag-icon {
  display: none;
}

.top-nav .nav-lang-link:hover,
.top-nav .nav-lang-link.is-active {
  color: #fff4d0;
  border-color: rgba(233, 196, 106, 0.68);
  background: linear-gradient(145deg, rgba(168, 77, 255, 0.32), rgba(64, 185, 255, 0.18));
  opacity: 1;
  box-shadow: 0 0 14px rgba(168, 77, 255, 0.2), inset 0 0 12px rgba(233, 196, 106, 0.12);
}

.logo-section {
  z-index: 1;
}

.top-nav a,
.dropdown--nav .dropdown__toggle {
  color: #f0dbff;
  text-shadow: 0 0 12px rgba(168, 77, 255, 0.28);
}

.top-nav a:hover,
.dropdown--nav .dropdown__toggle:hover {
  color: #fffaf0;
  background: linear-gradient(180deg, rgba(168, 77, 255, 0.18), rgba(64, 185, 255, 0.09));
  box-shadow: inset 0 -2px 0 rgba(233, 196, 106, 0.55);
}

.top-nav .nav-lang-link:hover,
.top-nav .nav-lang-link.is-active {
  color: #fff4d0;
  background: linear-gradient(145deg, rgba(168, 77, 255, 0.32), rgba(64, 185, 255, 0.18));
  box-shadow: 0 0 16px rgba(168, 77, 255, 0.18), inset 0 0 10px rgba(233, 196, 106, 0.12);
}

.dropdown__toggle::after {
  content: "\25BE";
}

.dropdown__menu-inner {
  background: linear-gradient(145deg, rgba(11, 4, 31, 0.94), rgba(23, 8, 51, 0.88));
  border-color: rgba(233, 196, 106, 0.32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72), 0 0 26px rgba(168, 77, 255, 0.18);
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  display: block;
}

.dropdown--nav .dropdown__menu {
  top: calc(100% - 1px);
  padding-top: 0;
}

.dropdown--nav .dropdown__menu-inner {
  min-width: 190px;
}

.logo-center {
  margin-top: 24px;
}

.logo-center a {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.logo-center a::before,
.logo-center a::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
}

.logo-center a::before {
  width: 84%;
  height: 78%;
  background: conic-gradient(from 0deg, transparent, rgba(64, 185, 255, 0.5), rgba(233, 196, 106, 0.65), rgba(168, 77, 255, 0.52), transparent);
  filter: blur(20px);
  opacity: 0.78;
  animation: luxorLogoAura 9s linear infinite;
}

.logo-center a::after {
  width: 56%;
  height: 52%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36), rgba(168, 77, 255, 0.22) 42%, transparent 70%);
  opacity: 0.42;
  animation: luxorLogoPulse 4.8s ease-in-out infinite alternate;
}

.logo-image {
  max-width: min(650px, 88vw);
  filter:
    drop-shadow(0 0 12px rgba(233, 196, 106, 0.5))
    drop-shadow(0 0 28px rgba(168, 77, 255, 0.42))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.72));
  animation: luxorLogoFloat 6.4s ease-in-out infinite;
  transform-origin: center;
}

.logo-image:hover {
  transform: scale(1.06) translateY(-4px);
}

.main-inner {
  padding-top: 16px;
}

.home-layout {
  gap: 22px;
}

.home-left,
.home-center,
.home-right {
  gap: 18px;
}

.panel,
.home-center .panel,
.admin-stat-card,
.account-info-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 7, 42, 0.72), rgba(8, 3, 24, 0.58)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid var(--luxor-border);
  box-shadow: var(--luxor-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(135%);
}

.panel::before,
.admin-stat-card::before,
.account-info-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 22%, rgba(255, 255, 255, 0.1) 36%, transparent 50% 100%),
    radial-gradient(circle at 100% 0, rgba(64, 185, 255, 0.12), transparent 18rem);
  opacity: 0.6;
  transform: translateX(-45%);
  animation: luxorGlassSweep 12s ease-in-out infinite;
}

.panel__header,
.page-content-wrapper .panel__header,
.user-panel-box .panel__header,
.ranking-panel-box .panel__header,
.account-info-header {
  position: relative;
  background:
    linear-gradient(90deg, rgba(9, 3, 26, 0.92), rgba(49, 17, 83, 0.82) 42%, rgba(13, 36, 72, 0.78) 100%);
  border-bottom: 1px solid rgba(233, 196, 106, 0.38);
  color: #fff4d0;
  text-shadow: 0 0 13px rgba(233, 196, 106, 0.22);
}

.panel__header::after,
.account-info-header::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(64, 185, 255, 0.62), rgba(233, 196, 106, 0.82), transparent);
}

.panel__body,
.account-info-content {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 3, 27, 0.28), rgba(8, 3, 20, 0.1));
}

.page-content-wrapper {
  min-height: 610px;
}

.page-title {
  color: #fff5cf;
  letter-spacing: 1.4px;
}

.arcane-showcase {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(233, 196, 106, 0.36);
  background:
    linear-gradient(90deg, rgba(5, 2, 17, 0.88), rgba(5, 2, 17, 0.2) 45%, rgba(5, 2, 17, 0.74)),
    var(--luxor-hero-a) center 46% / cover no-repeat;
  box-shadow: 0 24px 70px rgba(4, 1, 16, 0.65), 0 0 32px rgba(168, 77, 255, 0.2);
  isolation: isolate;
}

.arcane-showcase::before,
.arcane-showcase::after,
.arcane-showcase__glow,
.arcane-showcase__rift {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arcane-showcase::before {
  background:
    linear-gradient(90deg, rgba(5, 2, 17, 0.78), rgba(5, 2, 17, 0.12) 48%, rgba(5, 2, 17, 0.72)),
    var(--luxor-hero-b) center 48% / cover no-repeat;
  opacity: 0;
  animation: luxorHeroFade 20s ease-in-out infinite;
  z-index: 0;
}

.arcane-showcase::after {
  background:
    radial-gradient(circle at 22% 26%, rgba(242, 109, 255, 0.34), transparent 10rem),
    radial-gradient(circle at 74% 26%, rgba(64, 185, 255, 0.18), transparent 13rem),
    linear-gradient(180deg, transparent 0%, rgba(5, 2, 15, 0.42) 100%);
  mix-blend-mode: screen;
  animation: luxorHeroLight 7s ease-in-out infinite alternate;
  z-index: 1;
}

.arcane-showcase__glow {
  background:
    radial-gradient(circle at 44% 52%, rgba(255, 255, 255, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 36%, rgba(233, 196, 106, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 40%, rgba(168, 77, 255, 0.44) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 72%, rgba(64, 185, 255, 0.26) 0 1px, transparent 2px);
  background-size: 170px 170px, 230px 230px, 260px 260px, 210px 210px;
  opacity: 0.74;
  animation: luxorSparkFlow 15s linear infinite;
  z-index: 2;
}

.arcane-showcase__rift {
  inset: auto 8% 0 8%;
  height: 42%;
  background: linear-gradient(90deg, transparent, rgba(168, 77, 255, 0.24), rgba(64, 185, 255, 0.18), transparent);
  filter: blur(18px);
  transform: translateY(34%);
  animation: luxorRift 6s ease-in-out infinite alternate;
  z-index: 2;
}

.news-list {
  max-height: 650px;
  padding-right: 8px;
}

.news-item {
  position: relative;
  background:
    linear-gradient(145deg, rgba(11, 4, 31, 0.76), rgba(23, 8, 47, 0.54)),
    url("../img/news-bg-2.png") right bottom / min(56%, 330px) auto no-repeat;
  border-color: rgba(168, 77, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.news-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 86% 90%, rgba(233, 196, 106, 0.16), transparent 12rem);
}

.news-item:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 196, 106, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 26px rgba(168, 77, 255, 0.2);
}

.news-title-wrapper {
  position: relative;
  border-bottom-color: rgba(233, 196, 106, 0.4);
}

.news-title-wrapper h2,
.section-title,
.form-section-title {
  color: #fff3cf;
}

.news-content,
.page-content {
  color: #f1ddff;
}

.news-date,
.page-date {
  color: #d8c6ff;
}

.stats-list li,
.ranking-entry,
.info-row {
  border-bottom-color: rgba(168, 77, 255, 0.24);
}

.stats-list li {
  border-radius: 4px;
  transition: background 0.24s ease, transform 0.24s ease;
}

.stats-list li:hover,
.ranking-entry:hover {
  background: rgba(64, 185, 255, 0.08);
  transform: translateX(2px);
}

.stats-list span,
.stats-list strong,
.player-name,
.guild-name {
  color: #f3e1ff;
}

.stats-list strong,
.player-level,
.guild-level,
.admin-stat-card__value {
  color: #fff0c1;
  text-shadow: 0 0 12px rgba(233, 196, 106, 0.24);
}

.player-level,
.guild-level {
  background: linear-gradient(135deg, rgba(168, 77, 255, 0.24), rgba(64, 185, 255, 0.12));
  border-color: rgba(233, 196, 106, 0.35);
}

.btn,
.login-button,
.pagination-btn,
.pagination-current,
.user-panel-nav .btn {
  background: linear-gradient(135deg, rgba(90, 34, 153, 0.86), rgba(20, 82, 139, 0.78));
  border-color: rgba(233, 196, 106, 0.32);
  color: #fff3cf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.btn:hover,
.login-button:hover,
.pagination-btn:hover,
.user-panel-nav .btn:hover {
  background: linear-gradient(135deg, rgba(168, 77, 255, 0.88), rgba(64, 185, 255, 0.74));
  border-color: rgba(233, 196, 106, 0.6);
  box-shadow: 0 0 22px rgba(168, 77, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-login {
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(168, 77, 255, 0.9), rgba(64, 185, 255, 0.66)),
    url("../img/btn-login.jpg") center / cover no-repeat;
  border: 1px solid rgba(233, 196, 106, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), 0 0 22px rgba(168, 77, 255, 0.18);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36), 0 0 28px rgba(64, 185, 255, 0.22);
}

.form-input,
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  background: rgba(5, 2, 18, 0.55);
  border-color: rgba(168, 77, 255, 0.35);
  color: #fff6ff;
  backdrop-filter: blur(8px);
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
  background: rgba(10, 4, 28, 0.78);
  border-color: rgba(233, 196, 106, 0.58);
  box-shadow: 0 0 0 2px rgba(233, 196, 106, 0.1), 0 0 18px rgba(168, 77, 255, 0.28);
}

.download-table tbody tr,
.ranking-table tbody tr,
.panel-section-content,
.account-info-box {
  background: rgba(9, 3, 24, 0.62);
}

.download-table tbody tr:hover,
.ranking-table tbody tr:hover {
  background: rgba(64, 185, 255, 0.09);
}

.site-footer {
  margin-top: 140px;
  background: linear-gradient(90deg, rgba(5, 2, 18, 0), rgba(11, 4, 31, 0.7), rgba(5, 2, 18, 0));
  border-top-color: rgba(233, 196, 106, 0.28);
  box-shadow: 0 -18px 42px rgba(5, 1, 18, 0.38);
}

.footer-copyright,
.footer-column a {
  color: #f8ecff;
}

.panel-section-header::after {
  content: "\203A";
}

.terms-label input[type="checkbox"]:checked::after {
  content: "\2713";
}

@keyframes luxorBgDrift {
  0% {
    background-position: center top, center top, 50% 0%;
    transform: scale(1.02);
  }
  100% {
    background-position: center top, center top, 56% 4%;
    transform: scale(1.07);
  }
}

@keyframes luxorAuraPulse {
  0% {
    opacity: 0.64;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0.96;
    transform: translate3d(0, -1.2%, 0);
  }
}

@keyframes luxorHeaderSweep {
  0% {
    transform: translateX(-55%);
  }
  100% {
    transform: translateX(55%);
  }
}

@keyframes luxorLogoAura {
  to {
    transform: rotate(360deg);
  }
}

@keyframes luxorLogoPulse {
  from {
    transform: scale(0.9);
    opacity: 0.24;
  }
  to {
    transform: scale(1.18);
    opacity: 0.56;
  }
}

@keyframes luxorLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes luxorGlassSweep {
  0%,
  62% {
    transform: translateX(-54%);
    opacity: 0.18;
  }
  78% {
    opacity: 0.58;
  }
  100% {
    transform: translateX(54%);
    opacity: 0.2;
  }
}

@keyframes luxorHeroFade {
  0%,
  38% {
    opacity: 0;
    transform: scale(1.02);
  }
  50%,
  84% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes luxorHeroLight {
  from {
    opacity: 0.5;
    transform: translateX(-1%);
  }
  to {
    opacity: 0.88;
    transform: translateX(1%);
  }
}

@keyframes luxorSparkFlow {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 170px -170px, -230px 230px, 260px -260px, -210px 210px;
  }
}

@keyframes luxorRift {
  from {
    opacity: 0.34;
    transform: translateY(38%) scaleX(0.82);
  }
  to {
    opacity: 0.72;
    transform: translateY(24%) scaleX(1.08);
  }
}

@media (max-width: 1024px) {
  .top-nav {
    grid-template-columns: minmax(46px, 1fr) auto minmax(46px, 1fr);
    max-width: 100%;
  }

  .top-nav-links > a {
    padding: 12px 14px;
    font-size: 10px;
    letter-spacing: 1.1px;
  }

  .top-nav .nav-lang-item {
    margin-right: 0;
  }

  .logo-image {
    max-width: min(470px, 78vw);
  }

  .arcane-showcase {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body::before {
    background-position: center top, center top, 42% 0;
  }

  .container,
  .main-inner,
  .home-layout,
  .home-left,
  .home-center,
  .home-right,
  .panel,
  .arcane-showcase {
    min-width: 0;
    max-width: 100%;
  }

  .top-bar,
  .top-nav.mobile-active {
    background: linear-gradient(180deg, rgba(8, 3, 25, 0.96), rgba(18, 7, 42, 0.92));
    border-radius: 0 0 12px 12px;
    border-color: rgba(233, 196, 106, 0.24);
  }

  .top-bar {
    display: flex;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 7px 8px 8px;
    overflow: visible;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(5, 0, 20, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .top-nav,
  .top-nav.mobile-active {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 64px;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  .top-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 420px;
    padding-right: 36px;
  }

  .top-nav .top-nav-links > a {
    flex: 1 1 calc(33.333% - 5px);
    min-width: 0;
    min-height: 28px;
    padding: 7px 6px;
    font-size: 8.6px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border: 1px solid rgba(181, 113, 255, 0.18);
    border-radius: 5px;
    background: rgba(5, 2, 18, 0.24);
  }

  .top-nav .nav-lang-item {
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    width: auto;
    padding: 0;
    justify-content: center;
    border-bottom: 0;
  }

  .top-nav .nav-lang-link {
    min-width: 28px;
    min-height: 16px;
    padding: 2px 3px;
    font-size: 7.5px;
    border-radius: 3px;
  }

  .mobile-menu-toggle,
  body.menu-open::before {
    display: none !important;
  }

  .top-nav.mobile-active .dropdown--nav .dropdown__menu,
  body.menu-open .dropdown--nav .dropdown__menu {
    display: block;
    position: static;
    width: 100%;
    min-width: 0;
    padding-top: 0;
  }

  .top-nav.mobile-active .dropdown--nav .dropdown__menu-inner,
  body.menu-open .dropdown--nav .dropdown__menu-inner {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(5, 2, 18, 0.36);
  }

  .mobile-menu-toggle {
    background: rgba(6, 2, 18, 0.7);
    border: 1px solid rgba(233, 196, 106, 0.32);
    border-radius: 8px;
    backdrop-filter: blur(10px);
  }

  .hamburger-line {
    background: #fff0c1;
    box-shadow: 0 0 10px rgba(168, 77, 255, 0.45);
  }

  .logo-center {
    margin: 18px 0 8px;
  }

  .logo-image {
    max-width: min(330px, 82vw);
  }

  .main-inner {
    padding-top: 6px;
  }

  .arcane-showcase {
    min-height: 185px;
    background-position: 38% center;
  }

  .arcane-showcase::before {
    background-position: 48% center;
  }

  .page-content-wrapper {
    min-height: auto;
  }

  .stats-list li,
  .ranking-entry,
  .info-row {
    gap: 12px;
  }

  .stats-list span,
  .player-name,
  .guild-name,
  .info-label {
    min-width: 0;
  }

  .stats-list span {
    flex: 1 1 auto;
  }

  .stats-list strong,
  .player-level,
  .guild-level,
  .info-value {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 6px 5px 7px;
  }

  .top-nav {
    min-height: 60px;
  }

  .top-nav-links {
    gap: 3px;
    padding-right: 32px;
  }

  .top-nav .top-nav-links > a {
    min-height: 26px;
    padding: 6px 4px;
    font-size: 7.9px;
    letter-spacing: 0.7px;
  }

  .top-nav .nav-lang-link {
    min-width: 26px;
    min-height: 15px;
    padding: 1px 3px;
    font-size: 7px;
  }

  .logo-image {
    max-width: min(270px, 84vw);
  }

  .arcane-showcase {
    min-height: 150px;
    border-radius: 6px;
  }

  .panel,
  .home-center .panel,
  .admin-stat-card,
  .account-info-box {
    backdrop-filter: blur(10px) saturate(125%);
  }

  .site-footer {
    margin-top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
