@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* General */

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body.sf-site,
body.sf-legacy {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #120e18;
  color: #ffffff;
  font-family: Inter, Arial, sans-serif;
}

.sf-site {
  background:
    radial-gradient(
      ellipse at 90% 0%,
      #35204780,
      transparent 55%
    ),
    #120e18 !important;
}

.sf-site a,
.sf-header a,
.sf-footer a {
  color: inherit;
  text-decoration: none;
}

.sf-site a:focus-visible,
.sf-header a:focus-visible,
.sf-footer a:focus-visible,
.sf-site button:focus-visible {
  outline: 3px solid #c9a9ff;
  outline-offset: 5px;
}

/* Shared navigation */

.sf-header {
  width: 100%;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ffffff18;
  background: #120e1ae8;
}

.sf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
}

.sf-brand img.sf-symbol {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sf-brand code {
  color: #bf94fb;
  font-size: 19px;
  font-weight: 500;
}

.sf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.sf-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #d1c9dc;
}

.sf-nav a:hover,
.sf-nav a[aria-current="page"] {
  background: #7042ad66;
  color: #ffffff;
}

/* Main content */

.sf-main {
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
  padding: 74px 0 90px;
  flex: 1;
}

.sf-site h1 {
  margin: 16px 0 24px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.sf-site h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.sf-site p {
  line-height: 1.85;
  color: #c5bdd1;
}

.sf-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: #be92ff !important;
  text-transform: uppercase;
}

.sf-intro {
  max-width: 800px;
  margin-bottom: 36px;
  font-size: 18px;
}

/* Home */

.sf-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
  min-height: 460px;
}

.sf-hero h1 {
  max-width: 650px;
}

.sf-orb {
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid #ac75ff60;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle,
      #7040b570,
      #201529 70%
    );
  box-shadow: 0 0 90px #8b5cf61c;
}

.sf-orb img.sf-symbol {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.sf-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.sf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: #ffffff08;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.sf-button.sf-primary {
  background: #8b5cf6;
  border-color: #a984ff;
}

.sf-button:hover {
  background: #7543c1;
}

/* Interactive Home logo */

button.sf-orb {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 0;
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button.sf-orb:focus-visible {
  outline: 3px solid #c9a9ff;
  outline-offset: 8px;
}

button.sf-orb > img {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.sf-logo-wave {
  position: absolute;
  inset: -1px;
  border: 2px solid #b98aff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: sf-logo-ripple 1.2s ease-out both;
}

@keyframes sf-logo-ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* Project cards */

.sf-stack {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.sf-card {
  padding: 32px;
  border: 1px solid #ffffff20;
  border-radius: 22px;
  background: #ffffff04;
}

.sf-project {
  display: flex;
  align-items: center;
  gap: 30px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.sf-project:hover {
  border-color: #a578ff;
  background: #8b5cf60c;
}

.sf-project p {
  margin: 12px 0;
}

.sf-icon {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  display: grid;
  place-items: center;
  border: 1px solid #a578ff50;
  border-radius: 24px;
  background: #8b5cf615;
  color: #be92ff;
  font-size: 38px;
  font-weight: 700;
}

.sf-badge {
  display: inline-block;
  margin: 0 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff0c;
  color: #beb5cb;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
}

.sf-link {
  color: #bd8bff !important;
  font-weight: 600;
}

/* Blog */

.sf-post {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.sf-author {
  text-align: center;
}

.sf-author img {
  width: 82px;
  height: 82px;
  margin-bottom: 14px;
  object-fit: cover;
  border: 1px solid #ffffff30;
  border-radius: 50%;
}

.sf-author strong {
  display: block;
  font-size: 14px;
}

.sf-verified {
  color: #b88aff;
}

.sf-post time {
  color: #9f94af;
  font-size: 12px;
}

.sf-post h2 {
  margin-top: 18px;
}

.sf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.sf-tags span {
  padding: 5px 12px;
  border: 1px solid #8b5cf640;
  border-radius: 999px;
  background: #8b5cf615;
  color: #d2b7ff;
  font-size: 12px;
}

.sf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 35px;
}

.sf-filters button {
  padding: 9px 16px;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  background: transparent;
  color: #cfc3dd;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sf-filters button[aria-pressed="true"] {
  border-color: #a578ff;
  background: #7042ad66;
  color: #ffffff;
}

/* About us */

.sf-about {
  max-width: 800px;
  margin: auto;
}

.sf-about .sf-brand {
  justify-content: center;
  margin-bottom: 50px;
  font-size: 48px;
}

.sf-about .sf-brand img.sf-symbol {
  width: 75px;
  height: 75px;
}

/* Donations */

.sf-support {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.sf-support .sf-card {
  margin-top: 35px;
  text-align: left;
}

.sf-progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.sf-site progress {
  appearance: none;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #332a40;
}

.sf-site progress::-webkit-progress-bar {
  background: #332a40;
}

.sf-site progress::-webkit-progress-value {
  background: linear-gradient(
    90deg,
    #8b5cf6,
    #d3a7ff
  );
}

.sf-site progress::-moz-progress-bar {
  background: #a578ff;
}

.sf-site [hidden] {
  display: none !important;
}

/* Shared footer */

.sf-footer {
  width: 100%;
  margin-top: auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid #ffffff20;
  color: #b9adc9;
  font-size: 13px;
  text-align: left;
}

.sf-footer p {
  margin: 10px 0 0;
  color: #b9adc9;
  font-size: 13px;
}

.sf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.sf-footer a:hover {
  color: #d7baff;
}

/* Existing bots and games pages */

.sf-legacy > .shell,
.sf-legacy > .container {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 40px 24px 70px;
  flex: 1;
}

/* Mobile */

@media (max-width: 760px) {
  .sf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
  }

  .sf-nav {
    gap: 2px;
  }

  .sf-nav a {
    padding: 9px 10px;
    font-size: 12px;
  }

  .sf-main {
    padding: 45px 0 60px;
  }

  .sf-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
  }

  .sf-orb {
    width: 220px;
    grid-row: 2;
  }

  .sf-project {
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .sf-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 15px;
    font-size: 23px;
  }

  .sf-site h2 {
    font-size: 22px;
  }

  .sf-badge {
    display: table;
    margin: 10px 0 0;
  }

  .sf-post {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sf-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .sf-author img {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .sf-card {
    padding: 24px;
  }

  .sf-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  @keyframes sf-logo-ripple {
    0% {
      transform: scale(1);
      opacity: 0.8;
    }

    100% {
      transform: scale(1.3);
      opacity: 0;
    }
  }
}

/* Reduced motion */

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

  .sf-logo-wave {
    display: none;
    animation: none;
  }
}
/* Center the file name and size inside the selection bar */
.compress-filebar {
  align-items: center;
}

.compress-filebar .compress-summary {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 0;
  white-space: normal;
}
