@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700;800;900&display=swap');

:root {
  --bg: #050607;
  --panel: rgba(7, 16, 11, 0.84);
  --green: #20ff78;
  --green-soft: #b8ffd5;
  --red: #ff243d;
  --text: #f8fff9;
  --muted: #a9b8ad;
  --yellow: #ffe76c;
  --line: rgba(32, 255, 120, 0.24);
  --red-line: rgba(255, 36, 61, 0.24);
  --white-line: rgba(255, 255, 255, 0.08);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
  --radius-xl: 34px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 255, 120, 0.22), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 36, 61, 0.22), transparent 34%),
    linear-gradient(180deg, #07120b 0%, #050607 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  z-index: -4;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.55));
  z-index: -3;
  pointer-events: none;
}

.glow {
  position: fixed;
  width: 390px;
  height: 390px;
  border-radius: 999px;
  filter: blur(88px);
  opacity: 0.36;
  z-index: -2;
  animation: floatGlow 9s ease-in-out infinite;
}

.glow-green { background: var(--green); top: 120px; left: -140px; }
.glow-red { background: var(--red); right: -140px; bottom: 120px; animation-delay: -4s; }

@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(28px) scale(1.08); }
}

a { color: inherit; }
button, input { font-family: inherit; }

.site-header {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #050607;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(32, 255, 120, 0.95), rgba(255, 36, 61, 0.95));
  box-shadow: 0 0 36px rgba(32, 255, 120, 0.28), 0 0 36px rgba(255, 36, 61, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-weight: 900; }
.brand-copy small { color: var(--muted); margin-top: 3px; }

.nav-links {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  transition: 0.18s ease;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.mobile-menu-button { display: none; }

.copy-button, .primary-button, .secondary-button, .leaderboard-actions button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 17px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.copy-button, .primary-button {
  color: #050607;
  background: linear-gradient(145deg, var(--green), var(--red));
  box-shadow: 0 16px 42px rgba(32, 255, 120, 0.18), 0 16px 42px rgba(255, 36, 61, 0.16);
}

.copy-button:hover, .primary-button:hover, .secondary-button:hover, .leaderboard-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

main { width: min(1200px, calc(100% - 28px)); margin: 0 auto; }

.hero-section {
  display: grid;
  grid-template-columns: 1.35fr 0.78fr;
  gap: 20px;
  padding: 42px 0 20px;
}

.hero-card, .event-card, .timer-section, .notice-bar, .stats-grid article, .leaderboard-section, .steps-section, .rules-section, .faq-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(5, 10, 7, 0.78));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  min-height: 620px;
  padding: clamp(30px, 5vw, 58px);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 68%, rgba(255, 36, 61, 0.18), transparent 30%), radial-gradient(circle at 78% 18%, rgba(32, 255, 120, 0.12), transparent 28%);
  pointer-events: none;
}

.status-pill {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(32, 255, 120, 0.08);
  color: var(--green-soft);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  font-weight: 900;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px var(--red);
  animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.14); }
}

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

.hero-card h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  font-size: clamp(4.2rem, 12vw, 9.4rem);
  line-height: 0.78;
  letter-spacing: -0.095em;
  text-transform: uppercase;
}

