:root {
  --bg: #0b0f14;
  --card: #121925;
  --text: #e7eef7;
  --muted: #a7b3c2;
  --line: #223043;
  --accent: #6aa9ff;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 25, 37, 0.65);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}
.nav .left {
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}
.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.links a {
  padding: 8px 10px;
  border-radius: 10px;
}
.links a.active {
  background: rgba(106, 169, 255, 0.16);
  border: 1px solid rgba(106, 169, 255, 0.25);
}

.hero {
  padding: 28px 0 12px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 40px;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(106, 169, 255, 0.35);
  background: rgba(106, 169, 255, 0.16);
  color: var(--text);
}
.btn:hover {
  border-color: rgba(106, 169, 255, 0.6);
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.small {
  color: var(--muted);
  font-size: 14px;
}
/* --- Nav layout helpers (clock + auth) --- */
.nav .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav .nav-left .clock {
  opacity: 0.9;
}
.nav .nav-right {
  display: flex;
  align-items: center;
}

/* ---- Clock + footer alignment tweaks ---- */
.nav .clockline {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.footer {
  text-align: center;
  width: 100%;
  margin-top: 24px;
}

/* --- Clock + footer tweaks --- */
.clockline {
  margin-top: 2px;
  opacity: 0.9;
}

.footer {
  text-align: center;
  width: 100%;
  margin-top: 24px;
}

/* --- Header layout polish --- */
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav .left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 340px;
}
.nav .links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex: 1;
}
.nav [data-auth-slot] {
  min-width: 140px;
  display: flex;
  justify-content: flex-end;
}
.clockline {
  white-space: nowrap;
  opacity: 0.85;
}

/* ===== Nav polish overrides (clock left, links centered, auth right) ===== */
header.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Left zone: clock */
header.nav .left {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Hide brand text in the top bar (per request) */
header.nav .brand {
  display: none !important;
}

/* Clock: no wrap + remove inline margin */
#worldClock {
  white-space: nowrap;
  margin-left: 0 !important;
}

/* Center zone: nav links/buttons */
header.nav .links {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 0 auto;
}

/* Right zone: Discord/Login button */
header.nav [data-auth-slot],
header.nav #authSlot {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
}

/* Footer centered */
.footer {
  text-align: center;
}
.footer > * {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Nav layout polish ===== */
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Left cluster: brand + clock */
.nav .left {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap; /* keep clock on one line */
}

/* Center nav links */
.nav .links {
  margin: 0 auto; /* centers this block */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

/* Right auth slot */
.nav [data-auth-slot],
.nav #authSlot {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* ===== Nav layout polish ===== */
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Left cluster: brand + clock */
.nav .left {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap; /* keep clock on one line */
}

/* Center nav links */
.nav .links {
  margin: 0 auto; /* centers this block */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

/* Right auth slot */
.nav [data-auth-slot],
.nav #authSlot {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* ===== Nav layout override (wins over inline styles) ===== */
header.nav .wrap {
  max-width: 100% !important; /* lets left side go farther left */
  justify-content: flex-start !important; /* overrides inline space-between */
  gap: 16px !important;
}

/* Left cluster */
header.nav .left {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap; /* keep brand + clock on one line */
}

/* Center buttons */
header.nav .links {
  margin-left: auto;
  margin-right: auto; /* centers the nav links block */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

/* Right button */
header.nav [data-auth-slot],
header.nav #authSlot {
  margin-left: auto; /* pushes auth to the far right */
  display: flex;
  align-items: center;
}

/* Footer centered */
.footer {
  text-align: center;
}

/* ===== FINAL NAV OVERRIDE (3-column grid: left / center / right) ===== */
header.nav .wrap {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 16px !important;
  justify-content: unset !important;
}

header.nav .left {
  justify-self: start !important;
  white-space: nowrap !important;
}

header.nav .links {
  justify-self: center !important;
}

header.nav [data-auth-slot],
header.nav #authSlot {
  justify-self: end !important;
}

/* ===== FINAL NAV OVERRIDE (3-column grid: left / center / right) ===== */
header.nav .wrap {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 16px !important;
  justify-content: unset !important;
}

header.nav .left {
  justify-self: start !important;
  white-space: nowrap !important;
}

header.nav .links {
  justify-self: center !important;
}

header.nav [data-auth-slot],
header.nav #authSlot {
  justify-self: end !important;
}
/* ===== FINAL NAV LAYOUT (3-zone) ===== */
header.nav .wrap {
  max-width: 100% !important;
  padding-left: 24px;
  padding-right: 24px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

/* LEFT: clock (and nothing else) */
header.nav .left {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 360px;
  justify-content: flex-start !important;
}

header.nav .brand {
  display: none !important; /* hide DesolateMMO in the top bar */
}

#worldClock {
  white-space: nowrap;
}

/* CENTER: nav links */
header.nav .links {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 !important;
  white-space: nowrap;
}

/* RIGHT: auth button */
header.nav [data-auth-slot],
header.nav #authSlot {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-width: 200px;
}

