/* ============================================================
   Spēļotava.lv — topu lapas stili (topi-lapa.css)
   Izmanto kopā ar home.css.
   ============================================================ */

.page-hero {
  position: relative;
  overflow: clip;
  padding: 64px 24px 16px;
  text-align: center;
}

.page-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.05;
}

.page-hero h1 .grad {
  background: linear-gradient(100deg, var(--lime) 10%, #7ef0c3 40%, var(--violet) 75%, var(--lime) 95%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.page-hero .hero-lead {
  max-width: 560px;
  margin: 0 auto;
}

/* ==================== Podijs ==================== */

#podijs { padding-top: 26px; }

#podijs::before { content: none; }

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  align-items: end;
  gap: 18px;
}

.podium-slot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.podium-crown {
  font-size: 26px;
  color: var(--lime);
  animation: floaty 3.4s ease-in-out infinite;
  text-shadow: 0 0 22px rgba(200, 245, 66, 0.55);
}

.podium-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 22px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone, #4d94ff) 45%, #0b1322), #0a101d);
  border: 1px solid color-mix(in srgb, var(--tone, #4d94ff) 55%, transparent);
  color: color-mix(in srgb, var(--tone, #4d94ff) 88%, #fff);
  box-shadow: 0 14px 30px rgba(3, 7, 14, 0.5);
}

.podium-slot.first .podium-avatar {
  width: 78px;
  height: 78px;
  font-size: 32px;
  --tone: #c8f542;
}

.podium-slot.second .podium-avatar { --tone: #cfd9e6; }
.podium-slot.third .podium-avatar { --tone: #ffb84d; }

.podium-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.podium-sub {
  font-size: 11.5px;
  color: var(--muted-2);
}

.podium-bar {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 12px;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone, #4d94ff) 16%, transparent), transparent);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: color-mix(in srgb, var(--tone, #4d94ff) 80%, #fff);
}

.podium-slot.first .podium-bar { height: 108px; --tone: #c8f542; }
.podium-slot.second .podium-bar { height: 78px; --tone: #cfd9e6; }
.podium-slot.third .podium-bar { height: 58px; --tone: #ffb84d; }

/* ==================== Tabulas ==================== */

#tabulas {
  --section-glow:
    radial-gradient(32rem 22rem at -8% 30%, rgba(77, 148, 255, 0.09), transparent 68%),
    radial-gradient(28rem 18rem at 104% 84%, rgba(200, 245, 66, 0.06), transparent 68%);
  padding-top: 40px;
  padding-bottom: 40px;
  max-width: 980px;
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.board-tabs button {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.board-tabs button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.board-tabs button.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #16230a;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(200, 245, 66, 0.22);
}

.board-panel .lb-cols,
.board-panel .lb-row {
  grid-template-columns: 44px minmax(0, 1fr) 90px 90px 96px;
}

.board-panel .lb-cols.cols-3,
.board-panel .lb-row.cols-3 {
  grid-template-columns: 44px minmax(0, 1fr) 90px 96px;
}

.board-footnote {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  font-size: 12.5px;
  color: var(--muted);
}

.board-footnote b { color: var(--lime); }

.lb-row.is-you {
  background: rgba(200, 245, 66, 0.06);
  box-shadow: inset 3px 0 0 var(--lime);
}

@media (max-width: 640px) {
  .page-hero { padding: 42px 16px 8px; }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .podium-avatar { width: 50px; height: 50px; font-size: 20px; border-radius: 16px; }
  .podium-slot.first .podium-avatar { width: 62px; height: 62px; font-size: 25px; }
  .podium-name { font-size: 12.5px; }
  .podium-sub { font-size: 10px; }
  .board-panel .hide-mobile { display: none !important; }
  .board-panel .lb-cols,
  .board-panel .lb-row,
  .board-panel .lb-cols.cols-3,
  .board-panel .lb-row.cols-3 { grid-template-columns: 30px minmax(0, 1fr) 60px 72px; padding-left: 14px; padding-right: 14px; }
}
