@font-face {
      font-family: "TestNationalExtraBold";       /* custom name */
      src: url("../fonts/TestNational2-Extrabold.otf");
      font-weight: normal;
      font-style: normal;
    }
    body {
      margin: 0;
      height: 100vh;
      background: url("../images/game.jpg") no-repeat center center fixed;
      background-size: contain;
      overflow: hidden;
      cursor: none;
      font-family: "TestNationalExtraBold";
      //color: white;
      position: relative;
      background-color: #111;
    }
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: none;
 user-select: none;         /* Standard */
  -webkit-user-select: none; /* Safari/Chrome */
  -ms-user-select: none;
    }
    ::-webkit-scrollbar { display: none; }
    body { scrollbar-width: none; }
   /* Start screen container */
    #start-screen {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background: url("../images/start-bg.png") no-repeat center center;
      background-size: cover;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 1s ease; /* smooth fade */
    }

    #start-screen.fade-out {
      opacity: 0;
      pointer-events: none;
    }

    /* Start button */
    #start-btn {
      width: 400px;
      height: auto;
      cursor: pointer;
      transition: transform 0.2s ease;
      margin-left:47px;
    }
    #start-btn:hover,#mute-btn:hover,#leaderboard-btn:hover {
      transform: scale(1.05);
    }

    /* Mute & Leaderboard buttons */
    .control-btn {
      position: absolute;
      bottom: 20px;
      z-index: 1000;
      background: #fff;
      border: none;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      font-size: 22px;
      cursor: pointer;
      color: #111;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
    #mute-btn { right: 20px; }
    #leaderboard-btn { right: 80px; }

    /* Leaderboard overlay */
    #leaderboard-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 2000;
    }
    #leaderboard-box {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      width: 400px;
      max-height: 80%;
      overflow-y: auto;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
      text-align: center;
    }
    #leaderboard-box h2 {
      margin: 0 0 15px;
    }
    #leaderboard-box table {
      width: 100%;
      border-collapse: collapse;
    }
    #leaderboard-box th, #leaderboard-box td {
      padding: 8px;
      border-bottom: 1px solid #ddd;
    }
    #leaderboard-close {
      margin-top: 10px;
      padding: 8px 16px;
      border: none;
      border-radius: 5px;
      background: #222;
      color: #fff;
      cursor: pointer;
    }



    #cursor-dot {
      position: absolute;
      width: 12px;
      height: 12px;
      background: #00ffff;
      border-radius: 50%;
      box-shadow: 0 0 12px #00ffff;
      pointer-events: none;
      transform: translate(-50%, -50%);
      z-index: 1000;
display: none;
    }

    .flash {
      position: absolute;
      width: 20px;
      height: 20px;
      background: radial-gradient(circle, #ffffff, #00ffff);
      border-radius: 50%;
      pointer-events: none;
      z-index: 1001;
      transform: translate(-50%, -50%);
      box-shadow: 0 0 20px 10px #00ffff;
      animation: flash-fade 0.15s ease-out forwards;
    }
    @keyframes flash-fade {
      0% { opacity: 1; transform: scale(1); }
      100% { opacity: 0; transform: scale(1.8); }
    }

    .slash {
  position: absolute;
  width: 160px; /* slightly wider for visibility */
  height: 8px;  /* thicker streak */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0), /* transparent start */
    #ffffff,                /* pure white */
    #f2f2f2,                /* silver center */
    #ffffff                 /* pure white edge */
  );
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 
    0 0 12px #ffffff,
    0 0 24px #f2f2f2,
    0 0 48px #ffffff,
    0 0 72px rgba(255, 255, 255, 0.9);
  animation: slash-anim 0.3s ease-out forwards; /* slightly faster */
  z-index: 999;
  transform-origin: left bottom;
  transform: rotate(35deg);
  filter: drop-shadow(0 0 10px #ffffff);
}
    @keyframes slash-anim {
      0% { transform: rotate(35deg) translate(0, 0) scaleX(-0.5); opacity: 1; }
      100% { transform: rotate(35deg) translate(120px, -50px) scaleX(0.5); opacity: 0; }
    }

    .slashable {
      position: absolute;
      width: 180px;
      height: 180px;
      bottom: -120px;
      left: 0;
      background-size: cover !important;
      background-position: center !important;
      z-index: 10;
    }

    #scoreboard, #timer {
      position: absolute;
      font-size: 78px;
      /*background: rgba(0, 0, 0, 0.4);*/
      padding: 10px 15px;
      border-radius: 8px;
      z-index: 999;
      color:red;
    }
    #scoreboard { right: 48px; top:80px; }
    #timer { left: 668px; top:50px; } 

    #game-over {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      background: rgba(0,0,0,0.8);
      padding: 30px;
      border-radius: 12px;
      display: none;
      z-index: 2000;
    }
    #game-over button {
      padding: 10px 20px;
      font-size: 16px;
      margin-top: 15px;
      cursor: pointer;
      background: #00ffff;
      border: none;
      color: #111;
      border-radius: 6px;
    }
#supercharged-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2500;
}

.supercharged-line {
  position: absolute;
  background: yellow;
  box-shadow: 0 0 20px yellow, 0 0 40px gold, 0 0 60px yellow;
  animation: glowPulse 0.8s infinite alternate,
             blinkBorder 1s infinite;
}

/* Glow effect */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px yellow, 0 0 20px gold, 0 0 30px yellow;
  }
  100% {
    box-shadow: 0 0 30px yellow, 0 0 60px gold, 0 0 90px yellow;
  }
}

/* Blink effect */
@keyframes blinkBorder {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.edge-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
}

.edge-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
}

.edge-left {
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
}

.edge-right {
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
}


