:root {
  --page: #ffffff;
  --text: #000000;
  --muted: #4d4d4d;
  --white: #ffffff;
  --round-xl: 32px;
  --round-lg: 24px;
  --shadow: 0 24px 64px rgba(21, 21, 25, .09);
  --soft-shadow: 0 14px 35px rgba(21, 21, 25, .11);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Poppins", "Inter", "Arial Rounded MT Bold", Arial, sans-serif;
  letter-spacing: .01em;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
img { max-width: 100%; }

.topbar {
  height: 80px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rule-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.rule-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.rule-card li {
  margin-bottom: 0.55rem;
  color: var(--text);
}

.rule-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 1000;
}

.rule-card:nth-child(1) strong {
  color: #4cc9ff;
}

.rule-card:nth-child(2) strong {
  color: #ffb347;
}

.rule-card:nth-child(3) strong {
  color: #d98cff;
}

.rules-list {
  margin-top: 95px;
}

.brand {
  width: 118px;
  height: 58px;
  display: grid;
  place-items: center;
}
.brand img {
  width: 112px;
  transform: translateY(-2px);
  image-rendering: auto;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 30px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .12em;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .86;
  transition: transform .18s ease, opacity .18s ease;
}
.main-nav a:hover { opacity: 1; transform: translateY(-2px); }
.main-nav i {
  font-size: 15px;
  opacity: .74;
}

.socials {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}



main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 54px 24px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, .8fr);
  gap: 26px;
  min-height: 490px;
}

@media (min-width: 1181px) {
  .hero-grid {
    grid-template-columns: 1.55fr repeat(3, .95fr);
    grid-template-rows: 1fr 178px;
  }

  .hero-grid .feature-card {
    min-height: auto;
  }

  .hero-grid .feature-shop {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 490px;
  }

  .hero-grid .discord-card { grid-column: 2; grid-row: 1; }
  .hero-grid .rules-card { grid-column: 3; grid-row: 1; }
  .hero-grid .bans-card { grid-column: 4; grid-row: 1; }

  .hero-grid .vote-card {
    grid-column: 2 / 5;
    grid-row: 2;
    min-height: 178px;
  }

  .hero-grid .vote-card .ghost-word {
    top: 50%;
    left: auto;
    right: 32px;
    font-size: clamp(78px, 9vw, 128px);
  }
}

.feature-card,
.rank-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--round-lg);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 490px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}


