* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

/* Makes navigation links glide smoothly to each page section. */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #020817;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

/* Top bar: a mix of the two references */
.navbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 86px;

  background: linear-gradient(
    90deg,
    rgba(28, 8, 55, 0.34),
    rgba(2, 5, 22, 0.18) 50%,
    rgba(18, 7, 45, 0.34)
  );
  border-bottom: 1px solid rgba(175, 82, 255, 0.25);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.2),
    0 1px 15px rgba(123, 65, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  width: min(1450px, calc(100% - 56px));
  min-height: 86px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;

  color: white;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(174, 79, 255, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 5px 10px;
  background: rgba(8, 4, 24, 0.24);
  border: 1px solid rgba(167, 90, 255, 0.2);
  border-radius: 12px;
  box-shadow:
    inset 0 0 20px rgba(127, 57, 224, 0.04),
    0 6px 22px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.nav-links a {
  position: relative;
  padding: 12px 14px;

  color: #d1cbe2;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;

  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;

  height: 2px;
  background: linear-gradient(90deg, #b84dff, #28d8ff);
  border-radius: 999px;
  box-shadow: 0 0 9px rgba(73, 200, 255, 0.48);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;

  content: "";
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(174, 112, 255, 0.65);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ==================== SERVER DROPDOWN MENU ==================== */
.server-menu {
  position: relative;
}

.server-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;

  color: #d1cbe2;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  list-style: none;
  text-transform: uppercase;

  cursor: pointer;
  transition: color 0.2s ease;
}

/* Removes the browser's default details arrow. */
.server-menu summary::-webkit-details-marker {
  display: none;
}

.server-menu summary:hover,
.server-menu[open] summary {
  color: white;
  text-shadow: 0 0 12px rgba(174, 112, 255, 0.65);
}

.server-menu summary span {
  color: #45d4ff;
  font-size: 15px;
  transition: transform 0.2s;
}

.server-menu[open] summary span {
  transform: rotate(180deg);
}

.server-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);

  display: grid;
  min-width: 190px;
  padding: 8px;

  background: rgba(8, 5, 25, 0.96);
  border: 1px solid rgba(170, 91, 255, 0.32);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.server-dropdown a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #bdb6cf;
  font-size: 12px;
  white-space: nowrap;
}

.server-dropdown a::after {
  display: none;
}

.server-dropdown a:hover,
.server-dropdown a.active {
  background: linear-gradient(90deg, rgba(152, 68, 233, 0.2), rgba(52, 154, 226, 0.12));
  color: white;
}

.sign-in {
  justify-self: end;
  padding: 11px 17px;

  background: linear-gradient(
    135deg,
    rgba(168, 68, 255, 0.17),
    rgba(38, 184, 255, 0.1)
  );
  border: 1px solid rgba(189, 112, 255, 0.58);
  border-radius: 8px;

  color: #f6efff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.sign-in:hover {
  background: linear-gradient(135deg, #9c48ed, #247fd6);
  border-color: #c078ff;
  box-shadow: 0 0 18px rgba(150, 71, 255, 0.35);
}

/* Original hero design kept unchanged */
.hero {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 100vh;
  padding: 130px 24px 60px;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 10, 25, 0.88)),
    url("images/home-banner.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;

  width: min(700px, 100%);
  padding: 42px 24px;
  text-align: center;
}

.hero-content::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;

  width: min(780px, 110vw);
  height: 440px;

  background: radial-gradient(
    ellipse,
    rgba(70, 35, 145, 0.2) 0%,
    rgba(11, 7, 32, 0.1) 48%,
    transparent 72%
  );
  transform: translate(-50%, -50%);
  filter: blur(8px);

  content: "";
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 0 0 18px !important;
  padding: 8px 14px;

  background: rgba(111, 54, 199, 0.12);
  border: 1px solid rgba(176, 103, 255, 0.3);
  border-radius: 999px;

  color: #cfc3e8 !important;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-kicker::before {
  width: 7px;
  height: 7px;

  background: #4bdcff;
  border-radius: 50%;
  box-shadow: 0 0 10px #4bdcff;

  content: "";
}

