.mines-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  flex: 1;
}

.game-info-section {
  width: 100%;
  padding: 0 1rem;
  margin-top: 3rem;
}

.game-section {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1600px;
}

.game-controls {
  width: 100%;
  max-width: 540px;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.2rem 2rem 2rem 2rem;
  background: var(--secondary-bg);
  border-radius: 17px;
  height: fit-content;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.mode-selector span {
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
}

.bet-input {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.bet-input-field {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 10px;
  align-items: center;
}

.bet-input-field input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 16px;
  padding: 0.25rem;
  width: 100%;
}

.bet-input-field input:focus {
  outline: none;
}

.quick-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.quick-actions button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-color);
  padding: 0.6rem 0.8rem;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-actions button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mines-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mines-amount {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 10px;
  position: relative;
}

.mines-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mines-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mines-value i {
  color: rgba(255, 59, 48, 0.7);
  font-size: 18px;
}

.mines-value span {
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
}

.mines-multiplier {
  color: var(--text-secondary);
  font-size: 14px;
}

.mines-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  position: relative;
}

.mines-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.mines-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.8);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.mines-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: #ff3b30;
}

.mines-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  background: #ff3b30;
}

.mines-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 0.5rem;
}

.mines-tick {
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mines-tick:hover {
  color: var(--text-color);
}

.total-earnings {
  margin-top: auto;
  padding-top: 1rem;
}

.total-earnings .input-label {
  margin-bottom: 0.5rem;
}

.earnings-display {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 500;
}

.action-button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  margin-top: 1rem;
  background: var(--accent-color);
  color: #000;
}

.action-button:hover {
  filter: brightness(1.1);
}

.action-button.cashout {
  background: #4caf50;
  color: white;
}

.mode-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem;
  border-radius: 10px;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.mode-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}

.mode-btn.active {
  background: rgba(255, 144, 0, 0.2);
  color: var(--accent-color);
}

.pvp-options {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem;
  border-radius: 9px;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.pvp-option-btn {
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  font-weight: 500;
  font-size: 13px;
}

.pvp-option-btn.active {
  background: rgba(255, 144, 0, 0.2);
  color: var(--accent-color);
}

.pvp-games-list {
  margin-bottom: 1rem;
}

.pvp-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

.pvp-game-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
}

.pvp-game-item:hover {
  background: rgba(255, 144, 0, 0.1);
}

.pvp-game-info {
  display: flex;
  justify-content: space-between;
}

.pvp-game-creator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.pvp-game-bet {
  color: var(--accent-color);
  font-weight: 500;
}

.pvp-game-mines {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  font-size: 13px;
}

.pvp-game-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pvp-game-btn {
  background: rgba(255, 144, 0, 0.2);
  color: var(--accent-color);
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.pvp-game-btn:hover {
  background: rgba(255, 144, 0, 0.3);
}

.pvp-game-btn.cancel {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

.pvp-game-btn.cancel:hover {
  background: rgba(255, 59, 48, 0.2);
}

.pvp-game-btn.bot {
  background: rgba(90, 200, 250, 0.1);
  color: #5ac8fa;
}

.pvp-game-btn.bot:hover {
  background: rgba(90, 200, 250, 0.2);
}

.pvp-game-btn.play {
  background: rgba(76, 217, 100, 0.1);
  color: #4cd964;
}

.pvp-game-btn.play:hover {
  background: rgba(76, 217, 100, 0.2);
}

/* Make PVP game action buttons responsive */
@media screen and (max-width: 640px) {
  .flex.space-x-2 {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-blue,
  .btn-red,
  .btn-green,
  .btn-primary {
    width: 100%;
    text-align: center;
  }
}

.pvp-game-status {
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.pvp-game-status.waiting {
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
}

.pvp-game-status.your-turn {
  background: rgba(76, 217, 100, 0.1);
  color: #4cd964;
}

.pvp-game-status.their-turn {
  background: rgba(90, 200, 250, 0.1);
  color: #5ac8fa;
}

.pvp-game-status.won {
  background: rgba(76, 217, 100, 0.1);
  color: #4cd964;
}

.pvp-game-status.lost {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 14px;
}

.empty-list-message {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 14px;
}

.action-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  margin-top: 0.5rem;
}

.action-button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pvp-mines-game {
  display: none;
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 1rem;
  width: 650px;
}

.pvp-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pvp-game-players {
  display: flex;
  gap: 1rem;
}

.pvp-player {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  font-weight: 500;
  position: relative;
}

.pvp-player.active {
  background: rgba(255, 144, 0, 0.1);
  border: 1px solid rgba(255, 144, 0, 0.3);
}

.pvp-player.active:after {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  font-size: 12px;
  color: var(--accent-color);
}

.pvp-game-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pvp-game-pot {
  font-weight: 500;
  color: var(--accent-color);
}

.pvp-game-mines-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.mines-game {
  background: var(--secondary-bg);
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 900px;
  min-width: 400px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.mine-tile {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mine-tile::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background-image: url("/cdn/tiger.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.mine-tile:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.mine-tile.revealed {
  cursor: default;
  transform: none;
}

.mine-tile.revealed.gem::before {
  opacity: 0.6;
  filter: none;
  animation: gemReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.multiplier-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(255, 144, 0, 0.5);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.mine-tile.revealed:hover .multiplier-badge {
  opacity: 1;
  transform: scale(1.05);
}

.mine-tile.revealed.mine {
  background: rgba(255, 59, 48, 0.1);
}

.mine-tile.revealed.mine i {
  color: #ff3b30;
  font-size: 42px;
  animation: mineReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gemReveal {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
}

@keyframes mineReveal {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.game-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.start-btn,
.cashout-btn {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.start-btn {
  background: var(--accent-color);
  color: #000;
}

.start-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cashout-btn {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.cashout-btn:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: translateY(-1px);
}

.cashout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.game-history {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 1rem;
  max-width: 1300px;
  margin: 0 auto;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.75rem;
}

.history-title {
  font-weight: 600;
  color: var(--text-color);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideIn 0.3s ease-out;
  width: 100%;
}

.history-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  width: 280px;
}

.history-player img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.history-game-type {
  width: 140px;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 180px;
  font-weight: 500;
}

.history-details {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 14px;
  width: 380px;
}

.history-time {
  color: var(--text-secondary);
  font-size: 13px;
  width: 120px;
  text-align: right;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#livechat-container {
  width: 100%;
  max-width: 1300px;
  margin: 1.5rem auto 0;
}

#footer-container {
  margin-top: 2rem;
  width: 100%;
}

.game-data-section {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 950px) {
  .game-controls {
    width: 100% !important;
  }
  .game-section {
    flex-direction: column !important;
  }
  .mines-game {
    width: 100% !important;
  }
  .game-info-section {
    padding: 0 0.5rem;
    margin-top: 1.5rem;
  }
}

.mine-tile.disabled {
  opacity: 0.5;
}

.mine-tile.disabled:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: none;
}

@keyframes tileClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tileReveal {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.mine-tile.clicking {
  animation: tileClick 0.3s ease;
}

.mine-tile.revealed {
  animation: tileReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mine-tile.bot-move {
  animation: tileClick 0.3s ease;
}

.mine-tile.bot-move::before {
  content: "??";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  opacity: 0;
  animation: botIndicator 1s ease-out;
}
