/* Random game FAB — category & new-games pages */

.main-content.has-bottom-actions {
  padding-bottom: 3.5rem;
}

.bottom-actions {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: auto;
  transform: none;
  z-index: 900;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

[dir="rtl"] .bottom-actions {
  right: auto;
  left: 1rem;
}

.bottom-actions__container {
  display: flex;
  pointer-events: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.bottom-action-btn.random-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  min-height: 42px;
  background: rgba(16, 21, 28, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  color: var(--text-primary, #f1f5f9);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bottom-action-btn.random-btn:hover {
  transform: translateY(-1px);
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.55);
  color: #c084fc;
}

.bottom-action-btn.random-btn i {
  font-size: 0.95rem;
  margin: 0;
  flex-shrink: 0;
}

.bottom-action-btn.random-btn span {
  font-size: 0.8rem;
  font-weight: 600;
}

.random-btn .btn-text,
.random-btn .btn-loading {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}

.random-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

@media screen and (max-width: 800px) {
  .main-content.has-bottom-actions {
    padding-bottom: calc(80px + 2.75rem);
  }

  .bottom-actions {
    bottom: calc(80px + 0.65rem);
    right: 0.75rem;
  }

  [dir="rtl"] .bottom-actions {
    right: auto;
    left: 0.75rem;
  }

  .bottom-action-btn.random-btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.75rem;
  }

  .bottom-action-btn.random-btn span {
    font-size: 0.75rem;
  }
}
