.action-button,
.icon-button {
  text-decoration: none;
}

.game-card__stats {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(97, 244, 255, 0.1);
  color: var(--cyan);
  flex: 0 0 auto;
}

.icon-button--danger {
  color: #ffd5df;
}

.stats-modal__panel {
  width: min(780px, 100%);
  height: auto;
  max-height: min(88dvh, 860px);
}

.stats-modal__body {
  padding: 20px;
  overflow: auto;
  display: grid;
  gap: 18px;
}

.stats-section {
  display: grid;
  gap: 14px;
}

.stats-section h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stats-card,
.stats-mode-card,
.overview-card,
.summary-tile {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(16, 9, 35, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.stats-card,
.summary-tile {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.stats-card__label,
.summary-tile__label,
.stats-mode-card__eyebrow,
.overview-card__eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-card__value,
.summary-tile__value,
.overview-card__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.stats-mode-list,
.overview-grid,
.summary-grid {
  display: grid;
  gap: 12px;
}

.stats-mode-card,
.overview-card {
  padding: 16px;
}

.stats-mode-card__topline,
.overview-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.stats-mode-card__title {
  margin: 0;
  font-size: 1rem;
}

.stats-mode-card__metrics,
.overview-card__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stats-metric {
  display: grid;
  gap: 6px;
}

.stats-metric__label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.stats-metric__value {
  font-size: 1rem;
}

.stats-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.stats-overview {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.overview-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overview-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(97, 244, 255, 0.12);
}

.overview-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.overview-card__actions a,
.overview-card__actions button {
  flex: 1;
}

@media (max-width: 720px) {
  .stats-grid,
  .summary-grid,
  .overview-grid,
  .stats-mode-card__metrics,
  .overview-card__metrics {
    grid-template-columns: 1fr;
  }
}
.stats-modal {
  z-index: 30;
}


.arcade-stats-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
}

.arcade-stats-fab,
.arcade-stats-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(97, 244, 255, 0.16), rgba(255, 79, 184, 0.18));
  color: var(--arcade-stats-text, #f7f2ff);
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.arcade-stats-fab {
  min-height: 48px;
  padding: 0 16px;
  backdrop-filter: blur(12px);
}

.arcade-stats-fab__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.arcade-stats-fab:hover,
.arcade-stats-close:hover {
  transform: translateY(-2px);
}

.arcade-stats-game-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.arcade-stats-game-modal[hidden] {
  display: none !important;
}

.arcade-stats-game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 9, 0.8);
}

.arcade-stats-game-modal__panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: min(88dvh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--arcade-stats-panel, rgba(16, 9, 35, 0.96));
  color: var(--arcade-stats-text, #f7f2ff);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}

.arcade-stats-game-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.arcade-stats-game-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--arcade-stats-accent, #61f4ff);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.arcade-stats-game-modal__header h2 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.arcade-stats-close {
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
}

.arcade-stats-game-modal__body {
  padding: 20px;
  overflow: auto;
  display: grid;
  gap: 18px;
}

.arcade-stats-modal-open {
  overflow: hidden;
}

.stats-card,
.stats-mode-card,
.overview-card,
.summary-tile {
  color: inherit;
}

.stats-card__label,
.summary-tile__label,
.stats-mode-card__eyebrow,
.overview-card__eyebrow,
.stats-metric__label {
  color: var(--arcade-stats-muted, #c9bbff);
}

.stats-section h3 {
  color: var(--arcade-stats-accent, #61f4ff);
}

@media (max-width: 720px) {
  .arcade-stats-launcher {
    right: 12px;
    bottom: 12px;
  }

  .arcade-stats-fab {
    min-height: 44px;
    padding: 0 14px;
  }

  .arcade-stats-game-modal {
    padding: 12px;
  }
}
