/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  line-height: 1.6;
  font-size: 16px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Tournaments Section */
.tournaments {
  padding: 60px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading img.subtitle {
  max-width: 200px;
  margin-bottom: 10px;
}

.section-heading .title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-heading .title span {
  color: #FFD700;
}

.section-heading .text {
  color: #ccc;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.section-heading .text span {
  color: #FFD700;
}

/* Draw Timer */
.draw-time {
  text-align: center;
  margin-bottom: 40px;
}

.draw-time .subtitle {
  color: #ff344d;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.draw-time .draw-counter {
  font-size: 34px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.draw-time .text {
  color: #ccc;
  font-size: 16px;
}

/* Leaderboard Header */
.leaderboard-header {
  text-align: center;
  margin-bottom: 20px;
}

.leaderboard-header .header-box {
  background: linear-gradient(90deg, #ff344d, #ff5263);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.leaderboard-header .header-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: block;
  text-align: center;
}

/* Top 3 Award Cards */
.row .first-awards,
.row .second-awards,
.row .third-awards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 15px;
}

.single-awards {
  text-align: center;
  background: #222 !important;
  border-radius: 8px;
  padding: 12px 12px 20px 12px !important;
  border: 1px solid #333; /* Darker border to match leaderboard */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  width: 220px;
  height: 240px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease;
  will-change: transform;
}

.single-awards:hover {
  transform: translateY(-15px) !important;
  -webkit-transform: translateY(-15px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6) !important;
}

.first-awards .single-awards:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(200, 170, 0, 0.7) !important; /* Less bright gold */
}

.second-awards .single-awards:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(150, 150, 150, 0.7) !important; /* Less bright silver */
}

.third-awards .single-awards:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(160, 100, 40, 0.7) !important; /* Less bright bronze */
}

.single-awards .rank-label {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 auto 8px;
  display: block;
  text-align: center;
  order: 1;
  flex-shrink: 0;
}

.single-awards .rank-label .rank-number {
  font-size: 24px;
}

.single-awards img.user {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #ffffff; /* White avatar border */
  margin: 0 auto 8px;
  object-fit: cover;
  order: 2;
  flex-shrink: 0;
}

.single-awards h4.title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 8px;
  min-height: 18px;
  order: 3;
  flex-shrink: 0;
}

.single-awards .xp-earned {
  font-size: 16px;
  font-weight: 700;
  color: #ADD8E6; /* Light blue for XP earned */
  margin: 0 auto 16px !important;
  min-height: 16px;
  order: 4;
  flex-shrink: 0;
}

.single-awards .left i.xp {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  color: #FFD700; /* Gold for coin value */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px !important;
  min-height: 16px;
  order: 5;
  flex-shrink: 0;
}

.single-awards .left i.xp img {
  margin-right: 8px;
}

