#solo-mines-panel {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: url("/static/img/fon.webp?v=20260418a") center/cover no-repeat;
}

.fullscreen-game-shell > #solo-mines-panel {
  background: url("/static/img/fon.webp?v=20260418a") center/cover no-repeat;
}

.mines-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 12px;
  color: #fff;
  min-height: 100%;
  height: auto;
  width: 100%;
  max-width: min(100%, 720px);
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.mines-topbar,
.mines-stat-card,
.mines-board-card,
.mines-controls-card,
.mines-cell,
.mines-history-btn,
.mines-currency-btn,
.mines-step-btn,
.mines-amount-shell,
.mines-nft-box,
.mines-nft-open-btn,
.mines-play-btn,
.mines-cashout-btn,
.mines-nft-item,
.mines-nft-summary {
  backdrop-filter: blur(10px);
}

.mines-board-card,
.mines-controls-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.mines-board-card::before,
.mines-controls-card::before {
  content: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 210, 122, 0.1), transparent 34%);
  pointer-events: none;
}

.mines-topbar {
  display: none;
}

.mines-history-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 223, 141, 0.52);
  border-radius: 16px;
  background: linear-gradient(135deg, #f5d27a, #b78411);
  color: #231200;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(214, 160, 34, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  flex: 0 0 auto;
}

.mines-stat-card-history {
  padding: 8px 6px;
}

.mines-topbar-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mines-title {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.mines-subtitle {
  display: none;
}

.mines-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
  padding: 0 2px;
}

.mines-stat-card {
  min-height: 50px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 28, 68, 0.72), rgba(8, 18, 42, 0.52));
  border: 1px solid rgba(103, 137, 214, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 8px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mines-stat-card-history {
  background: linear-gradient(135deg, #f5d27a, #b78411);
  border: 1px solid rgba(255, 223, 141, 0.52);
  color: #231200;
  box-shadow: 0 12px 28px rgba(214, 160, 34, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  padding: 0;
}

.mines-stat-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.mines-stat-icon {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  color: rgba(245, 210, 122, 0.94);
}

.mines-stat-value {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: #fff7de;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mines-stat-value-history {
  display: none;
}

.mines-stat-icon-history {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(255, 244, 200, 0.22));
}

.mines-stat-label {
  display: none;
}

.mines-board-card {
  padding: 4px 10px 2px;
}

.mines-board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.mines-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(20, 39, 85, 0.98), rgba(8, 17, 40, 1));
  color: rgba(233, 241, 255, 0.92);
  font-size: 23px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -8px 18px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.mines-cell:not(:disabled):active {
  transform: scale(0.965);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -6px 14px rgba(0, 0, 0, 0.16), 0 5px 10px rgba(0, 0, 0, 0.14);
}

.mines-cell.is-pending {
  transform: scale(0.97);
  border-color: rgba(245, 210, 122, 0.38);
  box-shadow: 0 0 0 1px rgba(245, 210, 122, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -8px 18px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.16);
}

.mines-cell:disabled {
  cursor: default;
}

.mines-cell.is-safe {
  background: linear-gradient(180deg, rgba(28, 109, 82, 0.98), rgba(10, 58, 45, 1));
  border-color: rgba(104, 255, 197, 0.34);
  box-shadow: 0 10px 20px rgba(34, 194, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mines-cell.is-bomb {
  background: linear-gradient(180deg, rgba(118, 31, 50, 0.98), rgba(59, 10, 24, 1));
  border-color: rgba(255, 126, 152, 0.34);
  box-shadow: 0 10px 20px rgba(220, 68, 95, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mines-cell.is-hit {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px rgba(255, 193, 92, 0.22), 0 0 24px rgba(255, 110, 134, 0.26);
}

.mines-controls-card {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mines-controls-card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(120, 145, 220, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mines-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.mines-currency-btn {
  height: 40px;
  border: 1px solid rgba(255, 214, 120, 0.24);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(18, 38, 86, 0.92), rgba(7, 16, 39, 0.95));
  color: #fff5dc;
  font-size: 19px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.18), 0 0 18px rgba(214, 160, 34, 0.08);
}

.mines-currency-btn.active {
  background: linear-gradient(135deg, #f5d27a, #b78411);
  color: #231200;
  border-color: rgba(255, 223, 141, 0.52);
  box-shadow: 0 12px 28px rgba(214, 160, 34, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mines-amount-wrap,
.mines-bombs-wrap {
  display: grid;
  gap: 4px;
}

.mines-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 14px;
}

.mines-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(225, 236, 255, 0.78);
}

#minesBetLabel,
#minesNftBox .mines-field-label {
  display: none;
}

.mines-max-btn {
  margin-left: auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(103, 137, 214, 0.18);
  border-radius: 12px;
  background: rgba(10, 22, 56, 0.42);
  color: #ffe089;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mines-bombs-wrap .mines-input-head {
  display: none;
}

.mines-input-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 6px;
  align-items: center;
}

.mines-step-btn {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(16, 33, 77, 0.98), rgba(8, 18, 43, 0.98));
  font-size: 17px;
  font-weight: 900;
  color: #f4f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.14);
}

.mines-step-btn:disabled {
  opacity: 0.45;
}

.mines-amount-shell {
  height: 38px;
  min-height: 38px;
  border-radius: 13px;
  background: rgba(10, 19, 48, 0.98);
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.mines-amount-shell input,
.mines-static-value {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #dce6ff;
  -webkit-text-fill-color: #dce6ff;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  caret-color: #ffffff;
}

.mines-amount-shell input::-webkit-outer-spin-button,
.mines-amount-shell input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mines-amount-shell-static {
  justify-content: center;
}

.mines-nft-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(103, 137, 214, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mines-nft-box.hidden,
.mines-amount-wrap.hidden {
  display: none;
}

.mines-nft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mines-nft-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.mines-nft-summary {
  min-height: 48px;
  margin-top: 0;
  width: 100%;
  padding: 10px 12px;
  color: rgba(220, 230, 255, 0.74);
  font-size: 13px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

#minesNftSummary {
  white-space: normal;
  overflow: visible;
}

#minesNftSummary .game-nft-quick-list {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#minesNftSummary .game-nft-quick-card {
  transform: none !important;
}

#minesNftSummary .game-nft-quick-card:active {
  transform: none !important;
}

.mines-nft-open-btn {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 800;
}

#minesNftBox .mines-nft-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

#minesNftModal .crash-modal-actions .crash-secondary-btn,
#minesNftModal .crash-modal-actions .crash-bet-btn {
  width: 100%;
  height: 42px;
  min-height: 42px;
  font-size: 16px;
}

#minesNftModal .crash-screen-modal-card {
  width: min(100%, 560px);
}

#minesNftInventoryList {
  overflow: auto;
  padding-right: 2px;
}

