:root {
  --bg: #101316;
  --panel: #171c21;
  --panel-strong: #1d242b;
  --panel-soft: #14191d;
  --border: #2b333c;
  --text: #edf2f7;
  --muted: #98a3af;
  --accent: #7fc7a2;
  --accent-strong: #9be0ba;
  --danger-soft: #3a2628;
  --success-soft: #1d3128;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(127, 199, 162, 0.08), transparent 32%),
    linear-gradient(180deg, #0e1114 0%, #11151a 100%);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px 14px 32px;
}

.phone-frame {
  width: min(100%, 390px);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

.topbar {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.progress-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.progress-track {
  margin-top: 14px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #0d1013;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d9d7d, var(--accent));
  transition: width 220ms ease;
}

.section-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.prompt-text,
.scenario-text,
.feedback-text,
.summary-text,
.detail-list,
.meta-list {
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}

.word-focus {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-button,
.primary-button,
.secondary-button {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.option-button {
  padding: 15px 16px;
  text-align: left;
  background: var(--panel-strong);
  color: var(--text);
  border-color: #26303a;
}

.option-button:active,
.primary-button:active,
.secondary-button:active {
  transform: scale(0.985);
}

.option-button.selected {
  border-color: var(--accent);
  background: rgba(127, 199, 162, 0.12);
}

.option-button.correct {
  border-color: #73c998;
  background: rgba(115, 201, 152, 0.14);
}

.option-button.wrong {
  border-color: #b98186;
  background: rgba(185, 129, 134, 0.12);
}

.option-button:disabled {
  cursor: default;
  opacity: 1;
}

.feedback-card {
  border-color: #33404b;
}

.feedback-card.success {
  background: linear-gradient(180deg, rgba(115, 201, 152, 0.08), rgba(115, 201, 152, 0.02)), var(--panel);
}

.feedback-card.error {
  background: linear-gradient(180deg, rgba(185, 129, 134, 0.08), rgba(185, 129, 134, 0.02)), var(--panel);
}

.feedback-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.primary-button {
  background: var(--accent);
  color: #102117;
  border-color: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.primary-button[disabled] {
  opacity: 0.48;
  cursor: default;
}

.secondary-button {
  background: transparent;
  color: var(--muted);
  border-color: #313b45;
}

.secondary-button.subtle {
  background: rgba(255, 255, 255, 0.02);
}

.result-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.result-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.detail-list,
.meta-list {
  padding-left: 18px;
}

.detail-list li,
.meta-list li {
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(127, 199, 162, 0.12);
  border: 1px solid rgba(127, 199, 162, 0.18);
  color: var(--accent-strong);
  font-size: 13px;
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 360px) {
  .page-title {
    font-size: 20px;
  }

  .word-focus {
    font-size: 30px;
  }

  .card {
    padding: 14px;
  }
}
