:root {
  color-scheme: light;
  --ink: #153e33;
  --green: #165944;
  --paper: #f6f7f0;
  --line: #d2dcd1;
  --muted: #52685b;
  --white: #fffefa;
  --lime: #d5eb9d;
  --radius: 16px;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
a {
  color: var(--green);
  text-decoration: none;
  text-underline-offset: 0.2em;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
:where(button, a, input, summary):focus-visible {
  outline: 3px solid #956000;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
}
small,
.muted {
  color: var(--muted);
  line-height: 1.55;
}
small {
  display: block;
  font-size: 13px;
}
.shell {
  width: min(100% - 36px, 680px);
  margin: 0 auto;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.home-shell,
.wide {
  max-width: 1060px;
  width: min(100% - 36px, 1060px);
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mast a,
.mast button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.mark {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--green);
}
.mark::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 13px;
  top: 8px;
  left: 7px;
  border-radius: 13px 1px 11px 1px;
  background: var(--lime);
  transform: rotate(-8deg);
}
.mark::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  top: 16px;
  left: 7px;
  background: var(--green);
  transform: rotate(-38deg);
}
.nav-action,
#rank-link {
  gap: 9px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
}
.bars {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 15px;
  background:
    linear-gradient(to top, currentColor 100%, transparent) bottom left / 4px
      8px no-repeat,
    linear-gradient(to top, currentColor 100%, transparent) bottom center / 4px
      15px no-repeat,
    linear-gradient(to top, currentColor 100%, transparent) bottom right / 4px
      11px no-repeat;
}
#home {
  max-width: 600px;
  margin: auto;
  display: grid;
  gap: 15px;
}
.poster {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #e6eddc;
}
.poster-face {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 152px;
  flex: 1;
  background: #edf2e1;
}
.street-art {
  position: absolute;
  z-index: -2;
  width: 80%;
  height: 100%;
  inset: 0 0 0 auto;
  object-fit: cover;
  object-position: 65% 60%;
}
.poster-face::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    92deg,
    #edf2e1 12%,
    #edf2e1 28%,
    rgb(237 242 225 / 0.85) 40%,
    transparent 64%
  );
}
.poster-title {
  padding: 21px 19px;
  max-width: 62%;
}
.poster-title h1 {
  font-size: clamp(32px, 8vw, 45px);
  line-height: 1.07;
  font-weight: 850;
  text-wrap: balance;
}
.poster-title h1 span {
  display: block;
  white-space: nowrap;
}
.poster-title p {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: #174a38;
  color: #fff;
  padding: 11px 4px 12px;
}
.facts > div {
  padding-left: clamp(12px, 3.7vw, 28px);
  border-left: 1px solid #57806a;
}
.facts > div:first-child {
  border: 0;
}
.facts span {
  display: block;
  color: #dceccc;
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 2px;
}
.facts b {
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.facts small {
  display: inline;
  color: #e8f1e0;
  margin-left: 4px;
  font-size: 12px;
}
.card,
.result-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
}
.entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.entry h2 {
  margin-bottom: 19px;
}
.field + .field {
  margin-top: 15px;
}
label {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 700;
}
input {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid #acbeb1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  caret-color: var(--green);
  font-size: 16px;
}
input::placeholder {
  color: #65766a;
}
input + small {
  margin-top: 6px;
}
.rules {
  margin: 17px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.rules p {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.rules strong {
  color: var(--ink);
  font-weight: 700;
  flex: none;
}
.primary,
.pill {
  background: var(--green);
  color: #fff;
  border: 0;
  font-weight: 700;
}
.primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  margin-top: 17px;
  padding: 12px 36px;
  border-radius: 10px;
  font-size: 17px;
}
.arrow {
  position: absolute;
  right: 17px;
  width: 16px;
  border-top: 2px solid currentColor;
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 7px;
  height: 7px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: rotate(45deg);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  min-height: 42px;
  padding: 8px 14px;
  font-size: 14px;
}
.primary:active,
.option:active {
  background: #e1edcf;
  color: var(--ink);
}
@media (hover: hover) {
  .primary:hover,
  .pill:hover {
    background: #103f30;
  }
  .nav-action:hover,
  .brand:hover,
  .quiet:hover,
  .link:hover,
  .pager a:hover {
    text-decoration: underline;
  }
  .option:hover:not(:disabled) {
    border-color: var(--green);
  }
}
.error {
  color: #9a342a;
  font-size: 14px;
  margin-top: 12px;
}
.reading {
  max-width: 624px;
  margin-inline: auto;
}
.q-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-variant-numeric: tabular-nums;
}
.q-index {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.q-index strong {
  color: var(--ink);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.035em;
}
.q-kind {
  border-left: 1px solid #aabcac;
  padding-left: 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--green);
}
.clock {
  display: flex;
  gap: 3px;
  align-items: baseline;
  justify-content: center;
  background: #e1ecd7;
  color: var(--ink);
  padding: 7px 10px;
  border-radius: 9px;
  min-width: 69px;
  margin-left: auto;
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
}
.clock small {
  color: inherit;
  font-size: 12px;
}
.clock.last {
  background: #fbe1bb;
  color: #783b14;
}
.clock-face {
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  position: relative;
  align-self: center;
  margin-right: 2px;
}
.clock-face::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 3px;
  height: 4px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
}
progress {
  display: block;
  width: 100%;
  height: 4px;
  margin: 9px 0 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  color: var(--green);
  background: #dae3d6;
}
progress::-webkit-progress-bar {
  background: #dae3d6;
}
progress::-webkit-progress-value {
  background: var(--green);
}
progress::-moz-progress-bar {
  background: var(--green);
}
.q-card {
  padding: 24px 0 0;
}
.q-card h1 {
  font-size: clamp(21px, 5.2vw, 29px);
  letter-spacing: -0.02em;
  line-height: 1.42;
  font-weight: 750;
}
.q-card h1:focus {
  outline: none;
}
.q-card .muted {
  margin: 7px 0 16px;
  font-size: 13px;
}
#options {
  display: grid;
  gap: 8px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #b8c9bc;
  border-radius: 10px;
  text-align: left;
  font-size: 16px;
  line-height: 1.42;
  color: var(--ink);
  background: var(--white);
}
#options.multi .option::after {
  content: "";
  box-sizing: border-box;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-left: auto;
  border: 1px solid #849c88;
  border-radius: 3px;
}
#options.multi .option[aria-pressed="true"]::after {
  flex-basis: 8px;
  height: 14px;
  margin-right: 4px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  border-radius: 0;
  transform: rotate(42deg);
}
.option b {
  flex: 0 0 27px;
  min-height: 27px;
  display: grid;
  place-content: center;
  border-radius: 6px;
  background: #ebf0e7;
  font-size: 14px;
  line-height: 1;
}
.option[aria-pressed="true"] {
  background: #e1efcf;
  border-color: var(--green);
  outline: 1px solid var(--green);
  outline-offset: -2px;
}
.option[aria-pressed="true"] b {
  background: var(--green);
  color: white;
}
.option[aria-pressed="true"]:focus-visible {
  outline: 3px solid #956000;
  outline-offset: 2px;
}
.state {
  margin-top: 24px;
}
.state h1 {
  font-size: 27px;
  margin-bottom: 8px;
}
.result-head {
  text-align: center;
  background: #174a38;
  border-radius: var(--radius) var(--radius) 0 0;
  color: #fff;
  padding: 28px 16px 24px;
}
.result-head h1 {
  font-size: 23px;
}
.score {
  margin-top: 12px;
  color: var(--lime);
}
.score strong {
  font-size: 76px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.score span {
  margin-left: 7px;
}
.result-body {
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 0;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.result-grid > div + div {
  border-left: 1px solid var(--line);
}
.result-grid p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}
.result-grid strong {
  font-size: 29px;
}
#answer-review {
  margin-top: 28px;
}
#answer-review .section-head {
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.review-filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  color: var(--green);
}
.review-filter input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0 7px 0 0;
  accent-color: var(--green);
}
#review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
#review-list li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
#review-list.missed-only li[data-status="correct"] {
  display: none;
}
.review-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.review-status,
.right-answer {
  color: var(--green);
}
#review-list li:not([data-status="correct"]) .review-status {
  color: #913c23;
}
#review-list h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 6px 0 10px;
}
#review-list dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  line-height: 1.55;
  font-size: 14px;
}
#review-list dt {
  color: var(--muted);
}
#review-list dd {
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0;
}
.right-answer {
  font-weight: 650;
}
.quiet,
.link {
  background: transparent;
  color: var(--green);
  border: 0;
  font-weight: 650;
}
.quiet {
  width: 100%;
  min-height: 44px;
  margin-top: 3px;
}
.page-title {
  margin: 23px 0;
  padding: 0;
}
.page-title p {
  color: var(--muted);
  margin-top: 8px;
}
.section-head,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-head {
  margin-bottom: 18px;
}
.section-head small {
  font-size: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 12px;
  color: var(--muted);
  background: #f0f4eb;
}
td,
th {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.rank-table td:last-child,
.rank-table th:last-child {
  text-align: right;
}
.rank-table td:last-child strong {
  font-size: 19px;
}
.place {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--green);
  background: #f0f4eb;
}
.place.leading {
  background: var(--lime);
  color: var(--ink);
}
.rank-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}
.rank-empty .bars {
  color: var(--green);
  transform: scale(1.4);
  margin: 7px 0;
}
.pager {
  justify-content: center;
  margin-top: 16px;
  font-size: 14px;
}
.pager a,
.pager button {
  padding: 10px;
  color: var(--green);
  background: transparent;
  border: 0;
}
.empty {
  padding: 22px 0;
  color: var(--muted);
}
.scroll {
  overflow: auto;
  scrollbar-color: #8fa791 transparent;
}
.search {
  margin: 19px 0 12px;
}
.search > div {
  display: flex;
  gap: 8px;
}
.search .pill {
  white-space: nowrap;
}
.search + p {
  margin-bottom: 12px;
  font-size: 13px;
}
.repeat {
  color: #854219;
}
summary {
  min-height: 40px;
  padding: 8px 0;
  color: var(--green);
  cursor: pointer;
}
details img {
  margin: 8px 0;
}
@media (min-width: 780px) {
  .shell {
    padding-top: 14px;
  }
  .mast {
    min-height: 70px;
    margin-bottom: 36px;
  }
  #home {
    max-width: none;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.88fr);
    gap: 24px;
    align-items: stretch;
  }
  .poster-face {
    min-height: 344px;
  }
  .street-art {
    width: 100%;
    height: 100%;
    object-position: center 62%;
  }
  .poster-face::after {
    background: linear-gradient(
      166deg,
      #edf2e1 1%,
      rgb(237 242 225 / 0.94) 15%,
      rgb(237 242 225 / 0.36) 37%,
      transparent 56%
    );
  }
  .poster-title {
    max-width: 100%;
    padding: 30px;
  }
  .poster-title h1 {
    font-size: clamp(39px, 4.2vw, 58px);
    line-height: 1.07;
  }
  .poster-title h1 span {
    display: inline-block;
  }
  .poster-title p {
    margin-top: 10px;
    font-size: 15px;
  }
  .entry {
    padding: clamp(24px, 3vw, 39px);
  }
  .entry h2 {
    margin-bottom: 26px;
    font-size: 29px;
  }
  .field + .field {
    margin-top: 19px;
  }
  .facts {
    padding: 14px 3px;
  }
  .facts span {
    font-size: 12px;
  }
  .facts b {
    font-size: 29px;
  }
  .reading {
    margin-top: 8px;
  }
  .q-card {
    padding-top: 30px;
  }
  .option {
    min-height: 56px;
  }
}
@media (max-width: 779px) {
  .mast {
    min-height: 58px;
    margin-bottom: 14px;
  }
  .home-shell,
  .wide {
    width: min(100% - 32px, 660px);
  }
  .entry {
    padding: 19px;
  }
}
@media (max-height: 720px) and (max-width: 779px) {
  .mast {
    min-height: 48px;
    margin-bottom: 9px;
  }
  .poster-face {
    min-height: 114px;
  }
  .poster-title {
    padding-block: 12px;
  }
  .poster-title h1 {
    font-size: 30px;
  }
  .poster-title p {
    margin-top: 5px;
  }
  .facts {
    padding-block: 7px;
  }
  .entry h2 {
    margin-bottom: 12px;
  }
  .q-card {
    padding-top: 14px;
  }
  .q-card .muted {
    margin: 5px 0 9px;
  }
  #options {
    gap: 6px;
  }
  .option {
    padding: 8px 10px;
    min-height: 44px;
  }
}

@media (max-height: 600px) and (max-width: 779px) {
  #home {
    gap: 9px;
  }
  .poster-face {
    min-height: 88px;
  }
  .poster-title {
    padding-block: 8px;
  }
  .poster-title h1 {
    font-size: 24px;
  }
  .poster-title p {
    margin-top: 3px;
    font-size: 12px;
  }
  .facts {
    padding-block: 7px;
  }
  .facts > div {
    padding-left: 9px;
  }
  .facts span {
    display: inline;
    margin-right: 4px;
    font-size: 10px;
  }
  .facts b {
    font-size: 17px;
  }
  .facts small {
    font-size: 10px;
    margin-left: 2px;
  }
  .entry {
    padding: 14px;
  }
  .entry h2 {
    font-size: 21px;
    margin-bottom: 9px;
  }
  .entry .field + .field {
    margin-top: 10px;
  }
  .entry .rules {
    margin-top: 10px;
    padding-top: 7px;
  }
  .entry .primary {
    margin-top: 12px;
  }
}
