* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0d0a08;
  --bg-soft: #1b140f;
  --metal: #5b4635;
  --metal-light: #8e6f55;
  --bronze: #b48a60;
  --bronze-strong: #d4a676;
  --text: #f0e2cf;
  --muted: #c8b39d;
  --line: rgba(212, 166, 118, 0.25);
  --glass: rgba(21, 14, 10, 0.56);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(145, 101, 61, 0.10), transparent 30%),
    linear-gradient(135deg, rgba(15, 10, 7, 0.70), rgba(35, 23, 15, 0.50)),
    url("img/background.png") center/cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 4, 3, 0.25), rgba(15, 10, 7, 0.38)),
    radial-gradient(circle at center, transparent 20%, rgba(4, 3, 2, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}

.fog {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.42;
  mix-blend-mode: screen;
}

.fog-1 {
  width: 60vw;
  height: 18vw;
  left: -8vw;
  bottom: 6vh;
  background: radial-gradient(circle, rgba(255, 240, 220, 0.42) 0%, rgba(233, 208, 180, 0.22) 35%, rgba(210, 180, 150, 0.08) 55%, transparent 72%);
  animation: fogDriftOne 18s ease-in-out infinite alternate;
}

.fog-2 {
  width: 42vw;
  height: 14vw;
  right: -6vw;
  top: 14vh;
  background: radial-gradient(circle, rgba(240, 225, 205, 0.34) 0%, rgba(220, 195, 170, 0.18) 40%, transparent 72%);
  animation: fogDriftTwo 22s ease-in-out infinite alternate;
}

.fog-3 {
  width: 52vw;
  height: 15vw;
  left: 20vw;
  bottom: 20vh;
  background: radial-gradient(circle, rgba(255, 245, 230, 0.26) 0%, rgba(230, 210, 185, 0.12) 38%, transparent 72%);
  animation: fogDriftThree 26s ease-in-out infinite alternate;
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 48px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(46, 31, 21, 0.74), rgba(17, 12, 9, 0.58));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 22px;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.left-nav a,
.dropdown-toggle,
.auth-actions a {
  text-decoration: none;
}

.nav a,
.dropdown-toggle {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: 0.25s ease;
  position: relative;
}

.nav a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-strong), transparent);
  transition: width 0.3s ease;
}

.nav a:hover,
.dropdown-toggle:hover {
  color: #fff1de;
}

.nav a:hover::after,
.dropdown-toggle:hover::after {
  width: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}

.main-logo {
  width: 256px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 166, 118, 0.28));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 18px rgba(212, 166, 118, 0.4));
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: bold;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.btn-metal {
  color: var(--text);
  background: linear-gradient(180deg, rgba(96, 72, 50, 0.45), rgba(36, 25, 18, 0.85));
}

.btn-primary {
  color: #1b120c;
  background: linear-gradient(180deg, #d8b184, #a77747);
  border-color: rgba(245, 208, 170, 0.25);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-download {
  min-width: 150px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, rgba(39, 26, 18, 0.97), rgba(18, 12, 9, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
}

.dropdown-menu a:hover {
  background: rgba(212, 166, 118, 0.08);
}

.hero {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 48px));
  margin: 36px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
}

.hero-main {
  min-height: 700px;
}

.hero-card,
.panel-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero-card {
  min-height: 700px;
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  color: var(--bronze);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-card h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 820px;
  text-transform: uppercase;
  color: #f5e3cd;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.28);
}

.hero-card h1 span {
  color: var(--bronze-strong);
}

.lead {
  margin-top: 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
}

.feature-box {
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(212, 166, 118, 0.18);
  background: linear-gradient(180deg, rgba(97, 68, 44, 0.16), rgba(18, 13, 10, 0.40));
}

.feature-box strong {
  display: block;
  font-size: 1.15rem;
  color: #f3dfc8;
  margin-bottom: 8px;
}

.feature-box span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.status-panel {
  margin-top: 58px;
}

.panel-card {
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 1.5rem;
  color: #f2ddc3;
}

.status-live {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7ead9;
  background: linear-gradient(180deg, rgba(145, 103, 63, 0.65), rgba(87, 56, 33, 0.85));
  border: 1px solid rgba(212, 166, 118, 0.28);
}

.status-list {
  padding: 20px 0 8px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 166, 118, 0.1);
}

