body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: black;
  }
  .bg img{
    width: 100%;
    max-width: 520px;
  }
  .bg{
    position: relative;
    display: flex;
  }
  .grid-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%);
    text-align: center;
  }
  a img{
    width: 100%;
    max-width: 300px;
  }
  h1 {
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 1.8rem;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 12px;
    padding: 15px;
    border-radius: 15px;
  }
  .grid-item {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    position: relative;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
    transition: box-shadow 0.3s ease;
  }
  .grid-item img {
    max-width: 70px;
    max-height: 70px;
    border-radius: 10px;
    user-select: none;
    pointer-events: none;
  }
  .grid-item.highlight {
    box-shadow:
      0 0 15px 4px #ffd700,
      0 0 30px 8px #ffd700 inset;
    z-index: 1;
    transform: scale(1.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  button {
    background: none;
    border: none;
    cursor: pointer;
  }
  button img{
    width: 100%;
    max-width: 300px;
  }

  .result-message {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    min-height: 28px;
    text-align: center;
  }
  /* Popup Styles */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom:0;
    background:url('images/ASSET/BG.png');
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
  }

  
  .popup h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
  }
  .popup button {
    background: none;
    border: none;
    cursor: pointer;
  }

  @media (max-width:768px){
    .popup-overlay{
        background-size: cover;
    }
    .grid-content{
      transform: translate(-50%, -30%);
    }
  }

  @media (max-width: 400px) {
    .grid-container {
      grid-template-columns: repeat(3, 90px);
      grid-template-rows: repeat(3, 90px);
      gap: 10px;
      padding: 12px;
    }
    .grid-item {
      width: 90px;
      height: 90px;
    }
    .grid-item img {
      max-width: 60px;
      max-height: 60px;
    }
    button {
      padding: 12px 30px;
      font-size: 15px;
    }
    .popup {
      padding: 20px 25px;
      max-width: 280px;
    }
    .popup h2 {
      font-size: 1.3rem;
    }
    .popup button {
      padding: 10px 35px;
      font-size: 15px;
    }
  }