.hero h1 {
  margin: 0;
  color: #f8f7ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 8px 35px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  display: block;
  margin-top: 9px;

  background: linear-gradient(90deg, #b24cff, #24c8ff);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(115, 88, 255, 0.16));
}

.hero-description {
  max-width: 650px;
  margin: 24px auto 30px !important;

  color: #bdb8ce !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;

  background: linear-gradient(135deg, #9148e8, #416ee8);
  border: 1px solid rgba(210, 168, 255, 0.5);
  border-radius: 999px;
  box-shadow:
    0 12px 35px rgba(74, 55, 196, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.18);

  color: white;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.discord-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.24));
}

.discord-button .button-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.discord-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 42px rgba(98, 67, 224, 0.46),
    0 0 20px rgba(62, 193, 255, 0.18);
}

.discord-button:hover .button-arrow {
  transform: translateX(3px);
}

/* ==================== ABOUT US SECTION ==================== */
.about-section {
  position: relative;
  overflow: hidden;
  padding: 120px 28px;

  background:
    radial-gradient(
      circle at 15% 35%,
      rgba(135, 55, 224, 0.15),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(26, 151, 225, 0.1),
      transparent 30%
    ),
    #050411;
  border-top: 1px solid rgba(167, 90, 255, 0.2);

  /* Stops the navbar covering this section after clicking Information. */
  scroll-margin-top: 85px;
}

/* Keeps all About Us content centred inside a readable page width. */
.about-container {
  width: min(1250px, 100%);
  margin: 0 auto;
}

.about-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  margin: 0 0 18px;
  color: #48d9ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.about-intro h2 {
  margin: 0;
  color: #f8f7ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(38px, 4.5vw, 64px);
  letter-spacing: -2px;
  line-height: 1.05;
}

.about-intro h2 span {
  background: linear-gradient(90deg, #b14cff, #31c9ff);
  background-clip: text;
  color: transparent;
}

.about-description {
  margin: 28px auto;
  color: #aaa5ba;
  font-size: 17px;
  line-height: 1.75;
}

.about-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #ded5f4;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.about-discord-link span {
  color: #42d2ff;
  transition: transform 0.2s;
}

.about-discord-link:hover span {
  transform: translateX(4px);
}

/* Three short highlights break up the description without using fake numbers. */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 70px auto 55px;
}

.about-highlights div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 30px;
  text-align: center;
}

.about-highlights div + div {
  border-left: 1px solid rgba(169, 91, 255, 0.2);
}

.about-highlights strong {
  background: linear-gradient(90deg, #ae50ff, #36d1ff);
  background-clip: text;
  color: transparent;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
}

.about-highlights span {
  color: #858091;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Holds the three community-value cards in one balanced row. */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-card {
  position: relative;
  min-height: 230px;
  padding: 64px 28px 28px;

  background: linear-gradient(
    105deg,
    rgba(28, 17, 57, 0.72),
    rgba(8, 8, 24, 0.6)
  );
  border: 1px solid rgba(167, 90, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.25s,
    border-color 0.25s;
}

.about-card:hover {
  border-color: rgba(74, 205, 255, 0.42);
  transform: translateY(-7px);
}

.card-number {
  position: absolute;
  top: 24px;
  left: 28px;

  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;

  background: rgba(137, 66, 224, 0.12);
  border: 1px solid rgba(170, 91, 255, 0.25);
  border-radius: 8px;
  color: #a776ed;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.about-card h3 {
  margin: 0 0 8px;
  color: #f0edf8;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 20px;
}

.about-card p {
  margin: 0;
  color: #9590a5;
  font-size: 15px;
  line-height: 1.6;
}

/* ==================== COMMUNITY RULES SECTION ==================== */
.rules-section {
  padding: 120px 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(43, 186, 240, 0.09), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(149, 61, 229, 0.13), transparent 32%),
    #03040f;
  border-top: 1px solid rgba(159, 82, 245, 0.18);
  scroll-margin-top: 85px;
}

.rules-container {
  width: min(1250px, 100%);
  margin: 0 auto;
}

.rules-heading {
  max-width: 790px;
  margin: 0 auto 60px;
  text-align: center;
}

.rules-heading h1,
.rules-heading h2 {
  margin: 0;
  color: #f7f3fd;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -2.5px;
  line-height: 1.05;
}

.rules-heading h1 span,
.rules-heading h2 span {
  background: linear-gradient(90deg, #ad4cff, #36d0ff);
  background-clip: text;
  color: transparent;
}

.rules-heading > p:last-child {
  margin: 26px auto 0;
  color: #a5a0b0;
  font-size: 17px;
  line-height: 1.75;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rule-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(25, 14, 54, 0.76), rgba(7, 8, 23, 0.86));
  border: 1px solid rgba(159, 85, 239, 0.24);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s,
    border-color 0.25s;
}

.rule-card::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 160px;
  height: 160px;
  background: rgba(110, 61, 218, 0.1);
  border-radius: 50%;
  filter: blur(8px);
  content: "";
}

