* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", Arial, sans-serif;
  text-align: center;
  padding: 80px 20px 40px;
  color: white;
  background: linear-gradient(135deg, #0a0a0a 0%, #1f0a0d 40%, #6a0d18 75%, #b3121f 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Soft red glows in the background */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  z-index: -1;
}

body::before {
  width: 300px;
  height: 300px;
  background: #e5383b;
  top: -90px;
  left: -90px;
}

body::after {
  width: 360px;
  height: 360px;
  background: #8b0000;
  bottom: -110px;
  right: -110px;
}

/* ---------- Text ---------- */
h1 {
  font-size: 90px;
  font-weight: 700;
  margin: 30px 0 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(229, 56, 59, 0.6);
}

h2 {
  font-size: 36px;
  margin: 20px 0 10px;
}

p {
  font-size: 20px;
  color: #f1dede;
}

/* ---------- Pack cards ---------- */
.packs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

button.pack-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  padding: 30px 20px;
  margin: 0;
  background: rgba(20, 20, 20, 0.85);
  color: white;
  border: 2px solid #e5383b;
  border-radius: 24px;
}

.pack-emoji {
  font-size: 44px;
}

.pack-name {
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0 6px;
}

.pack-desc {
  font-size: 16px;
  font-weight: 400;
  color: #d9bcbc;
  line-height: 1.4;
}

/* ---------- Player inputs ---------- */
#player-inputs input {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 12px auto;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 20px;
  text-align: center;
  color: white;
  background: rgba(20, 20, 20, 0.85);
  border: 2px solid #5a1a20;
  border-radius: 14px;
  outline: none;
}

#player-inputs input:focus {
  border-color: #e5383b;
}

/* ---------- Game ---------- */
.turn {
  font-size: 30px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.info {
  font-size: 16px;
  color: #d9bcbc;
}

.card {
  max-width: 700px;
  margin: 20px auto 30px;
  padding: 45px 30px;
  background: #121212;
  border: 2px solid rgba(229, 56, 59, 0.7);
  border-radius: 28px;
  box-shadow: 0 0 40px rgba(229, 56, 59, 0.25);
}

.card.challenge {
  background: #b3121f;
  border-color: white;
}

.card-label {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px;
}

.card-text {
  font-size: 30px;
  font-weight: 700;
  color: white;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Buttons ---------- */
button {
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  padding: 16px 40px;
  margin: 10px;
  background-color: #e5383b;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

button:hover {
  transform: scale(1.05);
}

button.ghost {
  background-color: #1a1a1a;
  border: 2px solid #e5383b;
}

button.secondary {
  font-size: 16px;
  padding: 10px 26px;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
}

.lang-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 16px;
  padding: 8px 20px;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: 2px solid #e5383b;
  box-shadow: none;
}

[dir="rtl"] .lang-btn {
  right: auto;
  left: 18px;
}

.hidden {
  display: none !important;
}
