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

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle, #252525 0%, #050505 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  padding: 20px;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(57, 255, 20, 0.35));
}

.game-card {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  background: #111;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.25);
}

.brand {
  color: #ffd700;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

h1 {
  color: #ffd700;
  margin-bottom: 10px;
}

p {
  color: #ccc;
  margin-bottom: 30px;
}

.box-area {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.mystery-box {
  position: relative;
  width: 180px;
  height: 180px;
  cursor: pointer;
  transition: transform 0.3s;
}

.mystery-box:hover {
  transform: scale(1.05);
}

.box-lid {
  width: 180px;
  height: 40px;
  background: linear-gradient(180deg, #ffd700, #d4af37);
  border-radius: 10px 10px 0 0;
}

.box-body {
  width: 180px;
  height: 140px;
  background: linear-gradient(180deg, #ffb300, #ff8f00);
  border-radius: 0 0 15px 15px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 60px;
  font-weight: bold;
  color: white;
}

.opened .box-lid {
  transform: rotate(-25deg) translateY(-25px);
  transition: 0.5s;
}

button {
  background: linear-gradient(180deg, #ffe600, #ffbf00);
  color: #111;
  border: none;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

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

#result {
  margin-top: 25px;
  color: #ffd700;
  font-size: 24px;
}

.reward-popup {
  position: fixed;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) scale(0);

  background: linear-gradient(180deg, #ffd700, #ffb300);
  color: #111;

  padding: 30px 60px;
  border-radius: 20px;

  font-size: 42px;
  font-weight: bold;

  box-shadow: 0 0 50px rgba(255,215,0,.8);

  z-index: 999;

  opacity: 0;

  transition: all .5s ease;
}

.reward-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.3);
}

.reward-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

@keyframes shakeBox {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-6deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

.mystery-box.shaking {
  animation: shakeBox 0.6s ease;
}