* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #e52d27, #b31217);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

main {
  display: flex;
  flex-direction: row;
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
}

.player {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-align: center;
}

.player--active {
  background: rgba(255, 255, 255, 0.3);
}

.score {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.current {
  background: #ff0055;
  padding: 1rem 2rem;
  border-radius: 10px;
  margin-top: 2rem;
  width: 100%;
  max-width: 200px;
}

.current-label {
  font-size: 1rem;
  text-transform: uppercase;
}

.current-score {
  font-size: 2rem;
}

.dice {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  width: 100px;
  display: none;
}

.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-new {
  top: 20px;
}

.btn-roll {
  top: 60%;
}

.btn-hold {
  top: 70%;
}

.player--winner {
  background-color: #000;
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    height: auto;
  }

  .dice {
    position: static;
    transform: none;
    margin: 1rem auto;
    display: block;
  }

  .btn {
    position: static;
    transform: none;
    margin: 0.5rem auto;
    display: block;
  }

  .btn-new,
  .btn-roll,
  .btn-hold {
    top: auto;
  }

  .score {
    font-size: 3rem;
  }

  .current {
    max-width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .score {
    font-size: 2.5rem;
  }

  .current-score {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .dice {
    width: 80px;
  }
}