.rule-card:hover {
  border-color: rgba(62, 207, 255, 0.42);
  transform: translateY(-5px);
}

.rule-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rule-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(164, 70, 236, 0.2), rgba(42, 177, 235, 0.12));
  border: 1px solid rgba(173, 91, 255, 0.3);
  border-radius: 10px;
  color: #bc84f4;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.rule-card h2,
.rule-card h3 {
  margin: 0;
  color: #eeeaf6;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 22px;
}

/* Adds room for the navigation on the separate Community Rules page. */
.rules-page .rules-section {
  min-height: 100vh;
  padding-top: 180px;
}

.rule-card ul {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.rule-card li {
  position: relative;
  padding-left: 22px;
  color: #a7a1b2;
  font-size: 14px;
  line-height: 1.6;
}

.rule-card li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #ad4cff, #39d5ff);
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}

.rules-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 20px;
  padding: 24px 28px;
  background: rgba(17, 10, 39, 0.65);
  border: 1px solid rgba(157, 82, 241, 0.2);
  border-radius: 16px;
}

.rules-help div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rules-help strong {
  color: #eeeaf5;
  font-size: 15px;
}

.rules-help div span {
  color: #85808e;
  font-size: 12px;
}

.rules-help a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  background: linear-gradient(135deg, rgba(146, 63, 225, 0.8), rgba(51, 116, 215, 0.8));
  border: 1px solid rgba(199, 136, 255, 0.4);
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ==================== SERVER SPECS SECTION ==================== */
.specs-section {
  padding: 115px 28px;
  background:
    linear-gradient(rgba(4, 5, 18, 0.94), rgba(5, 3, 17, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(58, 126, 255, 0.18), transparent 50%);
  border-top: 1px solid rgba(60, 176, 255, 0.15);
  scroll-margin-top: 85px;
}

.specs-container {
  width: min(1250px, 100%);
  margin: 0 auto;
}

.specs-heading {
  max-width: 720px;
  margin: 0 auto 55px;
  text-align: center;
}

.specs-heading h2 {
  margin: 0;
  color: #f8f7ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(38px, 4.5vw, 62px);
  letter-spacing: -2px;
}

.specs-heading h2 span {
  background: linear-gradient(90deg, #a94cff, #32ceff);
  background-clip: text;
  color: transparent;
}

.specs-heading > p:last-child {
  max-width: 610px;
  margin: 20px auto 0;
  color: #9f9aac;
  font-size: 17px;
  line-height: 1.7;
}

/* Pairs the original server-room image with a readable spec sheet. */
.server-list {
  display: grid;
  gap: 28px;
}

.server-showcase {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 430px;
  margin: 0;
  overflow: hidden;

  background: rgba(9, 7, 26, 0.74);
  border: 1px solid rgba(151, 84, 244, 0.28);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.server-image {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

.server-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(7, 5, 22, 0.92));
  content: "";
}

.server-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.server-showcase:hover .server-image img {
  transform: scale(1.025);
}

.server-image figcaption {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 25px;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;

  background: rgba(3, 5, 17, 0.76);
  border: 1px solid rgba(83, 210, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);

  color: #ddd8e9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.server-sheet {
  position: relative;
  z-index: 1;
  padding: 34px;
  background: linear-gradient(
    145deg,
    rgba(23, 13, 52, 0.88),
    rgba(6, 7, 22, 0.94)
  );
}

.sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.sheet-heading span:first-child {
  color: #48d4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sheet-heading h3 {
  margin: 7px 0 0;
  color: #f6f2ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 30px;
}

.node-status {
  padding: 7px 10px;
  background: rgba(65, 255, 168, 0.08);
  border: 1px solid rgba(65, 255, 168, 0.26);
  border-radius: 999px;
  color: #6dffc0 !important;
  font-size: 9px !important;
  letter-spacing: 1px !important;
}

.sheet-list {
  margin: 0;
}

.sheet-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sheet-list dt {
  color: #867b9e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sheet-list dd {
  margin: 0;
  color: #d5d0df;
  font-size: 13px;
  line-height: 1.45;
}

.summary-dot {
  width: 9px;
  height: 9px;
  background: #4dffae;
  border-radius: 50%;
  box-shadow: 0 0 12px #4dffae;
}

/* ==================== SITE FOOTER ==================== */
.site-footer {
  padding: 48px 28px 22px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(124, 54, 213, 0.16),
      transparent 55%
    ),
    #03020b;
  border-top: 1px solid rgba(157, 82, 246, 0.26);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1250px, 100%);
  margin: 0 auto;
}

