body {
      margin: 0;
      padding: 0;
      font-family: 'Raleway', sans-serif;
      background-color: #1a1a1a;
    }

    .navbar {
      background-color: #000;
      padding: 1rem 2rem;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .nav-left ul {
      list-style: none;
      display: flex;
      margin: 0;
      padding: 0;
    }

    .nav-left li {
      position: relative;
      margin-right: 1.5rem;
    }

    .nav-left a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      padding: 10px 15px;
      display: block;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #222;
      top: 100%;
      left: 0;
      min-width: 180px;
      border: 1px solid #444;
      z-index: 999;
    }

    .dropdown-content a {
      padding: 10px 15px;
      color: #fff;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background-color: #444;
    }

    .dropdown.open .dropdown-content {
      display: block;
    }

    .logo-text {
      font-weight: 700;
      font-size: 18px;
      letter-spacing: 1px;
    }

    .document {
      max-width: 800px;
      margin: 2rem auto;
      background: white url("images/combined_footer_overlay.png") no-repeat bottom right;
      background-size: 240px auto;
      padding: 2rem 3rem;
      color: #000;
      min-height: 100vh;
      box-sizing: border-box;
    }

    .doc-logo {
      text-align: center;
      margin-bottom: 1.5rem;
    }

    .doc-logo img {
      width: 120px;
      max-width: 100%;
      height: auto;
    }

    .title {
      text-align: center;
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 1rem;
    }

    p.welcome {
      text-align: center;
      font-size: 15px;
      color: #333;
      margin: 0.5rem 0 1rem 0;
    }

    /* ====== Multi-level dropdown ====== */
    .dropdown > a,
    .dropdown-submenu > a {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .arrow { display:inline-block; transition: transform 0.3s ease; }
    .dropdown.open > a .arrow,
    .dropdown-submenu.open > a .arrow {
      transform: rotate(90deg);
      transition-delay: 0.15s;
    }

    .dropdown-content,
    .dropdown-subcontent {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    .dropdown.open > .dropdown-content {
      max-height: 500px;
      opacity: 1;
    }
    .dropdown-submenu.open > .dropdown-subcontent {
      max-height: 300px;
      opacity: 1;
    }

    .dropdown-content a,
    .dropdown-subcontent a {
      opacity: 0;
      transform: translateY(-5px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .dropdown.open > .dropdown-content a,
    .dropdown-submenu.open > .dropdown-subcontent a {
      opacity: 1;
      transform: translateY(0);
    }

    /* Rules submenu styling */
    .dropdown-subcontent {
      background-color: #111;
      border-left: 3px solid #ff7a00;
    }
    .dropdown-subcontent a:hover { background-color: #222; }

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 3px solid #ff7a00;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.modal-content p {
  color: #333;
  font-size: 1rem;
}
.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: #ff7a00;
}


/* --- Login modal (shared) --- */
#loginModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#loginModal {
  background: #fff;
  color: #000;
  width: min(92vw, 420px);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-top: 4px solid #ff7a00;
}
#loginModal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee;
  font-weight: 700;
}
#loginModal header .close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
#loginModal .content {
  padding: 1rem;
  font-size: 0.98rem;
}
#loginModal .actions {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  justify-content: flex-end;
}
#loginModal .actions button {
  background: #ff7a00;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
#loginModal .actions button:hover {
  background: #e66a00;
}

/* Login link styling (keep consistent) */
.user-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.user-links a:hover {
  color: #ff7a00;
}


.exciting-msg {
  color: #ff7a00 !important;
  font-size: 0.9rem !important;
  margin-top: 0.5rem !important;
  text-align: center !important;
}



/* ===== Extracted from inline <style> blocks ===== */


.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 3px solid #ff7a00;
  z-index: 1000;
}
.fixed-footer a {
  color: white;
  font-size: 1.6rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.fixed-footer a:hover {
  color: #ff7a00;
}
/* Make room for the fixed footer */
.document { padding-bottom: 70px; }
@media (max-width: 500px) {
  .fixed-footer a { font-size: 1.4rem; }
}

/* Contact form styling */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contactForm label {
  font-weight: 600;
  margin-bottom: 4px;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

#contactForm textarea {
  min-height: 120px;
  resize: vertical;
}

#contactForm button {
  background-color: #ff7a00;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  width: auto !important;         /* force auto width */
  display: inline-block !important; /* prevent block stretching*/
}

