@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-workspace.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 800;
}
:root {
  color-scheme: dark;
  font-family: Manrope, Arial, sans-serif;
  color: #fbf8ff;
  background: #0d0012;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main {
  width: min(1120px, 100% - 40px);
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  flex-wrap: wrap;
}
a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
nav {
  display: flex;
  gap: 22px;
}
.brand {
  font-size: 24px;
  font-weight: 700;
}
.brand span {
  color: #bca4d1;
  font-size: 16px;
  margin-left: 8px;
}
.intro {
  padding: 48px 0 32px;
  max-width: 650px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: #d1bfdc;
}
h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 20px 0;
}
h1 em {
  color: #00ff87;
  font-style: normal;
}
p {
  line-height: 1.65;
  color: #c9bbd2;
}
h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.status {
  font-size: 12px;
  color: #00ff87;
  min-height: 40px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}
.panel {
  background: #180b21;
  border: 1px solid #43234f;
  border-radius: 22px;
  padding: 28px;
  min-width: 0;
}
.game {
  background: #1f102a;
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #bca4d1;
}
dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
dl div {
  padding: 18px 12px;
  background: #2c1938;
  border-radius: 12px;
}
dt {
  font-size: 11px;
  color: #c9bbd2;
}
dd {
  font-size: 28px;
  margin: 8px 0 0;
  color: #00ff87;
}
button,
.primary {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #624476;
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 48px;
  background: #281632;
  color: #fff;
  cursor: pointer;
  text-align: center;
  justify-content: center;
}
button:hover {
  background: #35213f;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choices button {
  font:
    600 13px/1.5 Arial,
    sans-serif;
  word-break: break-word;
}
button.correct {
  border-color: #00ff87;
  background: #00ff8719;
  opacity: 1;
}
button.wrong {
  border-color: #ff8db4;
  opacity: 1;
}
#next,
#join,
.primary {
  background: #00ff87;
  color: #0d0012;
  border-color: #00ff87;
  font-weight: 700;
}
#feedback {
  min-height: 52px;
}
#score {
  font-size: 50px;
  color: #00ff87;
}
#account {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
small,
.fine {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: #bca4d1;
  margin: 12px 0;
}
#practice {
  margin-top: 20px;
}
ol {
  padding: 0;
  list-style: none;
}
li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #43234f;
  font-size: 13px;
}
li strong {
  color: #00ff87;
}
footer {
  padding: 36px 0;
  font-size: 11px;
  max-width: 800px;
}
footer p {
  color: #a593b0;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #00ff87;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro {
    padding: 24px 0;
  }
  .panel {
    padding: 22px 18px;
  }
  header,
  main {
    width: calc(100% - 32px);
  }
  nav {
    gap: 14px;
  }
  h1 {
    letter-spacing: -1.5px;
  }
}
/* Embedded in the site's /rondo page: the site header, gutters and footer take over. */
.embedded body > header,
.embedded footer > a {
  display: none;
}
.embedded main {
  width: 100%;
}
.embedded .intro {
  padding-top: 8px;
}
.embedded footer {
  padding-bottom: 8px;
}

/* This week's games: today is lit. */
.week {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.week li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid #2c1938;
  background: #180b21;
  min-width: 0;
}
.week span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #bca4d1;
}
.week b {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.week li.is-today {
  border-color: #00ff87;
  background: #00ff8714;
}
.week li.is-today span {
  color: #00ff87;
}
#round {
  margin-top: 18px;
}
/* Points per round after the game: five bars, full ones in green. */
.tally {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 56px;
  margin: 12px 0 4px;
}
.tally span {
  width: 22px;
  height: var(--h);
  border-radius: 6px;
  background: #624476;
  animation: tally-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.tally span.full {
  background: #00ff87;
}
.tally span:nth-child(2) { animation-delay: 0.08s; }
.tally span:nth-child(3) { animation-delay: 0.16s; }
.tally span:nth-child(4) { animation-delay: 0.24s; }
.tally span:nth-child(5) { animation-delay: 0.32s; }
@keyframes tally-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: none; }
}
@media (max-width: 640px) {
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .tally span { animation: none; }
}
