:root {
  --bg-0: #060709;
  --bg-1: #0d141f;
  --panel: rgba(8, 14, 24, 0.72);
  --line: rgba(132, 196, 255, 0.24);
  --text: #f6f8fb;
  --muted: #9fb2c8;
  --accent: #f5b32f;
  --accent-2: #52d7b6;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Rajdhani", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 14% -10%, rgba(82, 215, 182, 0.18), transparent 60%),
    radial-gradient(900px 550px at 85% 8%, rgba(245, 179, 47, 0.2), transparent 56%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", "Arial Black", Helvetica, Arial, sans-serif;
  font-weight: 900;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.8px, transparent 0.8px);
  background-size: 4px 4px;
  opacity: 0.28;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
  animation: orbit 16s ease-in-out infinite;
}

.orb-a {
  width: 230px;
  height: 230px;
  left: -70px;
  top: 18vh;
  background: rgba(82, 215, 182, 0.32);
}

.orb-b {
  width: 300px;
  height: 300px;
  right: -100px;
  top: 48vh;
  background: rgba(245, 179, 47, 0.24);
  animation-delay: -8s;
}

.topbar,
.shell,
.foot {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Teko", "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
  text-transform: uppercase;
  justify-self: start;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  height: 38px;
  font-family: "Bebas Neue", "Teko", "Arial Narrow Bold", sans-serif;
  font-size: 1.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(82, 215, 182, 0.2);
}

.brand img {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 8px;
}

.leaderboards-btn {
  text-decoration: none;
  color: #101926;
  background: linear-gradient(135deg, #8ec1ff, #50e2bd);
  border: 0;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(80, 226, 189, 0.22);
  justify-self: center;
  transition: all 0.3s ease;
}

.leaderboards-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(80, 226, 189, 0.35);
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: center;
}

