:root {
  color-scheme: dark;
  --bg: #07110a;
  --bg-soft: #0b1710;
  --panel: rgba(13, 28, 18, 0.92);
  --panel-strong: #102516;
  --line: rgba(125, 255, 137, 0.2);
  --line-strong: rgba(148, 255, 141, 0.42);
  --text: #f1fff3;
  --muted: #b5d6b9;
  --soft: #d9f99d;
  --fun: #11b42d;
  --play: #79ff69;
  --gold: #f4d35e;
  --cyan: #65e9ff;
  --violet: #b792ff;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px 54px;
  background: rgba(7, 17, 10, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.brand-fun {
  color: var(--fun);
}

.brand-play {
  color: var(--play);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(121, 255, 105, 0.08);
  color: var(--text);
}

.top-cta,
.button,
.rank-card a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.top-cta,
.button.primary,
.rank-card a {
  color: #031207;
  background: linear-gradient(90deg, var(--fun), var(--play));
  box-shadow: 0 14px 34px rgba(17, 180, 45, 0.24);
}

.top-cta {
  padding: 0 18px;
}

.button {
  padding: 0 22px;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(10, 24, 15, 0.68);
  box-shadow: none;
}

.top-cta:hover,
.button:hover,
.rank-card a:hover,
.rank-strip a:hover,
.store-items a:hover,
.currency-list a:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hero {
  min-height: 74svh;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 72px 54px 64px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 14, 8, 0.96), rgba(5, 15, 9, 0.76) 46%, rgba(5, 15, 9, 0.25)),
    linear-gradient(180deg, rgba(7, 17, 10, 0.2), var(--bg)),
    url("/assets/funplay-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--play);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.server-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.server-line span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(121, 255, 105, 0.24);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(4, 14, 8, 0.66);
  color: #d9fce0;
  font-size: 14px;
  font-weight: 800;
}

.rank-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.rank-strip a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  background: #0b1710;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.rank-strip span {
  font-size: 18px;
  font-weight: 900;
}

.rank-strip strong,
.price,
.currency-list strong,
.store-items strong {
  color: var(--gold);
  font-size: 14px;
  white-space: nowrap;
}

.section {
  padding: 72px 54px;
  background:
    linear-gradient(180deg, rgba(121, 255, 105, 0.03), transparent 180px),
    var(--bg);
}

.section-head {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-head h2,
.store-band h2 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p:not(.kicker) {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rank-card {
  min-height: 264px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  box-shadow: 0 18px 45px var(--shadow);
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--fun), var(--play));
}

.tier-mid::before {
  background: linear-gradient(90deg, var(--cyan), var(--play));
}

.tier-high::before {
  background: linear-gradient(90deg, var(--gold), var(--play));
}

.tier-top::before {
  background: linear-gradient(90deg, var(--violet), var(--play));
}

.featured {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(121, 255, 105, 0.14), rgba(13, 28, 18, 0.94)),
    var(--panel);
}

.rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rank-icon {
  min-width: 44px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(121, 255, 105, 0.24);
  border-radius: 8px;
  background: rgba(121, 255, 105, 0.08);
  color: var(--play);
  font-size: 13px;
  font-weight: 900;
}

.rank-card h3 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.05;
}

.rank-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.rank-card a {
  width: 100%;
  margin-top: auto;
  padding: 0 14px;
}

.store-band {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 54px;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17, 180, 45, 0.14), rgba(101, 233, 255, 0.08)),
    var(--bg-soft);
}

.store-band h2 {
  margin-bottom: 0;
}

.store-items,
.currency-list {
  display: grid;
  gap: 10px;
}

.store-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-items a,
.currency-list a {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(7, 17, 10, 0.72);
}

.store-items span,
.currency-list span {
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 36px;
  align-items: start;
}

.compact-head {
  margin-bottom: 0;
}

.currency-list {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 54px;
  border-top: 1px solid var(--line);
  background: #050c07;
  color: var(--muted);
}

.footer span {
  font-weight: 800;
}

.footer a {
  color: var(--play);
  font-weight: 800;
}

@media (max-width: 1160px) {
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-band,
  .split {
    grid-template-columns: 1fr;
  }

  .store-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 24px;
  }

  .hero {
    min-height: 0;
    padding: 74px 16px 44px;
    background-position: 58% center;
  }

  h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .rank-strip {
    grid-template-columns: 1fr;
  }

  .rank-strip a {
    min-height: 58px;
    padding: 14px 16px;
  }

  .section,
  .store-band,
  .footer {
    padding-inline: 16px;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section-head h2,
  .store-band h2 {
    font-size: 32px;
  }

  .rank-grid,
  .store-items {
    grid-template-columns: 1fr;
  }

  .rank-card {
    min-height: 236px;
  }

  .footer {
    display: block;
  }

  .footer a {
    display: block;
    margin-top: 8px;
  }
}
