@font-face { font-family: ui-rounded; src: local("Arial Rounded MT Bold"); }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #090909;
  background: #fff9e8;
}
a { color: inherit; }
.home {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.brand, .step {
  display: inline-block;
  border: 4px solid #000;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 900;
  background: #fff;
  box-shadow: 5px 5px 0 #000;
}
.home h1 {
  font-size: clamp(44px, 8vw, 86px);
  line-height: .9;
  letter-spacing: -0.06em;
  margin: 26px 0 22px;
}
.topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #fff9e8f4;
  backdrop-filter: blur(10px);
  border-bottom: 5px solid #000;
  z-index: 2;
}
.logo { font-weight: 1000; font-size: 24px; text-decoration: none; letter-spacing: -0.04em; }
.hud { display: flex; align-items: center; gap: 12px; }
.streak {
  border: 4px solid #000;
  border-radius: 999px;
  background: #ffd84d;
  padding: 8px 14px;
  font-weight: 1000;
  box-shadow: 4px 4px 0 #000;
}
.plain, .bottomNav button {
  border: 4px solid #000;
  border-radius: 16px;
  background: #fff;
  padding: 10px 16px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
}
.progress {
  height: 14px;
  border-bottom: 5px solid #000;
  background: #fff;
}
.progress div { height: 100%; background: #111; transition: width .2s ease; }
.game {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.prompt {
  border: 5px solid #000;
  border-radius: 30px;
  background: #fff;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 10px 10px 0 #000;
}
.prompt h1 {
  font-size: clamp(32px, 5.5vw, 62px);
  line-height: .95;
  letter-spacing: -0.05em;
  margin: 26px 0 10px;
}
.meta { opacity: .6; font-weight: 900; margin-bottom: 26px; }
.essay {
  max-height: 54vh;
  overflow: auto;
  border-top: 4px solid #000;
  padding-top: 24px;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.58;
}
.essay p { margin: 0 0 18px; }
.essay h1, .essay h2, .essay h3 { font-family: ui-rounded, system-ui, sans-serif; letter-spacing: -0.04em; }
.essay a { color: #0757ff; }
.essay blockquote { border-left: 5px solid #000; margin-left: 0; padding-left: 18px; font-style: italic; }
.voteBox {
  margin-top: 36px;
  border: 5px solid #000;
  border-radius: 30px;
  background: #fff;
  padding: 28px;
  box-shadow: 10px 10px 0 #000;
}
.question {
  text-align: center;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: .9;
  letter-spacing: -0.06em;
  font-weight: 1000;
  margin-bottom: 24px;
}
.buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.vote {
  min-height: 88px;
  border: 5px solid #000;
  border-radius: 20px;
  background: #ffd84d;
  font-size: 20px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 5px 5px 0 #000;
}
.vote:hover, .plain:hover, .bottomNav button:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.vote:nth-child(1), .vote:nth-child(2) { background: #90ef90; }
.vote:nth-child(4), .vote:nth-child(5) { background: #ff8f8f; }
.resultHero {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 5px solid #000;
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.score, .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #000;
  border-radius: 50%;
  font-weight: 1000;
}
.score { width: 92px; height: 92px; font-size: 62px; flex: 0 0 auto; }
.hit { background: #90ef90; }
.miss { background: #ff8f8f; }
.bigResult { font-size: clamp(32px, 5vw, 56px); font-weight: 1000; letter-spacing: -0.05em; line-height: .95; }
.smallResult { margin-top: 8px; font-size: 20px; font-weight: 900; opacity: .65; }
.barRow {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  font-weight: 1000;
}
.barTrack {
  height: 30px;
  border: 4px solid #000;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.barFill { height: 100%; background: #111; min-width: 4px; }
.barCount { text-align: right; }
.bottomNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 5px solid #000;
  padding-top: 24px;
  margin-top: 24px;
  font-weight: 1000;
}
.bottomNav button { background: #000; color: #fff; font-size: 28px; border-radius: 14px; padding: 12px 24px; }
.bottomNav.center { justify-content: center; }
.results { text-align: center; }
.summaryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.summaryGrid div {
  border: 5px solid #000;
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: 6px 6px 0 #000;
}
.summaryGrid strong { display: block; font-size: 42px; line-height: 1; }
.summaryGrid span { display: block; margin-top: 8px; font-weight: 1000; opacity: .65; }
.resultList { display: grid; gap: 12px; margin-top: 28px; text-align: left; }
.resultRow {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 5px solid #000;
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  text-decoration: none;
  box-shadow: 5px 5px 0 #000;
}
.mark { width: 38px; height: 38px; font-size: 25px; border-width: 4px; }
.rowTitle { font-weight: 1000; font-size: 20px; }
.rowMeta { font-weight: 900; opacity: .65; white-space: nowrap; }
@media (max-width: 760px) {
  .buttons, .summaryGrid { grid-template-columns: 1fr; }
  .barRow { grid-template-columns: 1fr; gap: 6px; }
  .barCount { text-align: left; }
  .resultHero { align-items: flex-start; }
  .topbar { align-items: flex-start; }
  .hud { flex-direction: column; align-items: flex-end; gap: 8px; }
  .resultRow { grid-template-columns: 44px 1fr; }
  .rowMeta { grid-column: 2; white-space: normal; }
}
