.mines-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.mines-sidebar .mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.mode-toggle button {
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.mode-toggle button.active {
  background: rgba(0,180,255,0.2);
  border-color: var(--accent);
  color: var(--text);
}

.mines-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.mines-slider-row input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}

.mines-grid-wrap {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,180,255,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 72px);
  gap: 10px;
}

.mine-tile {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(0, 140, 200, 0.4);
  background: radial-gradient(circle at 30% 30%, #1a3050, #0a1528);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.mine-tile:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,180,255,0.4);
}

.mine-tile:disabled { cursor: default; }

.mine-tile .tile-icon {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle, #33e8ff 0%, #0066aa 70%);
  border-radius: 50%;
  opacity: 0.7;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.mine-tile.revealed-gem {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(74,222,128,0.4);
}

.mine-tile.revealed-gem .tile-icon {
  clip-path: none;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 4px;
  transform: rotate(45deg);
}

.mine-tile.revealed-mine {
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(248,113,113,0.5);
  animation: shake 0.4s;
}

.mine-tile.revealed-mine .tile-icon {
  clip-path: none;
  background: radial-gradient(circle, #666, #222);
  border-radius: 50%;
}

.mine-tile.revealed-mine-show {
  opacity: 0.85;
  animation: mine-reveal-in 0.35s ease-out;
}

.mine-tile.revealed-mine-show .tile-icon {
  background: radial-gradient(circle, #888, #333);
  transform: scale(0.85);
}

.mine-tile.revealed-mine-hit {
  animation: shake 0.4s;
}

@keyframes mine-reveal-in {
  from { transform: scale(0.85); opacity: 0.4; }
  to { transform: scale(1); opacity: 0.85; }
}

.mines-mult-display {
  text-align: center;
  margin-top: 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--accent);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 768px) {
  .mines-layout { grid-template-columns: 1fr; }
  .mines-grid { grid-template-columns: repeat(5, 56px); }
  .mine-tile { width: 56px; height: 56px; }
}
