:root {
  --black: #222;
  --muted: #6b6b6b;
  --line: #e4e4e2;
  --soft: #f7f6f4;
  --white: #fff;
  --blue: #0074d9;
  --green: #4ade80;
  --red: #fca5a5;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
}
body { display: flex; min-height: 100vh; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 900px; margin: auto; padding: 26px 20px 70px; }
a { color: inherit; text-decoration: none; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.game-top a { font-weight: 700; letter-spacing: -.04em; }
.game-top span { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.game-head { text-align: center; padding: 46px 0 25px; }
.game-head h1 { margin: 0 0 12px; font-size: clamp(30px, 7vw, 52px); line-height: 1.08; letter-spacing: -.05em; }
.game-head p { margin: auto; max-width: 580px; color: var(--muted); }
.board { border: 1px solid var(--line); background: var(--soft); padding: 22px; }
.score-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
#app { min-height: 320px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); padding: 20px; }
.reaction { width: 100%; min-height: 320px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--soft); color: var(--black); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; user-select: none; touch-action: manipulation; }
.word { font-size: 32px; font-weight: 800; letter-spacing: .14em; text-align: center; }
.message { color: var(--muted); min-height: 24px; text-align: center; font-size: 14px; }
form { display: grid; grid-template-columns: 1fr 105px; gap: 10px; margin-top: 16px; }
input { min-height: 44px; padding: 0 14px; border: 1px solid var(--black); font: inherit; background: var(--white); }
.answers { display: grid; gap: 10px; width: min(480px, 100%); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
button { min-width: 100px; min-height: 42px; border: 1px solid var(--black); background: var(--white); color: var(--black); font: inherit; font-weight: 700; cursor: pointer; padding: 0 18px; }
button:hover { background: var(--black); color: var(--white); }
.money { width: min(420px, 100%); min-height: 190px; display: grid; align-content: center; gap: 8px; border: 1px solid var(--black); background: var(--white); color: var(--black); font: inherit; cursor: pointer; }
.money strong { font-size: 36px; font-weight: 900; letter-spacing: -.05em; }
.money small { font-size: 13px; font-weight: 500; color: var(--muted); }
.shop-row { display: grid; grid-template-columns: 1fr 95px; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 14px 0; width: min(560px, 100%); }
.shop-row small { color: var(--muted); font-size: 13px; }
.milestones { display: grid; grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 8px; margin-top: 20px; }
.milestone { display: grid; place-items: center; gap: 4px; padding: 10px; border: 1px solid var(--line); background: var(--white); opacity: .45; }
.milestone.on { border-color: var(--black); opacity: 1; }
.animal-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.animal-line { display: flex; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); background: var(--white); }
.hints { display: grid; gap: 8px; margin-top: 16px; }
.hint { border: 1px solid var(--line); background: var(--white); padding: 10px; }
.badges { display: flex; gap: 8px; margin-top: 16px; min-height: 46px; }
.badge { font-size: 24px; padding: 6px; border: 1px solid var(--line); background: var(--white); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.pack { display: grid; place-items: center; gap: 4px; padding: 12px; border: 1px solid var(--line); background: var(--white); }
.pack.locked { opacity: .4; }
.info { padding: 35px 0 0; }
.info h2 { font-size: 17px; margin: 0 0 8px; }
.info p { color: var(--muted); max-width: 620px; margin: 0 0 20px; }
footer { border-top: 1px solid var(--line); padding: 20px 26px; color: var(--muted); font-size: 14px; }
