
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card {
  margin-top: 16px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 16px;
}

.hint {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  opacity: 0.95;
}

.row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #243244;
}

.rank {
  text-transform: capitalize;
  opacity: 0.9;
}

.inp {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  outline: none;
}

.inp.ok {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.inp.bad {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.btn {
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.btn.secondary {
  opacity: 0.9;
}

.btn:hover {
  border-color: #475569;
}

.answers {
  margin-top: 12px;
  padding: 12px;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: auto;
}

.imgBox {
  margin: 10px 0 14px 0;
  display: flex;
  justify-content: center;
}

.imgBox img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  border: 1px solid #334155;
}
