:root {
  font-family: "Inter", "PingFang SC", "Microsoft Yahei", sans-serif;
  color: #182e29;
  background: #f7f6ef;
  line-height: 1.55;
  --ink: #183c34;
  --green: #225747;
  --muted: #53685e;
  --line: #d3dbd0;
  --cream: #fffef9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1000px;
  margin: auto;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}
.brand i {
  background: var(--green);
  color: white;
  border-radius: 9px;
  width: 32px;
  text-align: center;
  font:
    italic 23px/32px Georgia,
    serif;
}
.brand span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 450;
}
main {
  max-width: 780px;
  margin: 44px auto;
  padding: 0 22px 45px;
  outline: none;
}
.login {
  max-width: 520px;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.65em;
}
h1 {
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
h2 {
  font-size: clamp(21px, 3.2vw, 29px);
  line-height: 1.5;
}
h3 {
  font-size: 17px;
}
.card,
.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 4vw, 36px);
  margin: 18px 0;
}
.hero {
  background: #183f34;
  color: #fffdf2;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid #789482;
  border-radius: 50%;
  right: -110px;
  top: -120px;
  box-shadow:
    0 0 0 22px #183f34,
    0 0 0 23px #587867,
    0 0 0 46px #183f34,
    0 0 0 47px #496d5d;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero .meta {
  color: #cee0cf;
}
.meta,
.muted,
small {
  color: var(--muted);
}
.meta {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.hero h1 {
  margin: 0.65em 0;
}
.times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 15px 0 22px;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select,
input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  padding: 9px 13px;
}
button {
  cursor: pointer;
  font-weight: 650;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #bc6c08;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
.times button[aria-pressed="true"] {
  background: #e5efdf;
  border: 2px solid var(--green);
  color: var(--ink);
}
.times b {
  font-size: 1.4rem;
}
.times small {
  display: block;
}
.primary {
  display: block;
  width: 100%;
  background: var(--green);
  color: white;
  border: 0;
  font-weight: bold;
  font-size: 17px;
}
.plain {
  background: none;
  border: 0;
  color: var(--muted);
}
select,
input {
  width: 100%;
  margin: 6px 0 14px;
}
label {
  display: block;
  font-weight: 650;
}
.stats,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.stats strong {
  font-size: 1.15em;
}
.track {
  height: 6px;
  background: #dce4d8;
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0 20px;
}
.track i {
  display: block;
  height: 100%;
  background: var(--green);
}
.option {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  min-height: 54px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.option b {
  flex-shrink: 0;
  background: #edf1e9;
  border-radius: 6px;
  text-align: center;
  min-width: 30px;
  padding: 2px;
}
.option.good,
.feedback.good {
  background: #e8f3e8;
  border-color: #619272;
}
.option.bad,
.feedback.bad {
  background: #fff0e8;
  border-color: #bd765f;
}
.feedback {
  padding: 16px 18px;
  border: 1px solid;
  border-radius: 12px;
  margin: 18px 0;
  animation: reveal 0.22s ease-out;
}
.feedback p:last-child {
  margin: 0;
}
.feedback h3 {
  font-size: 20px;
}
.statsline {
  font-variant-numeric: tabular-nums;
}
.review {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.review summary {
  cursor: pointer;
  min-height: 48px;
  padding: 10px 0;
  font-weight: 650;
}
#error {
  position: sticky;
  bottom: 8px;
  background: #fff1df;
  padding: 14px;
  border: 1px solid #a87c56;
  max-width: 730px;
  margin: 0 auto;
}
.metric {
  font:
    600 clamp(44px, 9vw, 68px) / 1.2 Georgia,
    serif;
}
.card,
.panel,
select,
p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
@keyframes reveal {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 530px) {
  header {
    padding: 8px 14px;
  }
  .brand {
    gap: 6px;
  }
  main {
    margin: 23px auto;
    padding: 0 13px 28px;
  }
  .card,
  .panel {
    border-radius: 15px;
    margin: 12px 0;
  }
  .times {
    gap: 5px;
  }
  .times button {
    padding: 6px 2px;
  }
  .plain {
    padding: 8px;
  }
  .stats {
    font-size: 14px;
  }
}
