:root {
  --bg-0: #05130f;
  --bg-1: #081f18;
  --bg-2: #0c2a20;
  --panel: #0e2820;
  --panel-2: #123328;
  --border: #1c4536;
  --emerald: #12d78a;
  --emerald-light: #6df5bd;
  --emerald-dark: #0a8f5c;
  --gold: #f2c94c;
  --gold-dark: #b8860b;
  --text: #eafff4;
  --text-dim: #9fc9b8;
  --text-faint: #6f9384;
  --danger-bg: #2a2308;
  --danger-border: #a97c1a;
  font-family: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* dark in the middle, brighter emerald toward the edges — like the reference */
  background:
    radial-gradient(ellipse 62% 55% at 50% 42%, rgba(2,10,7,0.92) 0%, rgba(3,14,10,0.75) 45%, rgba(4,18,12,0) 100%),
    linear-gradient(160deg, #12694a 0%, #0d4d38 22%, #093626 48%, #0b4331 78%, #14724f 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ---------- Background decor ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* checkerboard + grid texture over the whole page */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-conic-gradient(rgba(122, 255, 200, 0.030) 0% 25%, transparent 0% 50%),
    linear-gradient(rgba(122, 255, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 255, 200, 0.045) 1px, transparent 1px);
  background-size: 148px 148px, 74px 74px, 74px 74px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, rgba(0,0,0,0.25) 0%, #000 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, rgba(0,0,0,0.25) 0%, #000 75%);
}

.shape {
  position: absolute;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
  animation: float 11s ease-in-out infinite;
  transform: rotate(var(--rot, 0deg));
}

/* line-art shapes sit further back */
.shape.outline {
  opacity: 0.28;
  filter: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* ---- left side ---- */
.s-dice-big   { top: 7%;  left: 0.5%; --rot: -14deg; animation-delay: 0s; }
.s-dice-mid   { top: 21%; left: 8%;   --rot: 12deg;  animation-delay: 1.4s; }
.s-knife      { top: 40%; left: -3%;  --rot: -6deg;  animation-delay: 2.2s; }
.s-knight     { top: 55%; left: 4%;   --rot: 4deg;   animation-delay: 0.8s; }
.s-card       { bottom: 6%; left: 7%; --rot: -12deg; animation-delay: 3s; }
.s-coin-mid   { top: 80%; left: 0.5%; --rot: 8deg;   animation-delay: 1.8s; }
.s-hex        { top: 33%; left: 12%;  --rot: 10deg;  animation-delay: 2.6s; }

/* ---- right side ---- */
.s-coin-big   { top: 3%;  right: -85px; --rot: 6deg;   animation-delay: 0.5s; }
.s-gem        { top: 52%; right: 1.5%;  --rot: 6deg;   animation-delay: 1s; }
.s-panel      { bottom: 4%; right: -70px; --rot: 0deg; animation-delay: 2.4s; }
.s-dice-out   { top: 70%; right: 12%;   --rot: -10deg; animation-delay: 3.2s; }
.s-coin-small { bottom: 8%; right: 10%;  --rot: -6deg;  animation-delay: 2.8s; }
.s-chips      { top: 12%; right: 12%;    --rot: 8deg;   animation-delay: 2s; }

/* ---- extra fill: left ---- */
.s-ring       { top: 3%;  left: 13%;  --rot: 0deg;   animation-delay: 1.2s; }
.s-dollar     { top: 46%; left: 12%;  --rot: -8deg;  animation-delay: 3.6s; }
.s-club       { bottom: 30%; left: 10%; --rot: 12deg; animation-delay: 0.6s; }
.s-pyramid    { top: 63%; left: 14%;  --rot: -6deg;  animation-delay: 2.9s; }
.s-dice-tiny  { top: 88%; left: 9%;   --rot: 16deg;  animation-delay: 1.7s; }

/* ---- extra fill: right ---- */
.s-crown      { top: 4%;  right: 14%; --rot: -6deg;  animation-delay: 2.1s; }
.s-card2      { top: 38%; right: 13%; --rot: 10deg;  animation-delay: 0.4s; }
.s-spade      { top: 62%; right: 5%;  --rot: -10deg; animation-delay: 3.8s; }
.s-ring2      { bottom: 24%; right: 13%; --rot: 0deg; animation-delay: 1.3s; }
.s-gem2       { top: 86%; right: 3%;  --rot: 12deg;  animation-delay: 2.5s; }

/* ---- floating cubes ---- */
.cube {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(140deg, #a8f0d0, var(--emerald) 45%, #12694a);
  box-shadow: inset 0 0 0 1px rgba(234,255,244,0.35), 0 10px 20px rgba(0,0,0,0.45);
}
.c1 { top: 18%;  left: 15%; --rot: 22deg;  animation-delay: 0.3s; }
.c2 { top: 47%;  left: 6%;  --rot: -18deg; width: 18px; height: 18px; animation-delay: 1.9s; }
.c3 { top: 68%;  left: 11%; --rot: 30deg;  width: 20px; height: 20px; animation-delay: 2.7s; }
.c4 { bottom: 18%; left: 2%; --rot: -25deg; animation-delay: 1.1s; }
.c5 { top: 15%;  right: 16%; --rot: 16deg; width: 18px; height: 18px; animation-delay: 0.9s; }
.c6 { top: 44%;  right: 11%; --rot: -20deg; animation-delay: 2.3s; }
.c7 { top: 62%;  right: 16%; --rot: 28deg; width: 16px; height: 16px; animation-delay: 3.4s; }
.c8 { bottom: 26%; right: 3%; --rot: -14deg; width: 22px; height: 22px; animation-delay: 1.5s; }
.c9  { top: 8%;  left: 9%;   --rot: -22deg; width: 16px; height: 16px; animation-delay: 3.1s; }
.c10 { top: 33%; left: 3%;   --rot: 18deg;  width: 20px; height: 20px; animation-delay: 0.7s; }
.c11 { top: 56%; left: 15%;  --rot: -28deg; width: 14px; height: 14px; animation-delay: 2.2s; }
.c12 { bottom: 8%; left: 14%; --rot: 24deg; width: 18px; height: 18px; animation-delay: 3.7s; }
.c13 { top: 5%;  right: 8%;  --rot: -16deg; width: 20px; height: 20px; animation-delay: 1.4s; }
.c14 { top: 30%; right: 16%; --rot: 26deg;  width: 15px; height: 15px; animation-delay: 2.9s; }
.c15 { top: 78%; right: 15%; --rot: -20deg; width: 19px; height: 19px; animation-delay: 0.5s; }
.c16 { bottom: 3%; right: 17%; --rot: 14deg; width: 16px; height: 16px; animation-delay: 3.3s; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 24, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #052015;
}

.brand-name b { color: var(--emerald-light); font-weight: 800; }

.main-nav {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}

.nav-link.active, .nav-link:hover {
  background: rgba(18, 215, 138, 0.12);
  color: var(--emerald-light);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pot-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 16px;
}

.pot-text { display: flex; flex-direction: column; line-height: 1.2; }
.pot-label { font-size: 10px; color: var(--text-faint); font-weight: 700; letter-spacing: 0.5px; }
.pot-amount { font-size: 15px; font-weight: 800; color: var(--emerald-light); }

/* ---------- Main / Hero ---------- */
main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}

.btn {
  padding: 14px 26px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.12s, filter 0.12s;
}

.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #052015;
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.prize-display {
  margin-bottom: 4px;
}

.prize-amount {
  font-size: 104px;
  font-weight: 800;
  background: linear-gradient(180deg, #d7fff0 0%, var(--emerald-light) 45%, var(--emerald-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(18, 215, 138, 0.35);
  letter-spacing: -2px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin: 10px 0 32px;
}

.lb-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.lb-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 22px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}

.lb-tab.active {
  background: rgba(18, 215, 138, 0.12);
  border-color: var(--emerald);
  color: var(--emerald-light);
}

.tab-badge {
  width: 23px; height: 23px;
  border-radius: 6px;
  background: var(--emerald-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #eafff4;
}

/* ---------- Podium ---------- */
.podium {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  width: 100%;
  justify-content: center;
  margin-bottom: 80px;
}

.podium-card {
  border-radius: 20px;
  width: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 26px 44px -20px rgba(0, 0, 0, 0.9);
}

.podium-top {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255,255,255,0.07), transparent 70%),
    linear-gradient(165deg, #16382c 0%, var(--panel) 55%, #0c2419 100%);
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 3px solid var(--emerald);
  box-shadow: 0 3px 16px -2px rgba(18, 215, 138, 0.55);
}

/* raised 3D plinth under the card */
.podium-bottom {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), transparent 32%),
    linear-gradient(180deg, #1c4034 0%, #14302a 45%, #0b1a16 100%);
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 3px 0 0 rgba(255, 255, 255, 0.05),
    inset -3px 0 0 rgba(0, 0, 0, 0.4),
    inset 0 -18px 26px -14px rgba(0, 0, 0, 0.85);
}

/* front face of the plinth — gives it thickness */
.podium-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.podium-card.rank-1 {
  width: 330px;
  border-color: var(--gold-dark);
  box-shadow: 0 0 55px rgba(242, 201, 76, 0.18), 0 30px 50px -20px rgba(0, 0, 0, 0.9);
}
.podium-card.rank-1 .podium-top {
  padding-top: 40px;
  border-bottom-color: var(--gold);
  box-shadow: 0 3px 18px -2px rgba(242, 201, 76, 0.6);
}
.podium-card.rank-1 .podium-bottom {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), transparent 32%),
    linear-gradient(180deg, #4a3c16 0%, #33290f 45%, #171205 100%);
}
.podium-card.rank-3 .podium-top {
  border-bottom-color: #c98b4f;
  box-shadow: 0 3px 16px -2px rgba(201, 139, 79, 0.55);
}
.podium-card.rank-3 .podium-bottom {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), transparent 32%),
    linear-gradient(180deg, #3c2c1e 0%, #2a1f15 45%, #140f0b 100%);
}

