/* Common floating buttons used by multiple game pages */

:root {
  --btn-bg: rgba(11, 16, 32, 0.78);
  --btn-border: rgba(255, 255, 255, 0.16);
  --btn-text: rgba(255, 255, 255, 0.92);
  --btn-glow: rgba(124, 58, 237, 0.35);
}

.home-button,
.fullscreen-button {
  position: fixed;
  top: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-button {
  left: 20px;
}

.fullscreen-button {
  right: 20px;
  cursor: pointer;
}

.home-button:hover,
.fullscreen-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 6px var(--btn-glow);
  border-color: rgba(255, 255, 255, 0.24);
}

.home-icon,
.fullscreen-icon {
  font-size: 18px;
  line-height: 1;
}

.home-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.common-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.common-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

/* Small screens */
@media (max-width: 768px) {
  .home-button,
  .fullscreen-button {
    top: 12px;
    padding: 9px 12px;
  }

  .home-button { left: 12px; }
  .fullscreen-button { right: 12px; }

  .home-text { display: none; }
}
