:root {
  --bg: #0f1117;
  --accent: #aa0069;
  --text: #e6eaf0;
  --muted: #9aa4b4;
  --nav-height: 64px;
  --radius: 12px;
  font-family: 'Poppins', system-ui, sans-serif;

}

  *  {box-sizing: border-box
  }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(circle at top, #10131c 0%, #080a0f 100%);
  color: var(--text);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
}

.logo {
  font-size: 2.25rem;
  font-weight: 100;
  font-family: sans-serif;
}

.hero-logo {
  width: 120px;          
  height: auto;
  margin-bottom: -2rem;   
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3.0rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1.0rem;
  font-weight: 700; 
  letter-spacing: 0.5px; 
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  text-align: center;
  height: 100vh; /* full viewport height */
  padding: 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/back.png') center/cover no-repeat;
  filter: blur(5px) brightness(0.6) saturate(0.8);
  z-index: 0; /* behind content */
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeIn 1.2s ease;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.server-info {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  padding: .75rem 1.25rem;
  border-radius: 14px;
  color: var(--muted);
  font-size: .95rem;
}

.server-info .label { color: var(--muted); }

.server-info strong {
  margin-left: 0.4rem;
}

footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.3);
}

.server-info .clickable-ip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color .2s ease, transform .2s ease;
}

.server-info .clickable-ip:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.server-info .emoji { opacity: .85; font-size: 1rem; }

.server-info .copy-tooltip {
  position: absolute;
  bottom: -130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: .3rem .6rem;
  border-radius: 8px;
  font-size: .8rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10;
}

.server-info .copy-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(20px);
}

/* =========================
        Rules Page 
========================= */

/* Hero / Background */
.rules-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* scrollable, not vertically centered */
  text-align: center;
  padding: calc(var(--nav-height) + 4rem) 1.5rem 4rem 1.5rem; /* top + bottom spacing */
  position: relative;
  overflow: hidden;
}

/* Background Image Layer */
.rules-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/back.png') center/cover no-repeat;
  filter: blur(5px) brightness(0.6) saturate(0.8);
  z-index: 0;
}

/* Dark Tint Overlay */
.rules-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

/* Rules Card */
.rules-page {
  position: relative;
  z-index: 2; /* above background layers */
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255,255,255,0.05); /* frosted card */
  border-radius: var(--radius);
  color: var(--text);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  text-align: left;
  animation: fadeIn 1.2s ease;
}

/* Heading */
.rules-page h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.rules-page p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Rules List */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  animation: fadeIn 1.2s ease;
}

.rules-list li {
  padding: 0.6rem 0.8rem;
  border-left: 3px solid white;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  line-height: 1.7;
  transition: background 0.2s, border-color 0.2s;
}

/* Hover Effect */
.rules-list li:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: var(--accent);
}

/* Logo */
.rules-logo {
  width: 120px; 
  height: auto;
  margin: 0 auto -2rem;   
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.4)); 
  animation: fadeIn 1.2s ease; 
}

/* Sub-line */
.rules-subtext {
  color: var(--muted);
  font-style: italic;
  margin-top: -1.3rem; 
  margin-bottom: 0.8rem; 
  opacity: 0.9;
}







.nav-container {
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ keeps navbar centered */
  width: 100%;
  position: relative; /* allows positioning the hamburger later */
}

/* HAMBURGER ICON */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  left: -.5rem; /* places it at the right edge */
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Turn hamburger into "X" when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.664);
  backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    text-align: center;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.show {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }
}