.footer-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(165, 72, 255, 0.38));
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy strong {
  color: #f4f0fb;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 18px;
}

.footer-copy span {
  color: #777182;
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;

  background: rgba(25, 13, 52, 0.62);
  border: 1px solid rgba(173, 93, 255, 0.32);
  border-radius: 12px;

  color: #d9d2e8;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.social-button:hover {
  background: linear-gradient(135deg, #923fe5, #347edc);
  border-color: rgba(99, 213, 255, 0.6);
  transform: translateY(-4px);
}

.social-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Each uploaded icon has different padding, so they need individual sizing. */
.social-links .social-button:first-child img {
  width: 38px;
  height: 38px;
}

.social-links .social-button:nth-child(2) img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
}

.social-links .social-button:nth-child(3) img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  clip-path: circle(49%);
}

/* Uses the uploaded YouTube icon and hides the old text fallback. */
.social-links .social-button:last-child {
  background-image: url("images/youtube.png");
  background-position: center;
  background-size: 56px 56px;
  background-repeat: no-repeat;
  font-size: 0;
}

.social-links .social-button:last-child:hover {
  background-image:
    url("images/youtube.png"),
    linear-gradient(135deg, #923fe5, #347edc);
  background-size:
    56px 56px,
    100% 100%;
}

.discord-social {
  width: 46px;
  background: linear-gradient(
    135deg,
    rgba(142, 62, 224, 0.76),
    rgba(54, 102, 216, 0.76)
  );
}

.footer-bottom {
  width: min(1250px, 100%);
  margin: 25px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #625d6d;
  font-size: 11px;
  text-align: center;
}

/* ==================== INDIVIDUAL GAME PAGE ==================== */
.game-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(2, 3, 14, 0.62), rgba(3, 4, 18, 0.94)),
    url("images/home-banner.png") center / cover fixed;
}

.game-hero {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 150px 24px 80px;
}

.game-panel {
  width: min(900px, 100%);
  padding: clamp(32px, 6vw, 65px);
  background: linear-gradient(145deg, rgba(24, 13, 54, 0.82), rgba(5, 7, 23, 0.9));
  border: 1px solid rgba(169, 87, 255, 0.32);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(13px);
  text-align: center;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #76ffc3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.game-panel h1 {
  margin: 0;
  background: linear-gradient(90deg, #b34dff, #31d0ff);
  background-clip: text;
  color: transparent;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(58px, 9vw, 105px);
  letter-spacing: -4px;
}

.game-intro {
  max-width: 650px;
  margin: 22px auto 34px;
  color: #b5afc3;
  font-size: 17px;
  line-height: 1.7;
}

.game-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0;
}

.game-detail {
  padding: 20px 15px;
  background: rgba(5, 5, 20, 0.42);
  border: 1px solid rgba(127, 91, 200, 0.2);
  border-radius: 12px;
}

.game-detail span,
.game-detail strong {
  display: block;
}

.game-detail span {
  margin-bottom: 8px;
  color: #777184;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.game-detail strong {
  color: #e7e2ef;
  font-size: 15px;
}

/* ==================== PALWORLD PAGE ==================== */
.palworld-main {
  min-height: 100vh;
  padding-top: 86px;
  background: #040412;
}

.palworld-hero {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 85px 24px;
  background:
    linear-gradient(90deg, rgba(4, 3, 18, 0.94), rgba(4, 6, 24, 0.66), rgba(4, 3, 18, 0.9)),
    url("images/home-banner.png") center / cover;
  border-bottom: 1px solid rgba(157, 82, 246, 0.22);
}

.palworld-hero-content {
  width: min(850px, 100%);
  text-align: center;
}

.palworld-hero h1 {
  margin: 0;
  color: #f8f5ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(58px, 8vw, 105px);
  letter-spacing: -4px;
  line-height: 0.95;
}