.crown {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  line-height: 0;
}

.podium-avatar { position: relative; margin-bottom: 16px; }

.avatar-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: #052015;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.avatar-circle.gold { background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 70%); width: 112px; height: 112px; font-size: 30px; }
.avatar-circle.silver { background: radial-gradient(circle at 35% 30%, #f2f8f5, #b9d4c8 70%); }
.avatar-circle.bronze { background: radial-gradient(circle at 35% 30%, #f5dcc0, #c98b4f 70%); }

.medal {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: #b9d4c8;
  border: 2px solid #0c2419;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #0c2419;
}
.medal.gold { background: var(--gold); }
.medal.bronze { background: #c98b4f; }

.podium-name { font-weight: 800; font-size: 40px; line-height: 1.1; margin-bottom: 14px; }
.podium-card.rank-1 .podium-name { font-size: 46px; }

.label {
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 2px;
}
.value { font-size: 24px; font-weight: 800; color: var(--text); }
.value.big { font-size: 32px; margin-bottom: 12px; }
.value.small { font-size: 22px; }

.podium-bottom .label:first-child { color: var(--gold); }
.podium-card.rank-3 .podium-bottom .label:first-child { color: #e0a869; }

/* ---------- Countdown ---------- */
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin-bottom: 72px;
}

.countdown-title {
  color: var(--emerald-light);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
}

.countdown-row {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  justify-content: center;
}

.cd-rule {
  flex: 1;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.cd-rule:last-child { background: linear-gradient(90deg, var(--border), transparent); }

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd-unit {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 86px;
}

.cd-value { font-size: 36px; font-weight: 800; line-height: 1.1; }
.cd-label { font-size: 12px; color: var(--text-faint); letter-spacing: 0.6px; margin-top: 4px; }
.cd-sep { font-size: 26px; font-weight: 800; color: var(--text-faint); }

.countdown-updated {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
}
.countdown-updated b { color: var(--text); }

/* ---------- Table ---------- */
.table-block {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
}

.table-header h2 { margin: 0; font-size: 34px; }

.my-position {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--emerald-light);
}
.my-position b { color: var(--text-dim); }

.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  text-align: center;
  padding: 0 26px 26px;
}

.lb-table th {
  padding: 6px 18px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--emerald-light);
}

.lb-table td {
  padding: 20px 18px;
  font-size: 17px;
  font-weight: 700;
  background: var(--panel-2);
  border-top: 1px solid rgba(28, 69, 54, 0.7);
  border-bottom: 1px solid rgba(28, 69, 54, 0.7);
}
.lb-table td:first-child { border-left: 1px solid rgba(28,69,54,0.7); border-radius: 12px 0 0 12px; }
.lb-table td:last-child  { border-right: 1px solid rgba(28,69,54,0.7); border-radius: 0 12px 12px 0; }

.lb-table tbody tr:hover td { background: #163b2e; }

.player-cell { display: flex; align-items: center; gap: 12px; justify-content: center; }

.player-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6fff0, var(--emerald-dark) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #052015;
}

.prize-cell { color: var(--gold); }
.reward-cell { color: var(--emerald-light); }
.prize-cell.dash, .reward-cell.dash { color: var(--text-faint); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(5, 19, 15, 0.6);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-copy { color: var(--text-faint); font-size: 13px; margin: 0; }

.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 140px; }
.footer-col h4 { margin: 0 0 4px; font-size: 15px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--emerald-light); }

/* ---------- Responsive ---------- */
/* decor needs side gutters — hide it when the viewport gets narrow */
@media (max-width: 1500px) {
  .bg-decor .shape { display: none; }
}

@media (max-width: 720px) {
  .navbar-inner { flex-wrap: wrap; padding: 14px 18px; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; }
  .prize-amount { font-size: 56px; }
  .podium { flex-direction: column-reverse; align-items: center; }
  .podium-card, .podium-card.rank-1 { width: 100%; max-width: 300px; }
  .countdown-timer { flex-wrap: wrap; justify-content: center; }
  .table-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
