/* 宝石风暴 - 前端样式 */
.gs-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(135deg, #1a237e 0%, #311b92 50%, #4a148c 100%);
  border-radius: 12px;
  min-height: 600px;
}

.gs-header {
  margin-bottom: 10px;
}

.gs-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 13px;
  color: #fff;
}

.gs-info-bar span {
  white-space: nowrap;
}

.gs-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.gs-grid-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gs-grid {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.gs-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-weight: bold;
}

.gs-cell:hover {
  transform: scale(1.08);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.gs-cell.selected {
  transform: scale(1.12);
  box-shadow: 0 0 12px #fff, 0 0 20px #FFEB3B;
  outline: 2px solid #FFEB3B;
}

.gs-bet-panel {
  text-align: center;
  padding: 20px;
}

.gs-bet-panel h3 {
  color: #fff;
  margin-bottom: 15px;
}

.gs-bet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gs-bet-btn {
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #FF6F00, #FF8F00);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gs-bet-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.5);
}

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

.gs-bonus-container {
  text-align: center;
  padding: 20px;
}

.gs-bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 12px;
  justify-content: center;
  margin-bottom: 15px;
}

.gs-dragon-ball {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: radial-gradient(circle, #FF5722, #BF360C);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  color: #fff;
}

.gs-dragon-ball:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px #FF5722;
}

.gs-dragon-ball.revealed {
  background: radial-gradient(circle, #4CAF50, #2E7D32);
  cursor: default;
  font-size: 20px;
}

.gs-bonus-info {
  color: #fff;
  font-size: 16px;
}

.gs-result-panel {
  text-align: center;
  padding: 20px;
}

.gs-result-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.gs-result-box h2 {
  color: #FFEB3B;
  margin-bottom: 15px;
}

.gs-result-stats {
  color: #fff;
  font-size: 16px;
  line-height: 2;
}

.gs-final-win {
  font-size: 22px;
  font-weight: bold;
  color: #4CAF50;
}

.gs-net-profit.positive {
  color: #66BB6A;
  font-weight: bold;
}

.gs-net-profit.negative {
  color: #EF5350;
  font-weight: bold;
}

.gs-restart-btn {
  margin-top: 15px;
  padding: 10px 30px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #FF6F00, #FF8F00);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

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

.gs-notification {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid #4CAF50;
  font-size: 14px;
  font-weight: bold;
  z-index: 100;
  animation: gsFadeIn 0.3s ease;
}

@keyframes gsFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 520px) {
  .gs-container { min-height: 500px; }
  .gs-info-bar { font-size: 11px; gap: 4px; }
  .gs-bet-btn { padding: 8px 16px; font-size: 16px; }
  .gs-dragon-ball { width: 60px; height: 60px; font-size: 28px; }
  .gs-bonus-grid { grid-template-columns: repeat(3, 60px); }
}