/* Olympic Standing Styling */
.first-awards .single-awards {
  transform: translateY(-30px) !important;
  background: linear-gradient(180deg, #D4AF37 0%, rgba(34, 34, 34, 0.9) 70%, #222 100%) !important; /* Less bright gold */
}

.first-awards .single-awards:hover {
  transform: translateY(-45px) !important;
  -webkit-transform: translateY(-45px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(200, 170, 0, 0.7) !important; /* Less bright gold */
}

.second-awards .single-awards {
  transform: translateY(-15px) !important;
  background: linear-gradient(180deg, #A9A9A9 0%, rgba(34, 34, 34, 0.9) 70%, #222 100%) !important; /* Less bright silver */
}

.second-awards .single-awards:hover {
  transform: translateY(-30px) !important;
  -webkit-transform: translateY(-30px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(150, 150, 150, 0.7) !important; /* Less bright silver */
}

.third-awards .single-awards {
  transform: translateY(0) !important;
  background: linear-gradient(180deg, #A0522D 0%, rgba(34, 34, 34, 0.9) 70%, #222 100%) !important; /* Less bright bronze */
}

.third-awards .single-awards:hover {
  transform: translateY(-15px) !important;
  -webkit-transform: translateY(-15px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(160, 100, 40, 0.7) !important; /* Less bright bronze */
}

.left {
  margin-top: 16px !important;
}

/* Leaderboard Table */
.responsive-table {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ff344d #333;
  background: #222 !important;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  padding: 10px;
  border: 1px solid #333; /* Darker border to match award cards */
}

.responsive-table::-webkit-scrollbar {
  width: 8px;
}

.responsive-table::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}

.responsive-table::-webkit-scrollbar-thumb {
  background: #ff344d;
  border-radius: 4px;
}

.table {
  width: 100%;
  border: 1px solid #333; /* Darker border to match award cards */
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(90deg, #ff344d, #ff5263) !important;
  color: #fff !important;
}

.table th {
  padding: 18px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #333; /* Darker border to match */
  font-size: 16px;
}

.table th:last-child {
  border-right: none;
}

.table tbody {
  background: transparent !important;
}

.table tbody tr {
  border-bottom: 1px solid #333; /* Darker border to match */
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  background: #2a2a2a !important;
}

.table tbody tr:nth-child(even) {
  background: #252525 !important;
}

.table tbody tr:hover {
  background-color: rgba(255, 52, 77, 0.3) !important;
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(255, 52, 77, 0.5) !important;
}

.table td {
  padding: 18px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #333; /* Darker border to match */
  color: #fff !important;
  background: transparent !important;
  font-weight: 700;
  font-size: 15px;
}

.table td:last-child {
  border-right: none;
}

.table td img {
  margin-right: 8px;
  vertical-align: middle;
}

/* Emphasize XP and Rank columns */
.table td:nth-child(1) {
  color: #ff344d;
  font-weight: 700;
}

.table td:nth-child(3) {
  color: #FFD700;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 991px) {
  .section-heading .title {
    font-size: 28px;
  }

  .section-heading .title span {
    font-size: 36px;
  }

  .single-awards {
    width: 160px;
    height: 200px !important;
    padding: 10px 10px 16px 10px !important;
    border: 1px solid #333; /* Darker border to match */
    overflow: hidden;
    border-radius: 8px;
  }

  .single-awards:hover {
    transform: translateY(-12px) !important;
    -webkit-transform: translateY(-12px) !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6) !important;
  }

  .first-awards .single-awards:hover {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(200, 170, 0, 0.7) !important; /* Less bright gold */
  }

  .second-awards .single-awards:hover {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(150, 150, 150, 0.7) !important; /* Less bright silver */
  }

  .third-awards .single-awards:hover {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(160, 100, 40, 0.7) !important; /* Less bright bronze */
  }

  .single-awards img.user {
    width: 50px;
    height: 50px;
    border: 3px solid #ffffff; /* White avatar border */
  }

  .single-awards h4.title {
    font-size: 14px;
    min-height: 16px;
  }

  .single-awards .xp-earned {
    font-size: 14px;
    min-height: 14px;
    margin-bottom: 12px !important;
    color: #ADD8E6; /* Light blue for XP earned */
  }

  .single-awards .left i.xp {
    font-size: 14px;
    min-height: 14px;
    margin-bottom: 12px !important;
    color: #FFD700; /* Gold for coin value */
  }

  .single-awards .rank-label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .single-awards .rank-label .rank-number {
    font-size: 20px;
  }

  .single-awards .left i.xp img {
    margin-right: 6px;
  }

  .first-awards .single-awards {
    transform: translateY(-20px) !important;
    background: linear-gradient(180deg, #D4AF37 0%, rgba(34, 34, 34, 0.9) 70%, #222 100%) !important; /* Less bright gold */
  }

  .first-awards .single-awards:hover {
    transform: translateY(-32px) !important;
    -webkit-transform: translateY(-32px) !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(200, 170, 0, 0.7) !important; /* Less bright gold */
  }

  .second-awards .single-awards {
    transform: translateY(-10px) !important;
    background: linear-gradient(180deg, #A9A9A9 0%, rgba(34, 34, 34, 0.9) 70%, #222 100%) !important; /* Less bright silver */
  }

  .second-awards .single-awards:hover {
    transform: translateY(-22px) !important;
    -webkit-transform: translateY(-22px) !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(150, 150, 150, 0.7) !important; /* Less bright silver */
  }

  .third-awards .single-awards {
    transform: translateY(0) !important;
    background: linear-gradient(180deg, #A0522D 0%, rgba(34, 34, 34, 0.9) 70%, #222 100%) !important; /* Less bright bronze */
  }

  .third-awards .single-awards:hover {
    transform: translateY(-12px) !important;
    -webkit-transform: translateY(-12px) !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(160, 100, 40, 0.7) !important; /* Less bright bronze */
  }

  .responsive-table {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #333; /* Darker border to match */
  }

  .table th {
    padding: 12px;
    font-size: 14px;
    border-right: 1px solid #333; /* Darker border to match */
  }

  .table td {
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    border-right: 1px solid #333; /* Darker border to match */
  }

  .leaderboard-header .header-text {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .row .first-awards,
  .row .second-awards,
  .row .third-awards {
    margin-bottom: 20px;
  }

  .table th,
  .table td {
    font-size: 13px;
    padding: 10px;
  }

  .table td {
    font-weight: 700;
  }

  .table td img {
    margin-right: 6px;
  }

  .draw-time .draw-counter {
    font-size: 24px;
  }

  .responsive-table {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #333; /* Darker border to match */
  }

  .section-heading .title span {
    font-size: 32px;
  }

  .leaderboard-header .header-text {
    font-size: 13px;
  }
}