.feature-card h1,
.feature-card h2,
.rank-card h3,
.section-title h2,
.recent-title h2 {
  margin: 0;
  color: #fff;
  line-height: .92;
  font-weight: 1000;
}
.feature-card h1 {
  font-size: clamp(34px, 3.4vw, 52px);
  letter-spacing: .08em;
}
.feature-card h2 {
  font-size: 34px;
  letter-spacing: .02em;
}
.feature-card p,
.rank-card p {
  margin: 14px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.purple-card { background: linear-gradient(135deg, #7e10fb 0%, #8f25ff 42%, #c06eff 100%); }
.blue-card { background: linear-gradient(145deg, #008bfa 0%, #00b8ff 100%); }
.green-card { background: linear-gradient(145deg, #0d641a 0%, #228722 100%); }
.red-card { background: linear-gradient(145deg, #d71534 0%, #ff4d58 100%); }
.gold-card { background: linear-gradient(145deg, #ff9d00 0%, #ffd166 100%); }

.ghost-word {
  position: absolute;
  z-index: -1;
  left: 38px;
  right: 24px;
  top: 44%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .15);
  font-size: clamp(64px, 8.5vw, 146px);
  line-height: .85;
  font-weight: 1000;
  letter-spacing: .03em;
  white-space: nowrap;
  pointer-events: none;
}
.feature-shop .ghost-word { top: 58%; font-size: clamp(92px, 11vw, 180px); }
.discord-card .ghost-word { top: 52%; left: -15px; font-size: 72px; }
.rules-card .ghost-word { top: 53%; font-size: 76px; }
.bans-card .ghost-word { top: 53%; font-size: 84px; }
.vote-card .ghost-word { top: 45%; left: 24px; font-size: 78px; }

.character,
.rank-art {
  position: absolute;
  user-select: none;
  pointer-events: none;
  image-rendering: pixelated;
}
.warrior { width: 450px; left: 0px; bottom: 10px; }
.discord-player { width: 400px; left: 0px; bottom: 10px; }
.hydra { width: 400px; right: 0px; bottom: -100px; }
.ban-hammer { width: 400px; right: 0px; bottom: 0px; }

.pill-button,
.price-pill,
.copy-ip {
  display: inline-grid;
  place-items: center;
  border: 0;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.23);
  color: #fff;
  font-weight: 1000;
  letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(15, 20, 40, .10);
  transition: filter .18s ease, transform .18s ease;
}
.feature-card .pill-button {
  margin-top: auto;
  width: 100%;
  height: 44px;
  font-size: 18px;
  z-index: 3;
}
.feature-shop .pill-button { background: #8b00ee; }
.discord-card .pill-button { background: #0668e9; }
.rules-card .pill-button { background: #00a23d; }
.bans-card .pill-button { background: #b00018; }
.vote-card .pill-button { background: #d47b00; }
.pill-button:hover,
.price-pill:hover,
.copy-ip:hover { filter: brightness(1.05); transform: translateY(-1px); }

.recent-section {
  position: relative;
  min-height: 145px;
  display: flex;
  align-items: center;
  margin: 42px 0 36px;
  overflow: hidden;
}
.recent-title {
  z-index: 2;
  padding-left: 12px;
  min-width: 280px;
}
.recent-title h2 {
  color: var(--text);
  font-size: 32px;
  letter-spacing: .02em;
}
.recent-title p {
  margin: 8px 0 0;
  font-size: 16px;
  color: #53535c;
  font-weight: 700;
}
.massive-heading {
  position: absolute;
  inset: 16px auto auto 255px;
  font-size: clamp(54px, 7vw, 104px);
  line-height: .9;
  font-weight: 1000;
  color: #dfe1e5;
  opacity: .58;
  white-space: nowrap;
}
.purchase-strip {
  z-index: 3;
  margin-left: auto;
  display: flex;
  gap: 28px;
  padding-right: 10px;
}
.purchase {
  width: 90px;
  text-align: center;
  color: #24242b;
  font-size: 13px;
  font-weight: 900;
}
.purchase img {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 5px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow: 0 8px 15px rgba(0,0,0,.08);
}
.purchase span {
  display: block;
  color: #7b7c87;
  font-size: 12px;
  font-weight: 800;
}

.ranks-section,
.rules-list {
  margin-top: 95px;
}

.section-title {
  margin-bottom: 28px;
  padding-left: 2px;
}
.section-title h2 {
  color: var(--text);
  font-size: 38px;
  letter-spacing: .02em;
}
.section-title p {
  margin: 6px 0 0;
  color: #6a6b75;
  font-size: 17px;
  font-weight: 800;
}
.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.rank-card {
  min-height: 525px;
  padding: 28px;
  color: #fff;
  border-radius: var(--round-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rank-card:hover { transform: translateY(-4px); box-shadow: 0 28px 72px rgba(21,21,25,.13); }
.rank-card h3 {
  font-size: 30px;
  letter-spacing: .12em;
}
.rank-card p { margin-top: 10px; font-size: 17px; }
.rank-card .price-pill {
  position: absolute;
  width: calc(100% - 56px);
  left: 28px;
  bottom: 28px;
  min-width: 190px;
  height: 45px;
  padding: 0 24px;
  font-size: 16px;
  background: rgba(255,255,255,.26);
}
.rank-purple { background: linear-gradient(145deg, #741bfa 0%, #9a49ff 100%); }
.rank-pink { background: linear-gradient(145deg, #ff529c 0%, #ff7cba 100%); }
.rank-blue { background: linear-gradient(145deg, #0b9ffc 0%, #35c3ff 100%); }
.rank-green { background: linear-gradient(145deg, #11c51d 0%, #21df38 100%); }
.warrior-art { width: 385px; left: -42px; bottom: 26px; }
.mvp-art { width: 330px; left: -10px; bottom: 34px; opacity: .95; }
.blue-art { width: 365px; left: -24px; bottom: 12px; }
.frog-art { width: 360px; left: -26px; bottom: 10px; }


.footer {
  max-width: 1360px;
  margin: 20px auto 0;
  padding: 28px 24px 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer strong { display: block; font-size: 22px; font-weight: 1000; }
.footer span { display: block; margin-top: 4px; color: #676873; font-weight: 800; }
.copy-ip {
  min-width: 160px;
  height: 48px;
  background: #151519;
  color: #fff;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 20px;
  border-radius: 999px;
  background: #151519;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(0,0,0,.18);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 140px 1fr 120px; }
  .main-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .large-card { grid-column: 1 / -1; }
  .rank-grid,
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-section { display: block; min-height: 210px; }
  .purchase-strip { justify-content: flex-end; margin-top: 18px; }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 12px;
  }
  .brand,
  .main-nav,
  .socials { justify-self: center; }
  .main-nav { gap: 14px; font-size: 11px; flex-wrap: wrap; }
  .socials { display: flex; }
  main { padding-top: 24px; }
  .hero-grid,
  .rank-grid,
  .rule-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 420px; }
  .warrior { width: 390px; left: 10px; }
  .discord-player { width: 320px; }
  .hydra { width: 350px; right: -120px; }
  .ban-hammer { width: 275px; right: -40px; bottom: 52px; }
  .purchase-strip { overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
  .rank-card { min-height: 460px; }
  .footer { flex-direction: column; text-align: center; }
}
/* Make text sit above images in smaller cards */
.discord-card,
.vote-card,
.rules-card,
.bans-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 32px 20px;
}

.discord-card .card-copy,
.vote-card .card-copy,
.rules-card .card-copy,
.bans-card .card-copy {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.discord-card .ghost-word,
.vote-card .ghost-word,
.rules-card .ghost-word,
.bans-card .ghost-word {
  position: absolute;
  z-index: 1;
  opacity: 0.12;
}

/* Adjust ghost word positions for better layout */
.rules-card .ghost-word {
  top: 38%;
  left: 24px;
  font-size: 68px;
}

.bans-card .ghost-word {
  top: 42%;
  left: 24px;
  font-size: 72px;
}

/* Push images to the bottom */
.rules-card .hydra,
.bans-card .ban-hammer {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 0;
}



/* Voting and Staff pages */
.page-hero {
  min-height: 300px;
  border-radius: var(--round-xl);
  padding: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #fff;
}
.vote-page-hero { background: linear-gradient(135deg, #ff8a00 0%, #ffc400 100%); }
.staff-page-hero { background: linear-gradient(135deg, #008bfa 0%, #8f25ff 100%); }
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .92;
  font-weight: 1000;
  letter-spacing: .02em;
}
.page-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,.86);
}
.content-section { margin-top: 70px; }
.vote-grid,
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vote-link-card,
.staff-card,
.info-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--round-lg);
  padding: 28px;
  box-shadow: var(--soft-shadow);
}
.vote-link-card strong,
.staff-card strong,
.info-card strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 1000;
}
.vote-link-card p,
.staff-card p,
.info-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.reward-pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 157, 0, .14);
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
}
.vote-link-card .pill-button {
  width: 100%;
  margin-top: 22px;
  background: #d47b00;
}
.staff-avatar {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  background: rgba(0,0,0,.08);
}
.staff-role {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 139, 250, .14);
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}
code {
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .vote-grid,
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .page-hero {
    min-height: 260px;
    padding: 30px;
    align-items: flex-start;
    flex-direction: column;
  }
  .vote-grid,
  .staff-grid { grid-template-columns: 1fr; }
}
