.mines-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 14px calc(14px + var(--sab));
  color: #fff;
  overflow-y: auto;
  touch-action: pan-y;
}
.mines-rules {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}
.mines-rules.mines-result {
  color: #ffd23f;
}
.mines-status {
  width: 100%;
  max-width: 360px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  padding: 6px 12px;
}
.mines-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.mines-stat + .mines-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.mines-stat small {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.mines-stat b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-display);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: #ffd23f;
  animation: mines-stat-pop 0.25s ease-out;
}
.mines-stat b svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.mines-stat span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}
@keyframes mines-stat-pop {
  from {
    transform: scale(1.18);
  }
}
.mines-grid {
  flex: none;
  width: min(100%, 340px, calc(100dvh - 372px));
  min-width: 232px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 7px;
  border-radius: 20px;
  background: rgba(20, 12, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 26px rgba(0, 0, 0, 0.45);
}
.mines-cell {
  position: relative;
  min-width: 0;
  padding: 3px;
  border: 0;
  border-radius: 11px;
  background: #4f7a34;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.16),
    0 3px 0 #1c2a12;
  display: grid;
  place-items: center;
}
.mines-cell svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.mines-cell:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16);
}
.mines-cell-safe,
.mines-cell-ghost-safe {
  background: #6b4a22;
  box-shadow:
    inset 0 2px 0 rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.1);
}
.mines-cell-mine,
.mines-cell-ghost-mine {
  background: #3a2433;
  box-shadow:
    inset 0 2px 0 rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.1);
}
.mines-cell-mine {
  background: #b3202f;
  box-shadow:
    0 0 0 2px #ffd23f,
    0 0 16px rgba(224, 36, 58, 0.8);
}
.mines-cell-ghost-safe svg,
.mines-cell-ghost-mine svg {
  opacity: 0.42;
}
.mines-grid-betting .mines-cell {
  filter: saturate(0.7) brightness(0.8);
}
.mines-cell-opening {
  animation: mines-cell-open 0.25s ease-in forwards;
}
.mines-cell-fresh svg {
  animation: mines-cell-reveal 0.28s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}
@keyframes mines-cell-open {
  40% {
    transform: scale(1.08) rotate(-4deg);
  }
  100% {
    transform: scale(0.82) rotate(3deg);
    filter: brightness(1.5);
  }
}
@keyframes mines-cell-reveal {
  from {
    transform: scale(0.3);
  }
}
.mines-controls {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mines-counts-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mines-counts-box small {
  font-size: 11.5px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.72);
}
.mines-counts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mines-counts .mines-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 5px 4px;
  border-radius: 14px;
  line-height: 1.15;
  color: #fff;
}
.mines-counts .mines-count b {
  font-family: var(--f-display);
  font-size: 19px;
}
.mines-counts .mines-count span {
  font-size: 11px;
  opacity: 0.8;
}
.mines-counts .mines-count.on {
  background: #f5c030;
  border-color: #f5c030;
  color: #231b33;
}
.mines-controls .mines-betbox {
  margin-top: 0;
  gap: 4px;
}
.mines-controls .mines-start {
  margin-top: 2px;
}
.mines-controls .mines-take {
  min-height: 56px;
  font-family: var(--f-display);
  font-size: 22px;
  background: linear-gradient(180deg, #2fbf71, #1c8a4e);
  box-shadow:
    0 4px 0 #0e5a32,
    0 0 18px rgba(47, 191, 113, 0.45);
}
.mines-controls .mines-take:not(:disabled) {
  animation: mines-take-pulse 1.1s ease-in-out infinite;
}
@keyframes mines-take-pulse {
  50% {
    transform: scale(1.035);
    box-shadow:
      0 4px 0 #0e5a32,
      0 0 30px rgba(47, 191, 113, 0.85);
  }
}
.mines-hint {
  min-height: 18px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}
.mines-controls .mines-broke {
  width: 100%;
  text-align: center;
}
.mines-card .ic {
  background: #2e4a1c;
  color: #fff6d8;
}
.mines-card .tag {
  display: inline-block;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 900;
  margin-left: 6px;
  vertical-align: 3px;
  background: #8bdb6a;
  color: #0b0910;
}
