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

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

html {
  font-size: 62.5%;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(-45deg, #1e3c72, #2a5298, #753682, #bf2e34);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main {
  position: relative;
  width: 100rem;
  height: 60rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  justify-content: center;
}

/* Player card */
.player {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.4);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s ease;
}

.player-header {
  text-align: center;
  margin-bottom: 2rem;
}

.name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.score {
  font-size: 6rem;
  font-weight: 700;
  color: #ff4e8a;
  text-shadow: 0 0 20px #ff4e8a;
}

.current {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  width: 70%;
  text-align: center;
  color: #fff;
  margin-top: auto;
  margin-bottom: 6rem;   /* 👈 المسافة اللي هتبعده عن الأزرار */
}

.current-label {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.current-score {
  font-size: 3rem;
  font-weight: bold;
  color: #00ff95;
  text-shadow: 0 0 12px #00ff95;
}

/* Active / Winner states */
.player--active {
  border: 2px solid #00f7ff;
  box-shadow: 0 0 20px rgba(0,247,255,0.7);
}

.player--winner {
  background: rgba(0,0,0,0.6);
}
.player--winner .name {
  color: #ffd700;
  text-shadow: 0 0 15px #ffd700;
}

/* Dice */
.dice-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.dice {
  height: 9rem;
  display: block;
}

/* Buttons */
.btns {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}

.btn {
  font-family: inherit;
  font-size: 1.6rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff4e8a, #ff0077);
  box-shadow: 0 0.8rem 1.6rem rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

.btn--new {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
}

.btn--hold {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}
