*{box-sizing:border-box}
:root{
  --bg:#f7f9fc;
  --text:#1d2939;
  --muted:#667085;
  --ok:#16a34a;
  --bad:#dc2626;
  --shadow:0 6px 20px rgba(17,24,39,.08);
  --radius:16px;
  --brand:#E0F2FE;
  --accent:#111827;
}
html,body{height:100%}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--text); background:var(--bg);
  display:flex; flex-direction:column;
}
.score{font-weight:600}
.progress{color:var(--muted); margin-top:8px; font-size:0.9rem}
.game-title{
  margin:0 0 12px 0; 
  font-size:clamp(1.3rem,1.2rem + 1vw,2rem);
  font-weight:800; 
  color:var(--text);
  text-align:center;
}
.btn{
  border:0; background:var(--accent); color:#fff; padding:10px 14px; border-radius:12px;
  cursor:pointer; box-shadow:var(--shadow);
}
.btn.secondary{ background:#334155; }
.btn:disabled{opacity:.6; cursor:not-allowed}
.app-main{ width:min(900px,96%); margin:18px auto; display:flex; flex-direction:column; gap:16px}
.instructions{ background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:20px 16px; color:var(--muted)}
.arena{
  background:#fff; border-radius:var(--radius); box-shadow:var(--shadow);
  padding:18px; display:flex; flex-direction:column; gap:16px;
}
.prompt{ display:flex; flex-direction:column; gap:8px; align-items:center; }
.word{
  background:var(--brand); border-radius:16px; padding:16px 22px;
  font-size:clamp(1.4rem,1.2rem + .8vw,2rem); font-weight:800; letter-spacing:.4px;
}
.hint{ color:var(--muted); font-weight:700; font-size:clamp(1rem,0.95rem + 0.5vw,1.2rem) }
.options{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px }
.opt{
  border:2px solid transparent; background:#fff; border-radius:14px; padding:14px;
  font-weight:700; box-shadow:var(--shadow); cursor:pointer; transition:transform .12s ease;
}
.opt:hover{ transform: translateY(-1px) }
.opt.correct{ outline:3px solid var(--ok) }
.opt.wrong{ outline:3px solid var(--bad); animation:shake .18s linear 2 }
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
.feedback{ min-height:22px; color:var(--muted); text-align:center }
.feedback.good{ color:var(--ok); font-weight:700 }
.feedback.bad{ color:var(--bad); font-weight:700 }
.nav{ display:flex; justify-content:space-between; align-items:center }
.nav-left{ display:flex; align-items:center; gap:12px }
.legend{ display:flex; gap:10px; align-items:center; color:var(--muted); padding:0 2px }
.chip{ padding:6px 10px; border-radius:12px; box-shadow:var(--shadow); background:#fff; }
.app-footer{ text-align:center; color:var(--muted); padding:20px 0 28px }
@media (max-width:720px){ .options{ grid-template-columns:1fr } }
