@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'Orbitron', Arial, sans-serif;
  background: radial-gradient(ellipse at center, #000010 0%, #000 100%);
  color: #ddd;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('assets/stars1.png') repeat;
  opacity: 0.6;  /* 调亮星点 */
  z-index: -1;
  animation: stars 200s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('assets/stars2.png') repeat;
  opacity: 0.4;  /* 调亮星点 */
  z-index: -2;
  animation: stars 300s linear infinite reverse;
}

@keyframes stars {
  from { background-position: 0 0; }
  to { background-position: -5000px 5000px; }
}
#siteHeader {
  width: 100%;
  text-align: center;
  font-size: 2.5em;
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 25px #0ff;
  margin: 20px 0 10px;
}
#marquee {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 40, 0.6);
  color: #0ff;
  font-weight: bold;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  z-index: 10;
}

#marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.wallet-section {
  position: fixed;
  top: 80px;
  right: 30px;
  text-align: right;
  z-index: 20;
}

.connect-btn {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  border: none;
  border-radius: 50px;
  padding: 12px 35px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 0 20px #8e2de2;
  transition: all 0.3s ease;
}

.connect-btn:hover {
  box-shadow: 0 0 30px #8e2de2;
}

#walletInfo p {
  margin: 4px 0;
  font-size: 0.9em;
}

.hidden {
  display: none !important;
}
main {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1200px;
  margin: 150px auto 100px;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}

.trend-card {
  flex: 1 1 60%;
  min-width: 300px;
  background: rgba(30, 30, 60, 0.9);
  border: 1px solid #4a00e0;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 25px #4a00e0;
}

.bet-card {
  flex: 1 1 35%;
  min-width: 250px;
  background: rgba(30, 30, 60, 0.9);
  border: 1px solid #0ff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 25px #0ff;
}

h2 {
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
  margin-top: 0;
}

.trend-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 15px 0;
}

.trend-buttons button {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  background: #111;
  color: #fff;
  box-shadow: 0 0 10px #0ff inset;
  transition: 0.2s;
}

.trend-buttons button:hover {
  background: #0ff;
  color: #000;
}

.trend-buttons .selected {
  background: #0ff;
  color: #000;
}

.bet-card input,
.bet-card select {
  width: 100%;
  margin: 10px 0;
  padding: 12px 15px;
  border-radius: 50px;
  border: none;
  box-sizing: border-box;
  outline: none;
  font-family: 'Orbitron', Arial, sans-serif;
}

.btn-wrap {
  text-align: center;
  margin: 15px 0;
}

.action-btn {
  background: linear-gradient(135deg, #0ff, #00ffff);
  border: none;
  border-radius: 50px;
  padding: 12px 35px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px #0ff;
  transition: all 0.3s ease;
}

.action-btn:hover {
  box-shadow: 0 0 30px #0ff;
}

#result {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
}
.stats-card,
.countdown-card,
.leaderboard-card,
.live-bets-card {
  background: rgba(30, 30, 60, 0.9);
  border: 1px solid #4a00e0;
  border-radius: 15px;
  padding: 20px;
  flex: 1 1 45%;
  min-width: 250px;
  box-shadow: 0 0 20px #4a00e0;
}

.stats-card h2,
.countdown-card h2,
.leaderboard-card h2,
.live-bets-card h2 {
  margin-top: 0;
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

.stats-card p,
.countdown-card p {
  margin: 10px 0;
  font-size: 1em;
}

#countdown {
  font-size: 2em;
  font-weight: bold;
  text-shadow: 0 0 10px #0ff;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin: 5px 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.9em;
}

#supportBubble {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #0ff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px #0ff;
  z-index: 20;
}

#supportChat {
  position: fixed;
  right: 30px;
  bottom: 90px;
  width: 250px;
  background: rgba(30, 30, 60, 0.95);
  border-radius: 10px;
  box-shadow: 0 0 15px #0ff;
  overflow: hidden;
  z-index: 20;
}

.chat-header {
  background: #0ff;
  color: #000;
  font-weight: bold;
  padding: 10px;
}

.chat-body {
  padding: 15px;
  color: #fff;
  font-size: 0.9em;
}
