:root {
  --bg: #f3eee4;
  --bg-warm: #ebe4d6;
  --surface: #faf7f0;
  --ink: #1a1916;
  --ink-soft: #3a372f;
  --muted: #6f6a60;
  --line: #ddd6c8;
  --forest: #1b4d3e;
  --forest-deep: #12352c;
  --forest-fg: #f4efe4;
  --star: #c4a035;
  --flag-red: #9b2335;
  --ok: #2f6b4f;
  --danger: #8f2d2d;
  --display: "Fraunces", "Georgia", "Iowan Old Style", serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 0 0 1px rgba(26, 25, 22, 0.06), 0 1px 2px -1px rgba(26, 25, 22, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:not(:disabled), [role="button"] { cursor: pointer; }
.kente { height: 4px; background: linear-gradient(90deg, var(--flag-red) 0 33.3%, var(--star) 33.3% 66.6%, var(--forest) 66.6% 100%); }
.wrap { max-width: 512px; margin: 0 auto; padding: 20px 16px 108px; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 1.35rem; margin: 0; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; margin: 0; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0;
  background: var(--forest); color: var(--forest-fg); font-weight: 600;
}
.btn.star { background: var(--star); color: var(--ink); }
.btn.ghost { background: var(--bg-warm); color: var(--ink); }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.45; }
.choice {
  display: flex; gap: 10px; width: 100%; text-align: left; min-height: 48px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  padding: 10px 12px;
}
.choice.ok { border-color: var(--ok); background: #e7efe9; }
.choice.bad { border-color: var(--danger); background: #f8ecec; }
.letter {
  width: 28px; height: 28px; border-radius: 8px; background: var(--bg-warm);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
input, select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 8px 12px; color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin: 10px 0 6px; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(250,247,240,0.96);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.nav a {
  height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--muted); gap: 2px;
}
.nav a.on { color: var(--forest); }
.hero { min-height: 100vh; background: var(--forest); color: var(--forest-fg); }
.hero .wrap { padding-top: 48px; max-width: 512px; }
.hero input, .hero select {
  background: var(--forest-deep); color: var(--forest-fg); border-color: rgba(244,239,228,0.2);
}
.hero .muted { color: rgba(244,239,228,0.7); }
.pick {
  border: 1px solid rgba(244,239,228,0.15); background: rgba(18,53,44,0.4); color: var(--forest-fg);
  border-radius: 12px; padding: 12px; text-align: left; min-height: 64px; width: 100%;
}
.pick.on { border-color: var(--star); background: var(--forest-deep); }
.hall-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avatar {
  width: 48px; height: 48px; border-radius: 999px; background: var(--forest);
  color: var(--forest-fg); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.prize-btn {
  width: 48px; height: 48px; border-radius: 16px; background: var(--star); color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.rankbar {
  border-radius: 24px; background: linear-gradient(135deg, var(--forest), var(--forest-deep));
  color: var(--forest-fg); padding: 20px 8px; display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.rankbar > div { text-align: center; border-left: 1px solid rgba(255,255,255,0.15); }
.rankbar > div:first-child { border-left: 0; }
.rankbar .lbl { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,239,228,0.7); }
.rankbar .num { font-family: var(--display); font-size: 1.85rem; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.zone-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.zone-head a { font-size: 14px; font-weight: 600; color: var(--forest); }
.quiz-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow);
}
.quiz-row + .quiz-row { margin-top: 8px; }
.chev { font-size: 22px; color: var(--muted); }
.tile {
  min-height: 144px; background: var(--surface); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between;
}
.tile p { margin: 4px 0 0; }
.contest { background: var(--surface); border-radius: 16px; padding: 32px 16px; text-align: center; box-shadow: var(--shadow); }
.list { display: grid; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opt { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.opt input[type="text"] { flex: 1; }
.prog { height: 6px; background: var(--bg-warm); border-radius: 99px; overflow: hidden; }
.prog > span { display: block; height: 100%; background: var(--forest); }
.alert { border-left: 4px solid var(--danger); }
.okbox { border-left: 4px solid var(--ok); }
@media (min-width: 800px) {
  .wrap { padding-top: 28px; }
}