#minesNftInventoryList .pvp-nft-modal-grid {
  gap: 8px;
}

.mines-action-row {
  display: grid;
  gap: 7px;
}

.mines-play-btn,
.mines-cashout-btn {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.mines-play-btn {
  background: linear-gradient(135deg, #f5d27a, #b78411);
  color: #231200;
  box-shadow: 0 14px 30px rgba(214, 160, 34, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mines-cashout-btn {
  background: linear-gradient(135deg, #87ffd3, #29c286);
  color: #042416;
  box-shadow: 0 12px 24px rgba(41, 194, 134, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mines-play-btn[data-busy="true"],
.mines-cashout-btn[data-busy="true"] {
  transform: scale(0.992);
  filter: saturate(1.04);
}

.mines-play-btn.hidden,
.mines-cashout-btn.hidden {
  display: none;
}

.mines-play-btn:disabled,
.mines-cashout-btn:disabled {
  opacity: 0.5;
  box-shadow: none;
}

.mines-nft-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: #eef5ff;
  text-align: left;
}

.mines-nft-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mines-nft-item.active {
  border-color: rgba(255, 214, 102, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.3), 0 0 0 3px rgba(255, 214, 102, 0.14), 0 14px 30px rgba(214, 160, 34, 0.24);
}

.mines-nft-item-title {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mines-nft-item-meta {
  font-size: 12px;
  color: rgba(225, 236, 255, 0.72);
}

.mines-history-entry {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(71, 110, 195, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(11, 22, 54, 0.97), rgba(7, 14, 34, 0.995));
  border: 1px solid rgba(108, 143, 220, 0.14);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mines-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mines-history-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mines-history-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mines-history-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mines-history-user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mines-history-user-name {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mines-history-user-meta {
  font-size: 12px;
  color: rgba(225, 236, 255, 0.66);
}

.mines-history-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  flex: 0 0 auto;
}

.mines-history-profit {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mines-history-profit.win {
  color: #7fffc4;
}

.mines-history-profit.lose {
  color: #ff9db0;
}

.mines-history-profit.neutral {
  color: rgba(255, 255, 255, 0.72);
}

.mines-history-time {
  font-size: 12px;
  color: rgba(225, 236, 255, 0.62);
}

.mines-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mines-history-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mines-history-stat b {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mines-history-stat span {
  font-size: 12px;
  color: rgba(225, 236, 255, 0.62);
}

@media (max-width: 430px) {
  .mines-shell {
    padding: 8px 6px 12px;
    gap: 8px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .mines-board-card,
  .mines-controls-card {
    border-radius: 0;
  }

  .mines-board-card {
    padding: 3px 4px 1px;
  }

  .mines-controls-card {
    padding: 8px 8px 10px;
    gap: 7px;
  }

  .mines-history-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 12px;
    padding: 0;
  }

  .mines-stat-icon-history {
    font-size: 15px;
  }

  .mines-stat-card {
    min-height: 48px;
    border-radius: 16px;
    padding: 8px 5px;
  }

  .mines-stat-value {
    font-size: 15px;
  }

  .mines-board-grid {
    gap: 6px;
  }

  .mines-cell {
    border-radius: 13px;
    font-size: 19px;
  }

  .mines-currency-btn {
    height: 38px;
    border-radius: 13px;
    font-size: 17px;
  }

  .mines-input-row {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    gap: 6px;
  }

  .mines-step-btn,
  .mines-amount-shell {
    height: 36px;
    min-height: 36px;
    border-radius: 12px;
  }

  .mines-amount-shell input,
  .mines-static-value {
    font-size: 16px;
  }

  .mines-play-btn,
  .mines-cashout-btn {
    min-height: 42px;
    border-radius: 15px;
    font-size: 16px;
  }

  .mines-history-entry {
    padding: 11px;
    border-radius: 17px;
  }

  .mines-history-top {
    flex-direction: column;
    align-items: stretch;
  }

  .mines-history-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .mines-history-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 9px;
  }

  .mines-nft-box {
    padding: 10px;
    border-radius: 18px;
  }

  .mines-nft-open-btn {
    min-width: 0;
    width: 100%;
    height: 40px;
    border-radius: 13px;
  }
}

@media (max-width: 360px) {
  .mines-stats-row {
    gap: 5px;
  }

  .mines-stat-card {
    min-height: 44px;
    padding: 6px 4px;
  }

  .mines-stat-value {
    font-size: 14px;
  }

  .mines-stat-icon {
    font-size: 11px;
  }

  .mines-stat-icon-history {
    font-size: 14px;
  }

  .mines-board-grid {
    gap: 5px;
  }

  .mines-cell {
    border-radius: 12px;
    font-size: 17px;
  }
}
