@font-face {
  font-family: Silkscreen;
  src: url(/fonts/silkscreen.woff2) format('woff2');
  font-display: swap;
  font-weight: 400;
}
:root {
  color-scheme: dark;
  --night: #0b1320;
  --panel: #101b29;
  --gold: #f3cc77;
  --steel: #bccad4;
  --ink: #f7f5eb;
  --pixel: Silkscreen, ui-monospace, monospace;
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--night);
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
summary,
select {
  cursor: pointer;
}
button {
  border: 0;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.75;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c8eaff;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.game {
  overflow-anchor: none;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: clip;
  background: #3d596a;
}
#world,
.shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#world {
  z-index: -3;
  image-rendering: pixelated;
}
.shade {
  z-index: -2;
  background:
    radial-gradient(#07101b44 0, transparent 66%),
    linear-gradient(#07101a73, transparent 22% 57%, #050a15df);
}
.game.playing .shade,
.game.feedback .shade {
  background:
    radial-gradient(#08111cbb 0%, #08111c69 30%, transparent 69%),
    linear-gradient(#07101abb, transparent 28% 62%, #050a15df);
}
.game.crt:after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 6;
  background: repeating-linear-gradient(transparent 0 3px, #0002 3px 4px);
}
.tools {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  gap: 6px;
  z-index: 4;
}
.square {
  width: 42px;
  height: 42px;
  color: var(--gold);
  background: var(--night);
  border: 1px solid #dcb66f;
  line-height: 1;
}
.square:hover,
.square[aria-expanded='true'] {
  background: #233242;
}
#menu-button {
  font: 1.55rem/1 var(--pixel);
}
#settings {
  position: absolute;
  z-index: 5;
  left: 16px;
  top: 64px;
  width: min(300px, calc(100% - 32px));
  padding: 16px;
  background: #0d1724;
  color: var(--steel);
  border: 1px solid #8a7653;
  box-shadow: 4px 4px #050a15;
}
#settings h2 {
  font: 1rem var(--pixel);
  color: var(--gold);
}
#settings p {
  font-size: 0.88rem;
  margin: 8px 0 12px;
}
#settings label {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
}
#settings input {
  accent-color: var(--gold);
}
#volume {
  display: block;
  width: 100%;
  min-height: 24px;
}
#volume-value {
  float: right;
}
.scene {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  text-align: center;
  width: min(calc(100% - 36px), 650px);
}
.landing {
  align-self: start;
  margin-top: clamp(96px, 24dvh, 260px);
}
.landing h1 {
  font: 400 clamp(2.4rem, 9.7vw, 7rem)/1.06 var(--pixel);
  letter-spacing: -0.065em;
  color: var(--gold);
  text-shadow:
    0 5px #10131a,
    4px 5px #10131a;
}
.subtitle {
  color: #f6e8c4;
  letter-spacing: 0.2em;
  font: clamp(0.9rem, 2.1vw, 1.4rem) var(--pixel);
  letter-spacing: 0.2em;
  line-height: 1.5;
  margin: 14px 0 18px;
}
.landing p:last-child {
  font-size: clamp(0.82rem, 2vw, 1rem);
  color: #d4dce0;
}
.dock {
  grid-row: 3;
  justify-self: center;
  text-align: center;
  width: min(calc(100% - 36px), 380px);
  padding: 14px 0 max(25px, env(safe-area-inset-bottom));
}
.dock .outline {
  width: 100%;
}
.landing-dock .outline {
  min-height: 56px;
}
.landing-dock p {
  font: 0.71rem/1.5 var(--pixel);
  color: var(--steel);
  margin: 11px 0;
}
.landing-dock span {
  color: #8395a5;
  margin: 0 3px;
}
.landing-dock b {
  font-weight: 400;
}
.guide-link {
  display: block;
  color: #a9b8c7;
  font-size: 0.72rem;
  text-underline-offset: 3px;
}
.outline {
  font: 1rem/1.5 var(--pixel);
  border: 2px solid var(--gold);
  min-height: 48px;
  color: var(--ink);
  background: #101827;
  padding: 10px 22px;
  box-shadow:
    3px 3px #0a101a,
    inset 0 0 0 2px #0a101a;
}
.outline:hover {
  background: #2b2c31;
}
.outline:active {
  box-shadow: inset 2px 2px #0a101a;
}
.hud {
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(8px, 3vw, 28px);
  width: min(74%, 690px);
  margin: 17px auto 0;
  padding: 10px 0;
  font-family: var(--pixel);
}
.hud > div {
  display: grid;
  gap: 4px;
  align-content: start;
}
.hud > div:last-child {
  text-align: right;
}
.hud span {
  color: var(--steel);
  font-size: clamp(0.58rem, 1.4vw, 0.8rem);
}
.hud strong {
  font-size: clamp(0.8rem, 2.2vw, 1.3rem);
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.hud small {
  color: var(--steel);
  font-size: 0.65em;
}
.progress {
  text-align: center;
}
.steps {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.steps i {
  width: 7px;
  height: 7px;
  background: #273949;
}
.steps .earned {
  background: var(--gold);
}
.steps .missed {
  background: #ba887c;
}
.steps .current {
  background: #9ed1e2;
}
.rail {
  position: absolute;
  pointer-events: none;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: 13px;
  text-align: right;
  font: 0.58rem var(--pixel);
  color: #a8becb78;
}
.rail span:after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 1px;
  background: currentColor;
  margin-left: 6px;
}
.rail .reached {
  color: #f3cc77b3;
}
.question {
  padding: 30px 0;
}
.countdown {
  margin: 0 auto 25px;
  width: min(74%, 252px);
  font: 1rem var(--pixel);
  color: var(--gold);
}
.countdown.urgent {
  color: #ffd0c7;
}
.timer {
  height: 3px;
  background: #75839072;
  margin-top: 6px;
}
.timer i {
  display: block;
  height: 100%;
  background: currentColor;
  transform-origin: left;
}
.discipline,
.feedback-copy {
  font: 0.76rem/1.5 var(--pixel);
  color: var(--steel);
}
.question h2 {
  max-width: 590px;
  text-wrap: balance;
  margin: 9px auto 20px;
  font:
    750 clamp(1.34rem, 3vw, 2rem)/1.19 system-ui,
    sans-serif;
}
.guess {
  display: flex;
  gap: 8px;
  width: min(100%, 470px);
  margin: auto;
}
.guess input,
input[type='search'],
.report select,
.report textarea,
.report input {
  min-width: 0;
  background: #0a1524;
  border: 1px solid #7e91a2;
  padding: 9px 12px;
  color: var(--ink);
}
.guess input {
  flex: 1;
  min-height: 48px;
  font-size: 16px;
}
.guess input::placeholder {
  color: #a6b4c2;
}
.guess button {
  padding-inline: clamp(9px, 3vw, 22px);
}
.message {
  min-height: 1.5em;
  margin: 8px 0 -1.5em;
  color: #ffad9d;
  font-size: 0.86rem;
  font-weight: 700;
}
.message.pending {
  color: var(--steel);
}
.message.hint {
  color: var(--ink);
}
.award-view {
  padding: 18px 0;
  color: var(--gold);
  overflow-wrap: anywhere;
  position: relative;
}
.award-view.rare {
  color: #bcdfff;
}
.award-view.rare h2 {
  text-shadow: 0 0 18px #75b8ee88;
}
.award span {
  color: #8395a5;
  margin: 0 3px;
}
.award-view.miss {
  color: #f2ad9d;
}
.badge {
  display: block;
  image-rendering: pixelated;
  margin: 0 auto;
  width: 28px;
  height: 28px;
  animation: pop 0.36s steps(5, end) both;
  filter: drop-shadow(0 0 3px #97c5de77);
}
.award-view h2 {
  font: clamp(1.24rem, 4vw, 2.5rem)/1.18 var(--pixel);
  margin: 9px 0;
}
.submitted {
  font-weight: 700;
  color: var(--ink);
}
.award {
  font: 0.98rem/1.5 var(--pixel);
  margin: 12px 0 9px;
}
.milestone {
  color: #cfe9fa;
  margin-top: 14px;
  font: 1rem var(--pixel);
}
.launch {
  pointer-events: none;
  color: #ddf7ff;
  animation: 1.4s steps(20, end) both gem-liftoff;
  position: absolute;
  bottom: calc(100% - 12px);
  left: calc(50% - 14px);
}
.launch .badge {
  filter: drop-shadow(0 0 9px #8ddcff);
  animation: none;
}
.launch > i {
  background: #efac58;
  width: 4px;
  height: 12px;
  margin: 2px auto;
  display: block;
  box-shadow:
    -6px 5px #b2e5f4,
    6px 10px #f4df9e,
    0 15px #879bdd;
}
@keyframes gem-liftoff {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  12% {
    opacity: 1;
  }
  75% {
    opacity: 0.9;
  }
  to {
    opacity: 0;
    transform: translateY(-105px);
  }
}
@keyframes pop {
  from {
    opacity: 0.4;
    transform: translateY(7px) scale(0.6);
  }
}
.notice {
  position: absolute;
  z-index: 5;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  background: #101b29;
  border: 1px solid #a86e58;
  padding: 8px 14px;
  font-size: 0.9rem;
  text-align: center;
  color: #ffd1c4;
  max-width: 90%;
}
.notice button {
  margin-left: 8px;
  background: none;
  color: var(--gold);
  text-decoration: underline;
}
.game.complete .shade {
  background: linear-gradient(90deg, #070f1b70, #070f1bce 34% 66%, #070f1b70);
}
.game.complete #world {
  position: sticky;
  top: 0;
  align-self: start;
  grid-area: 1 / 1 / 4 / 2;
  height: 100dvh;
}
.game.complete .hud,
.game.complete .report {
  grid-column: 1;
}
.game.complete {
  background: #111e2d;
}
.game.complete .rail {
  top: min(50%, 50dvh);
}
.report {
  grid-row: 2;
  justify-self: center;
  width: min(calc(100% - 48px), 690px);
  padding: 34px 0 48px;
  text-align: left;
  align-self: start;
}
.report h2,
.report h3 {
  font: clamp(1.15rem, 3.4vw, 1.9rem)/1.2 var(--pixel);
  color: var(--gold);
}
.report h3 {
  font-size: 0.95rem;
  margin: 22px 0 10px;
}
.report h4 {
  margin: 12px 0 5px;
}
.report p {
  margin: 7px 0;
  color: var(--steel);
}
.report strong {
  color: var(--gold);
}
.report .meta,
.report small {
  font-size: 0.83rem;
  color: var(--steel);
}
.report .outline {
  min-height: 42px;
  font-size: 0.8rem;
  padding: 8px 14px;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}
.report textarea {
  display: block;
  width: 100%;
  margin: 8px 0;
}
.chart,
.breakdown,
.answer-list {
  list-style: none;
  padding: 0;
}
.chart li {
  display: grid;
  grid-template-columns: 3.8rem minmax(0, 1fr) minmax(1.5rem, auto) 1rem;
  align-items: center;
  gap: 0.4rem;
  color: var(--steel);
  font-size: 0.76rem;
}
.bar {
  height: 8px;
  background: #223647;
}
.bar i {
  display: block;
  height: 100%;
  background: #7598ae;
}
.chart .mine,
.chart .mine .bar {
  color: var(--gold);
}
.chart .mine .bar i {
  background: var(--gold);
}
.breakdown {
  margin-bottom: 20px;
}
.breakdown > li {
  border-block-start: 1px solid #71839485;
}
.breakdown > li:last-child {
  border-block-end: 1px solid #71839485;
}
.breakdown summary {
  cursor: pointer;
}
.result-summary {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 0;
  align-items: start;
}
.result-summary strong,
.result-summary small {
  display: block;
}
.result-summary .badge {
  width: 14px;
  height: 14px;
  margin: 5px 0 0;
  color: var(--gold);
}
.result-summary .points {
  font-size: 0.8rem;
  color: var(--gold);
}
.points:after {
  content: ' ▸';
}
[open] > .result-summary .points:after {
  content: ' ▾';
}
.more {
  padding: 12px 16px;
  margin: 0 0 14px 26px;
  background: #101b29e8;
  border-left: 2px solid #708396;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.more ol {
  padding-left: 22px;
}
.more details {
  margin-top: 12px;
}
.more summary {
  color: #bcddf1;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.report label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.filters input,
.filters select {
  width: 100%;
  padding: 6px;
}
.answer-list {
  max-height: 19rem;
  overflow: auto;
}
.answer-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #5e72845e;
}
.answer-list small {
  display: block;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
  margin: 8px 0;
}
.feedback-form {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.feedback-form button {
  justify-self: start;
}
.report .feedback-form textarea {
  margin: 0;
}
@media (max-width: 740px) {
  .rail {
    font-size: 0;
    gap: 7px;
    top: 26%;
    right: 4px;
    transform: none;
  }
  .rail span:after {
    width: 5px;
    margin: 0;
  }
}
@media (max-width: 720px) {
  .tools {
    flex-direction: column;
    gap: 5px;
  }
  #settings {
    top: max(108px, calc(env(safe-area-inset-top) + 94px));
  }
}
@media (max-width: 500px) {
  .hud {
    width: calc(100% - 86px);
    margin-left: 70px;
  }
  .zone-label {
    display: none;
  }
  .landing h1 {
    letter-spacing: -0.08em;
  }

  .result-summary {
    grid-template-columns: 16px 1fr;
  }
  .result-summary .points {
    grid-column: 2;
  }
  .more {
    margin-left: 0;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .report {
    width: calc(100% - 36px);
  }
}
@media (max-height: 480px) {
  .landing {
    margin-top: 65px;
  }
  .question {
    padding: 14px 0 18px;
  }
  .question h2,
  .countdown {
    margin-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .launch {
    display: none;
  }
}
.chart {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
  padding: 0.55rem 0;
}
.result-summary strong {
  color: var(--ink);
}
