:root {
  --bg: #0e0f13;
  --panel: linear-gradient(135deg, #181b25 60%, #232634 100%);
  --text: #eaeaf0;
  --muted: #a1a4b3;
  --accent: #ffcc33;
  --accent-hover: #ffd966;
  --discord: #5865f2;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --border-radius: 20px;
  --focus: 0 0 0 3px rgba(255, 204, 51, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, sans-serif;
  background: radial-gradient(
    ellipse at top 40% left 60%,
    #232634 0%,
    #181b25 60%,
    var(--bg) 100%
  );
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0px 40px;
}

.clubList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.clubs {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clubs-hero {
  width: 100%;
  max-width: 700px;
  margin: 4rem auto 2.5rem auto;
  text-align: center;
}

.clubs-hero img {
  border-radius: 10px;
}

.clubs-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.clubs-hero .lead {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.clubs-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.clubs-actions {
  display: flex;
  justify-content: center;
}

.clubs-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.5rem 1.1rem;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.tree-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(34, 211, 238, 0.1)
  );
  border: 2px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin: 2rem auto 2rem auto;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tree-button:hover {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.25),
    rgba(34, 211, 238, 0.15)
  );
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.tree-button i {
  width: 20px;
  height: 20px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin: 1.5rem 0 0 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
}

.back-button i {
  width: 18px;
  height: 18px;
}

.clubCard {
  position: relative;
  border: 1px solid var(--border, none);
  border-radius: 12px;
  padding: 8px;
  min-width: 600px;
  overflow: hidden;
  background: var(--bg, none);
}

.clubCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

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

.clubCard > * {
  position: relative;
  z-index: 1;
}

.titleBlock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;

  h2 {
    margin: 0px;
  }

  .top {
    display: flex;
    justify-content: space-between;
  }
}

.subline {
  display: flex;
  gap: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;

  svg {
    width: 12px;
  }
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mega Pig Leaderboard Styles */
.tree-hero {
  margin-top: 2rem;
}

.tree-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #0fd759 0%, #22d3ee 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tree-hero .lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.event-label {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.tree-leaderboard {
  width: 100%;
  max-width: 1100px;
  margin: 0.5rem auto 3rem auto;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  height: 520px;
  margin-bottom: 3rem;
  perspective: 1000px;
}

.podium-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.2rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: podiumBounce 0.6s ease-out;
  min-width: 160px;
}

@keyframes podiumBounce {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.podium-position.position-first {
  order: 2;
  height: 500px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffa500 100%);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1),
    rgba(255, 165, 0, 0.05)
  );
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.podium-position.position-second {
  order: 1;
  height: 400px;
  background: linear-gradient(
    135deg,
    rgba(192, 192, 192, 0.1),
    rgba(169, 169, 169, 0.05)
  );
  border: 2px solid rgba(192, 192, 192, 0.3);
  box-shadow: 0 8px 32px rgba(192, 192, 192, 0.15);
}

.podium-position.position-third {
  order: 3;
  height: 350px;
  background: linear-gradient(
    135deg,
    rgba(205, 127, 50, 0.1),
    rgba(184, 115, 51, 0.05)
  );
  border: 2px solid rgba(205, 127, 50, 0.3);
  box-shadow: 0 6px 24px rgba(205, 127, 50, 0.15);
}

.medal {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.rank-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.club-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.club-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumb-fallback {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
}

.podium-position h3 {
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;

  max-width: 120px;
}

.tickets-badge {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  display: inline-block;
  white-space: nowrap;
}

.wins-badge {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  display: inline-block;
  white-space: nowrap;
}

.info-pills {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.small-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;

  svg {
    width: 10px;
  }
}

.tree-list {
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

.tree-card {
  min-width: 600px;
}

.tree-wins {
  font-size: 0.8rem !important;
}
/* Club card link styling */
.club-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.club-card-link:hover .clubCard {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

.club-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

/* Podium link styling */
.podium-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.podium-link:hover .podium-position {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.podium-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}
