body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 24px; line-height: 1.35; }
.wrap { max-width: 980px; margin: 0 auto; }
.card { border: 1px solid #ddd; border-radius: 12px; padding: 16px; margin: 16px 0; }
.hidden { display: none !important; }
.puzzle { display: grid; grid-template-columns: 1fr; gap: 12px; }
.puzzle img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid #eee; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 800px) { .answers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ansBtn {
  cursor: pointer; border: 2px solid #ddd; border-radius: 12px; padding: 10px; background: white;
  display: grid; gap: 8px; align-items: center; justify-items: center;
  transition: border-color .15s, box-shadow .15s;
  user-select: none;
}
.ansBtn:hover { border-color: #999; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.ansBtn.selected { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.ansImg { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; border: 1px solid #eee; background: #fafafa; }
.row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 800px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
label { display: grid; gap: 6px; font-weight: 600; }
input, select, textarea {
  font: inherit; padding: 10px; border: 1px solid #ccc; border-radius: 10px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; font-weight: 500; }
.muted { color: #666; font-size: 14px; font-weight: 500; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button {
  font: inherit; padding: 10px 14px; border-radius: 10px; border: 1px solid #ccc; background: #111; color: #fff;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: not-allowed; }
.btnSecondary { background: #fff; color:#111; }
.status { font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border: 1px solid #ddd; border-radius: 999px; font-size: 13px; color: #444; }
.puzzleHeader { display:flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