.status-row span {
  color: var(--muted);
}

.status-row strong {
  color: #f4dfc5;
  text-align: right;
}

.online-text {
  color: #e4b784 !important;
}

.player-meter {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(212, 166, 118, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #f3dec4;
}

.meter-bar {
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter-fill {
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7d5430, #d1a06d);
}

.meter-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-info {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(212, 166, 118, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.mini-info h3 {
  margin-bottom: 14px;
  color: #f3dec4;
}

.mini-info ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

/* Shaiya frame */
.shaiya-frame {
  position: relative;
  border: 1px solid rgba(212, 166, 118, 0.28);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 230, 202, 0.03),
    inset 0 0 26px rgba(212, 166, 118, 0.05);
}

.shaiya-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 166, 118, 0.16);
  border-radius: 18px;
  pointer-events: none;
}

.shaiya-frame::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 166, 118, 0.30);
  background: linear-gradient(180deg, rgba(141, 101, 66, 0.30), rgba(25, 17, 12, 0.88));
  box-shadow: 0 0 16px rgba(212, 166, 118, 0.08);
  transform: rotate(45deg);
  pointer-events: none;
}

.side-frame {
  background: linear-gradient(180deg, rgba(28, 19, 14, 0.66), rgba(13, 9, 7, 0.78));
}

@keyframes fogDriftOne {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    transform: translateX(12vw) translateY(-2vh) scale(1.08);
  }
}

@keyframes fogDriftTwo {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    transform: translateX(-10vw) translateY(3vh) scale(1.1);
  }
}

@keyframes fogDriftThree {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    transform: translateX(7vw) translateY(-2vh) scale(1.06);
  }
}

@media (max-width: 1150px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nav,
  .auth-actions {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .status-panel {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero {
    width: min(100% - 24px, 1400px);
  }

  .hero-card {
    padding: 42px 24px;
    min-height: auto;
  }

  .hero-card h1 {
    font-size: 2.2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-actions {
    flex-wrap: wrap;
  }

  .nav {
    gap: 14px;
    justify-content: center;
  }

  .main-logo {
    width: 200px;
  }

  .fog {
    opacity: 0.30;
    filter: blur(36px);
  }
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 166, 118, 0.18);
  background: linear-gradient(180deg, rgba(96, 72, 50, 0.22), rgba(36, 25, 18, 0.72));
  color: var(--text);
  font-weight: bold;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 202, 0.02);
}

#userPoints.user-info {
  color: #f3dec4;
  min-width: 120px;
}

#userName.user-info {
  color: #fff1de;
  min-width: 110px;
}

.user-only[style*="display:none"],
.guest-only[style*="display:none"] {
  display: none !important;
}

.status-live.is-online,
.online-text.is-online {
  color: #dff3d8 !important;
  border-color: rgba(108, 183, 113, 0.28);
  background: linear-gradient(180deg, rgba(59, 117, 58, 0.65), rgba(31, 74, 31, 0.85));
}

.status-live.is-offline,
.online-text.is-offline {
  color: #f8d7d7 !important;
  border-color: rgba(210, 95, 95, 0.28);
  background: linear-gradient(180deg, rgba(140, 60, 60, 0.65), rgba(82, 28, 28, 0.85));
}

@media (max-width: 1150px) {
  .auth-actions {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .auth-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .user-info {
    min-width: 100px;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  #userPoints.user-info,
  #userName.user-info {
    min-width: auto;
  }
}