.topbar-nav-btn {
  text-decoration: none;
  color: #101926;
  background: linear-gradient(135deg, #8ec1ff, #50e2bd);
  border: 0;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Rajdhani", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.03em;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(80, 226, 189, 0.22);
  transition: all 0.3s ease;
}

.topbar-nav-btn:hover,
.topbar-nav-btn.active {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(80, 226, 189, 0.35);
}

.topbar-nav-btn.rewards {
  background: linear-gradient(135deg, #f6c945, #e8843a);
  box-shadow: 0 8px 28px rgba(246, 184, 80, 0.22);
  color: #1a0e00;
}

.topbar-nav-btn.rewards:hover,
.topbar-nav-btn.rewards.active {
  box-shadow: 0 12px 36px rgba(246, 184, 80, 0.38);
}

.discord-btn {
  text-decoration: none;
  color: #101926;
  background: linear-gradient(135deg, #8ec1ff, #50e2bd);
  border: 0;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Rajdhani", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.03em;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(80, 226, 189, 0.22);
  justify-self: end;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.6rem auto 1.8rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  background: linear-gradient(165deg, rgba(14, 24, 36, 0.9), rgba(10, 15, 23, 0.55));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 18px 52px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #8fbde3;
}

.hero h1 {
  margin: 0.4rem 0 0;
  font-family: "Teko", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-title {
  display: block;
  max-width: 20ch;
  line-height: 0.98;
  letter-spacing: 0.045em;
  text-wrap: balance;
}

.lede {
  margin-top: 0.9rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.78rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.08rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-family: "Rajdhani", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.03em;
}

.btn-primary {
  color: #ffffff;
  font-size: 1.08rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #ffdf7c, #f3ad27);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(169, 198, 226, 0.4);
  background: rgba(9, 15, 24, 0.46);
}

.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.panel {
  border: 1px solid rgba(157, 198, 239, 0.24);
  border-radius: 20px;
  padding: 1.1rem;
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.panel h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Teko", "Arial Narrow Bold", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel p {
  color: var(--muted);
  margin: 0.55rem 0 0.85rem;
}

.panel ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.panel ul a {
  color: #d8ebff;
  text-decoration: none;
}

.social-links {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.social-logo {
  min-height: 114px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 11, 18, 0.86);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.social-logo:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 179, 47, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.social-logo img {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
}

.social-logo span {
  font-size: 0.84rem;
  color: #f2f6fc;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-logo.discord {
  background: linear-gradient(165deg, rgba(88, 101, 242, 0.3), rgba(9, 13, 20, 0.85));
}

.social-logo.kick {
  background: linear-gradient(165deg, rgba(83, 252, 24, 0.3), rgba(9, 13, 20, 0.85));
}

.social-logo.youtube {
  background: linear-gradient(165deg, rgba(255, 0, 0, 0.34), rgba(9, 13, 20, 0.85));
}

.socials-panel {
  min-height: 318px;
}

.social-copy {
  margin-bottom: 0.4rem;
}

.home-reward-card {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.18), rgba(0, 4, 61, 0.56));
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-reward-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 223, 124, 0.6);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.home-reward-logo-wrap {
  width: 84px;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 16, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem;
}

.home-reward-logo {
  max-width: 100%;
  max-height: 30px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.home-reward-copy {
  display: grid;
  gap: 0.22rem;
}

.home-reward-line {
  color: #f9fbff;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.52);
}

.panel-subheading {
  margin: 1.4rem 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4d985;
}

.panel-copy {
  margin: 0 0 0.75rem;
  color: #9fb3ca;
  font-size: 0.92rem;
}

.board-list {
  display: grid;
  gap: 0.62rem;
}

.raffle-list {
  margin-top: 0.1rem;
}

.board-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.board-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid rgba(255, 223, 124, 0.15);
  border-radius: 14px;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(25, 35, 55, 0.8) 0%, rgba(15, 20, 35, 0.95) 100%);
  text-decoration: none;
  color: #ecf4ff;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.board-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 124, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.board-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 223, 124, 0.4);
  box-shadow: 0 16px 48px rgba(255, 223, 124, 0.15);
}

.board-card:hover::before {
  left: 100%;
}

.card-logo-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 223, 124, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
}

.leaderboard-list .card-logo-box {
  overflow: hidden;
}

.card-logo-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.leaderboard-list .card-logo-box img {
  transform: scale(1.02);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.amount-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: center;
}

.leaderboard-list .board-card:hover .amount-overlay {
  opacity: 1;
}

.board-list:not(.raffle-list) .card-info {
  align-items: center;
}

.board-card span {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffdf7c;
  letter-spacing: 0.3px;
}

.board-card .prize {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #f2c94c;
  font-weight: 700;
  font-size: 0.78rem;
  margin-left: auto;
}

.board-list:not(.raffle-list) .prize {
  margin-left: 0;
  font-size: 1.05rem;
  justify-content: center;
}

.board-list:not(.raffle-list) .prize .amt {
  font-size: 1.8rem;
  font-family: "Teko", "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.board-card .prize .ico {
  width: 20px;
  height: 20px;
  background: url('/images/scrap.png') center/contain no-repeat;
  display: inline-block;
}

.board-card .prize.splits {
  color: #67d26f;
}

.board-card .prize.splits .ico {
  background: url('/images/green-diamond%20coin.svg') center/contain no-repeat;
}

.foot {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 1.5rem;
  padding: 0.86rem 0;
  border-top: 1px solid rgba(146, 187, 232, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  justify-content: space-between;
  color: #91a5bc;
  font-size: 0.86rem;
}

.links {
  display: inline-flex;
  gap: 0.8rem;
}

.links a {
  color: #d8e8fb;
  text-decoration: none;
}

@keyframes orbit {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.07);
  }
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    margin-top: 0.9rem;
    grid-template-columns: 1fr auto 1fr;
  }

  .hero h1 {
    line-height: 1;
  }
}

@media (max-width: 640px) {
  .board-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .brand {
    justify-self: center;
  }

  .brand-text {
    font-size: 1.48rem;
    letter-spacing: 0.07em;
  }

  .leaderboards-btn,
  .discord-btn {
    justify-self: center;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}
