*, *::before, *::after {
    box-sizing: border-box;
  }
  .bg{
    display: block;
    position: absolute;
    max-width: 550px;
  }
  
  img{
    width: 100%;
  }
  body {
    margin: 0;
    font-family: var(--font-sans);
    background: black;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    
  }

  main {
    max-width: 440px;
    width: 100%;
    text-align: center;
    padding: 0 1rem;
    margin: 0 auto;
  }

  h1 {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-color);
  }

  .wheel-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px!important;
    user-select: none;
    position: relative;
    margin: 0 auto;
  }
.center-area {
  grid-column: span 3;
  grid-row: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff5cc;
  border-radius: 20px;
}

.center-icon {
    max-width: 70%;
    max-height: 100%;
    position: absolute;
}

  .cell {
    box-shadow: 0 2px 6px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition:
      background-color 0.3s ease,
      color 0.3s ease,
      box-shadow 0.3s ease,
      transform 0.3s ease;
    user-select: none;
    word-break: break-word;
  }

  .cell.highlighted {
    background: red;
    color: #fff;
    box-shadow: 0 6px 16px var(--primary-hover);
    transform: scale(2);
    z-index: 2;
    padding: 10px;
  }

  .center-cell {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .center-cell img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.1));
  }

  .disabled-cell {
    background: transparent;
    box-shadow: none;
  }

  button.spin-btn {
    padding: 0.85rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 5px 14px var(--shadow-medium);
    width: 100%;
    max-width: 500px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  button.spin-btn:hover:not(:disabled),
  button.spin-btn:focus:not(:disabled) {
    background: var(--primary-hover);
    outline-offset: 2px;
    outline: 2px solid var(--primary-hover);
  }
  button.spin-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }

  .modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    user-select: none;
    padding: 1rem;
  }

  .modal {
    border-radius: 1.25rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    outline-offset: 4px;
  }
  .modal:focus {
    outline: none;
  }

  .modal-subtext {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-top: 0.3rem;
  }

  .modal-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    cursor: pointer;
  }

  button.modal-button {
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    flex: 1 1 auto;
    transition: background-color 0.3s ease;
    user-select: none;
    min-width: 120px;
    background: none;
  }

  button.try-again-btn {
    background-color: var(--primary-color);
    color: white;
  }
  button.try-again-btn:hover,
  button.try-again-btn:focus {
    background-color: var(--primary-hover);
    outline-offset: 2px;
    outline: 2px solid var(--primary-hover);
  }

  button.spin-again-btn {
    background-color: var(--primary-color);
    color: white;
  }
  button.spin-again-btn:hover,
  button.spin-again-btn:focus {
    background-color: var(--primary-hover);
    outline-offset: 2px;
    outline: 2px solid var(--primary-hover);
  }

  button.go-url-btn {
    background-color: var(--accent-color);
    color: white;
  }
  button.go-url-btn:hover,
  button.go-url-btn:focus {
    background-color: #b91c1c;
    outline-offset: 2px;
    outline: 2px solid #b91c1c;
  }
.bottom-btn{
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
  }

  .content-fixed{
    position: absolute;
    width: 100%;
    max-width: 800px;
      top: 50%;
    transform: translate(0px, -30%);
  }
  
  .assets{
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
@media (max-width: 768px){

h1 {
      font-size: 2.3rem;
    }
    .cell {
      font-size: 0.75rem;
      padding: 0 4px;
    }
    .modal {
      max-width: 90vw;
      padding: 2rem 1.5rem;
      font-size: 1.25rem;
    }
    button.spin-btn {
      font-size: 1.1rem;
      max-width: 100%;
    }
    .modal-buttons {
      gap: 0.8rem;
      flex-direction: column;
      max-width: 280px;
      margin-left: auto;
      margin-right: auto;
    }
    button.modal-button {
      min-width: 100%;
    }
}

@media(max-width:500px){
    .content-fixed{
      transform: translate(0px, -34%);
    }
}

