:root {
  color-scheme: light;
  --ink: #16211d;
  --muted: #63736d;
  --line: #dbe6df;
  --paper: #f6fbf7;
  --white: #ffffff;
  --green: #16734a;
  --green-deep: #0b5137;
  --gold: #d59a29;
  --blue: #3b6fb6;
  --coral: #d96846;
  --shadow: 0 18px 42px rgba(28, 66, 49, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #e8f5ef 0%, #f8fbf8 45%, #eef5f7 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 16px 28px;
}

.hero {
  position: relative;
  min-height: 360px;
  padding: 44px 22px 28px;
  overflow: hidden;
  background: #dff3ed;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow);
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 42px;
  right: 38px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f4bd45;
  box-shadow: 0 0 0 16px rgba(244, 189, 69, 0.18);
}

.hill {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  border-radius: 52% 48% 0 0;
}

.hill-one {
  height: 174px;
  background: #7fbb82;
}

.hill-two {
  height: 125px;
  bottom: -22px;
  background: #2f8b61;
}

.river {
  position: absolute;
  right: -40px;
  bottom: -18px;
  width: 210px;
  height: 150px;
  border-radius: 80% 0 0 0;
  background: #67b7c9;
  transform: rotate(-7deg);
}

.leaf {
  position: absolute;
  width: 56px;
  height: 84px;
  border-radius: 56px 0 56px 0;
  background: rgba(255, 255, 255, 0.55);
}

.leaf-one {
  left: 22px;
  top: 92px;
  transform: rotate(24deg);
}

.leaf-two {
  right: 132px;
  bottom: 92px;
  transform: rotate(-18deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 390px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

.subtitle {
  max-width: 310px;
  margin-bottom: 22px;
  color: #28473b;
  font-size: 16px;
  line-height: 1.65;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 12px;
  color: #25483a;
  font-size: 13px;
  font-weight: 700;
}

.panel,
.quiz-panel {
  margin-top: 18px;
  border: 1px solid rgba(22, 115, 74, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 20px;
  box-shadow: 0 14px 30px rgba(23, 86, 58, 0.1);
}

label {
  display: block;
  margin-bottom: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0 14px;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 115, 74, 0.12);
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.consent-row span {
  margin: 0;
  line-height: 1.5;
}

.primary-button,
.ghost-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
}

.primary-button {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 18px rgba(22, 115, 74, 0.22);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-deep);
}

.quiz-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.progress-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e4eee8;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.2s ease;
}

.timer {
  min-width: 72px;
  border-radius: 8px;
  background: #fff7e8;
  padding: 10px 12px;
  color: #9a5a00;
  font-weight: 900;
  text-align: center;
}

.question-card {
  min-height: 360px;
}

.question-type {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #e8f2fb;
  padding: 7px 10px;
  color: #255e9e;
  font-size: 13px;
  font-weight: 800;
}

#question-title {
  margin-bottom: 18px;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 13px;
  text-align: left;
}

.option.active {
  border-color: var(--green);
  background: #edf8f1;
}

.option-letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf2ee;
  color: var(--green-deep);
  font-weight: 900;
}

.option.active .option-letter {
  background: var(--green);
  color: var(--white);
}

.option-text {
  line-height: 1.55;
}

.quiz-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.result-panel {
  text-align: center;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 18px auto;
  border: 10px solid #e6f2eb;
  border-top-color: var(--green);
  border-right-color: var(--gold);
  border-radius: 50%;
}

.score-ring span {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: calc(100vw - 36px);
  transform: translateX(-50%) translateY(24px);
  border-radius: 8px;
  background: rgba(22, 33, 29, 0.92);
  padding: 11px 14px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.admin-shell {
  width: min(100%, 480px);
}

.admin-title {
  margin-bottom: 10px;
  font-size: 28px;
}

.admin-copy,
.admin-tip {
  color: var(--muted);
  line-height: 1.6;
}

.admin-tip {
  margin: 14px 0 0;
  font-size: 13px;
}

@media (min-width: 760px) {
  .app-shell {
    width: min(100%, 760px);
  }

  .hero {
    min-height: 410px;
    padding: 62px 48px 34px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .panel,
  .quiz-panel {
    padding: 28px;
  }

  .profile-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }

  .profile-form label:nth-child(3),
  .profile-form .consent-row,
  .profile-form .primary-button {
    grid-column: 1 / -1;
  }
}
