@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

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

html {
  font-size: 62.5%;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa, #e4ebf5);
  color: #1f2933;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LAYOUT */
main {
  width: 100rem;
  height: 60rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 1.6rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
  display: flex;
  overflow: hidden;
}

.player {
  flex: 1;
  padding: 8rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.4s ease, transform 0.3s ease;
}

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

/* ELEMENTS */
.name {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.score {
  font-size: 7.5rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: auto;
}

.current {
  width: 70%;
  padding: 2.4rem;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-radius: 1.2rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.current-label {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.current-score {
  font-size: 3.6rem;
  font-weight: 600;
}

/* BUTTONS */
.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #374151;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.btn:active {
  transform: translateX(-50%) scale(0.97);
}

.btn--new {
  top: 3.5rem;
}
.btn--roll {
  top: 39rem;
}
.btn--hold {
  top: 46rem;
}

/* DICE */
.dice {
  position: absolute;
  top: 16.5rem;
  left: 50%;
  transform: translateX(-50%);
  height: 10rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* STATES */
.player--winner {
  background: #eef2ff;
}

.player--winner .name {
  color: #4f46e5;
}

.hidden {
  display: none;
}

.change-button {
  position: absolute;
  top: 0;
  right: 0;
}

/* Change button wrapper */
.change-button {
  padding: 10px;
}

/* Button styling */
.change-button button {
  background-color: #ffffff;
  color: #111;
  border: 1px solid #ddd;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 8px;

  transition: all 0.3s ease;
}

/* Icon styling */
.change-button button i {
  color: #000000; /* sun color */
  font-size: 16px;
}

/* Hover effect */
.change-button button:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

/* Active / pressed effect */
.change-button button:active {
  transform: scale(0.97);
}
