@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800;900&display=swap');
:root {
  --bg: #0f212e;
  --bg-soft: #172f3d;
  --card: #1a3240;
  --card-hover: #203b4a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7f8;
  --muted: #a8b8c3;
  --accent: #1475e1;
  --accent-hover: #2b86e5;
  --success: #00e701;
  --radius: 8px;
  --container: 1180px;

  --stake-sidebar-width: 300px;
  --stake-header-height: 64px;
  --font-main: 'Noto Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;

  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;

  margin: 0;

  background: var(--bg);

  color: var(--text);

  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}
.site-main {
  flex: 1 0 auto;

  width: 100%;
  min-height: 0;
}
.section {
  margin: 32px 0;
}
.section-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.25;
}
.clear {
  clear: both;
}

/* =========================================================
   SCROLL TO TOP
========================================================= */

.scroll-top {
  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 120;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid rgba(112, 184, 229, 0.18);

  border-radius: 9px;

  background: linear-gradient(180deg, rgba(24, 64, 84, 0.98) 0%, rgba(14, 43, 58, 0.98) 100%);

  color: #c9e0ec;

  box-shadow:
    0 10px 28px rgba(2, 17, 25, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  cursor: pointer;

  transform: translateY(10px) scale(0.92);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* =========================================================
   VISIBLE
========================================================= */

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;

  transform: translateY(0) scale(1);
}

/* =========================================================
   ICON
========================================================= */

.scroll-top::before {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 10px;
  height: 10px;

  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;

  content: '';

  transform: translate(-50%, -35%) rotate(45deg);

  transition: transform 0.2s ease;
}

/* =========================================================
   ARROW HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .scroll-top:hover::before {
    transform: translate(-50%, -55%) rotate(45deg);
  }
}

/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .scroll-top:hover {
    color: #ffffff;

    border-color: rgba(103, 188, 243, 0.34);

    background: linear-gradient(180deg, #185a80 0%, #103b52 100%);

    box-shadow:
      0 12px 30px rgba(2, 17, 25, 0.28),
      0 0 0 3px rgba(52, 150, 217, 0.04);

    transform: translateY(-2px) scale(1);
  }
}

/* =========================================================
   ACTIVE
========================================================= */

.scroll-top:active {
  transform: translateY(0) scale(0.95);
}

/* =========================================================
   FOCUS
========================================================= */

.scroll-top:focus-visible {
  outline: 2px solid rgba(77, 171, 232, 0.55);

  outline-offset: 3px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .scroll-top {
    right: 14px;
    bottom: 95px;

    width: 40px;
    height: 40px;

    border-radius: 8px;
  }

  .scroll-top__icon {
    width: 15px;
    height: 15px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: none;
  }
}
