/* Gems Mines Styling */
.gems-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.mines-selector-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(18, 24, 38, 0.7);
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.custom-select {
  background: #0f172a;
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  outline: none;
}

.gems-board-panel {
  padding: 16px;
  background: radial-gradient(circle at center, rgba(0, 40, 60, 0.75) 0%, rgba(5, 12, 22, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.gems-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gems-tile {
  aspect-ratio: 1;
  perspective: 1000px;
  cursor: pointer;
}

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

.gems-tile.revealed .tile-inner {
  transform: rotateY(180deg);
}

.tile-front, .tile-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 12px;
}

.tile-front {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tile-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.3) 0%, rgba(0, 100, 150, 0.7) 100%);
  border: 1px solid #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

@keyframes gemPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cyan-gradient {
  background: linear-gradient(135deg, #00e5ff 0%, #0072ff 100%);
  color: #000;
  font-weight: 800;
}
