/* Scratch Game Styles */
.scratch-main {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background-color: #ffffff;
}

.scratch-container {
  max-width: 500px;
  width: 100%;
  background: #006600;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #ffffff;
}

.scratch-title {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 28px;
}

.ep-display {
  background: rgba(0, 0, 0, 0.4);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.ep-label {
  color: #cccccc;
}

.ep-value {
  color: #fcd34d;
  font-size: 20px;
  margin-left: 10px;
}

.scratch-message {
  height: 24px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.3s;
}

.scratch-board {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 10px;
}

.scratch-card {
  width: 100px;
  height: 100px;
  perspective: 1000px;
  cursor: pointer;
  pointer-events: none;
}

.scratch-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.scratch-card.open .scratch-card-inner {
  transform: rotateY(180deg);
}

.scratch-card-front,
.scratch-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scratch-card-front {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  font-size: 32px;
  font-weight: bold;
}

.scratch-card:hover .scratch-card-front {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.scratch-card-back {
  background: #ffffff;
  transform: rotateY(180deg);
}

.scratch-card-back img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.scratch-card.dim .scratch-card-front,
.scratch-card.dim .scratch-card-back {
  opacity: 0.5;
}

.scratch-card.win-highlight .scratch-card-back {
  box-shadow: 0 0 15px #fcd34d;
  border: 2px solid #fcd34d;
}

.scratch-actions {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.btn-scratch {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.btn-scratch:hover {
  background: #fbbf24;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #6b7280;
}

.btn-secondary:hover {
  background: #9ca3af;
}

.scratch-prizes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.prize-item {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.prize-item img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.prize-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 12px;
}

.prize-ep {
  font-weight: bold;
  color: #f59e0b;
}

.prize-chance {
  color: #6b7280;
}