:root{
  --bg:#f7f8fc;
  --card:#fff;
  --text:#243042;
  --muted:#6d7786;
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --accent:#ff6f61;
  --green:#7acb6b;
  --orange:#ffb347;
  --blue:#6cb6ff;
  --purple:#b18cff;
  --teal:#57d6c3;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,sans-serif;
  background:linear-gradient(180deg,#fef6e4,#eef6ff);
  color:var(--text);
}

.app{
  max-width:960px;
  margin:0 auto;
  padding:20px;
}

.hero{
  background:#fff;
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
  margin-bottom:20px;
  text-align:center;
}

.hero h1{
  margin:0 0 8px;
}

.hero p{
  margin:0;
  color:var(--muted);
}

.screen{
  display:none;
}

.screen.active{
  display:block;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

.card{
  background:var(--card);
  border:none;
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow);
  text-align:left;
  cursor:pointer;
}

.card h3{
  margin:0 0 8px;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.4;
}

.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
}

.home-pill{background:#ffe4dd;color:#8e3027}
.mode-pill{background:#e8f1ff;color:#1d5aa6}

.topbar{
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.back{
  border:none;
  background:#fff;
  padding:10px 14px;
  border-radius:12px;
  box-shadow:var(--shadow);
  cursor:pointer;
}

.meta{
  color:var(--muted);
  margin-bottom:16px;
}

.panel{
  background:#fff;
  border-radius:20px;
  padding:20px;
  box-shadow:var(--shadow);
}

.question{
  font-size:22px;
  font-weight:700;
  margin-bottom:16px;
}

.btn{
  border:none;
  background:var(--accent);
  color:#fff;
  padding:12px 18px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}

.input{
  width:100%;
  padding:14px;
  border:2px solid #dce2ef;
  border-radius:12px;
  font-size:18px;
  margin:10px 0;
}

.options{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.option{
  border:none;
  background:#f2f5fb;
  padding:12px;
  border-radius:12px;
  text-align:left;
  cursor:pointer;
}

.feedback{
  margin-top:14px;
  font-weight:700;
}

.feedback.ok{color:#1c8c3a}
.feedback.bad{color:#c4372f}

.small{
  font-size:14px;
  color:var(--muted);
}

.wordbank{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0;
}

.chip{
  background:#eef2ff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
}

.image-placeholder{
  background:#f4f7ea;
  border:2px dashed #aac27c;
  padding:18px;
  border-radius:16px;
  margin-bottom:16px;
}

@media (max-width:600px){
  .question{font-size:20px}
  .app{padding:14px}
}