:root {
  --bg: #fff4e6;
  --card: #fffaf4;
  --ink: #5a3724;
  --muted: #8b6848;
  --line: #f0c48a;
  --good: #3d7a32;
  --bad: #d96b4a;
  --btn: #ef7a32;
  --btn-text: #fffaf4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(800px 400px at 10% 0%, #ffd7b5, transparent 55%), var(--bg);
  color: var(--ink);
}

body {
  padding: 16px 14px 32px;
}

.wrap {
  width: min(560px, 100%);
  margin: 0 auto;
}
.pic-emoji {
  display: block;
  font-size: 88px;
  line-height: 1;
  margin: 8px auto 10px;
  text-align: center;
}
.pic-emoji.sm { font-size: 52px; margin: 4px auto; }
.pic.sm {
  width: 88px;
  height: 70px;
  max-height: 70px;
  margin: 0 auto 4px;
  object-fit: cover;
}
.choice.pic-only .pic {
  width: min(140px, 100%);
  height: 92px;
  max-height: 92px;
  object-fit: cover;
  margin: 0 auto 6px;
}
.hook-zh {
  margin: 4px 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #2a8f7a;
}
.hook-line {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.45;
  color: #3d6a4a;
  font-weight: 700;
}
.buddy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  background: #e7f6ee;
  border: 2px solid #b7d9c2;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #2a5c48;
  margin: 8px 0 12px;
  line-height: 1.4;
}
.buddy span { font-size: 28px; line-height: 1; }
.face-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 3px solid #d5e3d4;
  border-radius: 18px;
  padding: 10px 12px;
  min-width: 92px;
  font-size: 42px;
}
.face b { font-size: 16px; color: #234833; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice.pic-only { min-height: 110px; }
.choice.word-choice {
  font-size: 22px;
  font-weight: 800;
  padding: 16px 10px;
}
.choices.words { grid-template-columns: 1fr; }
.win-card .word { font-size: 32px; }
.easy-hud .quest-title { font-size: 18px; }
.syl-row, .syl-build {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px;
}
.syl {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  background: #fff;
  border: 3px solid #7ec9a0;
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 22px;
  font-weight: 800;
  color: #234833;
}
.syl.on { background: #c9ecd8; border-color: #2f7d55; }
.syl.wait { border-style: dashed; background: #f4fae8; }
.syl-dot { font-weight: 800; color: #7aaa4a; }
.syl-tile {
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  padding: 12px 16px;
  margin: 4px;
  border-radius: 16px;
  border: 0;
  background: #3d8a62;
  color: #fff;
  box-shadow: 0 4px 0 #2a6246;
  cursor: pointer;
}
.syl-tile.used { opacity: 0.25; box-shadow: none; }
.syl-tile.no { background: #c45c4a; }
.clap-n { font-size: 20px; font-weight: 800; margin: 4px 0 8px; color: #2a8f7a; }
.act-chip {
  background: #eef8d4;
  border: 2px solid #9bc45a;
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 17px;
}
.story-tale { font-size: 18px; }
.scene {
  position: relative;
  height: 280px;
  margin: 10px 0 14px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #d9f3ea, #eef8d4);
  border: 3px solid #b7d9c2;
}
.scene-bg {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 88px;
  opacity: 0.28;
  pointer-events: none;
}
.hot {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid #7ec9a0;
  border-radius: 18px;
  padding: 4px;
  min-width: 76px;
  font: inherit;
  font-weight: 800;
  color: #234833;
  cursor: pointer;
}
.hot b { display: block; font-size: 12px; }
.hot .pic {
  width: 72px;
  height: 56px;
  max-height: 56px;
  margin: 0 auto 2px;
  object-fit: cover;
}
.hot.ok { background: #c9ecd8; border-color: #2f7d55; }
.hot.no { background: #fdeceb; border-color: #c45c4a; }
.streak-card {
  background: #eef8d4;
  border: 2px solid #9bc45a;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.streak-card b { display: block; font-size: 20px; margin-bottom: 4px; }
.streak-card span { display: block; font-size: 15px; font-weight: 700; color: #3d6a4a; }
.echo-row { margin-top: 10px; }
.turn-chip {
  background: #e7f6ee;
  border: 2px solid #7ec9a0;
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 10px;
}
.turn-chip.go {
  background: #eef8d4;
  border-color: #8aaa5a;
}
.fog-card .face.foggy { opacity: 0.45; filter: blur(1px); }
.fog-bar {
  height: 12px;
  background: #d5e3d4;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}
.fog-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #7aaa9a;
  transition: width 0.7s linear;
}
.garden {
  background: #f7fbf4;
  border: 2px solid #b7d9c2;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.garden-title { margin: 0 0 6px; font-weight: 800; font-size: 18px; }
.garden-row, .garden-due { margin: 0; font-size: 15px; font-weight: 700; color: #3d6a4a; }

.hidden { display: none !important; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bar a, .ghost, .primary, .danger, .play {
  font: inherit;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.bar a, .ghost {
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 16px;
}

h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.2;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.wechat {
  background: #fff4d6;
  border: 2px solid #f0d48a;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 18px 12px;
  min-height: 120px;
  font-size: 18px;
  color: var(--ink);
}

.mode b {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 18px 16px 20px;
  text-align: center;
}

.pic {
  width: min(260px, 78%);
  max-height: 240px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  display: block;
  margin: 0 auto 12px;
}

.word {
  font-size: 40px;
  margin: 0;
  letter-spacing: 0.5px;
}

.zh {
  margin: 6px 0 14px;
  font-size: 22px;
  color: var(--muted);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.primary, .danger, .play {
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 20px;
}

.primary { background: var(--btn); color: var(--btn-text); }
.danger { background: #c45c4a; color: #fff; }
.play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-size: 34px;
  background: #dceee3;
}

input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 28px;
  text-align: center;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  margin: 8px 0 12px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.choice {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  color: inherit;
  font: inherit;
}

.choice img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.choice span {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
}

.choice.ok { border-color: var(--good); background: #e7f6ee; }
.choice.no { border-color: var(--bad); background: #fdeceb; }

.match {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.col { display: flex; flex-direction: column; gap: 10px; }

.node {
  min-height: 64px;
  border-radius: 16px;
  border: 3px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  padding: 8px;
}

.node img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.node.on { border-color: #3d7a62; background: #e7f3ec; }
.node.done { opacity: 0.38; }

.msg {
  min-height: 28px;
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0 0;
}
.msg.ok { color: var(--good); }
.msg.no { color: var(--bad); }

.progress {
  font-size: 18px;
  color: var(--muted);
  font-weight: 800;
}
