@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500&family=IBM+Plex+Serif:wght@400;500&display=swap');

:root {
  --bg: #121212;
  --panel: #1a1a1a;
  --text-primary: #f5f4f1;
  --text-secondary: #bdbdbd;
  --accent: #8a8a8a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  text-align: center;
  padding: 3rem 1.5rem;
}

.hidden {
  display: none;
}

/* ---------- Tutorial ---------- */

.tutorial {
  max-width: 420px;
  margin: auto;
  background: var(--panel);
  padding: 2.5rem 2rem;
  border-radius: 20px;
}

.tutorial h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.tutorial p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.example {
  margin: 1.8rem 0;
  font-family: "IBM Plex Serif", serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

/* ---------- Main ---------- */

h1 {
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.equation {
  font-family: "IBM Plex Serif", serif;
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

/* ---------- Inputs ---------- */

input {
  background: var(--panel);
  border: none;
  color: var(--text-primary);
  padding: 0.9rem 1rem;
  width: 220px;
  text-align: center;
  font-size: 1rem;
  border-radius: 999px;
  outline: none;
}

button {
  margin-top: 1.2rem;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------- Loading / Fun Fact ---------- */

.loading {
  position: relative;
  margin-top: 2rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  border-top: 2px solid var(--text-primary);
  border-radius: 50%;
  margin: auto;
  animation: spin 1s linear infinite;
}

.thought {
  max-width: 260px;
  margin: 1.8rem auto 0;
  background: var(--panel);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  .thought {
    position: fixed;
    right: 2rem;
    top: 40%;
    transform: translateY(-50%);
    @media (max-width: 800px) {
      .thought {
        position: static;
        margin: 2rem auto 0;
      }
    }
  }

}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Results ---------- */

#result {
  margin-top: 2.5rem;
}

#scoreLine {
  font-size: 1rem;
}

#scoreSub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;

  .share-block {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .share-note {
    font-size: 0.7rem;
    color: var(--text-secondary);
  }


/* ---------- Circles ---------- */

.circles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1.8rem 0;
}

.circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--text-secondary);
}

.circle.filled {
  background: var(--text-primary);
}

.circle.half {
  background: linear-gradient(to right, var(--text-primary) 50%, transparent 50%);
}
.unique-badge {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ---------- Idle ---------- */

.idle {
  margin-top: 3rem;
  font-family: "IBM Plex Serif", serif;
  font-size: 1.2rem;
  opacity: 0.35;
}
  /* --- Word Math score circles --- */

  .circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 1.8rem 0;
    min-height: 20px;               /* keeps the row from collapsing */
  }

  .circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #bdbdbd;      /* light gray border */
    background: transparent;
  }

  /* filled = solid circle */
  .circle.filled {
    background: #f5f4f1;            /* warm off-white */
  }

  /* half = left side filled, right side empty */
  .circle.half {
    background: linear-gradient(
      to right,
      #f5f4f1 50%,
      transparent 50%
    );
  }


  /* optional: uniqueness label under the row */
  .unique-badge {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
  }
  .score-dots {
    margin-top: 1.6rem;
    font-size: 1.1rem;
    letter-spacing: 0.4rem;   /* spaces the dots nicely */
    color: #f5f4f1;           /* same as your main text */
  }

