/* Game Section */
#gameArea {
  position: relative;
  width: 100%;
  height: 75vh;
  background: linear-gradient(180deg, #000, #111);
  overflow: hidden;
  border: 2px solid #0ff;
  border-radius: 15px;
  margin-top: 10px;
  box-shadow: 0 0 25px #00ffff33;
}

#player {
  position: absolute;
  bottom: 10px;
  left: 45%;
  width: 80px;
  height: 40px;
  background: #00ff66;
  border-radius: 10px;
}

.item {
  position: absolute;
  top: 0;
  font-size: 30px;
}

#scoreboard {
  text-align: center;
  padding: 10px;
  background: #000;
  border-radius: 8px;
  font-size: 20px;
  margin: 0px auto;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 0 15px #00ffff55;
}

#gameOver, #startScreen {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.9);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

#gameOver { display: none; }
#startScreen { display: block; }

button {
  /*margin-top: 15px;*/
  padding: 8px 20px;
  border: none;
  background: #0f0;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.navbar {
  background: #000;
  box-shadow: 0 0 15px #00ffff44;
}

.details-header {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 80px;
}

#controls {
  display: none;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.control-btn {
  width: 143px;
  height: 65px;
  border-radius: 5%;
  color: #000;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #00cccc;
  box-shadow: 0 0 10px #00ffff88;
  padding: 0px 12px;
}

@media (max-width: 768px) {
  #gameArea { height: 60vh; }
  #player { width: 60px; height: 30px; }
  #scoreboard { font-size: 15px; }
  button { padding: 6px 16px; font-size: 14px; }
  #controls { display: flex; }
}

/* 🔵 Landscape Mode (Horizontal Mobile) */
@media screen and (max-height: 500px) and (orientation: landscape) {
   #controls { display: flex; }
}

/* Responsive Design */
@media (max-width: 768px) {
  #gameOver, #startScreen {
      width: 80%;
      padding: 0;
  }

  #gameArea {
    height: 60vh;
  }

  #player {
    width: 60px;
    height: 30px;
  }

  #scoreboard {
    font-size: 15px;
  }

  button {
    padding: 6px 12px;
    font-size: 14px;
  }

  #controls {
    display: flex;
  }
  #startScreen h2,#gameOver h2 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  #controls {
    display: flex;
  }
}



/* Start Button full screen and sound of and on */
.btn-fs {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg, #00ffff33, #00ffff88);
  border: 2px solid #0ff;
  color: #0ff;
  padding: 10px 25px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 0 12px #00ffff44, inset 0 0 5px #00ffff22;
}
.btn-fs i {
  margin-right: 6px;
}
.btn-fs:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 20px #00ffffaa, 0 0 40px #00ffff55;
  transform: scale(1.05);
}
.btn-fs:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px #00ffff55 inset;
}
/* End Button full screen and sound of and on */

#leftBtn
{  
      background-image: linear-gradient(45deg, rgb(12 208 255), rgb(0 0 255), rgb(159 37 197));
}
#rightBtn
{  
      background-image: linear-gradient(45deg, rgb(159 37 197), rgb(0, 0, 255), rgb(10, 140, 219));
}
#player
{
  background-image: linear-gradient(180deg, rgb(12 208 255), rgb(0 0 255), rgb(159 37 197));
}

/* Card Wrapper */
.event-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0,255,195,0.18);
    border-radius: 14px;
    padding: 16px;
    transition: 0.3s ease;
    box-shadow: 0 0 18px rgba(0,255,195,0.05);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0,255,195,0.2);
}

/* Inner Flex */
.event-inner {
    display: flex;
}

/* Logo */
.event-logo img {
    width: 80px;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(0,255,195,0.25);
    box-shadow: 0 0 12px rgba(0,255,195,0.2);
}

/* Title */
.event-title {
    font-family: 'Orbitron', sans-serif;
    color: #00ffc3;
    font-size: 1.2rem;
}

/* Meta Info */
.event-meta {
    color: #c2c8d0;
    font-size: 0.95rem;
}

/* LIVE Badge */
.live-badge {
    background: rgba(255, 0, 60, 0.8);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

/* not LIVE Badge */
.no-live-badge {
    background: rgb(88 71 75 / 80%);
    color: #8d5656;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

/* Watch Button */
.btn-watch {
    background: linear-gradient(90deg, #00ffc3, #00aaff);
    color: #000;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.25s;
    font-family: 'Orbitron', sans-serif;
}

.btn-watch:hover {
    box-shadow: 0 0 12px #00ffc366;
    transform: translateY(-2px);
}

/* Visit Button */
.btn-visit {
    border: 1px solid rgba(0,255,195,0.3);
    color: #00ffc3;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.25s;
}

.btn-visit:hover {
    background: rgba(0,255,195,0.08);
    box-shadow: 0 0 10px rgba(0,255,195,0.3);
    transform: translateY(-2px);
}


.font-ox {
    font-family: 'Oxanium', sans-serif;
    gap: 12px;
    letter-spacing: 0.3px;
}

#levelMessage {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-image: linear-gradient(45deg, rgb(12 208 255), rgb(0 0 255), rgb(159 37 197));
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    display: none;
    z-index: 9999;
    text-align: center;
    white-space: nowrap;
}

/* 🔹 Tablet */
@media (max-width: 768px) {
    #levelMessage {
        font-size: 18px;
        padding: 8px 16px;
        top: 15px;
    }
}

/* 🔹 Mobile */
@media (max-width: 480px) {
    #levelMessage {
        font-size: 10px;
        padding: 6px 14px;
        top: 10px;
        white-space: normal; /* ছোট স্ক্রিনে text wrap হবে */
    }
}

.control-btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}


.leaderboard-card{
      background: #0a0a0a;
      border: 1px solid rgba(0,255,195,0.08);
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    }

    .rank-badge {     
      background-image: linear-gradient(231deg, rgb(12 208 255 / 89%), rgb(0 179 255 / 32%), rgb(37 160 197 / 71%));
      box-shadow: 0 4px 10px rgba(255,123,123,0.12);
      margin-right:12px;
    }

    .player-avatar {
      width:56px;
      height:56px;
      border-radius:10px;
      object-fit:cover;
      border: 2px solid rgba(255,255,255,0.06);
      margin-right:12px;
      flex-shrink:0;
      background: linear-gradient(45deg,#00d0ff,#9f25c5);
      display:inline-block;
    }

    .player-row {
      display:flex;
      align-items:center;      
      border-radius:10px;
      transition: all .15s ease;
    }
    .player-row:hover {
      transform: translateY(-4px);
      background: rgba(255,255,255,0.01);
    }

    .small-muted { color: #9aa6a6; font-size:0.85rem; }

    .progress {
      height: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
    }

    /* responsive fixes for mobile landscape */
    @media (max-width: 576px) {
      .player-avatar { width:36px; height:36px; }
      .rank-badge { width:20px; height:20px; font-size:0.95rem; }
    }
    .rank-badge {
        width: 40px;
        height: 40px;
        color: #fff;
        font-weight: 600;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .leaderboard-card .card {
        transition: 0.3s;
    }

    .leaderboard-card .card:hover {
        transform: translateY(-3px);
    }