@font-face {
  font-family: Bricolage;
  src: url(assets/bricolage.ttf) format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Space Mono;
  src: url(assets/space-mono.ttf) format('truetype');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a1922;
  --panel: #10232d;
  --line: #29404a;
  --ink: #f0f4e9;
  --muted: #a0b4b7;
  --gold: #ffcd68;
  --mono: 'Space Mono', monospace;
  --sans: Bricolage, 'Trebuchet MS', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 40% 40%, #16323a40, transparent 64%),
    radial-gradient(#abcdd40e 0.7px, transparent 0.8px);
  background-size:
    auto,
    6px 6px;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #81dde7;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
.wrap {
  width: min(1160px, calc(100% - 88px));
  margin: 0 auto;
}
.masthead {
  border-bottom: 1px solid #273b44;
  background: #0b1a23f5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.wordmark,
.nav nav,
.navbtn,
.best,
.guide-head,
.zone,
.timer,
.conversion,
.console-foot span,
.dialog-head,
.wordmark .edition,
.feedback-tier {
  display: flex;
  align-items: center;
}
.wordmark {
  gap: 9px;
  font-weight: 800;
  font-size: 31px;
  letter-spacing: -1.8px;
}
.wordmark canvas {
  width: 39px;
  height: 31px;
  image-rendering: pixelated;
}
.wordmark .edition {
  margin: 2px 0 0 10px;
  border-left: 1px solid #47544e;
  padding: 1px 0 1px 17px;
  color: var(--gold);
  font: 11px var(--mono);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.nav nav {
  gap: 23px;
}
.navbtn {
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 0;
  color: #c2d2d0;
}
.navbtn:hover,
footer a:hover {
  color: var(--gold);
}
.help-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid;
  border-radius: 50%;
  text-align: center;
  font: bold 11px/14px var(--mono);
}
.book-icon {
  height: 15px;
  width: 13px;
  border: 1.5px solid;
  border-radius: 2px;
  border-left: 3px double;
  position: relative;
}
.book-icon:after {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 5px;
  height: 3px;
  border-top: 1px solid;
  border-bottom: 1px solid;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 47px 0 28px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(43px, 4.7vw, 68px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -3.6px;
}
h1 span {
  color: var(--gold);
}
.intro p {
  font-size: 17px;
  color: #adc0c0;
  margin-top: 10px;
  letter-spacing: -0.22px;
}
.best {
  gap: 12px;
}
.best .micro {
  font-size: 10px;
}
.best strong {
  display: block;
  font: 700 26px/1.2 var(--sans);
  letter-spacing: -0.7px;
}
.best small,
.deck small {
  font: 13px var(--mono);
  color: var(--muted);
  margin-left: 3px;
}
.medal {
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  color: var(--gold);
  background: #ffcd6810;
  border: 1px solid #ffcd6830;
  border-radius: 9px;
  font-size: 19px;
}
.micro {
  display: block;
  font: 10px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.45px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(258px, 1fr);
  align-items: start;
  gap: 22px;
}
.console,
.guide,
.recap,
dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.console {
  overflow: hidden;
  box-shadow: 0 8px 25px #02090d25;
}
.scene {
  position: relative;
  overflow: hidden;
  background: #174b66;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 448/185;
}
.scene > canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.zone,
.timer {
  position: absolute;
  color: #cde7e2;
  background: #092731d9;
  border: 1px solid #76b9bc55;
  border-radius: 5px;
  top: 15px;
  left: 16px;
  padding: 6px 9px;
  gap: 7px;
  font: 9px/1.25 var(--mono);
  letter-spacing: 1.15px;
  text-transform: uppercase;
}
.zone i,
footer i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #88d6a9;
  box-shadow: 0 0 7px #9be1ad44;
}
.timer {
  left: auto;
  right: 16px;
  gap: 3px;
  color: var(--gold);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.timer .clock-icon {
  margin-right: 4px;
}
.timer.low {
  color: #ffb2a1;
}
.ruler {
  position: absolute;
  right: 14px;
  top: 22%;
  bottom: 13%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.5;
}
.ruler span {
  width: 10px;
  height: 1px;
  background: #9fcbd2;
  box-shadow: 4px 6px 0 -0.2px #81aeb5;
}
.ruler span:nth-child(even) {
  width: 6px;
  margin-left: 4px;
}
.deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 23px 25px;
}
.instruments {
  display: flex;
  gap: 25px;
}
.instruments > div + div {
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.instruments .micro span {
  color: #81bfbc;
  font: bold 13px var(--mono);
}
.deck strong {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.6px;
}
.deck small {
  margin-left: 5px;
  letter-spacing: 0;
}
.primary {
  font-weight: 800;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: var(--gold);
  color: #292c26;
  border: 1px solid #ffe19b;
  border-bottom: 3px solid #bf8e3f;
  border-radius: 8px;
  min-height: 49px;
  padding: 9px 19px;
  white-space: nowrap;
}
.primary:hover {
  background: #ffda89;
}
.primary:active {
  transform: translateY(1px);
}
.arrow {
  font: 21px var(--mono);
  line-height: 1;
}
.console-foot {
  border-top: 1px solid var(--line);
  background: #0d202a;
  display: flex;
  gap: 24px;
  padding: 12px 25px;
  color: #a2b5b8;
  font: 10px var(--mono);
}
.console-foot span {
  gap: 7px;
}
.round-icon {
  width: 9px;
  height: 10px;
  border: 1px solid #8aadb0;
  box-shadow:
    2px -2px 0 -1px #0d202a,
    2px -2px #8aadb0;
  border-radius: 1px;
}
.clock-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.3px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.clock-icon:after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 3px;
  height: 3px;
  border-left: 1px solid;
  border-bottom: 1px solid;
}
.infinity {
  font: 18px/10px var(--sans);
}
.guide {
  padding: 22px 21px 0;
}
.guide-head {
  gap: 10px;
  margin-bottom: 10px;
}
.guide h2,
.dialog-head h2,
.recap h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.9px;
}
.signal {
  display: flex;
  align-items: end;
  height: 17px;
  gap: 3px;
}
.signal i {
  width: 3px;
  height: 6px;
  background: #89c5bc;
}
.signal i:nth-child(2) {
  height: 10px;
}
.signal i:nth-child(3) {
  height: 15px;
}
.tier {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #253b45;
  min-height: 51px;
}
.tier:last-child {
  border: 0;
}
.specimen {
  flex: none;
  width: 34px;
  height: 31px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 9%, #0d1d26);
  border-radius: 5px;
}
.specimen canvas {
  width: 28px;
  height: 22px;
  image-rendering: pixelated;
}
.tier-name {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.tier-bars {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}
.tier-bars i {
  height: 3px;
  width: 9px;
  border-radius: 1px;
  background: #31454c;
}
.tier-bars i.on {
  background: var(--accent);
}
.tier-value {
  margin-left: auto;
  color: var(--accent);
  white-space: nowrap;
  font: 14px var(--mono);
}
.tier-value small {
  font-size: 9px;
  color: var(--muted);
}
.conversion {
  border-top: 1px solid var(--line);
  margin: 8px -21px 0;
  padding: 12px 21px;
  gap: 8px;
  font: 10px var(--mono);
  color: var(--muted);
}
.tiny-depth {
  color: #86bcb1;
  font-size: 13px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin: 31px 0;
  padding: 16px 0;
  color: #8da4a9;
  font: 10px var(--mono);
}
footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer i {
  width: 5px;
  height: 5px;
  box-shadow: none;
  background: #74a5a1;
}
footer a {
  text-decoration: none;
}
footer a span {
  color: #a9c4c3;
}
#interaction:not(:empty) {
  padding: 21px 25px 0;
}
.playing .scene,
.finished .scene {
  aspect-ratio: 448/111;
}
.playing .scene > canvas,
.finished .scene > canvas {
  object-fit: cover;
  object-position: 50% 55%;
}
.round-label {
  color: #95d2c8;
  margin-bottom: 7px;
}
.prompt {
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 15px;
}
.answer-form {
  display: flex;
  gap: 9px;
}
.answer-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  background: #091b25;
  border: 1px solid #4b6974;
  border-radius: 6px;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 16px;
}
.answer-form input::placeholder {
  color: #94a7ae;
}
.answer-form .primary {
  min-height: 44px;
  font-size: 15px;
}
.error {
  color: #ffbcab;
  font-size: 14px;
  margin-top: 7px;
}
.error:empty {
  display: none;
}
.result-info {
  color: var(--muted);
  font-size: 15px;
}
.feedback-tier {
  gap: 7px;
  margin: 0 0 6px;
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}
.dots {
  display: flex;
  gap: 5px !important;
}
.dots i {
  width: 11px;
  height: 5px;
  background: #354a54;
  border-radius: 2px;
}
.dots i.done {
  background: #92cbb5;
}
.dots i.current {
  background: var(--gold);
}
.playing .console-foot,
.finished .console-foot {
  justify-content: space-between;
  align-items: center;
}
.recap {
  margin-top: 20px;
  padding: 22px 25px;
}
.recap h2 {
  margin: 0 0 12px;
}
details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
summary {
  cursor: pointer;
  font-size: 15px;
}
summary > span {
  color: var(--gold);
}
.entry-list {
  margin: 8px 0;
  padding-left: 22px;
  max-height: 170px;
  overflow: auto;
  color: var(--muted);
  font-size: 14px;
}
.answer-filter {
  width: 100%;
  border-radius: 5px;
  border: 1px solid #54717a;
  background: #0a1c27;
  color: var(--ink);
  padding: 8px 10px;
  margin: 10px 0 0;
  font-size: 16px;
}
.more {
  font: 11px var(--mono);
  color: var(--muted);
}
dialog {
  padding: 24px;
  color: var(--ink);
  width: min(480px, calc(100% - 30px));
  max-height: 85vh;
  box-shadow: 0 16px 70px #0009;
}
dialog::backdrop {
  background: #031018bc;
}
.dialog-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.close {
  width: 36px;
  height: 36px;
  background: #1d3440;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 23px;
  line-height: 1;
}
.close:hover {
  background: #2d4651;
}
#dialog-body p,
#dialog-body li {
  color: #b8c9c9;
  font-size: 16px;
}
#dialog-body p + p {
  margin-top: 12px;
}
#dialog-body ol {
  padding-left: 22px;
}
#dialog-body li + li {
  margin-top: 8px;
}
.log-entry {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.log-entry small {
  color: var(--muted);
  display: block;
}
.log-entry strong {
  color: var(--gold);
  font: 14px var(--mono);
}
.sr-only {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .intro {
    margin-top: 65px;
  }
}
@media (max-width: 920px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(225px, 1fr);
    gap: 15px;
  }
  .deck {
    padding: 18px;
  }
  .guide {
    padding: 16px 15px 0;
  }
  .conversion {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
  }
  .tier {
    gap: 9px;
    min-height: 45px;
  }
  .instruments,
  .instruments > div + div {
    gap: 15px;
  }
  .instruments > div + div {
    padding-left: 15px;
  }
  .tier-name {
    font-size: 14px;
  }
  .console-foot {
    padding-left: 18px;
    gap: 15px;
  }
  .primary {
    gap: 14px;
  }
}
@media (max-width: 710px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    min-height: 62px;
  }
  .wordmark {
    gap: 4px;
    font-size: 26px;
  }
  .wordmark canvas {
    width: 30px;
    height: 24px;
  }
  .wordmark .edition {
    font-size: 8px;
    letter-spacing: 1px;
    margin-left: 5px;
    padding-left: 8px;
  }
  .nav nav {
    gap: 14px;
  }
  .navbtn {
    font-size: 12px;
    gap: 5px;
  }
  .navbtn .help-icon,
  .navbtn .book-icon {
    display: none;
  }
  .intro {
    margin: 27px 0 19px;
    gap: 10px;
  }
  .intro p {
    font-size: 14px;
    max-width: 340px;
  }
  .best {
    gap: 5px;
  }
  .best .micro {
    font-size: 8px;
    letter-spacing: 0.9px;
  }
  .best strong {
    font-size: 22px;
  }
  .medal {
    display: none;
  }
  h1 {
    font-size: clamp(36px, 8vw, 48px);
    letter-spacing: -2px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .scene {
    aspect-ratio: 2.12;
  }
  .scene > canvas {
    object-fit: cover;
  }
  .guide {
    padding-top: 17px;
  }
  .guide-head {
    margin-bottom: 7px;
  }
  .tier-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .tier {
    min-height: 47px;
  }
  .tier:nth-last-child(2) {
    border-bottom: 0;
  }
  .guide h2 {
    font-size: 20px;
  }
  .conversion {
    margin-top: 8px;
  }
  .console-foot {
    font-size: 9px;
  }
  .deck strong {
    font-size: 28px;
  }
  .primary {
    min-height: 44px;
  }
  .best .micro {
    max-width: 84px;
  }
  .zone {
    top: 10px;
    left: 10px;
  }
  .tier-bars i {
    width: 6px;
  }
  .tier-value {
    font-size: 12px;
  }
  .tier-value small {
    display: none;
  }
  .specimen {
    width: 27px;
    height: 25px;
  }
  .specimen canvas {
    width: 23px;
    height: 18px;
  }
  #interaction:not(:empty) {
    padding: 16px 16px 0;
  }
  footer {
    margin-top: 22px;
  }
  .recap {
    padding: 16px;
  }
  .playing .scene,
  .finished .scene {
    aspect-ratio: 3.4;
  }
}
@media (max-width: 420px) {
  .tier-list {
    display: block;
  }
  .tier:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .tier-value small {
    display: inline;
  }
  .intro p {
    max-width: 240px;
  }
  .best {
    align-self: flex-start;
    margin-top: 5px;
  }
  .best .micro {
    max-width: 66px;
  }
  .guide {
    padding-left: 17px;
    padding-right: 17px;
  }
  .conversion {
    margin-left: -17px;
    margin-right: -17px;
  }
  .instruments {
    gap: 10px;
  }
  .instruments > div + div {
    padding-left: 10px;
  }
  .deck {
    padding: 16px;
    gap: 8px;
  }
  .deck small {
    font-size: 11px;
  }
  .primary {
    padding: 8px 12px;
    font-size: 15px;
  }
  .console-foot {
    justify-content: space-between;
    gap: 3px;
    padding: 10px 12px;
  }
  .recap summary {
    font-size: 14px;
  }
}
.load-more {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--gold);
  padding: 7px 10px;
  font-size: 14px;
}
@media (min-width: 711px) {
  body:not(.playing):not(.finished) .guide {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }
  body:not(.playing):not(.finished) .tier-list {
    flex: 1;
    display: grid;
    grid-template-rows: repeat(6, 1fr);
  }
}