.hero-card h1 span {
  background: linear-gradient(90deg, var(--green), var(--red));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
  font-size: 1.08rem;
  margin-top: 26px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.secondary-button {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.hero-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-badges span {
  color: var(--green-soft);
  border: 1px solid rgba(32, 255, 120, 0.18);
  background: rgba(32, 255, 120, 0.055);
  border-radius: var(--radius-pill);
  padding: 9px 12px;
  font-weight: 900;
  font-size: 0.84rem;
}

.event-card {
  padding: 28px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: var(--red-line);
}

small, .stats-grid span, .event-meta span, .code-card span {
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 900;
}

.event-card h2 {
  margin-top: 10px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.event-card p { color: var(--muted); line-height: 1.6; margin-top: 16px; }

.event-meta { display: grid; gap: 12px; margin: 28px 0; }

.event-meta div, .code-card {
  border: 1px solid var(--white-line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 22px;
  padding: 18px;
}

.event-meta strong, .code-card strong { display: block; font-size: 1.55rem; margin-top: 8px; }

.code-card { background: linear-gradient(145deg, rgba(32, 255, 120, 0.12), rgba(255, 36, 61, 0.12)); }
.code-card strong { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.07em; }

.timer-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  margin-bottom: 16px;
}

.timer-section h2 { margin-top: 8px; font-size: clamp(1.3rem, 3vw, 2.15rem); letter-spacing: -0.045em; }

.timer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.timer-grid div {
  min-width: 90px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  padding: 14px 10px;
}

.timer-grid strong { display: block; font-size: 1.75rem; }
.timer-grid span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 900; }

.notice-bar {
  padding: 16px 20px;
  color: var(--yellow);
  border-color: rgba(255, 231, 108, 0.28);
  margin-bottom: 16px;
}

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stats-grid article { padding: 22px; }
.stats-grid strong { display: block; margin-top: 8px; font-size: 2rem; letter-spacing: -0.045em; }

.leaderboard-section, .steps-section, .rules-section, .faq-section {
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2, .faq-section h2 {
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin-top: 8px;
}

.section-heading p { color: var(--muted); margin-top: 8px; }
.api-note { font-size: 0.92rem; }

.leaderboard-actions { display: flex; gap: 10px; }

.leaderboard-actions input {
  min-width: 220px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 13px 15px;
  outline: none;
  font-weight: 800;
}

.leaderboard-actions input::placeholder { color: rgba(248, 255, 249, 0.52); }

.leaderboard-actions button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.empty-state {
  text-align: center;
  border: 1px dashed rgba(255, 36, 61, 0.4);
  background: linear-gradient(145deg, rgba(32, 255, 120, 0.055), rgba(255, 36, 61, 0.06));
  border-radius: 28px;
  padding: 46px 18px;
}

.empty-icon { font-size: 3.2rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.8rem; letter-spacing: -0.045em; }

.empty-state p {
  color: var(--muted);
  max-width: 660px;
  margin: 10px auto 0;
  line-height: 1.6;
}

.table-shell { display: none; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.rank-pill {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #050607;
  background: linear-gradient(145deg, var(--green), var(--red));
  font-weight: 900;
}

.player-name, .amount { font-weight: 900; }
.amount { color: var(--green); }

.status-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(32, 255, 120, 0.2);
  background: rgba(32, 255, 120, 0.09);
  color: var(--green-soft);
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  font-weight: 900;
  font-size: 0.78rem;
}

.steps-grid, .rules-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.steps-grid article, .rules-list article, .faq-section details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 24px;
  padding: 22px;
}

.steps-grid span { color: var(--red); font-weight: 900; }
.steps-grid h3, .rules-list h3 { margin: 12px 0 8px; }
.steps-grid p, .rules-list p, .faq-section p { color: var(--muted); line-height: 1.6; }

.faq-section details { margin-top: 12px; }
.faq-section summary { cursor: pointer; font-weight: 900; }
.faq-section p { margin-top: 12px; }

.site-footer {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px 0 36px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 120px);
  background: var(--text);
  color: #050607;
  border-radius: var(--radius-pill);
  padding: 13px 17px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
  z-index: 20;
}

.toast.show { transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 930px) {
  .site-header { flex-wrap: wrap; }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 1.2rem;
  }

  .header-copy { display: none; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    border-radius: 20px;
  }

  .nav-links.open { display: flex; }

  .hero-section, .stats-grid, .steps-grid, .rules-list { grid-template-columns: 1fr; }

  .hero-card, .event-card { min-height: auto; }

  .timer-section, .section-heading { align-items: flex-start; flex-direction: column; }

  .leaderboard-actions { width: 100%; flex-direction: column; }
  .leaderboard-actions input, .leaderboard-actions button { width: 100%; }

  .timer-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .timer-grid div { min-width: 0; }

  th, td { white-space: nowrap; }
}

@media (max-width: 520px) {
  main, .site-header, .site-footer { width: min(100% - 18px, 1200px); }

  .brand-logo { width: 50px; height: 50px; }

  .hero-card h1 { font-size: clamp(3.5rem, 18vw, 5rem); }

  .hero-actions { flex-direction: column; }
  .hero-actions button, .hero-actions a { width: 100%; text-align: center; }
}






.brand-logo.image-logo {
  overflow: hidden;
  background: #050607;
  padding: 0;
  box-shadow:
    0 0 42px rgba(255, 36, 61, 0.38),
    0 0 34px rgba(32, 255, 120, 0.18);
}

.brand-logo.image-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Final premium polish */
.hero-card {
  border-color: rgba(255, 36, 61, 0.22);
}

.primary-button,
.copy-button {
  position: relative;
  overflow: hidden;
}

.primary-button::after,
.copy-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.primary-button:hover::after,
.copy-button:hover::after {
  transform: translateX(120%);
}

.code-card strong,
.hero-card h1 span {
  text-shadow: 0 0 24px rgba(255, 36, 61, 0.35);
}

.steps-grid article:nth-child(3) {
  border-color: rgba(255, 36, 61, 0.34);
  background: linear-gradient(145deg, rgba(255, 36, 61, 0.10), rgba(32, 255, 120, 0.045));
}

.api-note {
  color: var(--green-soft) !important;
}