.palworld-hero h1 span {
  background: linear-gradient(90deg, #a84bff, #2dd4ff);
  background-clip: text;
  color: transparent;
}

.palworld-hero-content > p:not(.section-label) {
  max-width: 680px;
  margin: 25px auto 32px;
  color: #b0aabc;
  font-size: 17px;
  line-height: 1.7;
}

.palworld-content {
  width: min(1250px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 120px;
}

.pal-server-section,
.pal-settings-section {
  scroll-margin-top: 100px;
}

.pal-settings-section {
  margin-top: 95px;
}

.pal-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.pal-section-heading .section-label {
  margin-bottom: 10px;
}

.pal-section-heading h2 {
  margin: 0;
  color: #f4f0fa;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
}

.pal-total-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(12, 10, 35, 0.65);
  border: 1px solid rgba(70, 202, 255, 0.19);
  border-radius: 999px;
  color: #aaa4b7;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pal-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pal-server-card {
  padding: 30px;
  background: linear-gradient(145deg, rgba(26, 14, 57, 0.78), rgba(6, 8, 25, 0.88));
  border: 1px solid rgba(153, 82, 240, 0.26);
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.23);
}

.pal-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pal-card-heading div > span {
  color: #46d5ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.pal-card-heading h3 {
  margin: 7px 0 0;
  color: #f1edf8;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 23px;
}

.pal-card-status {
  align-self: flex-start;
  padding: 7px 10px;
  background: rgba(252, 188, 61, 0.08);
  border: 1px solid rgba(252, 188, 61, 0.24);
  border-radius: 999px;
  color: #f7c76b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Green status style used when a listed game server is online. */
.pal-card-online {
  background: rgba(65, 255, 168, 0.08);
  border-color: rgba(65, 255, 168, 0.26);
  color: #6dffc0;
}

.pal-server-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 25px;
  margin: 14px 0 0;
}

.pal-server-details div {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pal-server-details dt {
  margin-bottom: 7px;
  color: #777184;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.pal-server-details dd {
  margin: 0;
  color: #ded9e8;
  font-size: 14px;
  font-weight: 700;
}

.pal-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pal-setting-card {
  position: relative;
  min-height: 270px;
  padding: 62px 28px 28px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(24, 14, 52, 0.72), rgba(7, 8, 24, 0.86));
  border: 1px solid rgba(148, 80, 232, 0.23);
  border-radius: 18px;
}

.pal-setting-number {
  position: absolute;
  top: 23px;
  right: 25px;
  color: rgba(164, 78, 242, 0.25);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 44px;
  font-weight: 800;
}

.pal-setting-card h3 {
  margin: 0 0 22px;
  color: #f0ebf7;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 25px;
}

.pal-setting-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pal-setting-card li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #9690a2;
  font-size: 13px;
}

.pal-setting-card li strong {
  color: #55d4ff;
}

.pal-setting-card > p {
  color: #9791a3;
  font-size: 14px;
  line-height: 1.7;
}

/* ==================== TEAM PAGE ==================== */
.team-page {
  min-height: 100vh;
  background: #04030f;
}

.team-main {
  padding-top: 86px;
}

.team-intro {
  min-height: 720px;
  padding: 100px max(6vw, 28px);
  background:
    radial-gradient(circle at 18% 45%, rgba(142, 57, 224, 0.17), transparent 34%),
    radial-gradient(circle at 88% 25%, rgba(43, 183, 239, 0.1), transparent 31%),
    linear-gradient(rgba(3, 3, 15, 0.92), rgba(5, 4, 18, 0.98)),
    url("images/home-banner.png") center / cover;
}

.team-intro-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.team-intro-copy h1 {
  margin: 0;
  color: #f7f3fd;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(48px, 6vw, 82px);
  letter-spacing: -3px;
  line-height: 0.98;
}

