:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --ink: #142d28;
  --muted: #49615a;
  --line: #beccc2;
  --acid: #d2ef66;
  --green: #1c493b;
  font:
    16px/1.55 "Atkinson Hyperlegible Next",
    "PingFang SC",
    "Microsoft Yahei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem max(5vw, calc((100vw - 1100px) / 2));
  background: var(--ink);
  color: var(--paper);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}
.wordmark {
  font:
    850 1.5rem/1 "Archivo Black",
    sans-serif;
  letter-spacing: -0.075em;
  text-decoration: none;
}
.wordmark span {
  color: var(--acid);
}
nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 0 30px;
}
.intro {
  padding: 3.2rem 0 1.65rem;
  border-bottom: 2px solid var(--ink);
}
.eyebrow,
.count,
.prompt span {
  font:
    700 0.79rem/1.4 "IBM Plex Mono",
    monospace;
  letter-spacing: 0.08em;
}
.eyebrow {
  color: var(--green);
  margin: 0;
}
h1 {
  font-size: clamp(2.65rem, 6vw, 5rem);
  letter-spacing: -0.07em;
  line-height: 1.1;
  margin: 0.55rem 0;
}
h1 span {
  color: #648517;
}
.intro > p:last-child {
  margin: 0.65rem 0 0;
  color: var(--muted);
}
.desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 2rem 0 2.25rem;
}
.section-head,
.run-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
h2,
h3 {
  line-height: 1.35;
  margin: 0;
}
h2 {
  font-size: 1.45rem;
}
h3 {
  font-size: 1.15rem;
}
.count {
  background: var(--acid);
  padding: 0.15rem 0.5rem;
}
label {
  display: block;
  margin: 0.95rem 0 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
}
input,
textarea,
select {
  display: block;
  font: inherit;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  border: 1px solid #899c91;
  border-radius: 3px;
  background: #fffefa;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  background: #fffefa
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23142d28' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 0.8rem center;
  padding-right: 2rem;
}
button {
  margin: 1rem 0 0;
  font: inherit;
  font-weight: 750;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  padding: 0.55rem 1.2rem;
  min-height: 44px;
  border-radius: 3px;
  cursor: pointer;
}
button:hover {
  background: var(--ink);
  color: white;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--green);
  margin: 0;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #638920;
  outline-offset: 2px;
}
.two,
.rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.prompt {
  background: #e7ecdf;
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
  border-left: 4px solid #66813d;
}
.prompt p {
  margin: 0.55rem 0 0;
  white-space: pre-line;
}
.hint,
#run-info {
  font-size: 0.91rem;
  color: var(--muted);
  margin: 0.4rem 0;
}
.history {
  border-top: 2px solid var(--ink);
  padding: 1.55rem 0 3rem;
}
.history > select {
  margin: 0.8rem 0;
}
#run {
  max-width: 850px;
}
#resume,
#apply {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1.25rem;
}
#game {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1rem 0;
  border: 1px solid var(--line);
  background: #142d28;
}
#notice:not(:empty),
#detail:not(:empty),
#receipt:not(:empty) {
  padding: 0.7rem 1rem;
  background: #e9efda;
  border-left: 3px solid #66813d;
  margin: 0.9rem 0;
}
#notice.error {
  background: #ffe5dc;
  border-color: #ae3e25;
}
#status {
  font-size: 0.92rem;
  background: #e0ead2;
  padding: 0.15rem 0.5rem;
}
footer {
  font-size: 0.9rem;
}
footer span {
  font-weight: 750;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  main {
    padding: 0 18px;
  }
  .intro {
    padding-top: 2rem;
  }
  .desk {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .desk section + section {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
  }
  nav {
    gap: 0.85rem;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .run-title {
    align-items: flex-start;
  }
}
