* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  background-color: #0c0d13;
  background-image: url("./bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #f5f5f7;
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}


.brand-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  line-height: 1;
  background: rgba(0, 0, 0, 0.2);
}

.brand-x-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.brand-x:hover {
  border-color: rgba(255, 255, 255, 0.75);
}

.leaderboard-btn {
  padding: 8px 14px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f5f5f7;
}

.brand-btn {
  font-weight: 810;
}


.card {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background: rgba(20, 21, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

h1 {
  margin: 0 0 6px;
  font-size: 40px;
}

.subtitle {
  margin: 0 0 28px;
  color: #b4b7c9;
}

.card-logo {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 192px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.label {
  font-size: 13px;
  color: #9da1b6;
  margin-bottom: 6px;
}

.value {
  font-size: 20px;
  font-weight: 600;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.primary {
  background: linear-gradient(135deg, #9b75ff, #1f95ff);
  color: white;
  width: 100%;
  font-size: 18px;
  padding: 16px 24px;
}

#gmBtn {
  font-size: 25px;
  padding: 10px 24px;
  font-family: "Poppins", "Inter", system-ui, -apple-system, Segoe UI,
    sans-serif;
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    -0.39px 0 #000,
    0.39px 0 #000,
    0 0.39px #000,
    0 -0.39px #000,
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.35);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 8px 0 #1a63c7,
    0 16px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#gmBtn:active:not(:disabled) {
  transform: translateY(6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 2px 0 #1a63c7,
    0 6px 12px rgba(0, 0, 0, 0.35);
}

.gm-press-wrap {
  width: 100%;
}

.gm-press-wrap:active #gmBtn {
  transform: translateY(6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 2px 0 #1a63c7,
    0 6px 12px rgba(0, 0, 0, 0.35);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
}

.status {
  margin-top: 16px;
  color: #b4b7c9;
  font-size: 14px;
}

.tx {
  margin-top: 12px;
  font-size: 14px;
}

.tx a {
  color: #9cc4ff;
}

.footer {
  margin-top: auto;
  text-align: center;
  color: #8186a4;
  font-size: 13px;
  padding-top: 20px;
}

.footer a {
  color: #9cc4ff;
  margin-left: 6px;
  text-decoration: none;
}

.hidden {
  display: none;
}

.leaderboard {
  margin: 40px auto 0;
  max-width: 900px;
  width: 100%;
  background: linear-gradient(180deg, #4a2a8a 0%, #53247f 100%);
  border-radius: 28px;
  padding: 32px;
  color: #f5f5f7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 24px;
}

.leaderboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaderboard-header h2 {
  margin: 16px 0 8px;
  font-size: 34px;
}

.leaderboard-countdown {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f8c6ff;
}

.leaderboard-bonus {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe2ff;
  text-shadow:
    0 0 8px rgba(248, 198, 255, 0.7),
    0 0 16px rgba(248, 198, 255, 0.45);
}

.leaderboard-subpill {
  margin: 16px auto 0;
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
}

.leaderboard-list,
.leaderboard-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-row {
  margin-bottom: 18px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-item.highlight {
  background: linear-gradient(90deg, #6d3aa8, #7f2fa6);
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.leaderboard-rank {
  width: 40px;
  text-align: center;
  opacity: 0.8;
}

.leaderboard-address {
  font-weight: 600;
}

.leaderboard-points {
  font-size: 20px;
  font-weight: 700;
  color: #f8c6ff;
}

@media (max-width: 720px) {
  .leaderboard {
    padding: 20px;
    border-radius: 20px;
  }

  .leaderboard-header h2 {
    font-size: 26px;
  }

  .leaderboard-item {
    padding: 14px 16px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 16px;
  }

  .header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .brand-group {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .header-right {
    margin-left: auto;
  }

  .card {
    padding: 20px;
    border-radius: 18px;
  }

  h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-logo {
    width: 88px;
    top: -6px;
    right: -6px;
  }

  .primary {
    font-size: 16px;
    padding: 14px 18px;
  }

  .leaderboard-btn,
  .brand-btn {
    padding: 5px 9px;
    font-size: 10px;
  }

  #connectBtn {
    padding: 5px 9px;
    font-size: 10px;
  }

  .brand-x {
    width: 23px !important;
    height: 23px !important;
  }

  .brand-x-icon {
    width: 11px !important;
    height: 11px !important;
  }

  .leaderboard {
    margin-top: 24px;
    padding: 18px;
  }

  .leaderboard-header h2 {
    font-size: 22px;
  }

  .leaderboard-item {
    padding: 12px 14px;
  }
}

@media (max-width: 420px) {
  .card {
    padding: 18px;
  }

  h1 {
    font-size: 24px;
  }

  .card-logo {
    width: 76px;
  }

  .leaderboard {
    padding: 16px;
  }

  .leaderboard-left {
    gap: 10px;
  }

  .leaderboard-rank {
    width: 28px;
  }

  .leaderboard-points {
    font-size: 16px;
  }
}
