* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.12), transparent 35%),
    linear-gradient(180deg, #06111d 0%, #020617 100%);
  color: #fff;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

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

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #7CFFB2;
  font-size: 13px;
  border: 1px solid rgba(124, 255, 178, 0.25);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.subtitle {
  margin: 12px 0 0;
  color: #b8c4d6;
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.26);
}

.main-card {
  grid-row: span 2;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-box {
  background: rgba(2, 6, 23, 0.7);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.stat-title {
  font-size: 13px;
  color: #9fb0c8;
}

.stat-value {
  font-size: 22px;
  margin-top: 10px;
  font-weight: bold;
  color: #fff;
}

.slot-wrap {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
  border: 1px solid rgba(34,197,94,0.18);
}

.slot-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 18px;
  text-align: center;
}

.slot-machine {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.slot-reel {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: #08101d;
  border: 2px solid rgba(124, 255, 178, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.3);
}

.action-area {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-width: 180px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-connect {
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  color: #fff;
}

.btn-draw {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #fff;
}

.wallet-box,
.result-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #08101d;
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
  word-break: break-all;
}

.result-box {
  font-size: 18px;
  font-weight: bold;
  color: #7CFFB2;
}

.rules-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: #08101d;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rules-box h3 {
  margin: 0 0 12px;
}

.rules-subtitle {
  margin-top: 18px !important;
}

.rule-item,
.prize-item,
.list-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
  color: #dbe4f0;
  line-height: 1.6;
}

.rule-item:last-child,
.prize-item:last-child,
.list-item:last-child {
  border-bottom: 0;
}

.side-card h3 {
  margin-top: 0;
}

.list-box {
  min-height: 180px;
}

.muted {
  color: #8ea0bb;
}

.rank {
  display: inline-block;
  width: 30px;
  color: #7CFFB2;
  font-weight: bold;
}

.amount {
  color: #7CFFB2;
  font-weight: bold;
}

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

  .main-card {
    grid-row: auto;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .slot-reel {
    width: 90px;
    height: 90px;
    font-size: 36px;
  }

  .hero h1 {
    font-size: 30px;
  }
}