* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #ffb15a;
  color: #3b2416;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
button { font-family: inherit; }
.stage {
  position: relative;
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% 18%, #ffe7a8 0 70px, transparent 72px),
    radial-gradient(circle at 80% 12%, #fff 0 28px, transparent 30px),
    linear-gradient(#ffc56e, #ff9a45 42%, #ffd7a2 42%, #fff4e4 100%);
}
#home { min-height: 100vh; padding: 16px 16px 24px; }
.hud { display: flex; align-items: center; justify-content: space-between; }
.who, .score-chip, .stats > div, .cat {
  background: rgba(255, 248, 236, 0.94);
  border-radius: 16px;
}
.who { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 12px 4px 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #ff8a3d; }
.nick { font-size: 15px; font-weight: 700; }
.score-chip { min-width: 76px; min-height: 48px; padding: 6px 10px; text-align: center; }
.score-chip b, .stats b { display: block; font-size: 18px; color: #ff6a1a; }
.score-chip span, .stats span { font-size: 12px; color: #8a6a52; }
.hero { margin: 28px 8px 18px; text-align: center; }
.hero h1 { margin: 0; font-size: 34px; color: #fff; text-shadow: 0 3px 0 #e26420; }
.hero p { margin: 8px 0 0; color: #fff8ee; font-size: 15px; }
.go {
  display: block;
  width: 100%;
  min-height: 64px;
  margin: 8px 0 14px;
  border: 0;
  border-radius: 18px;
  background: #ff6a1a;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat {
  min-height: 52px;
  border: 0;
  color: #3b2416;
  font-size: 16px;
  font-weight: 700;
}
.cat.on { background: #ff8a3d; color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; text-align: center; }
.stats > div { padding: 10px 4px; }
.hidden { display: none; }
#quiz, #result { min-height: 100vh; padding-bottom: 24px; background: #fff8ef; }
.quiz-top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0; }
.back { width: 44px; height: 44px; border: 0; border-radius: 14px; background: #fff; color: #ff6a1a; }
.prog { flex: 1; height: 10px; background: #ffe0c2; border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: #ff8a3d; }
.step { font-size: 13px; color: #8a6a52; }
.tag { margin: 18px 20px 0; color: #ff6a1a; font-size: 13px; font-weight: 700; }
.qtext { margin: 8px 20px 16px; font-size: 22px; line-height: 1.4; }
.opts { display: grid; gap: 12px; padding: 0 16px; }
.opt {
  min-height: 52px;
  text-align: left;
  padding: 12px 16px;
  border: 2px solid #ffd7b0;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
}
.opt.ok { border-color: #2ea36a; background: #e9fff3; }
.opt.bad { border-color: #e25b4a; background: #ffecea; }
.rscore { margin: 8px 20px; font-size: 64px; color: #ff6a1a; }
.rline { margin: 0 20px 20px; font-size: 16px; color: #8a6a52; }
.again, .ghost {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}
.again { background: #ff8a3d; color: #fff; }
.ghost { background: #fff; color: #ff6a1a; }