#contactForm button:hover {
  background-color: #e66a00;
}

#contactForm .note {
  font-size: 0.85rem;
  color: #666;
  margin-top: -8px;
}

/* ===== Rules pages only (typography match index) ===== */
.rules-page h2 {
  font-size: 15px;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  font-weight: 700; /* same weight as index title */
}

.rules-page ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.rules-page li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Ensure contact form popup is hidden by default */
#popup {
  display: none;
}

/* Contact form send button size fix */
.contact-page #contactForm button[type="submit"] {
  display: inline-block;
  width: auto;
  padding: 10px 18px;
}

/* Hide the honeypot field so "Company" never shows */
.hp-wrap { 
  display: none !important; 
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =====================================================
   Fixed Top Navbar + Dropdown Layering Overrides
   (Appended by ChatGPT on 2025-08-10)
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500; /* Keep nav above content and footer */
}

/* Ensure page content clears the fixed navbar height */
body {
  padding-top: 72px; /* Adjust if your nav height differs */
}

/* Keep dropdown menus above everything else */
.dropdown-content,
.dropdown-subcontent {
  z-index: 1600;
}

/* Defensive: make sure dropdowns are positioned properly */
.dropdown-content {
  position: absolute;
}
.dropdown-subcontent {
  position: absolute;
}

/* Optional: if your footer is fixed, keep it below nav and dropdowns */
.fixed-footer {
  z-index: 1200;
}

/* =====================================================
   PATCH — Full-height dropdown, no internal scroll
   (merged directly per user's request)
   ===================================================== */

/* Prevent any ancestor from clipping */
.navbar, .nav-left li, .dropdown { overflow: visible !important; }

/* Dropdown panels should stack over footer and not scroll internally */
.dropdown-content,
.dropdown-subcontent {
  z-index: 2005 !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  transition: none !important;
}

/* Use simple on/off display with .open */
.dropdown-content { display: none !important; position: absolute; }
.dropdown-subcontent { display: none !important; position: absolute; }

/* Positioning when open */
.dropdown.open > .dropdown-content {
  display: block !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
}
.dropdown-submenu { position: relative !important; }
.dropdown-submenu.open > .dropdown-subcontent {
  display: block !important;
  top: 0 !important;
  left: 100% !important;
  margin-left: 8px !important;
}

/* Keep footer under menus */
.fixed-footer { z-index: 1200 !important; }

/* === FINAL NO-TWITCH LOCK === */
html { scrollbar-gutter: stable both-edges; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

/* Lock the navbar’s exact metrics everywhere */
.navbar, .navbar * {
  font-family: 'Raleway', sans-serif !important;
  box-sizing: border-box;
  margin: 0;
}

.navbar {
  height: 52px !important;              /* hard height */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center !important;       /* vertical centering */
}

.nav-left ul { display: flex; align-items: center; }
.nav-left a {
  font-size: 16px !important;
  line-height: 1 !important;
  padding: 10px 15px !important;        /* identical hit area */
  white-space: nowrap;                   /* stop wrap-induced jumps */
}

/* Keep arrow from nudging text when rotating */
.nav-left .arrow { display:inline-block; width: 1em; text-align:center; }

/* Dropdowns should never alter bar height */
.dropdown-content, .dropdown-subcontent { position: absolute; }

/* === Override: Tier 2 submenu drops below without scrollbars === */
.dropdown-content, .dropdown-subcontent {
  overflow: visible !important;
}

.dropdown-submenu.open > .dropdown-subcontent {
  top: 100% !important;      /* below parent */
  left: 0 !important;        /* align with parent link */
  margin-left: 0 !important;
  white-space: nowrap !important; 
  z-index: 2006 !important;  /* keep above content */
}
/* === Orange line directly under fixed navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ff7a00;
}
@media (max-width: 700px) {
  .players-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 100vw;
    box-sizing: border-box;
  }
.players-table-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: visible;
  padding-bottom: 1rem;
}
.players-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto 0 auto;
  table-layout: auto;
}

.players-table th,
.players-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  word-break: break-word;
  white-space: normal;
}

.players-table th {
  background-color: #ff7a00;
  color: #fff;
}

.players-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.players-table a,
.players-table a:visited {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.players-table a:hover {
  color: #ff7a00;
}
