html,
body {
  min-height: 100%;
  margin: 0 !important;
  background: url("../image/giris-arka.webp") center center / cover fixed no-repeat;
}
#mainScreen,
#loginScreen {
  min-height: 100vh;
  color: #284a64;
  background: transparent;
}
#mainScreen {
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 16px 120px;
  position: relative;
  overflow: hidden;
}
#mainScreen .topbar {
  display: none;
}
#mainScreen .user-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  padding: 18px;
  color: #284a64;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(55, 104, 132, 0.16);
  backdrop-filter: blur(12px);
}
#mainScreen .user-card img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.94);
  background: #fff;
  object-fit: cover;
}
#mainScreen .user-info {
  min-width: 0;
}
#mainScreen .user-info h3 {
  margin: 0 0 5px;
  color: #23465f;
  font-size: 22px;
  font-weight: 800;
}
#mainScreen .user-info p {
  margin: 3px 0;
  color: #59778b;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#mainScreen #userPoints {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 11px;
  color: #245879;
  background: rgba(224, 244, 252, 0.92);
  border-radius: 999px;
  font-weight: 800;
}
#mainScreen .cards-container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 0;
}
#mainScreen .game-card {
  min-height: 148px;
  padding: 25px 22px;
  border-radius: 26px;
  text-align: left;
  cursor: pointer;
  color: #284a64;
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(55, 104, 132, 0.15);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#mainScreen #soloCard {
  background:
    radial-gradient(circle at 90% 15%, rgba(255,255,255,0.75), transparent 32%),
    linear-gradient(135deg, rgba(244, 239, 255, 0.88) 0%, rgba(226, 235, 255, 0.82) 100%);
  border-left: 5px solid #a59adf;
}
#mainScreen #vsCard {
  background:
    radial-gradient(circle at 90% 15%, rgba(255,255,255,0.75), transparent 32%),
    linear-gradient(135deg, rgba(232, 248, 255, 0.9) 0%, rgba(210, 237, 248, 0.84) 100%);
  border-left: 5px solid #75b7cf;
}
#mainScreen .game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(55, 104, 132, 0.22);
}
#mainScreen .game-card h3 {
  margin: 0 0 12px;
  color: #254d68;
  font-size: 24px;
  font-weight: 800;
}
#mainScreen .game-card p {
  max-width: 360px;
  margin: 0;
  color: #57778b;
  font-size: 16px;
  line-height: 1.5;
}
#bottomIcons {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 22px;
  width: min(100% - 32px, 588px);
  display: flex;
  justify-content: space-around;
  padding: 10px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(202,198,255,0.34);
  border-radius: 999px;
  background: rgba(47, 49, 124, 0.58);
  box-shadow: 0 14px 30px rgba(35, 35, 94, 0.2);
  backdrop-filter: blur(12px);
}
.bottom-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 25px;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.bottom-icon:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.24);
}
#loginScreen.center-screen {
  height: 100vh;
  padding: 24px;
}
#loginScreen h2 {
  margin-bottom: 20px;
  color: #f8f0d3;
  font-weight: 800;
}
#loginScreen .btn-primary {
  padding: 15px 30px;
  border: 0;
  border-radius: 14px;
  color: var(--tema-buton-yazi);
  background: var(--tema-buton-bg);
  font-weight: 800;
}
    .renfum>li {
    border-bottom: solid 1px #C0C0C0;
  }
  .renfum>li {
      background: #fff;
  }
  .seramix {padding:11px 15px;float:left;}
  .leaderboard-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(36, 59, 82, 0.34);
    padding: 18px 12px;
    overflow-y: auto;
  }
  .leaderboard-modal.active {
    display: block;
  }
  .leaderboard-panel {
    max-width: 520px;
    margin: 0 auto;
    min-height: calc(100vh - 36px);
    border-radius: 28px;
    padding: 18px 16px 20px;
    color: #284a64;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.96);
    box-shadow: 0 24px 60px rgba(48, 85, 108, 0.25);
    overflow: visible;
  }
  .leaderboard-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
  }
  .leaderboard-back {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #e2f1f7;
    color: #315c76;
    font-size: 28px;
    box-shadow: inset 0 0 0 1px rgba(73, 119, 147, 0.12);
  }
  .leaderboard-top-tabs,
  .leaderboard-range-tabs {
    display: flex;
    background: #e8f2f7;
    border-radius: 999px;
    overflow: hidden;
  }
  .leaderboard-top-tabs {
    margin: 0 auto 18px;
    max-width: 280px;
  }
  .leaderboard-range-tabs {
    margin: 0 0 18px;
    background: transparent;
    border-bottom: 1px solid #cbdde6;
    border-radius: 0;
  }
  .leaderboard-tab,
  .leaderboard-range {
    flex: 1;
    border: 0;
    background: transparent;
    color: #698697;
    font-weight: 700;
    padding: 12px 10px;
  }
  .leaderboard-tab.active {
    color: #285879;
    background: #fff;
    box-shadow: inset 0 0 0 2px #87b9cf;
  }
  .leaderboard-range.active {
    color: #285879;
    border-bottom: 3px solid #75abc2;
  }
  .leaderboard-category-bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 34px;
    font-weight: 700;
  }
  .leaderboard-category-bar.active {
    display: flex;
  }
  .leaderboard-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 8px;
    align-items: end;
    margin-bottom: 18px;
  }
  .leaderboard-podium-card {
    text-align: center;
  }
  .leaderboard-rank {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
  }
  .leaderboard-rank.gold { color: #ffe46c; }
  .leaderboard-rank.silver { color: #f0f0f0; }
  .leaderboard-rank.bronze { color: #ffca93; }
  .leaderboard-medal {
    width: 110px;
    height: 132px;
    margin: 0 auto 8px;
    border-radius: 58px 58px 28px 28px;
    background: radial-gradient(circle at 50% 24%, #fff 0 26px, #fbe3a6 27px, #d9991b 64%, #b86f00 100%);
    position: relative;
    box-shadow: 0 16px 30px rgba(39, 10, 98, 0.26);
  }
  .leaderboard-medal.silver {
    background: radial-gradient(circle at 50% 24%, #fff 0 26px, #ececec 27px, #d1d1d1 64%, #8b8b8b 100%);
  }
  .leaderboard-medal.bronze {
    background: radial-gradient(circle at 50% 24%, #fff 0 26px, #ffe1d1 27px, #c87d45 64%, #92522b 100%);
  }
  .leaderboard-medal img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 4px solid rgba(255,255,255,0.72);
  }
  .leaderboard-podium-name,
  .leaderboard-podium-points {
    display: block;
    line-height: 1.15;
  }
  .leaderboard-podium-name {
    font-size: 15px;
    font-weight: 700;
    color: #31576e;
  }
  .leaderboard-podium-points {
    font-size: 14px;
    font-weight: 800;
    color: #51758a;
  }
  .leaderboard-list {
    display: grid;
    gap: 12px;
  }
  .leaderboard-row {
    display: grid;
    grid-template-columns: 42px 52px 1fr auto;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #ffffff 0%, #f2f2f2 100%);
    color: #332b86;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
  }
  .leaderboard-row .rank-num {
    font-size: 22px;
    text-align: center;
  }
  .leaderboard-row img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
  }
  .leaderboard-row .score {
    font-size: 28px;
    color: #2d2c7e;
  }
  .leaderboard-row.me {
    background: linear-gradient(90deg, #ff9f1c 0%, #f07d00 100%);
    color: #fff;
  }
  .leaderboard-row.me .score {
    color: #fff;
  }
  @media (max-width: 600px) {
    #mainScreen { padding: 18px 12px 112px; }
    #mainScreen .user-card { padding: 15px; border-radius: 20px; }
    #mainScreen .user-card img { width: 64px; height: 64px; flex-basis: 64px; }
    #mainScreen .game-card { min-height: 132px; padding: 22px 18px; border-radius: 22px; }
    .leaderboard-panel { padding: 16px 12px 18px; }
    .leaderboard-medal { width: 94px; height: 118px; }
    .leaderboard-medal img { width: 56px; height: 56px; }
    .leaderboard-row { grid-template-columns: 34px 46px 1fr auto; padding: 8px 12px; }
    .leaderboard-row .score { font-size: 24px; }
  }