/* FOOTER centered */
.footer {
  text-align: center;
}
/* ===== Discord badge ===== */
.btn.discord-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.discord-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.18);
}

.discord-user {
  opacity: 0.9;
  font-size: 13px;
}
/* Discord avatar in header badge */
.discord-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-block;
}
/* ===== Discord avatar badge ===== */
.discord-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-block;
  vertical-align: middle;
}
.discord-user {
  font-size: 13px;
  opacity: 0.95;
}

/* ===== Discord Avatar Dropdown ===== */
.discord-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: rgba(18, 25, 37, 0.98);
  border: 1px solid rgba(34, 48, 67, 0.9);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  padding: 8px;
  z-index: 9999;
  display: none;
}

.discord-menu.show {
  display: block;
}

.discord-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
}

.discord-menu a:hover {
  background: rgba(106, 169, 255, 0.14);
  border: 1px solid rgba(106, 169, 255, 0.18);
}

.discord-menu .sep {
  height: 1px;
  background: rgba(34, 48, 67, 0.9);
  margin: 6px 2px;
}

.discord-menu .muted {
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px 2px;
}

/* Make badge a dropdown anchor */
.discord-badge {
  position: relative; /* for absolute dropdown */
  cursor: pointer;
}

/* ===== Cosmetics: Frames ===== */
.dmmo-frame-bronze .discord-avatar {
  box-shadow:
    0 0 0 2px rgba(205, 127, 50, 0.95),
    0 0 0 5px rgba(205, 127, 50, 0.22);
}

.dmmo-frame-bronze {
  box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.25);
}

.dmmo-frame-silver .discord-avatar {
  box-shadow:
    0 0 0 2px rgba(192, 192, 192, 0.95),
    0 0 0 5px rgba(192, 192, 192, 0.22);
}

.dmmo-frame-gold .discord-avatar {
  box-shadow:
    0 0 0 2px rgba(255, 215, 0, 0.95),
    0 0 0 5px rgba(255, 215, 0, 0.22);
}

@keyframes dmmoGoldPulse {
  0% {
    box-shadow:
      0 0 0 2px rgba(255, 215, 0, 0.95),
      0 0 0 5px rgba(255, 215, 0, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 215, 0, 0.95),
      0 0 0 7px rgba(255, 215, 0, 0.28);
  }
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 215, 0, 0.95),
      0 0 0 5px rgba(255, 215, 0, 0.18);
  }
}

.dmmo-frame-gold .discord-avatar {
  animation: dmmoGoldPulse 2.2s ease-in-out infinite;
}

/* Products dropdown */
.links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-drop-trigger::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.75;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(15,15,15,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown.active > .nav-drop-trigger {
  opacity: 1;
}

/* ===== FINAL PRODUCTS NAV FIX ===== */
header.nav .nav-wrap {
  max-width: 100% !important;
  padding-left: 24px;
  padding-right: 24px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

header.nav .nav-left {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 260px;
  white-space: nowrap;
}

header.nav .brand {
  display: none !important;
}

header.nav .links {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 !important;
  white-space: nowrap;
}

header.nav .nav-right,
header.nav [data-auth-slot],
header.nav #authSlot {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-width: 180px;
}

header.nav .links > a,
header.nav .nav-drop-trigger {
  padding: 8px 10px;
  border-radius: 10px;
}

header.nav .nav-drop-trigger.active,
header.nav .links > a.active {
  background: rgba(106, 169, 255, 0.16);
  border: 1px solid rgba(106, 169, 255, 0.25);
}

header.nav .nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

header.nav .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(15,15,15,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
  z-index: 1000;
}

header.nav .nav-dropdown:hover .nav-dropdown-menu,
header.nav .nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

header.nav .nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

header.nav .nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
}