.team-intro-copy h1 span {
  background: linear-gradient(90deg, #ad4cff, #35d0ff);
  background-clip: text;
  color: transparent;
}

.team-intro-copy > p:last-child {
  margin: 28px auto 0;
  color: #aba5b7;
  font-size: 17px;
  line-height: 1.75;
}

/* Adds columns automatically as more member cards are inserted. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 420px));
  justify-content: center;
  gap: 24px;
  width: min(1250px, 100%);
  margin: 65px auto 0;
}

.founder-card {
  display: grid;
  grid-template-rows: 270px 1fr;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(25, 14, 54, 0.86), rgba(6, 8, 24, 0.92));
  border: 1px solid rgba(164, 86, 246, 0.3);
  border-radius: 24px;
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.42);
}

.founder-image {
  display: grid;
  place-items: center;
  padding: 35px;
  background:
    radial-gradient(circle, rgba(145, 58, 226, 0.25), transparent 62%),
    rgba(5, 5, 20, 0.5);
}

.founder-image img {
  width: min(240px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(165, 72, 255, 0.38));
}

.founder-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.founder-label {
  margin: 0 0 9px;
  color: #43d5ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.founder-content h2 {
  margin: 0;
  color: #f4effb;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
}

.founder-content > p:not(.founder-label) {
  margin: 18px 0 24px;
  color: #9f99aa;
  font-size: 15px;
  line-height: 1.7;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.founder-tags span {
  padding: 8px 10px;
  background: rgba(133, 62, 210, 0.11);
  border: 1px solid rgba(164, 83, 240, 0.23);
  border-radius: 8px;
  color: #bcb4cc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.founder-contact {
  display: inline-flex;
  gap: 10px;
  margin-top: 28px;
  color: #ded7ec;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.founder-contact span {
  color: #42d4ff;
  transition: transform 0.2s;
}

.founder-contact:hover span {
  transform: translateX(4px);
}

.team-responsibilities {
  padding: 110px max(6vw, 28px) 125px;
  background: #050412;
}

.team-responsibility-heading {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.team-responsibility-heading h2 {
  margin: 0;
  color: #f2edf8;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.responsibility-grid article {
  padding: 30px;
  background: linear-gradient(145deg, rgba(25, 14, 53, 0.68), rgba(7, 8, 23, 0.8));
  border: 1px solid rgba(157, 82, 239, 0.22);
  border-radius: 17px;
}

.responsibility-grid article > span {
  color: #9255da;
  font-size: 12px;
  font-weight: 800;
}

.responsibility-grid h3 {
  margin: 25px 0 10px;
  color: #eee9f5;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 20px;
}

.responsibility-grid p {
  margin: 0;
  color: #928c9d;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 950px) {
  .navbar-inner {
    grid-template-columns: 1fr auto;
    width: calc(100% - 28px);
    padding: 10px 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;

    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
  }

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

  .nav-links:has(.server-menu[open]) {
    flex-wrap: wrap;
    overflow: visible;
  }

  .hero {
    padding-top: 180px;
  }

  /* Stack the About Us columns on tablets and smaller screens. */
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-intro {
    max-width: 680px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: auto;
  }

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

  .server-showcase {
    grid-template-columns: 1fr;
  }

  .pal-settings-grid {
    grid-template-columns: 1fr;
  }

  .founder-image {
    min-height: 300px;
  }

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

  .server-image::after {
    background: linear-gradient(180deg, transparent 55%, rgba(7, 5, 22, 0.88));
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .sign-in {
    padding: 9px 12px;
    font-size: 12px;
  }

  .nav-links a {
    padding: 10px;
    font-size: 11px;
  }

  .hero p {
    font-size: 17px;
  }

  .about-section {
    padding: 85px 20px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 55px auto 45px;
  }

  .about-highlights div + div {
    padding-top: 28px;
    border-top: 1px solid rgba(169, 91, 255, 0.2);
    border-left: 0;
  }

  .about-card {
    padding: 65px 22px 24px;
  }

  .rules-section {
    padding: 85px 20px;
  }

  .rule-card {
    padding: 25px 22px;
  }

  .rules-help {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-number {
    top: 24px;
    left: 22px;
  }

  .specs-section {
    padding: 85px 20px;
  }

  .server-image {
    min-height: 280px;
  }

  .server-sheet {
    padding: 28px 22px;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }

  .social-links {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .game-details {
    grid-template-columns: 1fr;
  }

  .palworld-content {
    width: min(100% - 32px, 1250px);
    padding: 75px 0 90px;
  }

  .pal-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pal-server-grid,
  .pal-server-details {
    grid-template-columns: 1fr;
  }

  .team-intro {
    padding: 85px 20px;
  }

  .founder-content {
    padding: 34px 24px;
  }

  .team-responsibilities {
    padding: 85px 20px;
  }
}
