html,
body,
#root {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #111827;
  background-color: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
}

* {
  box-sizing: border-box;
}

.floating-scroll-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1f7cff 0%, #9b22e8 100%);
  box-shadow: 0 16px 34px rgba(31, 124, 255, 0.28), 0 10px 28px rgba(91, 28, 145, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.floating-scroll-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-scroll-button:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 20px 40px rgba(31, 124, 255, 0.34), 0 12px 32px rgba(91, 28, 145, 0.32);
}

.floating-scroll-button:focus-visible {
  outline: 3px solid rgba(255, 210, 74, 0.9);
  outline-offset: 4px;
}

.floating-scroll-button svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@media (max-width: 760px) {
  .floating-scroll-button {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }

  .floating-scroll-button svg {
    width: 24px;
    height: 24px;
  }
}
